Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
336 commits
Select commit Hold shift + click to select a range
d32aa67
Docs: Update syntax for multi-line comment in `wp_generate_attachment…
SergeyBiryukov Jun 15, 2021
5ffd5d6
Editor: Check if `supports` metadata key is defined before migrating …
SergeyBiryukov Jun 15, 2021
b27fbee
Docs: Update syntax for some multi-line comments per the documentatio…
SergeyBiryukov Jun 16, 2021
07737d2
External Libraries: Upgrade PHPMailer to version 6.5.0.
SergeyBiryukov Jun 16, 2021
f6bff05
Tests: Make some optional parameters required in unit tests for previ…
SergeyBiryukov Jun 16, 2021
fcd47d2
Build/Test Tools: Ignore sourceMaps for non WordPress Core files.
desrosj Jun 16, 2021
9f1145b
REST API: Decode HTML entities in widget names and descriptions in wi…
SergeyBiryukov Jun 17, 2021
29ba355
Coding Standards: Fix WPCS issue in [51174].
SergeyBiryukov Jun 17, 2021
1a5a8c2
Editor: Include Cover block in the list of block types registered usi…
SergeyBiryukov Jun 17, 2021
6a163e1
Administration: Consistently escape `admin_url()` links.
SergeyBiryukov Jun 17, 2021
7d3b5df
Coding Standards: Bring some consistency to HTML formatting in `wp-ad…
SergeyBiryukov Jun 17, 2021
7369505
Build/Test Tools: Use Git when fetching the WordPress Importer for us…
desrosj Jun 17, 2021
4ccc588
Upgrade/Install: Deactivate the Gutenberg plugin if its version is 10…
SergeyBiryukov Jun 18, 2021
87c740b
Tests: Correct `svn:eol-style` property for test data with CR line en…
SergeyBiryukov Jun 18, 2021
e127bcd
Themes: Make sure `get_file_data()` recognizes headers prefixed by `<…
SergeyBiryukov Jun 18, 2021
5f30098
REST API: Decode single and double quote entities in widget names and…
SergeyBiryukov Jun 18, 2021
6c01c2a
Docs: Add a reference to `WP_Site_Query::__construct()` for informati…
SergeyBiryukov Jun 19, 2021
0e5a98e
Docs: Correct DocBlock formatting for `Core_Upgrader::upgrade()`.
SergeyBiryukov Jun 19, 2021
21bb743
Tests: Use more appropriate assertions in `clean_dirsize_cache()` tests.
SergeyBiryukov Jun 20, 2021
daa1cbb
Media: Adapt response shape depending on type of query.
joedolson Jun 20, 2021
ca5f990
Docs: Correct `@since` version in the `wp-includes/version.php` file …
SergeyBiryukov Jun 21, 2021
19f8ac4
Administration: Consistently escape `network_admin_url()` links.
SergeyBiryukov Jun 21, 2021
dc51282
Users: Escape `get_author_posts_url()` link in `wp_list_authors()`.
SergeyBiryukov Jun 21, 2021
d5c9c31
Media: Update total attachment count when media added or removed.
joedolson Jun 21, 2021
52e1e2c
Twenty Thirteen: Improve the display of the Query Loop block.
desrosj Jun 21, 2021
94841ac
Themes: Prevent a Full Site Editing theme from being activated when G…
desrosj Jun 22, 2021
84ee1c9
Themes: Remove unexpected border around the Theme Details button.
desrosj Jun 22, 2021
b2c449b
Media: Improve upload page media item layout on smaller screens.
antpb Jun 22, 2021
e84cfe8
Tests: Use more appropriate assertions in a few tests.
SergeyBiryukov Jun 22, 2021
0d8727b
Themes: Improve Gutenberg check before activating an FSE theme.
peterwilsoncc Jun 22, 2021
6db7930
Ports theme.json changes for beta 3.
jorgefilipecosta Jun 22, 2021
ab25191
Block Editor: Package updates for Beta 3.
jorgefilipecosta Jun 22, 2021
5259b18
Widgets: Add editor styles to the widgets block editor.
desrosj Jun 22, 2021
8a11188
Twenty Twenty-One: Add margins around content in Post Template block.
ryelle Jun 22, 2021
b32d8c1
Widgets: Stop loading `wp-editor` and the Block Directory assets on t…
desrosj Jun 22, 2021
8ea2e04
Editor: Allow `custom-units` to be an array.
desrosj Jun 22, 2021
68af562
Code Modernization: Use a consistent check for parent items in `WP_Wa…
SergeyBiryukov Jun 22, 2021
0a2b52d
Bundled Themes: Improve display of blocks in widget areas.
ryelle Jun 22, 2021
0f24904
Block Editor: Send locale, version with remote pattern requests.
iandunn Jun 22, 2021
c94c954
Media: Add lazy-loading support to block-based widgets.
Jun 22, 2021
479e984
Block Editor: Move caching to endpoint for unique responses.
iandunn Jun 22, 2021
0638de4
Twenty Nineteen: Update margins on full- and wide-aligned blocks in t…
ryelle Jun 22, 2021
48e31b2
Docs: Shorten the copyright notice for the `WP_REST_Sidebars_Controll…
desrosj Jun 22, 2021
e93093f
Media: Prevent uploading and show an error message when the server do…
azaozz Jun 22, 2021
c54b44e
Build/Test Tools: Add the `regenerator-runtime` script as a dependenc…
desrosj Jun 23, 2021
821327c
Editor: Correct variable names in `get_block_editor_settings()`.
desrosj Jun 23, 2021
94c655c
Widgets: Add support for the Widgets Editor on `after_setup_theme` in…
desrosj Jun 23, 2021
b588426
Docs: Fix typo in `widgets-block-editor` feature documentation.
desrosj Jun 23, 2021
0bf96b8
Widgets: Fix widget preview not working if widget registered via a in…
noisysocks Jun 23, 2021
986fecb
WordPress 5.8 Beta 3.
desrosj Jun 23, 2021
74c1893
Post WordPress 5.8 Beta 3 version bump.
desrosj Jun 23, 2021
6ec11e6
Widgets: Remove unnecessary gutenberg_ functions
noisysocks Jun 23, 2021
a048ac3
Tests: Replace `assertEquals()` with `assertSameSets()` in text widge…
SergeyBiryukov Jun 23, 2021
fccc020
Docs: Various docblock corrections for code added in 5.8.
desrosj Jun 23, 2021
5acf559
Docs: Remove inaccurate `@since` tag.
desrosj Jun 23, 2021
3801e98
Media: Revert r51211 to restore `ms-files.php` assets.
iandunn Jun 23, 2021
c17e2ba
Media: Correct undefined variable in wp_ajax_query_attachments.
joedolson Jun 23, 2021
3d60188
Tests: Use `assertSame()` in `_wp_to_kebab_case()` tests.
SergeyBiryukov Jun 24, 2021
09fda45
Tests: Require PHPUnit >= 6 in tests using `::createPartialMock()`.
SergeyBiryukov Jun 24, 2021
936a382
Media: Prevent uploading and show an error message when the server do…
azaozz Jun 24, 2021
9079036
Widgets: Add missing `label` and `description` to Customizer controls.
desrosj Jun 24, 2021
fd27b43
Coding Standards: Apply an alignment fix from running `composer format`.
desrosj Jun 24, 2021
4381bf2
Coding Standards: Fix WPCS issues in [51227].
SergeyBiryukov Jun 24, 2021
2f063a7
Twenty Twenty: Remove extra margin within the Query Loop block.
desrosj Jun 24, 2021
767be55
Widgets: Fix an “Invalid value” warning when adding a new widget in t…
desrosj Jun 25, 2021
1a7033e
Twenty Twenty-One: Add spacing around Query block when there is a bac…
ryelle Jun 25, 2021
4b17d6b
Tests: Correct PHPUnit version requirement in tests using `::createPa…
SergeyBiryukov Jun 25, 2021
dc71024
REST API: Retrieve latest widgets before loading sidebars.
TimothyBJacobs Jun 25, 2021
fe473cc
Twenty Twenty-One: Use the theme version when enqueueing theme assets.
desrosj Jun 25, 2021
eeb8c63
Docs: Various filter docblock improvements.
desrosj Jun 25, 2021
5e2b659
Widgets: Avoid a TypeError when adding a widget in the Customizer.
desrosj Jun 25, 2021
49a6a14
REST API: Include the sidebar ID when saving a widget.
desrosj Jun 25, 2021
578cda5
Block Editor: Do not load a default font family for themes with theme…
youknowriad Jun 25, 2021
be0d5b2
Block Editor: Update the packages with a number of fixes targeted for…
youknowriad Jun 25, 2021
084092a
WordPress 5.8 Beta 4.
aaronjorbin Jun 25, 2021
7929550
Post WordPress 5.8 Beta 4 version bump.
aaronjorbin Jun 25, 2021
bf3ebaf
Docs: Document `api_version` and `variations` properties in `WP_Block…
SergeyBiryukov Jun 26, 2021
2797ef6
Block Editor: Remove empty `blocks/query-loop` directory.
SergeyBiryukov Jun 27, 2021
d18f860
General: Ensure `svn:eol-style` is consistently set for all recently …
SergeyBiryukov Jun 27, 2021
c26143e
Site Health: Add a unique wrapper for dashboard widget content.
Clorith Jun 27, 2021
7131a90
Widgets REST API: Fix non-multi widgets not appearing in wp_inactive_…
noisysocks Jun 28, 2021
6311baa
Docs: Update documentation for `WP_Widget_Block` per the documentatio…
SergeyBiryukov Jun 28, 2021
687fcda
Block Editor: Package updates including fixes from Gutenberg for Word…
youknowriad Jun 28, 2021
ccdb176
Themes: Remove mention of “FSE” in Core.
desrosj Jun 28, 2021
87a427d
Site Health: Improve readability of site titles.
Clorith Jun 28, 2021
fe2bd63
Twenty Twenty-One: Ensure Duotone images are displayed correctly in D…
desrosj Jun 28, 2021
516bc48
Editor: Prevent block stylesheets from loading when they do not exist.
desrosj Jun 29, 2021
186d7c7
Coding Standards: Apply an alignment fix after `composer format`.
desrosj Jun 29, 2021
600d611
Docs: Improve documentation for `wp_should_load_separate_core_block_a…
SergeyBiryukov Jun 29, 2021
c804143
Twenty Seventeen: Avoid JS errors when displaying legacy widgets.
SergeyBiryukov Jun 29, 2021
fe87833
Build/Test Tools: Add the `artifacts` directory to `svn-ignore` and `…
desrosj Jun 29, 2021
8e08c56
Build: Split packages and blocks to their webpack configs.
youknowriad Jun 29, 2021
d5cf360
Docs: Correct `@since` annotation for `WP_Block_Type->view_script`.
desrosj Jun 29, 2021
2f27f24
Block Editor: Include the latest fixes targetted for 5.8 RC1.
youknowriad Jun 29, 2021
6fc65b3
Script Loader: Use the provided block version when registering styles.
desrosj Jun 29, 2021
ad14ee3
Docs: Further Improve documentation for wp_should_load_separate_core_…
aaronjorbin Jun 29, 2021
aea10c0
Help/About: WordPress 5.8 About Page.
ryelle Jun 29, 2021
8fa45ab
Script Loader: Add `file` block assets to the `svn-ignore` list.
desrosj Jun 29, 2021
1b7cd95
Upgrade/Install: Notify users of deactivated plugins during upgrade.
peterwilsoncc Jun 30, 2021
e7387a9
Script Loader: Fix PHP notice caused by the `viewScript` for the `cor…
desrosj Jun 30, 2021
8c3e1e9
Build/Test Tools: Revert [51259-51256,51265].
desrosj Jun 30, 2021
77d0f61
WordPress 5.8 RC1.
desrosj Jun 30, 2021
2c1f2bf
Post WordPress 5.8 RC1 version bump.
desrosj Jun 30, 2021
4f26a88
Post branching 5.8 version bump.
desrosj Jun 30, 2021
a610e96
Build/Test Tools: Add the 5.8 branch to the workflow for testing bran…
desrosj Jun 30, 2021
7344160
Security: Add 5.8 to the list of versions receiving security updates.
desrosj Jun 30, 2021
4c598d3
Query: Check each post-type's capabilities when querying multiple pos…
peterwilsoncc Jun 30, 2021
ffafbef
REST API: Allow multiple widgets to be deleted in a single batch requ…
SergeyBiryukov Jun 30, 2021
d72eb14
Docs: Document the globals used in some REST API methods.
SergeyBiryukov Jun 30, 2021
a2f00a6
Docs: Document the globals used in `WP_REST_Widget_Types_Controller` …
SergeyBiryukov Jun 30, 2021
598c337
Docs: Add missing `@since` tags for some REST API methods added in 5.8.
SergeyBiryukov Jun 30, 2021
7884c33
Docs: Add `@ticket` references to some `WP_Theme_JSON` tests.
SergeyBiryukov Jun 30, 2021
b10b4a2
Docs: Adjust `wp_dashboard_browser_nag()` DocBlock per the documentat…
SergeyBiryukov Jun 30, 2021
40ff275
Docs: Add missing `@since` tags for some `WP_Theme_JSON` methods.
SergeyBiryukov Jun 30, 2021
a58c86a
Docs: Improve documentation for optional parameters in `WP_Theme_JSON…
SergeyBiryukov Jun 30, 2021
e7b6a4d
Coding Standards: Remove redundant type casting to array in `WP_Query…
SergeyBiryukov Jun 30, 2021
8f4593b
Docs: List the expected type first instead of `WP_Error` in some REST…
SergeyBiryukov Jun 30, 2021
df662d1
Coding Standards: Add missing visibility keywords to `WP_Theme`, `WP_…
SergeyBiryukov Jun 30, 2021
9e30494
Script Loader: Revert [51267].
desrosj Jun 30, 2021
1b749d9
Docs: Remove an empty line between `@param` and `@return` tags in som…
SergeyBiryukov Jun 30, 2021
d999568
Docs: Improve documentation for optional parameters in `WP_Theme_JSON…
SergeyBiryukov Jun 30, 2021
4871e33
Docs: Correct documentation for `rest_{$post_type}_query` and `rest_{…
SergeyBiryukov Jul 1, 2021
61b5311
Twenty Twenty-One: Improve documentation per the documentation standa…
SergeyBiryukov Jul 1, 2021
a54727d
Twenty Twenty-One: Ensure the dropdown arrow displays for `<select>` …
desrosj Jul 1, 2021
00a0c0f
Docs: Fix the documentation for the `$tests` parameter of the `site_s…
johnbillion Jul 1, 2021
79685db
Docs: Corrections and improvements to types used in docblocks for sym…
johnbillion Jul 1, 2021
9146628
Docs: Miscellaneous formatting corrections for docblocks.
johnbillion Jul 1, 2021
ea60cd8
Docs: Descriptive improvements and corrections for various docblocks.
johnbillion Jul 1, 2021
e4cfebe
Docs: Undo the accidental revert of [51299] made in [51300].
johnbillion Jul 1, 2021
ec4eb88
Docs: Further type corrections and improvements for various docblocks.
johnbillion Jul 1, 2021
7ec8606
Docs: Correct description for the `$image` parameter of the `wp_save_…
SergeyBiryukov Jul 2, 2021
d0c596c
Twenty Twenty-One: Add missing documentation for some filters.
SergeyBiryukov Jul 2, 2021
433448f
Editor: Remove the experimental `experimental-link-color` feature.
desrosj Jul 2, 2021
bc59080
Editor: Ensure the Query block pattern category is translatable.
desrosj Jul 2, 2021
3e271ba
Editor: Ensure global styles are loaded in the footer when loading co…
desrosj Jul 2, 2021
bf92ee3
Remove unnecessary function_exists check in get_the_block_template_html
aaronjorbin Jul 2, 2021
af7a043
Twenty Twenty: Add missing documentation for some filters.
SergeyBiryukov Jul 3, 2021
9c0611e
Bundled Themes: Correct `@since` tags for block patterns.
SergeyBiryukov Jul 3, 2021
39cb388
Docs: Correct `@see` references for hooks in the `get_option()` descr…
SergeyBiryukov Jul 3, 2021
6b78871
Docs: Document common names for dynamic hooks relating to metadata.
johnbillion Jul 3, 2021
efaf4a8
Docs: Add and correct examples of common names for various dynamic ho…
johnbillion Jul 3, 2021
ca92ebe
Docs: Add `@since` tags for `WP_Theme` class properties.
SergeyBiryukov Jul 4, 2021
0dadbca
Docs: Correct description for the `upgrader_pre_install` filter.
SergeyBiryukov Jul 4, 2021
2e6a782
Docs: Miscellaneous docblock improvements.
johnbillion Jul 5, 2021
94c6df9
Build/Test Tools: Replace `assertInternalType()` usage in unit tests.
SergeyBiryukov Jul 5, 2021
228f2d9
Update the IRC link from Freenode to Libera.chat.
aaronjorbin Jul 5, 2021
7a836ad
Tests: Move loading compatibility layers for PHPUnit 6+ and 7.5+ clos…
SergeyBiryukov Jul 6, 2021
5bef1b8
Tests: Use more appropriate assertions in various tests.
SergeyBiryukov Jul 6, 2021
0d2ce87
Tests: Use more appropriate assertions in various tests.
SergeyBiryukov Jul 6, 2021
6f2b454
Build/Test Tools: Use caching built into `actions/setup-node`.
desrosj Jul 6, 2021
038904d
I18N: Correct recurring `lenghts` typo.
desrosj Jul 6, 2021
833382b
Bundled Themes: Correct `customzier` typo.
desrosj Jul 6, 2021
5ab81a5
Block Editor: Update packages with latest fixes for 5.8 RC2
youknowriad Jul 6, 2021
98579e4
Posts: Prevent an empty excerpt when groups and nested column blocks …
desrosj Jul 6, 2021
1dcad8f
REST API: Add the `$request` parameter to methods checking permissions.
desrosj Jul 6, 2021
faa69b4
Tests: Update the `wp-api-generated.js` fixture.
desrosj Jul 6, 2021
5ce4f59
Themes: Remove inline comment that is not relevant in WordPress Core.
desrosj Jul 6, 2021
5f67ba0
Docs: Correct the `@since` tag for the `user_erasure_fulfillment_emai…
johnbillion Jul 6, 2021
1940e5d
Build/Test Tools: Add assertions to ensure version-controlled files a…
johnbillion Jul 6, 2021
72f034f
Help/About: Update the About section for 5.8.
ryelle Jul 6, 2021
8b025ac
Multisite: Log error/warnings/notices from `ms-files.php`.
iandunn Jul 6, 2021
39ff1d6
Help/About: Update placeholder links on About page.
ryelle Jul 6, 2021
d73dcb8
Block Editor: Update packages with latest fixes for 5.8 RC2
peterwilsoncc Jul 6, 2021
a9f45cd
Bump Akismet external to 4.1.10.
dd32 Jul 7, 2021
4c165a0
Tests: Use more appropriate assertions in various tests.
SergeyBiryukov Jul 7, 2021
a1418c5
Coding Standards: Fix WPCS issues in [51367].
SergeyBiryukov Jul 7, 2021
0a4c5d0
Tests: Expand tests for `get_block_editor_settings()`.
desrosj Jul 7, 2021
13695f4
Themes: Remove mention of “FSE” in Core.
desrosj Jul 7, 2021
cf71128
Tests: Add missed file update in [51370].
desrosj Jul 7, 2021
b16abde
Bundled Themes: Update block patterns to match the latest versions of…
desrosj Jul 7, 2021
501e37b
Posts: Allow the list of wrapper blocks to be filtered.
desrosj Jul 7, 2021
3f7c228
REST API: Ensure a sidebar's widgets property is a list.
TimothyBJacobs Jul 7, 2021
f4acd73
Posts: Fix Spelling in inline docs.
aaronjorbin Jul 7, 2021
381a720
Fix merge info.
aaronjorbin Jul 7, 2021
2f170f5
Script Loader: Update jQuery version to 3.6.0 following the update in…
ocean90 Jul 8, 2021
2d18007
Coding Standards: Remove wrapping HTML tags from translatable strings.
SergeyBiryukov Jul 8, 2021
d05e523
Block Editor: Fix for theme.json: color.duotone and spacing.units sho…
jorgefilipecosta Jul 8, 2021
c57e6f0
Editor: Merge conflicting wp.editor objects into single, non-conflict…
noisysocks Jul 9, 2021
846529d
Widgets: Warn when wp-editor script or wp-edit-post style is enqueued…
noisysocks Jul 9, 2021
8222719
Customizer: Skip animations when they have no duration.
getsource Jul 9, 2021
eb9d31b
Docs: Some documentation improvements for `wp_check_widget_editor_dep…
SergeyBiryukov Jul 9, 2021
7922a90
I18N: Translate `_doing_it_wrong()` messages in `wp_check_widget_edit…
SergeyBiryukov Jul 9, 2021
e304c93
Coding Standards: Add missing semicolon to `endforeach` keywords in m…
SergeyBiryukov Jul 10, 2021
c51c4ab
Code Modernization: Only check collation in `wpdb` methods if the que…
SergeyBiryukov Jul 10, 2021
d4ca0e0
Tests: Use more appropriate assertions in various tests.
SergeyBiryukov Jul 10, 2021
514f23a
Users: Return earlier from `wp_update_user()` in case of error.
SergeyBiryukov Jul 10, 2021
c205a7e
Coding Standards: Rename the `$ID` variable to `$user_id` in `wp_inse…
SergeyBiryukov Jul 10, 2021
84f7250
Bundled Themes: Correct comment formatting in `inc/block-patterns.php`.
SergeyBiryukov Jul 10, 2021
f45d515
Twenty Fifteen: Use strict comparison in `inc/custom-header.php`.
SergeyBiryukov Jul 10, 2021
8a8c479
TinyMCE: ensure initialization runs in all cases on 'interactive' and…
azaozz Jul 10, 2021
fb44d80
Tests: Use more appropriate assertions in various tests.
SergeyBiryukov Jul 11, 2021
79b4f21
Tests: Use more appropriate assertions in various tests.
SergeyBiryukov Jul 12, 2021
2276bef
Coding Standards: Fix WPCS issue in [51404].
SergeyBiryukov Jul 12, 2021
a3a7ccf
Widgets: Use `wp_sidebar_description()` to retrieve a sidebar’s `desc…
desrosj Jul 12, 2021
b60650f
Widgets: Replace `wp.editor` references in the legacy text widget.
desrosj Jul 12, 2021
f2b3c98
Docs: Various documentation fixes following [51129].
desrosj Jul 13, 2021
a5cfc54
Help/About: Update the About section for 5.8.
ryelle Jul 13, 2021
34119e2
Widgets: Validate HTML before saving block widgets.
peterwilsoncc Jul 13, 2021
8ed1859
Tests: Clean up skipping conditions and requirements for various tests.
SergeyBiryukov Jul 13, 2021
b95e0b3
Customizer: Don’t always set `normalizedTransitionendEventName` to `n…
getsource Jul 13, 2021
f1e1a53
Help/About: Update the About page for 5.8.
ryelle Jul 13, 2021
8b2e5e7
Tests: Reset `$current_screen` global between tests to avoid cross-te…
SergeyBiryukov Jul 13, 2021
e270f4f
Block Editor: Include the fixes targetted for WordPress 5.8 RC3.
youknowriad Jul 13, 2021
46f0cfe
Coding Standards: Use the correct formatting for multi-line comments.
desrosj Jul 13, 2021
10f7a91
Docs: Correct documentation for `wp_get_post_parent_id()`.
SergeyBiryukov Jul 13, 2021
b8c451c
Editor: Second round of package updates ahead of RC3.
desrosj Jul 13, 2021
a727138
Docs: Synchronize the `$post_id` argument description for some post a…
SergeyBiryukov Jul 14, 2021
440fd76
Privacy: Ensure the copy button actually copies the suggested privacy…
desrosj Jul 14, 2021
88309aa
Widgets: Prevent widgets unintentionally being moved to the inactive …
desrosj Jul 14, 2021
88cedea
Bundled Themes: Revert the [51372] update to block patterns in bundle…
desrosj Jul 14, 2021
15f9f7c
Media: When resizing WebP images set the compression to "lossy" by de…
azaozz Jul 15, 2021
d3d8d16
Tests: Use more appropriate assertions in various tests.
SergeyBiryukov Jul 15, 2021
1c4ec82
Tests: Use more appropriate assertions in various tests.
SergeyBiryukov Jul 15, 2021
f0e5f17
Media: Fix JS error in Media Library when infinite scroll enabled.
joedolson Jul 15, 2021
904862d
Media: Document edge cases with the new `image_editor_output_format` …
desrosj Jul 15, 2021
e76d4e1
Block Editor: Backport fixes targetted for WordPress 5.8 RC4.
youknowriad Jul 15, 2021
4a8667c
Tests: Use more appropriate assertions in various tests.
SergeyBiryukov Jul 16, 2021
7bcca73
Tests: Use more appropriate assertions in various tests.
SergeyBiryukov Jul 16, 2021
69a57fe
Tests: Correct the test for autosaving a post with Ajax.
SergeyBiryukov Jul 17, 2021
e0c355f
Tests: Use more appropriate assertions in various tests.
SergeyBiryukov Jul 17, 2021
ff737b2
Tests: Require the `WP_REST_Test_Controller` class in `WP_REST_Contro…
SergeyBiryukov Jul 18, 2021
232597b
Tests: Use more appropriate assertions in `rest_sanitize_request_arg(…
SergeyBiryukov Jul 18, 2021
a86d4cb
Tests: Use more appropriate assertions in various tests.
SergeyBiryukov Jul 18, 2021
29e5343
Bundled Themes: Bump bundled theme versions for WordPress 5.8.
desrosj Jul 18, 2021
50db2d5
Build/Test Tools: Update the `caniuse` browser data and regenerate CSS.
desrosj Jul 19, 2021
14f024a
Upgrade/Install: Add additional files to `$_old_files` for 5.8.
desrosj Jul 19, 2021
1074ae9
Tests: Use more appropriate assertions in various tests.
SergeyBiryukov Jul 19, 2021
77f6357
Tests: Replace `assertContains()` with `assertStringContainsString()`…
SergeyBiryukov Jul 19, 2021
f5713b8
Application Passwords: Improve various user-facing and developer-faci…
johnbillion Jul 19, 2021
6574121
External Libraries: Correct the `hoverIntent` version used when regis…
desrosj Jul 21, 2021
bb6af43
External Libraries: Correct the `jquery-form` version used when regis…
desrosj Jul 21, 2021
32307b4
External Libraries: Correct the `underscore` version used when regist…
desrosj Jul 21, 2021
352fe2a
Build/Test Tools: Update PHP_CodeSniffer to version 3.6.0.
SergeyBiryukov Jul 21, 2021
60c39d7
Editor: Conditionally load registered styles for block variations
gziolo Jul 22, 2021
c7ff035
I18n: Fix broken loop in WP_Theme_JSON_Resolver
gziolo Jul 22, 2021
2871ef4
Help/About: Add `/` character to `<img>` and `<source>` tags.
SergeyBiryukov Jul 22, 2021
8a97583
Docs: Correct a comment about WebP constants in `wp-includes/compat.p…
SergeyBiryukov Jul 22, 2021
8a90b86
Docs: Add a comment about the `$title` global usage in various admin …
SergeyBiryukov Jul 22, 2021
d19c768
Tests: Correct class name for `WP_Filesystem_Base::find_folder()` tests.
SergeyBiryukov Jul 22, 2021
0434d4d
Docs: Miscellaneous docblock corrections and improvements.
johnbillion Jul 22, 2021
fa44974
Tests: Add a `$message` parameter for custom assertions in `WP_UnitTe…
SergeyBiryukov Jul 22, 2021
79e24f3
Tests: Correct placement of the `$message` parameter in `assertDiscar…
SergeyBiryukov Jul 22, 2021
b38d2f9
Tests: Modernize the `WP_UnitTestCase_Base::assertEqualFields()` method:
SergeyBiryukov Jul 22, 2021
f753d70
Tests: Use better assertions in `WP_UnitTestCase_Base::assertEqualFie…
SergeyBiryukov Jul 22, 2021
5ffbad0
Twenty Ten: Use correct path for loading block patterns.
SergeyBiryukov Jul 23, 2021
f053aed
Bundled Themes: Use correct path for loading images in block patterns.
SergeyBiryukov Jul 24, 2021
b67f945
Media: Remove unused code from `wp-admin/includes/media.php`.
SergeyBiryukov Jul 24, 2021
b218b75
Media: Check the `posts_per_page` value in `wp_ajax_query_attachments…
SergeyBiryukov Jul 25, 2021
08e06d7
Bundled Themes: Version Bump 2010, 2011 and 2012.
peterwilsoncc Jul 26, 2021
5a4203d
Tests: Move and fix incorrectly placed tests for block supported styles.
SergeyBiryukov Jul 26, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion readme.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ <h2>Online Resources</h2>
<dt><a href="https://wordpress.org/support/forums/">WordPress Support Forums</a></dt>
<dd>If you&#8217;ve looked everywhere and still can&#8217;t find an answer, the support forums are very active and have a large community ready to help. To help them help you be sure to use a descriptive thread title and describe your question in as much detail as possible.</dd>
<dt><a href="https://make.wordpress.org/support/handbook/appendix/other-support-locations/introduction-to-irc/">WordPress <abbr>IRC</abbr> (Internet Relay Chat) Channel</a></dt>
<dd>There is an online chat channel that is used for discussion among people who use WordPress and occasionally support topics. The above wiki page should point you in the right direction. (<a href="irc://irc.freenode.net/wordpress">irc.freenode.net #wordpress</a>)</dd>
<dd>There is an online chat channel that is used for discussion among people who use WordPress and occasionally support topics. The above wiki page should point you in the right direction. (<a href="https://web.libera.chat/#wordpress">irc.libera.chat #wordpress</a>)</dd>
</dl>

<h2>Final Notes</h2>
Expand Down
315 changes: 129 additions & 186 deletions wp-admin/about.php

Large diffs are not rendered by default.

13 changes: 12 additions & 1 deletion wp-admin/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,13 +320,24 @@
*
* The dynamic portion of the hook name, `$importer`, refers to the importer slug.
*
* Possible hook names include:
*
* - `load-importer-blogger`
* - `load-importer-wpcat2tag`
* - `load-importer-livejournal`
* - `load-importer-mt`
* - `load-importer-rss`
* - `load-importer-tumblr`
* - `load-importer-wordpress`
*
* @since 3.5.0
*/
do_action( "load-importer-{$importer}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

// Used in the HTML title tag.
$title = __( 'Import' );
$parent_file = 'tools.php';
$submenu_file = 'import.php';
$title = __( 'Import' );

if ( ! isset( $_GET['noheader'] ) ) {
require_once ABSPATH . 'wp-admin/admin-header.php';
Expand Down
58 changes: 30 additions & 28 deletions wp-admin/async-upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,35 +49,37 @@
switch ( $_REQUEST['fetch'] ) {
case 3:
?>
<div class="attachment-details">
<?php
$thumb_url = wp_get_attachment_image_src( $id, 'thumbnail', true );
if ( $thumb_url ) {
echo '<img class="pinkynail" src="' . esc_url( $thumb_url[0] ) . '" alt="" />';
}

// Title shouldn't ever be empty, but use filename just in case.
$file = get_attached_file( $post->ID );
$file_url = wp_get_attachment_url( $post->ID );
$title = $post->post_title ? $post->post_title : wp_basename( $file );
?>
<div class="filename new">
<span class="media-list-title"><strong><?php echo esc_html( wp_html_excerpt( $title, 60, '&hellip;' ) ); ?></strong></span>
<span class="media-list-subtitle"><?php echo wp_basename( $file ); ?></span>
<div class="media-item-wrapper">
<div class="attachment-details">
<?php
$thumb_url = wp_get_attachment_image_src( $id, 'thumbnail', true );
if ( $thumb_url ) {
echo '<img class="pinkynail" src="' . esc_url( $thumb_url[0] ) . '" alt="" />';
}

// Title shouldn't ever be empty, but use filename just in case.
$file = get_attached_file( $post->ID );
$file_url = wp_get_attachment_url( $post->ID );
$title = $post->post_title ? $post->post_title : wp_basename( $file );
?>
<div class="filename new">
<span class="media-list-title"><strong><?php echo esc_html( wp_html_excerpt( $title, 60, '&hellip;' ) ); ?></strong></span>
<span class="media-list-subtitle"><?php echo wp_basename( $file ); ?></span>
</div>
</div>
<div class="attachment-tools">
<span class="media-item-copy-container copy-to-clipboard-container edit-attachment">
<button type="button" class="button button-small copy-attachment-url" data-clipboard-text="<?php echo $file_url; ?>"><?php _e( 'Copy URL to clipboard' ); ?></button>
<span class="success hidden" aria-hidden="true"><?php _e( 'Copied!' ); ?></span>
</span>
<?php
if ( current_user_can( 'edit_post', $id ) ) {
echo '<a class="edit-attachment" href="' . esc_url( get_edit_post_link( $id ) ) . '" target="_blank">' . _x( 'Edit', 'media item' ) . '</a>';
} else {
echo '<span class="edit-attachment">' . _x( 'Success', 'media item' ) . '</span>';
}
?>
</div>
</div>
<div class="attachment-tools">
<span class="media-item-copy-container copy-to-clipboard-container edit-attachment">
<button type="button" class="button button-small copy-attachment-url" data-clipboard-text="<?php echo $file_url; ?>"><?php _e( 'Copy URL to clipboard' ); ?></button>
<span class="success hidden" aria-hidden="true"><?php _e( 'Copied!' ); ?></span>
</span>
<?php
if ( current_user_can( 'edit_post', $id ) ) {
echo '<a class="edit-attachment" href="' . esc_url( get_edit_post_link( $id ) ) . '" target="_blank">' . _x( 'Edit', 'media item' ) . '</a>';
} else {
echo '<span class="edit-attachment">' . _x( 'Success', 'media item' ) . '</span>';
}
?>
</div>
<?php
break;
Expand Down
17 changes: 9 additions & 8 deletions wp-admin/authorize-application.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
}
}

// Used in the HTML title tag.
$title = __( 'Authorize Application' );

$app_name = ! empty( $_REQUEST['app_name'] ) ? $_REQUEST['app_name'] : '';
Expand Down Expand Up @@ -90,7 +91,7 @@

if ( wp_is_site_protected_by_basic_auth( 'front' ) ) {
wp_die(
__( 'Your website appears to use Basic Authentication, which is not currently compatible with Application Passwords.' ),
__( 'Your website appears to use Basic Authentication, which is not currently compatible with application passwords.' ),
__( 'Cannot Authorize Application' ),
array(
'response' => 501,
Expand Down Expand Up @@ -147,13 +148,13 @@
<?php
printf(
/* translators: %s: Application name. */
__( 'Would you like to give the application identifying itself as %s access to your account? You should only do this if you trust the app in question.' ),
__( 'Would you like to give the application identifying itself as %s access to your account? You should only do this if you trust the application in question.' ),
'<strong>' . esc_html( $app_name ) . '</strong>'
);
?>
</p>
<?php else : ?>
<p><?php _e( 'Would you like to give this application access to your account? You should only do this if you trust the app in question.' ); ?></p>
<p><?php _e( 'Would you like to give this application access to your account? You should only do this if you trust the application in question.' ); ?></p>
<?php endif; ?>

<?php
Expand Down Expand Up @@ -247,7 +248,7 @@

<?php
submit_button(
__( 'Yes, I approve of this connection.' ),
__( 'Yes, I approve of this connection' ),
'primary',
'approve',
false,
Expand All @@ -262,7 +263,7 @@
printf(
/* translators: %s: The URL the user is being redirected to. */
__( 'You will be sent to %s' ),
'<strong><kbd>' . esc_html(
'<strong><code>' . esc_html(
add_query_arg(
array(
'site_url' => site_url(),
Expand All @@ -271,7 +272,7 @@
),
$success_url
)
) . '</kbd></strong>'
) . '</code></strong>'
);
} else {
_e( 'You will be given a password to manually enter into the application in question.' );
Expand All @@ -281,7 +282,7 @@

<?php
submit_button(
__( 'No, I do not approve of this connection.' ),
__( 'No, I do not approve of this connection' ),
'secondary',
'reject',
false,
Expand All @@ -296,7 +297,7 @@
printf(
/* translators: %s: The URL the user is being redirected to. */
__( 'You will be sent to %s' ),
'<strong><kbd>' . esc_html( $reject_url ) . '</kbd></strong>'
'<strong><code>' . esc_html( $reject_url ) . '</code></strong>'
);
} else {
_e( 'You will be returned to the WordPress Dashboard, and no changes will be made.' );
Expand Down
41 changes: 22 additions & 19 deletions wp-admin/comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
switch ( $action ) {

case 'editcomment':
// Used in the HTML title tag.
$title = __( 'Edit Comment' );

get_current_screen()->add_help_tab(
Expand Down Expand Up @@ -96,6 +97,7 @@
case 'approve':
case 'trash':
case 'spam':
// Used in the HTML title tag.
$title = __( 'Moderate Comment' );

if ( ! $comment ) {
Expand Down Expand Up @@ -167,19 +169,19 @@

<table class="form-table comment-ays">
<tr>
<th scope="row"><?php _e( 'Author' ); ?></th>
<td><?php comment_author( $comment ); ?></td>
<th scope="row"><?php _e( 'Author' ); ?></th>
<td><?php comment_author( $comment ); ?></td>
</tr>
<?php if ( get_comment_author_email( $comment ) ) { ?>
<tr>
<th scope="row"><?php _e( 'Email' ); ?></th>
<td><?php comment_author_email( $comment ); ?></td>
<th scope="row"><?php _e( 'Email' ); ?></th>
<td><?php comment_author_email( $comment ); ?></td>
</tr>
<?php } ?>
<?php if ( get_comment_author_url( $comment ) ) { ?>
<tr>
<th scope="row"><?php _e( 'URL' ); ?></th>
<td><a href="<?php comment_author_url( $comment ); ?>"><?php comment_author_url( $comment ); ?></a></td>
<th scope="row"><?php _e( 'URL' ); ?></th>
<td><a href="<?php comment_author_url( $comment ); ?>"><?php comment_author_url( $comment ); ?></a></td>
</tr>
<?php } ?>
<tr>
Expand Down Expand Up @@ -207,8 +209,8 @@
}
?>
</td>
</tr>
<tr>
</tr>
<tr>
<th scope="row"><?php _e( 'Submitted on' ); ?></th>
<td>
<?php
Expand All @@ -226,31 +228,32 @@
echo $submitted;
}
?>
</td>
</tr>
<tr>
</td>
</tr>
<tr>
<th scope="row"><?php /* translators: Field name in comment form. */ _ex( 'Comment', 'noun' ); ?></th>
<td class="comment-content">
<?php comment_text( $comment ); ?>
<p class="edit-comment"><a href="<?php echo admin_url( "comment.php?action=editcomment&amp;c={$comment->comment_ID}" ); ?>"><?php esc_html_e( 'Edit' ); ?></a></p>
<p class="edit-comment">
<a href="<?php echo esc_url( admin_url( "comment.php?action=editcomment&c={$comment->comment_ID}" ) ); ?>"><?php esc_html_e( 'Edit' ); ?></a>
</p>
</td>
</tr>
</table>

<form action="comment.php" method="get" class="comment-ays-submit">
</tr>
</table>

<form action="comment.php" method="get" class="comment-ays-submit">
<p>
<?php submit_button( $button, 'primary', 'submit', false ); ?>
<a href="<?php echo admin_url( 'edit-comments.php' ); ?>" class="button-cancel"><?php esc_html_e( 'Cancel' ); ?></a>
<a href="<?php echo esc_url( admin_url( 'edit-comments.php' ) ); ?>" class="button-cancel"><?php esc_html_e( 'Cancel' ); ?></a>
</p>

<?php wp_nonce_field( $nonce_action ); ?>
<input type="hidden" name="action" value="<?php echo esc_attr( $formaction ); ?>" />
<input type="hidden" name="c" value="<?php echo esc_attr( $comment->comment_ID ); ?>" />
<input type="hidden" name="noredir" value="1" />
</form>
</form>

</div>
</div>
<?php
break;

Expand Down
50 changes: 18 additions & 32 deletions wp-admin/credits.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
require_once __DIR__ . '/admin.php';
require_once __DIR__ . '/includes/credits.php';

// Used in the HTML title tag.
$title = __( 'Credits' );

list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );
Expand All @@ -21,21 +22,14 @@
<div class="wrap about__container">

<div class="about__header">
<div class="about__header-image">
<img alt="<?php _e( 'Code is Poetry' ); ?>" src="<?php echo admin_url( 'images/about-badge.svg' ); ?>" />
<div class="about__header-title">
<h1>
<?php _e( 'Contributors' ); ?>
</h1>
</div>

<div class="about__header-container">
<div class="about__header-title">
<p>
<?php _e( 'WordPress' ); ?>
<?php echo $display_version; ?>
</p>
</div>

<div class="about__header-text">
<?php _e( 'Jazz up your stories in an editor that’s cleaner, crisper, and does more to get out of your way.' ); ?>
</div>
<div class="about__header-text">
<?php _e( 'WordPress 5.8 was created by a worldwide team of passionate individuals' ); ?>
</div>

<nav class="about__header-navigation nav-tab-wrapper wp-clearfix" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
Expand All @@ -46,36 +40,28 @@
</nav>
</div>

<div class="about__section is-feature">
<div class="column">
<h1><?php _e( 'Credits' ); ?></h1>

<div class="about__section has-1-column">
<div class="column aligncenter">
<?php if ( ! $credits ) : ?>

<p>
<?php
printf(
/* translators: 1: https://wordpress.org/about/, 2: https://make.wordpress.org/ */
__( 'WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals. <a href="%2$s">Get involved in WordPress</a>.' ),
__( 'https://wordpress.org/about/' ),
__( 'https://make.wordpress.org/' )
/* translators: 1: https://wordpress.org/about/ */
__( 'WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals.' ),
__( 'https://wordpress.org/about/' )
);
?>
<br />
<a href="https://make.wordpress.org/"><?php _e( 'Get involved in WordPress.' ); ?></a>
</p>

<?php else : ?>

<p>
<?php _e( 'WordPress is created by a worldwide team of passionate individuals.' ); ?>
</p>
<p>
<?php
printf(
/* translators: %s: https://make.wordpress.org/ */
__( 'Want to see your name in lights on this page? <a href="%s">Get involved in WordPress</a>.' ),
__( 'https://make.wordpress.org/' )
);
?>
<?php _e( 'Want to see your name in lights on this page?' ); ?>
<br />
<a href="https://make.wordpress.org/"><?php _e( 'Get involved in WordPress.' ); ?></a>
</p>

<?php endif; ?>
Expand All @@ -93,7 +79,7 @@
<hr />

<div class="about__section">
<div class="column has-subtle-background-color">
<div class="column is-edge-to-edge">
<?php wp_credits_section_title( $credits['groups']['core-developers'] ); ?>
<?php wp_credits_section_list( $credits, 'core-developers' ); ?>
<?php wp_credits_section_list( $credits, 'contributing-developers' ); ?>
Expand Down
Loading