/home/altere25/public_html/wp-content/plugins/wpmudev-updates
NameSizeModeActions
assets/-0755rm
includes/-0755rm
keys/-0755rm
language/-0755rm
lib/-0755rm
shared-ui/-0755rm
template/-0755rm
tests/-0755rm
changelog.txt452710644editdlrm
index.php00644editdlrm
uninstall.php19230644editdlrm
update-notifications.php103670644editdlrm
Edit: /home/altere25/public_html/wp-content/plugins/wpmudev-updates/update-notifications.php (10367B)
get( 'version', 'general' ); // Only for v4.11.10. if ( empty( $version ) ) { // Try to get old structured version number. $version = self::$settings->get( 'version' ); } // If existing version is not same, upgrade. if ( ! empty( $version ) && version_compare( $version, self::$version, '<' ) ) { $this->upgrade_plugin( $version ); } /** * Custom code can be executed after Dashboard is initialized with the * default settings. * * @param WPMUDEV_Dashboard $this The initialized dashboard object. * * @since 4.0.0 */ do_action( 'wpmudev_dashboard_init', $this ); } /** * Run code on plugin activation. * * @since 1.0.0 * @internal Action hook */ public function activate_plugin() { global $current_user; // Register the plugin uninstall hook. register_uninstall_hook( __FILE__, array( 'WPMUDEV_Dashboard', 'uninstall_plugin' ) ); // If first time activation. if ( self::$settings->get( 'first_setup', 'flags', true ) ) { /** * Action hook to execute on first plugin activation. * * @since 4.11.2 */ do_action( 'wpmudev_dashboard_first_activation' ); // Not a first time activation anymore. self::$settings->set( 'first_setup', false, 'flags' ); } // Make sure all Dashboard settings exist in the DB. self::$settings->init(); // Reset the admin-user when plugin is activated. if ( $current_user && $current_user->ID ) { self::$site->add_allowed_user( $current_user->ID ); } // On next page load we want to redirect user to login page. self::$settings->set( 'redirected_v4', false, 'flags' ); // Set plugin version on activation. self::$settings->set( 'version', self::$version, 'general' ); // Force refresh of all data when plugin is activated. self::$settings->set( 'refresh_profile', true, 'flags' ); // This needs to trigger after init to prevent Call to undefined function wp_get_current_user() errors. add_action( 'shutdown', array( self::$api, 'refresh_projects_data' ) ); self::$site->schedule_shutdown_refresh(); } /** * Run code on plugin deactivation. * * @since 4.1.1 * @internal Action hook */ public function deactivate_plugin() { // On next page load we want to redirect user to login page. self::$settings->set( 'redirected_v4', false, 'flags' ); } /** * Run code on plugin uninstall. * * @since 4.5 * @internal Action hook */ public static function uninstall_plugin() { $keep_data = self::$settings->get( 'uninstall_keep_data', 'flags' ); $keep_settings = self::$settings->get( 'uninstall_preserve_settings', 'flags' ); // On next page load we want to redirect user to login page. if ( ! $keep_data && ! $keep_settings ) { self::$site->logout( false ); } } /** * Run code on plugin version upgrade. * * @param string $version Old version. * * @since 4.11 * * @return void */ private function upgrade_plugin( $version ) { // Set new version. self::$settings->set( 'version', self::$version, 'general' ); // Show upgrade highlights modal. // self::$settings->set( 'highlights_dismissed', false, 'flags' ); /** * Action hook to execute upgrade functions. * * @param string $version Old version. * @param string $new_version New version. * * @since 4.11 */ do_action( 'wpmudev_dashboard_version_upgrade', $version, self::$version ); } } // Initialize the WPMUDEV Dashboard. WPMUDEV_Dashboard::instance(); if ( ! class_exists( 'WPMUDEV_Update_Notifications' ) ) { /** * Dummy class for backwards compatibility to stone-age. */ class WPMUDEV_Update_Notifications { } }