/home/altere25/berryglowbeauty.com/wp-admin/includes
NameSizeModeActions
admin-filters.php65380644editdlrm
admin.php36500644editdlrm
ajax-actions.php1409990644editdlrm
bookmark.php95110644editdlrm
class-automatic-upgrader-skin.php31610644editdlrm
class-bulk-plugin-upgrader-skin.php20730644editdlrm
class-bulk-theme-upgrader-skin.php21070644editdlrm
class-bulk-upgrader-skin.php53090644editdlrm
class-core-upgrader.php144580644editdlrm
class-custom-background.php207820644editdlrm
class-custom-image-header.php478880644editdlrm
class-file-upload-upgrader.php41760644editdlrm
class-ftp-pure.php54000644editdlrm
class-ftp-sockets.php84490644editdlrm
class-ftp.php271270644editdlrm
class-language-pack-upgrader-skin.php23840644editdlrm
class-language-pack-upgrader.php147390644editdlrm
class-pclzip.php1960370644editdlrm
class-plugin-installer-skin.php46200644editdlrm
class-plugin-upgrader-skin.php27310644editdlrm
class-plugin-upgrader.php151850644editdlrm
class-theme-installer-skin.php43850644editdlrm
class-theme-upgrader-skin.php37020644editdlrm
class-theme-upgrader.php203170644editdlrm
class-walker-category-checklist.php42570644editdlrm
class-walker-nav-menu-checklist.php51830644editdlrm
class-walker-nav-menu-edit.php118390644editdlrm
class-wp-ajax-upgrader-skin.php32580644editdlrm
class-wp-automatic-updater.php361660644editdlrm
class-wp-comments-list-table.php284620644editdlrm
class-wp-community-events.php159480644editdlrm
class-wp-debug-data.php478720644editdlrm
class-wp-filesystem-base.php231040644editdlrm
class-wp-filesystem-direct.php164380644editdlrm
class-wp-filesystem-ftpext.php199640644editdlrm
class-wp-filesystem-ftpsockets.php167530644editdlrm
class-wp-filesystem-ssh2.php220740644editdlrm
class-wp-importer.php75320644editdlrm
class-wp-internal-pointers.php45340644editdlrm
class-wp-links-list-table.php78280644editdlrm
class-wp-list-table-compat.php10710644editdlrm
class-wp-list-table.php389310644editdlrm
class-wp-media-list-table.php228630644editdlrm
class-wp-ms-sites-list-table.php202450644editdlrm
class-wp-ms-themes-list-table.php210610644editdlrm
class-wp-ms-users-list-table.php139610644editdlrm
class-wp-plugin-install-list-table.php231760644editdlrm
class-wp-plugins-list-table.php359850644editdlrm
class-wp-post-comments-list-table.php14720644editdlrm
class-wp-posts-list-table.php571000644editdlrm
class-wp-privacy-data-export-requests-list-table.php45620644editdlrm
class-wp-privacy-data-removal-requests-list-table.php47280644editdlrm
class-wp-privacy-policy-content.php331410644editdlrm
class-wp-privacy-requests-table.php112870644editdlrm
class-wp-screen.php357610644editdlrm
class-wp-site-health-auto-updates.php135180644editdlrm
class-wp-site-health.php681340644editdlrm
class-wp-site-icon.php61320644editdlrm
class-wp-terms-list-table.php186790644editdlrm
class-wp-theme-install-list-table.php153750644editdlrm
class-wp-themes-list-table.php101660644editdlrm
class-wp-upgrader-skin.php51640644editdlrm
class-wp-upgrader-skins.php14770644editdlrm
class-wp-upgrader.php356700644editdlrm
class-wp-users-list-table.php177510644editdlrm
comment.php60710644editdlrm
continents-cities.php207500644editdlrm
credits.php55510644editdlrm
dashboard.php612500644editdlrm
deprecated.php405950644editdlrm
edit-tag-messages.php14370644editdlrm
export.php236090644editdlrm
file.php798210644editdlrm
image-edit.php351720644editdlrm
image.php341470644editdlrm
import.php66970644editdlrm
list-table.php31870644editdlrm
media.php1131860644editdlrm
menu.php91410644editdlrm
meta-boxes.php625560644editdlrm
misc.php430220644editdlrm
ms-admin-filters.php13700644editdlrm
ms-deprecated.php30310644editdlrm
ms.php336920644editdlrm
nav-menu.php460940644editdlrm
network.php244140644editdlrm
noop.php10860644editdlrm
options.php41080644editdlrm
plugin-install.php344500644editdlrm
plugin.php831710644editdlrm
post.php748070644editdlrm
privacy-tools.php277820644editdlrm
revision.php159700644editdlrm
schema.php417640644editdlrm
screen.php62470644editdlrm
taxonomy.php79530644editdlrm
template.php905060644editdlrm
theme-install.php65680644editdlrm
theme.php342420644editdlrm
translation-install.php86890644editdlrm
update-core.php591330644editdlrm
update.php285600644editdlrm
upgrade.php1042440644editdlrm
user.php184360644editdlrm
widgets.php107900644editdlrm
Edit: /home/altere25/berryglowbeauty.com/wp-admin/includes/class-wp-site-health-auto-updates.php (13518B)
test_constants( 'WP_AUTO_UPDATE_CORE', true ), $this->test_wp_version_check_attached(), $this->test_filters_automatic_updater_disabled(), $this->test_wp_automatic_updates_disabled(), $this->test_if_failed_update(), $this->test_vcs_abspath(), $this->test_check_wp_filesystem_method(), $this->test_all_files_writable(), $this->test_accepts_dev_updates(), $this->test_accepts_minor_updates(), ); $tests = array_filter( $tests ); $tests = array_map( function( $test ) { $test = (object) $test; if ( empty( $test->severity ) ) { $test->severity = 'warning'; } return $test; }, $tests ); return $tests; } /** * Test if auto-updates related constants are set correctly. * * @since 5.2.0 * * @param string $constant The name of the constant to check. * @param bool $value The value that the constant should be, if set. * @return array The test results. */ public function test_constants( $constant, $value ) { if ( defined( $constant ) && constant( $constant ) != $value ) { return array( 'description' => sprintf( /* translators: %s: Name of the constant used. */ __( 'The %s constant is defined and enabled.' ), "$constant" ), 'severity' => 'fail', ); } } /** * Check if updates are intercepted by a filter. * * @since 5.2.0 * * @return array The test results. */ public function test_wp_version_check_attached() { if ( ! is_main_site() ) { return; } $cookies = wp_unslash( $_COOKIE ); $timeout = 10; $headers = array( 'Cache-Control' => 'no-cache', ); /** This filter is documented in wp-includes/class-wp-http-streams.php */ $sslverify = apply_filters( 'https_local_ssl_verify', false ); // Include Basic auth in loopback requests. if ( isset( $_SERVER['PHP_AUTH_USER'] ) && isset( $_SERVER['PHP_AUTH_PW'] ) ) { $headers['Authorization'] = 'Basic ' . base64_encode( wp_unslash( $_SERVER['PHP_AUTH_USER'] ) . ':' . wp_unslash( $_SERVER['PHP_AUTH_PW'] ) ); } $url = add_query_arg( array( 'health-check-test-wp_version_check' => true, ), admin_url( 'site-health.php' ) ); $test = wp_remote_get( $url, compact( 'cookies', 'headers', 'timeout', 'sslverify' ) ); if ( is_wp_error( $test ) ) { return array( 'description' => sprintf( /* translators: %s: Name of the filter used. */ __( 'Could not confirm that the %s filter is available.' ), 'wp_version_check()' ), 'severity' => 'warning', ); } $response = wp_remote_retrieve_body( $test ); if ( 'yes' !== $response ) { return array( 'description' => sprintf( /* translators: %s: Name of the filter used. */ __( 'A plugin has prevented updates by disabling %s.' ), 'wp_version_check()' ), 'severity' => 'fail', ); } } /** * Check if automatic updates are disabled by a filter. * * @since 5.2.0 * * @return array The test results. */ public function test_filters_automatic_updater_disabled() { /** This filter is documented in wp-admin/includes/class-wp-automatic-updater.php */ if ( apply_filters( 'automatic_updater_disabled', false ) ) { return array( 'description' => sprintf( /* translators: %s: Name of the filter used. */ __( 'The %s filter is enabled.' ), 'automatic_updater_disabled' ), 'severity' => 'fail', ); } } /** * Check if automatic updates are disabled. * * @since 5.3.0 * * @return array|bool The test results. False if auto updates are enabled. */ public function test_wp_automatic_updates_disabled() { if ( ! class_exists( 'WP_Automatic_Updater' ) ) { require_once( ABSPATH . 'wp-admin/includes/class-wp-automatic-updates.php' ); } $auto_updates = new WP_Automatic_Updater(); if ( ! $auto_updates->is_disabled() ) { return false; } return array( 'description' => __( 'All automatic updates are disabled.' ), 'severity' => 'fail', ); } /** * Check if automatic updates have tried to run, but failed, previously. * * @since 5.2.0 * * @return array|bool The test results. False if the auto updates failed. */ function test_if_failed_update() { $failed = get_site_option( 'auto_core_update_failed' ); if ( ! $failed ) { return false; } if ( ! empty( $failed['critical'] ) ) { $description = __( 'A previous automatic background update ended with a critical failure, so updates are now disabled.' ); $description .= ' ' . __( 'You would have received an email because of this.' ); $description .= ' ' . __( "When you've been able to update using the \"Update Now\" button on Dashboard > Updates, we'll clear this error for future update attempts." ); $description .= ' ' . sprintf( /* translators: %s: Code of error shown. */ __( 'The error code was %s.' ), '' . $failed['error_code'] . '' ); return array( 'description' => $description, 'severity' => 'warning', ); } $description = __( 'A previous automatic background update could not occur.' ); if ( empty( $failed['retry'] ) ) { $description .= ' ' . __( 'You would have received an email because of this.' ); } $description .= ' ' . __( "We'll try again with the next release." ); $description .= ' ' . sprintf( /* translators: %s: Code of error shown. */ __( 'The error code was %s.' ), '' . $failed['error_code'] . '' ); return array( 'description' => $description, 'severity' => 'warning', ); } /** * Check if WordPress is controlled by a VCS (Git, Subversion etc). * * @since 5.2.0 * * @return array The test results. */ public function test_vcs_abspath() { $context_dirs = array( ABSPATH ); $vcs_dirs = array( '.svn', '.git', '.hg', '.bzr' ); $check_dirs = array(); foreach ( $context_dirs as $context_dir ) { // Walk up from $context_dir to the root. do { $check_dirs[] = $context_dir; // Once we've hit '/' or 'C:\', we need to stop. dirname will keep returning the input here. if ( dirname( $context_dir ) == $context_dir ) { break; } // Continue one level at a time. } while ( $context_dir = dirname( $context_dir ) ); } $check_dirs = array_unique( $check_dirs ); // Search all directories we've found for evidence of version control. foreach ( $vcs_dirs as $vcs_dir ) { foreach ( $check_dirs as $check_dir ) { // phpcs:ignore if ( $checkout = @is_dir( rtrim( $check_dir, '\\/' ) . "/$vcs_dir" ) ) { break 2; } } } /** This filter is documented in wp-admin/includes/class-wp-automatic-updater.php */ if ( $checkout && ! apply_filters( 'automatic_updates_is_vcs_checkout', true, ABSPATH ) ) { return array( 'description' => sprintf( /* translators: 1: Folder name. 2: Version control directory. 3: Filter name. */ __( 'The folder %1$s was detected as being under version control (%2$s), but the %3$s filter is allowing updates.' ), '' . $check_dir . '', "$vcs_dir", 'automatic_updates_is_vcs_checkout' ), 'severity' => 'info', ); } if ( $checkout ) { return array( 'description' => sprintf( /* translators: 1: Folder name. 2: Version control directory. */ __( 'The folder %1$s was detected as being under version control (%2$s).' ), '' . $check_dir . '', "$vcs_dir" ), 'severity' => 'warning', ); } return array( 'description' => __( 'No version control systems were detected.' ), 'severity' => 'pass', ); } /** * Check if we can access files without providing credentials. * * @since 5.2.0 * * @return array The test results. */ function test_check_wp_filesystem_method() { $skin = new Automatic_Upgrader_Skin; $success = $skin->request_filesystem_credentials( false, ABSPATH ); if ( ! $success ) { $description = __( 'Your installation of WordPress prompts for FTP credentials to perform updates.' ); $description .= ' ' . __( '(Your site is performing updates over FTP due to file ownership. Talk to your hosting company.)' ); return array( 'description' => $description, 'severity' => 'fail', ); } return array( 'description' => __( "Your installation of WordPress doesn't require FTP credentials to perform updates." ), 'severity' => 'pass', ); } /** * Check if core files are writable by the web user/group. * * @since 5.2.0 * * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. * * @return array|bool The test results. False if they're not writeable. */ function test_all_files_writable() { global $wp_filesystem; include ABSPATH . WPINC . '/version.php'; // $wp_version; // x.y.z $skin = new Automatic_Upgrader_Skin; $success = $skin->request_filesystem_credentials( false, ABSPATH ); if ( ! $success ) { return false; } WP_Filesystem(); if ( 'direct' != $wp_filesystem->method ) { return false; } $checksums = get_core_checksums( $wp_version, 'en_US' ); $dev = ( false !== strpos( $wp_version, '-' ) ); // Get the last stable version's files and test against that if ( ! $checksums && $dev ) { $checksums = get_core_checksums( (float) $wp_version - 0.1, 'en_US' ); } // There aren't always checksums for development releases, so just skip the test if we still can't find any if ( ! $checksums && $dev ) { return false; } if ( ! $checksums ) { $description = sprintf( /* translators: %s: WordPress version. */ __( "Couldn't retrieve a list of the checksums for WordPress %s." ), $wp_version ); $description .= ' ' . __( 'This could mean that connections are failing to WordPress.org.' ); return array( 'description' => $description, 'severity' => 'warning', ); } $unwritable_files = array(); foreach ( array_keys( $checksums ) as $file ) { if ( 'wp-content' == substr( $file, 0, 10 ) ) { continue; } if ( ! file_exists( ABSPATH . $file ) ) { continue; } if ( ! is_writable( ABSPATH . $file ) ) { $unwritable_files[] = $file; } } if ( $unwritable_files ) { if ( count( $unwritable_files ) > 20 ) { $unwritable_files = array_slice( $unwritable_files, 0, 20 ); $unwritable_files[] = '...'; } return array( 'description' => __( 'Some files are not writable by WordPress:' ) . ' ', 'severity' => 'fail', ); } else { return array( 'description' => __( 'All of your WordPress files are writable.' ), 'severity' => 'pass', ); } } /** * Check if the install is using a development branch and can use nightly packages. * * @since 5.2.0 * * @return array|bool The test results. False if it isn't a development version. */ function test_accepts_dev_updates() { include ABSPATH . WPINC . '/version.php'; // $wp_version; // x.y.z // Only for dev versions if ( false === strpos( $wp_version, '-' ) ) { return false; } if ( defined( 'WP_AUTO_UPDATE_CORE' ) && ( 'minor' === WP_AUTO_UPDATE_CORE || false === WP_AUTO_UPDATE_CORE ) ) { return array( 'description' => sprintf( /* translators: %s: Name of the constant used. */ __( 'WordPress development updates are blocked by the %s constant.' ), 'WP_AUTO_UPDATE_CORE' ), 'severity' => 'fail', ); } /** This filter is documented in wp-admin/includes/class-core-upgrader.php */ if ( ! apply_filters( 'allow_dev_auto_core_updates', $wp_version ) ) { return array( 'description' => sprintf( /* translators: %s: Name of the filter used. */ __( 'WordPress development updates are blocked by the %s filter.' ), 'allow_dev_auto_core_updates' ), 'severity' => 'fail', ); } } /** * Check if the site supports automatic minor updates. * * @since 5.2.0 * * @return array The test results. */ function test_accepts_minor_updates() { if ( defined( 'WP_AUTO_UPDATE_CORE' ) && false === WP_AUTO_UPDATE_CORE ) { return array( 'description' => sprintf( /* translators: %s: Name of the constant used. */ __( 'WordPress security and maintenance releases are blocked by %s.' ), "define( 'WP_AUTO_UPDATE_CORE', false );" ), 'severity' => 'fail', ); } /** This filter is documented in wp-admin/includes/class-core-upgrader.php */ if ( ! apply_filters( 'allow_minor_auto_core_updates', true ) ) { return array( 'description' => sprintf( /* translators: %s: Name of the filter used. */ __( 'WordPress security and maintenance releases are blocked by the %s filter.' ), 'allow_minor_auto_core_updates' ), 'severity' => 'fail', ); } } }