Commit Graph

  • 427d72c8a1 Comments: Check if a valid comment ID was passed when editing a comment. Sergey Biryukov 2020-09-08 13:39:41 +00:00
  • 92bf360a03 Build/Test Tools: Allow unit tests to run on PHP 8 in full. Sergey Biryukov 2020-09-07 19:21:26 +00:00
  • a85d190b00 Tests: Replace a few instances of assertNotEquals() with assertNotFalse(). Sergey Biryukov 2020-09-07 04:11:54 +00:00
  • 3a9e78c000 Tests: Remove the polyfill for assertNotFalse(). Sergey Biryukov 2020-09-07 03:26:24 +00:00
  • 5bad67bccf Tests: Add a polyfill for assertEqualsWithDelta() to WP_UnitTestCase and use it where appropriate. Sergey Biryukov 2020-09-07 03:12:17 +00:00
  • 84d524e189 REST API: Extract WP_REST_Controller::get_endpoint_args_for_item_schema() to a standalone function. Timothy Jacobs 2020-09-07 02:35:52 +00:00
  • 83f23c4c4f Tests: Add a test case for storing false in the cache. Sergey Biryukov 2020-09-06 04:23:46 +00:00
  • 944a6845a2 Tests: Correct assertion in Tests_Cache::test_add_get_null(). Sergey Biryukov 2020-09-06 03:35:59 +00:00
  • 6f07ff569b Tests: Correct assertion in Tests_Cache::test_miss(). Sergey Biryukov 2020-09-06 02:51:45 +00:00
  • d803f6bf82 REST API: Refactor WP_REST_Server::dispatch() to make internal logic reusable. Timothy Jacobs 2020-09-05 21:50:31 +00:00
  • 1c1a7b8365 Media: In wp_ajax_image_editor(), check if the error property exists before accessing it. Sergey Biryukov 2020-09-05 18:10:47 +00:00
  • 88ec90d6df REST API: Support a route-level validation callback. Timothy Jacobs 2020-09-05 18:07:46 +00:00
  • af437fcdc4 Tests: Replace a few more instances of assertEquals() with assertSame(). Sergey Biryukov 2020-09-05 16:47:50 +00:00
  • 677af117a9 Comments: Rename WP_Comments_List_Table::comment_status_dropdown() to ::comment_type_dropdown(). Sergey Biryukov 2020-09-05 00:31:03 +00:00
  • 267e754b83 Docs: Further correct placement for wp_editor_expand filter DocBlock. Sergey Biryukov 2020-09-04 21:46:11 +00:00
  • d34a21c950 Docs: Various docblock corrections and improvements. John Blackbourn 2020-09-04 20:39:47 +00:00
  • 3e111d9799 Tests: Replace a few more instances of assertEquals() with assertSame(). Sergey Biryukov 2020-09-04 07:36:33 +00:00
  • 8be943d06e Tests: Introduce assertSameSets() and assertSameSetsWithIndex(), and use them where appropriate. Sergey Biryukov 2020-09-04 07:01:00 +00:00
  • 5e2a75ef29 Administration: Give the $error variable in wp-admin/admin-header.php a more descriptive name. Sergey Biryukov 2020-09-03 01:41:47 +00:00
  • 164b22cf6a Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. Sergey Biryukov 2020-09-02 00:35:36 +00:00
  • ba7c6a2d5f General: Set svn:eol-style for phpunit/includes/normalize-xml.xsl. Sergey Biryukov 2020-09-01 16:48:06 +00:00
  • 46722379b2 General: Correct reversed svn:auto-props for .mo and .po files. Sergey Biryukov 2020-09-01 16:39:00 +00:00
  • 5f4a8f75b5 Docs: Synchronize the description of the $format parameter in various date/time functions for posts and comments. Sergey Biryukov 2020-09-01 00:41:19 +00:00
  • 699e44cc76 Tests: Move the tests for get_the_modified_time() to a more appropriate place. Sergey Biryukov 2020-08-31 22:41:02 +00:00
  • 23528d419a Script Loader: Add backward compatibility for JavaScript i18n globals and properties deprecated in WordPress 5.5. Sergey Biryukov 2020-08-31 20:28:41 +00:00
  • d33fa375f6 Date/Time: In get_the_date() and related functions, pass the original, unmodified $format value to the filters. Sergey Biryukov 2020-08-31 18:28:42 +00:00
  • 390f84b715 Themes: Normalize the installed theme path in Theme_Installer_Skin::do_overwrite() before comparing with the uploaded theme. Sergey Biryukov 2020-08-31 17:09:35 +00:00
  • 3309309f6b Date/Time: Make sure get_the_date() and related functions return correct time if the format was specified as false. Sergey Biryukov 2020-08-31 15:56:41 +00:00
  • 34dc1cc2c9 Tests: Bring some consistency to Date/Time tests: Sergey Biryukov 2020-08-31 15:33:45 +00:00
  • c2aaa14d57 Docs: Add a @since note to the display_post_states filter to clarify that it is now also applied in the Customizer context. Sergey Biryukov 2020-08-31 13:30:20 +00:00
  • 812f49ae05 Docs: Clarify the usage of null for auto_update_{$type} filter. Sergey Biryukov 2020-08-31 13:18:39 +00:00
  • d841231933 Tests: Reset the $wp_sitemap global after each test, so that sitemaps are re-initialized when the next test runs. Sergey Biryukov 2020-08-31 03:57:50 +00:00
  • 73375c4b32 Tests: Move the tests for selected() and checked() to a more appropriate place. Sergey Biryukov 2020-08-30 01:34:38 +00:00
  • 5ec12d64d6 Administration: Correct the padding for "Warning: these pages should not be the same" messages on Reading Settings screen. Sergey Biryukov 2020-08-29 00:41:00 +00:00
  • 0013f5979c Media: Make the is_gd_image() function available on front end. Sergey Biryukov 2020-08-28 16:43:31 +00:00
  • 673fcd7927 Comments: Check if reply heading text node exists before accessing its property in comment-reply.js. Sergey Biryukov 2020-08-28 13:10:29 +00:00
  • 2afabce1c1 Docs: Correct formatting of the auto_theme_update_send_email filter DocBlock. Sergey Biryukov 2020-08-28 02:36:39 +00:00
  • bb40a2698a Upgrade/Install: Only display the auto-update links on the Network Admin > Themes screen for themes that support the feature. Sergey Biryukov 2020-08-27 22:22:23 +00:00
  • a0b40ebd6a Script Loader: Disable concatenation for scripts with translations to ensure they are printed in the right order. Sergey Biryukov 2020-08-27 21:57:01 +00:00
  • 6c395a5f3e Bootstrap/Load: Check if the __() function is available in wp_get_environment_type(). Sergey Biryukov 2020-08-27 21:37:33 +00:00
  • a0864835a5 Bootstrap/Load: Remove the ability to alter the list of environment types in wp_get_environment_type(). Sergey Biryukov 2020-08-27 21:30:33 +00:00
  • 0d26989e15 Tests: Update wp_add_inline_script() unit tests to account for the jquery handle being an alias for jquery-core again. Sergey Biryukov 2020-08-27 20:52:36 +00:00
  • 6a6241ac6a Script Loader: Change the jquery handle back to an alias for jquery-core. Sergey Biryukov 2020-08-27 20:31:23 +00:00
  • c14417c5c9 Upgrade/Install: Pass details about the specific plugin and theme updates attempted to filters. Jonathan Desrosiers 2020-08-27 19:25:38 +00:00
  • f3c37d87d2 Build/Test Tools: Update the package lock file. Jonathan Desrosiers 2020-08-27 18:56:46 +00:00
  • fb04a13f46 Editor: update packages. Jorge Costa 2020-08-27 16:34:37 +00:00
  • 6c76a13139 REST API: Fix multi-type schemas with integer fields. Timothy Jacobs 2020-08-27 02:55:39 +00:00
  • c8b5610b91 Taxonomy: Make sure wp_terms_checklist() and Walker_Category_Checklist::start_el() properly handle an array of strings as selected_cats or popular_cats values. Sergey Biryukov 2020-08-27 02:46:22 +00:00
  • 3f7add7d99 Tests: Update one more test to account for lazy-loading being disabled for custom logos by default. Sergey Biryukov 2020-08-27 02:01:51 +00:00
  • 3066546426 Comments: Correct the check for reply element existence in comment-reply.js. Sergey Biryukov 2020-08-27 01:56:39 +00:00
  • c77798da22 Tests: Update unit tests to account for lazy-loading being disabled for custom logos by default. Sergey Biryukov 2020-08-27 01:53:48 +00:00
  • bae635f1a0 Sitemaps: Prevent incorrect redirection of paged sitemap requests. Peter Wilson 2020-08-27 01:28:24 +00:00
  • 066882a4a8 Media: Disable lazy-loading for custom logos by default. Jonathan Desrosiers 2020-08-27 01:06:01 +00:00
  • c7f5af72dc Upgrade/Install: Make the check for empty home option in __get_option() more resilient. Sergey Biryukov 2020-08-26 16:55:36 +00:00
  • 2a9c68872e Quick/Bulk Edit: Revert [48134] to address the bottom "Bulk actions" dropdown not functioning properly on Posts and Users list tables. Sergey Biryukov 2020-08-26 14:16:12 +00:00
  • efc5c63254 Editor: Remove some hardcoded text color values from patterns that have body text with no specific background color. Sergey Biryukov 2020-08-26 13:32:05 +00:00
  • cae856c8eb Administration: Remove non-color related styling from Modern color scheme. Sergey Biryukov 2020-08-26 13:17:36 +00:00
  • ad9f02ed80 Twenty Twenty: Add context to adjectives and homonyms. Sergey Biryukov 2020-08-26 01:33:45 +00:00
  • 04d555e91d Editor: Make some hardcoded strings in block patterns translatable. Sergey Biryukov 2020-08-25 12:38:21 +00:00
  • c20372e0aa Tests: Clean up some existing @covers tags. Sergey Biryukov 2020-08-25 00:57:17 +00:00
  • 25c9718a1e Bootstrap/Load: Add local environment type to wp_get_environment_type(). Sergey Biryukov 2020-08-24 22:30:36 +00:00
  • 8e7e3c5b72 Docs: Improve documentation for wp_lazy_loading_enabled() per the documentation standards. Sergey Biryukov 2020-08-24 22:14:17 +00:00
  • 4869de2a1c Docs: Add a @since note about the $srcset and $sizes attributes added to wp_get_attachment_image(). Sergey Biryukov 2020-08-24 22:10:25 +00:00
  • 62260b9fbf Docs: Add documentation and a @since note about the loading attribute added to wp_get_attachment_image(). Sergey Biryukov 2020-08-24 22:02:44 +00:00
  • ce10049fcc Administration: Don't print the .php-error class in the admin header for PHP notices in wp-config.php. Sergey Biryukov 2020-08-24 10:46:30 +00:00
  • a6bb0120ac Tests: Correct a number of malformed @covers tags. Sergey Biryukov 2020-08-23 17:23:52 +00:00
  • e353e266a0 Build/Test Tools: Update code coverage setup in the phpunit.xml.dist file to point to the build directory. Sergey Biryukov 2020-08-23 17:22:28 +00:00
  • 631f440506 Tests: Update wp-api-generated.js to reflect the new "Reusable Blocks" post type label. Sergey Biryukov 2020-08-23 14:38:40 +00:00
  • cc7fa67925 General: Ensure svn:eol-style is consistently set for all recently added files. Sergey Biryukov 2020-08-23 14:34:06 +00:00
  • c90037ca47 Tests: Clear any previous term IDs from the metadata lazyloader queue in term meta lazy-loading test. Sergey Biryukov 2020-08-23 03:46:41 +00:00
  • 380145e073 Docs: Update the description for the $legacy parameter of wp_count_terms() for consistency with get_terms(). Sergey Biryukov 2020-08-23 00:06:04 +00:00
  • 153d07b93a REST API: In WP_REST_Block_Directory_Controller::get_items(), make sure the blocks data for a plugin is not empty before proceeding. Sergey Biryukov 2020-08-22 01:52:42 +00:00
  • 2e2ef9e538 Editor: Use wp_add_inline_script() instead of wp_localize_script() to pass the _wpMetaBoxUrl value to the wp-editor script. Sergey Biryukov 2020-08-22 00:03:01 +00:00
  • 0228dd6a5d Taxonomy: Allow for wp_count_terms( $args ) signature, making passing a taxonomy optional. Felix Arntz 2020-08-21 22:30:06 +00:00
  • 3b1d1bfa7a Code Modernization: Fix PHP 8 "ArgumentCountError: array_merge() does not accept unknown named parameters" fatal error in retrieve_widgets(). Sergey Biryukov 2020-08-21 21:49:02 +00:00
  • 29bfc56ca2 Code Modernization: Fix PHP 8 "argument must be passed by reference, value given" error in WP_Comment_Query::get_comments(). Sergey Biryukov 2020-08-21 21:32:49 +00:00
  • 387bbeb286 Twenty Nineteen: Remove trailing commas after selectors in style-editor.scss. Sergey Biryukov 2020-08-21 15:40:56 +00:00
  • 493a88c666 Privacy: Avoid a PHP 7.4 notice in WP_Privacy_Policy_Content::text_change_check(). Sergey Biryukov 2020-08-21 01:11:19 +00:00
  • e87d86b2ae Docs: Correct references to WP_Filesystem_Base methods in various DocBlocks. Sergey Biryukov 2020-08-21 00:41:43 +00:00
  • 5ad8969179 Customize: Add / character to <img> tag in WP_Customize_Manager and WP_Customize_Header_Image_Control JS templates. Sergey Biryukov 2020-08-20 13:11:36 +00:00
  • 1b78e495b2 Docs: Update documentation for get_custom_logo() and the_custom_logo() to mention the unlink-homepage-logo theme feature. Sergey Biryukov 2020-08-20 10:39:12 +00:00
  • ca5c4cebef Coding Standards: Fix WPCS issue in [48830]. Sergey Biryukov 2020-08-19 16:33:02 +00:00
  • 62562f8428 Tests: Update unit tests to account for comment_agent and comment_author_IP values being passed to the preprocess_comment filter. Sergey Biryukov 2020-08-19 16:06:27 +00:00
  • de70dabf63 Editor: Update the post type labels for the reusable blocks post type. Jonathan Desrosiers 2020-08-19 13:38:56 +00:00
  • ab12557628 Docs: Add a @since note to register_rest_route() about the _doing_it_wrong() notice when the required permission_callback argument is not set. Sergey Biryukov 2020-08-19 12:29:34 +00:00
  • de73a6a8e9 Docs: Improve description for WP_Admin_Bar::add_group(). Sergey Biryukov 2020-08-19 02:44:38 +00:00
  • c101a86baf Bundled Themes: Correct punctuation in "Your comment is awaiting moderation" string. Sergey Biryukov 2020-08-19 02:25:46 +00:00
  • 27a2494ebe Comments: Correct punctuation in "Your comment is awaiting moderation" string in Walker_Comment. Sergey Biryukov 2020-08-19 02:25:13 +00:00
  • 2b3bf40907 Comments: Revert unintended changes from [48822]. Sergey Biryukov 2020-08-19 01:57:29 +00:00
  • 5f861293e6 Comments: Make sure the comment data passed to the preprocess_comment filter includes the comment_agent and comment_author_IP values. Sergey Biryukov 2020-08-19 01:55:12 +00:00
  • c65973e0f5 Plugins: Avoid a PHP notice if the update-supported key in plugin data is not set. Sergey Biryukov 2020-08-18 20:36:42 +00:00
  • 5cec68d0c9 Build/Test Tools: Update several NPM dependencies. Jonathan Desrosiers 2020-08-18 15:16:57 +00:00
  • 76c599ced2 Formatting: Make the check for empty text in wp_trim_excerpt() more resilient. Sergey Biryukov 2020-08-18 15:08:19 +00:00
  • 1911eae4a1 Docs: Correct alignment for some DocBlocks in WP_Query::get_posts(). Sergey Biryukov 2020-08-18 12:37:39 +00:00
  • 89ea6ce552 Docs: Add a @since note to get_the_archive_title() about the title part being wrapped in a <span> element. Sergey Biryukov 2020-08-18 12:03:24 +00:00
  • 7d0dc26c96 Accessibility: Toolbar: Don't output the "Skip to toolbar" link in modern themes that support the wp_body_open action. Sergey Biryukov 2020-08-17 14:24:30 +00:00
  • 09a3a6e7bd Help/About: Fix typo and remove trailing spaces from some strings. Sergey Biryukov 2020-08-17 02:10:55 +00:00
  • e6c2f66ab2 Site Health: Ensure that the tests returned by WP_Site_Health::get_tests() always have the required array keys: direct and async. Sergey Biryukov 2020-08-17 02:01:04 +00:00
  • 271ab2010a Site Health: Add site environment type to the debug information. Sergey Biryukov 2020-08-16 18:25:50 +00:00
  • e499354eee Site Health: Rename the $upload_max_size variable to $upload_max_filesize, for consistency with the PHP setting name. Sergey Biryukov 2020-08-16 17:52:25 +00:00