public static function instance() { if (is_null(self::$_instance)) { self::$_instance = new self(); } return self::$_instance; }
function WP_Installer() { return WP_Installer::instance(); }
?> <div class="alignright"> <a class="remove_site_key_js button-secondary" href="#" data-repository=<?php echo $repository_id; ?> data-confirmation="<?php esc_attr_e('Are you sure you want to unregister?', 'installer'); ?> " data-nonce="<?php echo wp_create_nonce('remove_site_key_' . $repository_id); ?> " <?php if (WP_Installer::get_repository_hardcoded_site_key($repository_id)) { ?> style="cursor: help" disabled="disabled" title="<?php printf(esc_attr__("Site-key was set by %s, most likely in wp-config.php. Please remove the constant before attempting to unregister.", 'installer'), 'OTGS_INSTALLER_SITE_KEY_' . strtoupper($repository_id)); ?> " <?php } ?> > <?php printf(__("Unregister %s from this site", 'installer'), $generic_product_name); ?> </a>
/** * Alias for WP_Installer::get_repository_site_key * @see WP_Installer::get_repository_site_key() * * @param string $repository_id * @return string (site key) or bool */ public function get_site_key($repository_id) { return WP_Installer::get_repository_site_key($repository_id); }
/** * WPML 3.1.7 introduced new Installer function for updates which is a massive improvement! * * There is however a little issue with the update nag showing a negative number for people * who have purchased the lifetime license. * Add this function to your functions.php file or functionality plugin and you will no longer be nagged. * * KEEP IN MIND THAT THIS FUNCTION IS ONLY USEFUL FOR LIFETIME LICENSES, USE AT YOUR OWN RISK * * @source: //wordpress.stackexchange.com/a/36110/2015 */ function so_remove_wpml_renew_nag_on_lifetime_license() { remove_action('admin_notices', array(WP_Installer::instance(), 'setup_plugins_renew_warnings'), 10); remove_action('admin_notices', array(WP_Installer::instance(), 'queue_plugins_renew_warnings'), 20); }