Changeset 50916
- Timestamp:
- 05/15/2021 05:36:49 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/authorize-application.php
r50006 r50916 13 13 $new_password = ''; 14 14 15 // This is the no-js fallback script. Generally this will all be handled by `auth-app.js`15 // This is the no-js fallback script. Generally this will all be handled by `auth-app.js`. 16 16 if ( isset( $_POST['action'] ) && 'authorize_application_password' === $_POST['action'] ) { 17 17 check_admin_referer( 'authorize_application_password' ); -
trunk/src/wp-admin/includes/class-wp-site-health.php
r50764 r50916 1514 1514 */ 1515 1515 public function get_test_https_status() { 1516 // Enforce fresh HTTPS detection results. This is normally invoked by using cron, but for Site Health it should1517 // always rely on the latest results.1516 // Enforce fresh HTTPS detection results. This is normally invoked by using cron, 1517 // but for Site Health it should always rely on the latest results. 1518 1518 wp_update_https_detection_errors(); 1519 1519 … … 1542 1542 1543 1543 if ( ! wp_is_using_https() ) { 1544 // If the website is not using HTTPS, provide more information about whether it is supported and how it can1545 // be enabled.1544 // If the website is not using HTTPS, provide more information 1545 // about whether it is supported and how it can be enabled. 1546 1546 $result['status'] = 'recommended'; 1547 1547 $result['label'] = __( 'Your website does not use HTTPS' ); -
trunk/src/wp-admin/setup-config.php
r50779 r50916 454 454 if ( ! empty( $wp_config_perms ) && ! is_writable( $path_to_wp_config ) ) { 455 455 $error_message = sprintf( 456 /* translators: 1 wp-config.php, 2: Documentation URL. */456 /* translators: 1: wp-config.php, 2: Documentation URL. */ 457 457 __( 'You need to make the file %1$s writable before you can save your changes. See <a href="%2$s">Changing File Permissions</a> for more information.' ), 458 458 '<code>wp-config.php</code>', -
trunk/src/wp-includes/class-wp-simplepie-file.php
r49805 r50916 25 25 * @since 2.8.0 26 26 * @since 3.2.0 Updated to use a PHP5 constructor. 27 * @since 5.6.1 Multiple headers are concatenated into a comma-separated string, rather than remaining28 * an array.27 * @since 5.6.1 Multiple headers are concatenated into a comma-separated string, 28 * rather than remaining an array. 29 29 * 30 30 * @param string $url Remote file URL. … … 71 71 72 72 /* 73 * SimplePie expects multiple headers to be stored as a comma-separated string, but74 * `wp_remote_retrieve_headers()` returns them as an array, so they need to be75 * converted.73 * SimplePie expects multiple headers to be stored as a comma-separated string, 74 * but `wp_remote_retrieve_headers()` returns them as an array, so they need 75 * to be converted. 76 76 * 77 * The only exception to that is the `content-type` header, which should ignore any78 * previous values and only use the last one.77 * The only exception to that is the `content-type` header, which should ignore 78 * any previous values and only use the last one. 79 79 * 80 80 * @see SimplePie_HTTP_Parser::new_line(). -
trunk/src/wp-includes/feed.php
r49565 r50916 797 797 798 798 $feed->set_sanitize_class( 'WP_SimplePie_Sanitize_KSES' ); 799 // We must manually overwrite $feed->sanitize because SimplePie's 800 // constructorsets it before we have a chance to set the sanitization class.799 // We must manually overwrite $feed->sanitize because SimplePie's constructor 800 // sets it before we have a chance to set the sanitization class. 801 801 $feed->sanitize = new WP_SimplePie_Sanitize_KSES(); 802 802 -
trunk/src/wp-includes/https-detection.php
r50471 r50916 41 41 * Checks whether the current site's URL where WordPress is stored is using HTTPS. 42 42 * 43 * This checks the URL where WordPress application files (e.g. wp-blog-header.php or the wp-admin/ folder) are44 * a ccessible.43 * This checks the URL where WordPress application files (e.g. wp-blog-header.php or the wp-admin/ folder) 44 * are accessible. 45 45 * 46 46 * @since 5.7.0 -
trunk/src/wp-includes/sitemaps.php
r48872 r50916 52 52 function wp_get_sitemap_providers() { 53 53 $sitemaps = wp_sitemaps_get_server(); 54 54 55 return $sitemaps->registry->get_providers(); 55 56 } … … 66 67 function wp_register_sitemap_provider( $name, WP_Sitemaps_Provider $provider ) { 67 68 $sitemaps = wp_sitemaps_get_server(); 69 68 70 return $sitemaps->registry->add_provider( $name, $provider ); 69 71 } … … 95 97 * 96 98 * @param string $name The sitemap name. 97 * @param string $subtype_name The sitemap subtype name. 98 * @param int $page The page of the sitemap. 99 * @param string $subtype_name The sitemap subtype name. Default empty string. 100 * @param int $page The page of the sitemap. Default 1. 99 101 * @return string|false The sitemap URL or false if the sitemap doesn't exist. 100 102 */ 101 103 function get_sitemap_url( $name, $subtype_name = '', $page = 1 ) { 102 104 $sitemaps = wp_sitemaps_get_server(); 105 103 106 if ( ! $sitemaps ) { 104 107 return false; … … 122 125 $page = 1; 123 126 } 127 124 128 return $provider->get_sitemap_url( $subtype_name, $page ); 125 129 } -
trunk/src/wp-includes/user.php
r50790 r50916 748 748 * @see WP_User_Query 749 749 * 750 * @param array $args Optional. Arguments to retrieve users. See WP_User_Query::prepare_query() .750 * @param array $args Optional. Arguments to retrieve users. See WP_User_Query::prepare_query() 751 751 * for more information on accepted arguments. 752 752 * @return array List of users. -
trunk/src/wp-load.php
r50914 r50916 26 26 * it's best to add a dummy function to the wp-config.php file, but as this call to the function 27 27 * is run prior to wp-config.php loading, it is wrapped in a function_exists() check. 28 *29 * Initialize error reporting to a known set of levels.30 *31 * This will be adapted in wp_debug_mode located in wp-includes/load.php based on WP_DEBUG.32 * @see http://php.net/manual/en/errorfunc.constants.php List of known error levels.33 28 */ 34 29 if ( function_exists( 'error_reporting' ) ) { 30 /* 31 * Initialize error reporting to a known set of levels. 32 * 33 * This will be adapted in wp_debug_mode() located in wp-includes/load.php based on WP_DEBUG. 34 * @see http://php.net/manual/en/errorfunc.constants.php List of known error levels. 35 */ 35 36 error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR ); 36 37 } -
trunk/tests/phpunit/tests/general/template.php
r50339 r50916 569 569 /** 570 570 * @ticket 9862 571 * @ticket 51166 571 572 * @dataProvider data_selected_and_checked_with_equal_values 572 573 * … … 596 597 /** 597 598 * @ticket 9862 599 * @ticket 51166 598 600 * @dataProvider data_selected_and_checked_with_non_equal_values 599 601 * -
trunk/tests/phpunit/tests/pluggable.php
r50790 r50916 329 329 */ 330 330 public function test_get_user_by_should_return_same_instance_as_wp_get_current_user() { 331 // Create a test user 331 // Create a test user. 332 332 $new_user = self::factory()->user->create( array( 'role' => 'subscriber' ) ); 333 333 334 // Set the test user as the current user 334 // Set the test user as the current user. 335 335 $current_user = wp_set_current_user( $new_user ); 336 336 337 // Get the test user using get_user_by() 337 // Get the test user using get_user_by(). 338 338 $from_get_user_by = get_user_by( 'id', $new_user ); 339 339
Note: See TracChangeset
for help on using the changeset viewer.