IP : 3.14.9.169Hostname : server86.web-hosting.comKernel : Linux server86.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64Disable Function : None :) OS : Linux
PATH:
/
home/
servlmvm/
ssl/
../
puppiesoftexas.com/
wp-admin/
plugins.php/
/
// Clean up request URI from temporary args for screen options/paging uri's to work as expected. $query_args_to_remove = array( 'error', 'deleted', 'activate', 'activate-multi', 'deactivate', 'deactivate-multi', 'enabled-auto-update', 'disabled-auto-update', 'enabled-auto-update-multi', 'disabled-auto-update-multi', '_error_nonce', );
switch ( $action ) { case 'activate': if ( ! current_user_can( 'activate_plugin', $plugin ) ) { wp_die( __( 'Sorry, you are not allowed to activate this plugin.' ) ); }
if ( isset( $_GET['from'] ) && 'import' === $_GET['from'] ) { // Overrides the ?error=true one above and redirects to the Imports page, stripping the -importer suffix. wp_redirect( self_admin_url( 'import.php?import=' . str_replace( '-importer', '', dirname( $plugin ) ) ) ); } elseif ( isset( $_GET['from'] ) && 'press-this' === $_GET['from'] ) { wp_redirect( self_admin_url( 'press-this.php' ) ); } else { // Overrides the ?error=true one above. wp_redirect( self_admin_url( "plugins.php?activate=true&plugin_status=$status&paged=$page&s=$s" ) ); } exit;
case 'activate-selected': if ( ! current_user_can( 'activate_plugins' ) ) { wp_die( __( 'Sorry, you are not allowed to activate plugins for this site.' ) ); }
if ( is_network_admin() ) { foreach ( $plugins as $i => $plugin ) { // Only activate plugins which are not already network activated. if ( is_plugin_active_for_network( $plugin ) ) { unset( $plugins[ $i ] ); } } } else { foreach ( $plugins as $i => $plugin ) { // Only activate plugins which are not already active and are not network-only when on Multisite. if ( is_plugin_active( $plugin ) || ( is_multisite() && is_network_only_plugin( $plugin ) ) ) { unset( $plugins[ $i ] ); } // Only activate plugins which the user can activate. if ( ! current_user_can( 'activate_plugin', $plugin ) ) { unset( $plugins[ $i ] ); } } }
case 'error_scrape': if ( ! current_user_can( 'activate_plugin', $plugin ) ) { wp_die( __( 'Sorry, you are not allowed to activate this plugin.' ) ); }
ini_set( 'display_errors', true ); // Ensure that fatal errors are displayed. // Go back to "sandbox" scope so we get the same errors as before. plugin_sandbox_scrape( $plugin ); /** This action is documented in wp-admin/includes/plugin.php */ do_action( "activate_{$plugin}" ); exit;
case 'deactivate': if ( ! current_user_can( 'deactivate_plugin', $plugin ) ) { wp_die( __( 'Sorry, you are not allowed to deactivate this plugin.' ) ); }
case 'deactivate-selected': if ( ! current_user_can( 'deactivate_plugins' ) ) { wp_die( __( 'Sorry, you are not allowed to deactivate plugins for this site.' ) ); }
check_admin_referer( 'bulk-plugins' );
$plugins = isset( $_POST['checked'] ) ? (array) wp_unslash( $_POST['checked'] ) : array(); // Do not deactivate plugins which are already deactivated. if ( is_network_admin() ) { $plugins = array_filter( $plugins, 'is_plugin_active_for_network' ); } else { $plugins = array_filter( $plugins, 'is_plugin_active' ); $plugins = array_diff( $plugins, array_filter( $plugins, 'is_plugin_active_for_network' ) );
foreach ( $plugins as $i => $plugin ) { // Only deactivate plugins which the user can deactivate. if ( ! current_user_can( 'deactivate_plugin', $plugin ) ) { unset( $plugins[ $i ] ); } } } if ( empty( $plugins ) ) { wp_redirect( self_admin_url( "plugins.php?plugin_status=$status&paged=$page&s=$s" ) ); exit; }
case 'delete-selected': if ( ! current_user_can( 'delete_plugins' ) ) { wp_die( __( 'Sorry, you are not allowed to delete plugins for this site.' ) ); }
check_admin_referer( 'bulk-plugins' );
// $_POST = from the plugin form; $_GET = from the FTP details screen. $plugins = isset( $_REQUEST['checked'] ) ? (array) wp_unslash( $_REQUEST['checked'] ) : array(); if ( empty( $plugins ) ) { wp_redirect( self_admin_url( "plugins.php?plugin_status=$status&paged=$page&s=$s" ) ); exit; }
$plugins = array_filter( $plugins, 'is_plugin_inactive' ); // Do not allow to delete activated plugins. if ( empty( $plugins ) ) { wp_redirect( self_admin_url( "plugins.php?error=true&main=true&plugin_status=$status&paged=$page&s=$s" ) ); exit; }
// Bail on all if any paths are invalid. // validate_file() returns truthy for invalid files. $invalid_plugin_files = array_filter( $plugins, 'validate_file' ); if ( $invalid_plugin_files ) { wp_redirect( self_admin_url( "plugins.php?plugin_status=$status&paged=$page&s=$s" ) ); exit; }
if ( $data_to_delete ) { _e( 'Are you sure you want to delete these files and data?' ); } else { _e( 'Are you sure you want to delete these files?' ); }
require_once ABSPATH . 'wp-admin/admin-footer.php'; exit; } else { $plugins_to_delete = count( $plugins ); } // End if verify-delete.
$delete_result = delete_plugins( $plugins );
// Store the result in an option rather than a URL param due to object type & length. // Cannot use transient/cache, as that could get flushed if any plugin flushes data on uninstall/delete. update_option( 'plugins_delete_result_' . $user_ID, $delete_result, false ); wp_redirect( self_admin_url( "plugins.php?deleted=$plugins_to_delete&plugin_status=$status&paged=$page&s=$s" ) ); exit; case 'clear-recent-list': if ( ! is_network_admin() ) { update_option( 'recently_activated', array(), false ); } else { update_site_option( 'recently_activated', array() ); }
break; case 'resume': if ( is_multisite() ) { return; }
if ( ! current_user_can( 'resume_plugin', $plugin ) ) { wp_die( __( 'Sorry, you are not allowed to resume this plugin.' ) ); }
wp_redirect( self_admin_url( "plugins.php?resume=true&plugin_status=$status&paged=$page&s=$s" ) ); exit; case 'enable-auto-update': case 'disable-auto-update': case 'enable-auto-update-selected': case 'disable-auto-update-selected': if ( ! current_user_can( 'update_plugins' ) || ! wp_is_auto_update_enabled_for_type( 'plugin' ) ) { wp_die( __( 'Sorry, you are not allowed to manage plugins automatic updates.' ) ); }
if ( is_multisite() && ! is_network_admin() ) { wp_die( __( 'Please connect to your network admin to manage plugins automatic updates.' ) ); }
// Return early if all selected plugins already have auto-updates enabled or disabled. // Must use non-strict comparison, so that array order is not treated as significant. if ( $new_auto_updates == $auto_updates ) { // phpcs:ignore Universal.Operators.StrictComparisons.LooseEqual wp_redirect( $redirect ); exit; }
/** This filter is documented in wp-admin/includes/class-wp-plugins-list-table.php */ $all_items = apply_filters( 'all_plugins', get_plugins() );
// Remove plugins that don't exist or have been deleted since the option was last updated. $auto_updates = array_intersect( $auto_updates, array_keys( $all_items ) );
get_current_screen()->add_help_tab( array( 'id' => 'overview', 'title' => __( 'Overview' ), 'content' => '<p>' . __( 'Plugins extend and expand the functionality of WordPress. Once a plugin is installed, you may activate it or deactivate it here.' ) . '</p>' . '<p>' . __( 'The search for installed plugins will search for terms in their name, description, or author.' ) . ' <span id="live-search-desc" class="hide-if-no-js">' . __( 'The search results will be updated as you type.' ) . '</span></p>' . '<p>' . sprintf( /* translators: %s: WordPress Plugin Directory URL. */ __( 'If you would like to see more plugins to choose from, click on the “Add New Plugin” button and you will be able to browse or search for additional plugins from the <a href="%s">WordPress Plugin Directory</a>. Plugins in the WordPress Plugin Directory are designed and developed by third parties, and are compatible with the license WordPress uses. Oh, and they are free!' ), __( 'https://wordpress.org/plugins/' ) ) . '</p>', ) ); get_current_screen()->add_help_tab( array( 'id' => 'compatibility-problems', 'title' => __( 'Troubleshooting' ), 'content' => '<p>' . __( 'Most of the time, plugins play nicely with the core of WordPress and with other plugins. Sometimes, though, a plugin’s code will get in the way of another plugin, causing compatibility issues. If your site starts doing strange things, this may be the problem. Try deactivating all your plugins and re-activating them in various combinations until you isolate which one(s) caused the issue.' ) . '</p>' . '<p>' . sprintf( /* translators: %s: WP_PLUGIN_DIR constant value. */ __( 'If something goes wrong with a plugin and you cannot use WordPress, delete or rename that file in the %s directory and it will be automatically deactivated.' ), '<code>' . WP_PLUGIN_DIR . '</code>' ) . '</p>', ) );
$help_sidebar_autoupdates = '';
if ( current_user_can( 'update_plugins' ) && wp_is_auto_update_enabled_for_type( 'plugin' ) ) { get_current_screen()->add_help_tab( array( 'id' => 'plugins-themes-auto-updates', 'title' => __( 'Auto-updates' ), 'content' => '<p>' . __( 'Auto-updates can be enabled or disabled for each individual plugin. Plugins with auto-updates enabled will display the estimated date of the next auto-update. Auto-updates depends on the WP-Cron task scheduling system.' ) . '</p>' . '<p>' . __( 'Auto-updates are only available for plugins recognized by WordPress.org, or that include a compatible update system.' ) . '</p>' . '<p>' . __( 'Please note: Third-party themes and plugins, or custom code, may override WordPress scheduling.' ) . '</p>', ) );
if ( current_user_can( 'install_plugins' ) ) { get_current_screen()->add_help_tab( array( 'id' => 'plugins-dependencies', 'title' => __( 'Dependencies' ), 'content' => '<p>' . __( 'Plugin Dependencies aims to make the process of installing and activating add-ons (dependents) and the plugins they rely on (dependencies) consistent and easy.' ) . '</p>' . '<p>' . __( 'If a required plugin is deleted, a notice will be displayed on the Plugin administration screen informing the user that there is some missing dependencies to install and/or activate. Additionally, each plugin whose dependencies are not met will have an error notice on their plugin row.' ) . '</p>' . '<p>' . __( 'If a dependent plugin is missing some dependencies, its activation button will be disabled until the required dependencies are activated.' ) . '</p>', ) ); }
$invalid = validate_active_plugins(); if ( ! empty( $invalid ) ) { foreach ( $invalid as $plugin_file => $error ) { $deactivated_message = sprintf( /* translators: 1: Plugin file, 2: Error message. */ __( 'The plugin %1$s has been deactivated due to an error: %2$s' ), '<code>' . esc_html( $plugin_file ) . '</code>', esc_html( $error->get_error_message() ) ); wp_admin_notice( $deactivated_message, array( 'id' => 'message', 'additional_classes' => array( 'error' ), ) ); } }
// Used by wp_admin_notice() updated notices. $updated_notice_args = array( 'id' => 'message', 'additional_classes' => array( 'updated' ), 'dismissible' => true, ); if ( isset( $_GET['error'] ) ) {
if ( isset( $_GET['main'] ) ) { $errmsg = __( 'You cannot delete a plugin while it is active on the main site.' ); } elseif ( isset( $_GET['charsout'] ) ) { $errmsg = sprintf( /* translators: %d: Number of characters. */ _n( 'The plugin generated %d character of <strong>unexpected output</strong> during activation.', 'The plugin generated %d characters of <strong>unexpected output</strong> during activation.', $_GET['charsout'] ), $_GET['charsout'] ); $errmsg .= ' ' . __( 'If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.' ); } elseif ( 'resuming' === $_GET['error'] ) { $errmsg = __( 'Plugin could not be resumed because it triggered a <strong>fatal error</strong>.' ); } else { $errmsg = __( 'Plugin could not be activated because it triggered a <strong>fatal error</strong>.' ); }
<?php /** * Fires before the plugins list table is rendered. * * This hook also fires before the plugins list table is rendered in the Network Admin. * * Please note: The 'active' portion of the hook name does not refer to whether the current * view is for active plugins, but rather all plugins actively-installed. * * @since 3.0.0 * * @param array[] $plugins_all An array of arrays containing information on all installed plugins. */ do_action( 'pre_current_active_plugins', $plugins['all'] ); ?>