44194 Commits

Author SHA1 Message Date
Jonathan Desrosiers
abde276901 WordPress 5.8.1.
git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51771 602fd350-edb4-49c9-b593-d223f7449a82
2021-09-09 02:11:54 +00:00
Andrew Ozz
c030902e9c Editor: Revert [51748] and [51649]. They intorduced a bug where wp.editor may be replaced with wp.oldEditor in certain cases.
Props desrosj, davidbinda, azaozz.
Merges [51768] to the 5.8 branch.
Fixes #53762.


git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51770 602fd350-edb4-49c9-b593-d223f7449a82
2021-09-09 01:59:03 +00:00
Jonathan Desrosiers
10e975225a Help/About: Update the About page for WordPress 5.8.1.
Props audrasjb, circlecube, mukesh27.
Fixes #54083.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51767 602fd350-edb4-49c9-b593-d223f7449a82
2021-09-08 22:50:53 +00:00
Sergey Biryukov
bd3f727f50 Editor: fix the replacement of wp.editor with wp.oldEditor in the inline script outputted when enqueueing the old editor.
Props fullofcaffeine, davidbinda, grantmkin, get_dave, azaozz.
Merges [51748] to the 5.8 branch.
Fixes #53762.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51749 602fd350-edb4-49c9-b593-d223f7449a82
2021-09-08 19:23:39 +00:00
Sergey Biryukov
3fa8b55ad6 General: Only use _jsonp_wp_die_handler() for JSONP REST API requests.
Props mdawaffe, peterwilsoncc.
Merges [51740] to the 5.8 branch.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51741 602fd350-edb4-49c9-b593-d223f7449a82
2021-09-08 17:19:16 +00:00
Jonathan Desrosiers
09f3dcbe63 Post WordPress 5.8.1 RC1 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51723 602fd350-edb4-49c9-b593-d223f7449a82
2021-09-01 19:56:02 +00:00
Jonathan Desrosiers
be01ada606 WordPress 5.8.1 RC1.
git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51722 602fd350-edb4-49c9-b593-d223f7449a82
2021-09-01 19:45:31 +00:00
Jonathan Desrosiers
d73689ca98 Editor: Update block editor packages for WordPress 5.8.1.
The following packages were updated:
- @wordpress/a11y to `3.1.2`
- @wordpress/annotations to `2.1.6`
- @wordpress/api-fetch to `5.1.2`
- @wordpress/autop to `3.1.2`
- @wordpress/babel-preset-default to `6.2.1`
- @wordpress/blob to `3.1.2`
- @wordpress/block-directory to `2.1.21`
- @wordpress/block-editor to `6.1.14`
- @wordpress/block-library to `3.2.19`
- @wordpress/block-serialization-default-parser to `4.1.2`
- @wordpress/blocks to `9.1.8`
- @wordpress/components to `14.1.11`
- @wordpress/compose to `4.1.6`
- @wordpress/core-data to `3.1.12`
- @wordpress/customize-widgets to `1.0.20`
- @wordpress/data-controls to `2.1.6`
- @wordpress/data to `5.1.6`
- @wordpress/date to `4.1.2`
- @wordpress/deprecated to `3.1.2`
- @wordpress/dom-ready to `3.1.2`
- @wordpress/dom to `3.1.5`
- @wordpress/e2e-test-utils to `5.3.1`
- @wordpress/edit-post to `4.1.21`
- @wordpress/edit-widgets to `2.1.21`
- @wordpress/editor to `10.1.17`
- @wordpress/element to `3.1.2`
- @wordpress/escape-html to `2.1.2`
- @wordpress/format-library to `2.1.14`
- @wordpress/html-entities to `3.1.2`
- @wordpress/i18n to `4.1.2`
- @wordpress/icons to `4.0.3`
- @wordpress/interface to `3.1.12`
- @wordpress/keyboard-shortcuts to `2.1.7`
- @wordpress/keycodes to `3.1.2`
- @wordpress/list-reusable-blocks to `2.1.11`
- @wordpress/media-utils to `2.1.2`
- @wordpress/notices to `3.1.6`
- @wordpress/nux to `4.1.11`
- @wordpress/plugins to `3.1.6`
- @wordpress/primitives to `2.1.2`
- @wordpress/priority-queue to `2.1.2`
- @wordpress/react-i18n to `2.1.2`
- @wordpress/redux-routine to `4.1.2`
- @wordpress/reusable-blocks to `2.1.17`
- @wordpress/rich-text to `4.1.6`
- @wordpress/scripts to `16.1.5`
- @wordpress/server-side-render to `2.1.12`
- @wordpress/shortcode to `3.1.2`
- @wordpress/url to `3.1.2`
- @wordpress/viewport to `3.1.6`
- @wordpress/warning to `2.1.2`
- @wordpress/widgets to `1.1.19`
- @wordpress/wordcount to `3.1.2`

Props oandregal, juanmaguitar, gziolo, jblz, talldanwp, ribaricplusplus, peterwisoncc, youknowriad, paaljoachim, kreppar, ellatrix, aristath, walbo, ajlende, kevin940726, mamaduka, ntsekouras, toro_unit, mkaz, joen, noisysocks, zieladam, andraganescu, antonvlasenko, terraling, dariak, vladytimy, circlecube, desrosj.
Merges [51719] to the 5.8 branch.
Fixes #54052, #52818.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51721 602fd350-edb4-49c9-b593-d223f7449a82
2021-09-01 19:26:52 +00:00
Jonathan Desrosiers
befb26b4a7 Customize: Add wp-embed-responsive class to body if using widgets block editor
Appends the wp-embed-responsive class to the body if the widgets block editor is enabled. This fixes a bug preventing embeds (e.g. YouTube embeds) appearing in the widgets block editor.

Props walbo, kevin940726, noisysocks.
Merges [51716] to the 5.8 branch.
Fixes #53609.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51720 602fd350-edb4-49c9-b593-d223f7449a82
2021-09-01 19:08:51 +00:00
Jonathan Desrosiers
51bc7e23ca Media: Remove documentation detailing specific edge cases in the image_editor_output_format filter.
In [51422], a few specific edge cases were detailed so that developers using the hook were aware of known pitfalls.

These edge cases have been fixed in 5.8.1 through [51653] and [51704], so the documentation is no longer necessary.

Props azaozz, audrasjb.
Merges [51717] to the 5.8 branch.
Fixes #53955.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51718 602fd350-edb4-49c9-b593-d223f7449a82
2021-09-01 17:30:22 +00:00
Peter Wilson
f44a396ddf Build: Clean css/dist as part of the webpack build step.
Move the cleaning of the `wp-includes/css/dist` folder from `clean:css` to `clean:webpack-assets` to avoid an order of operations issue in which the files were built shortly before been deleted later in the build process.

Follow up to [51689].

Props netweb, ramonopoly, peterwilsoncc.
Merges [51713] to the 5.8 branch.
Fixes #53719.



git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51714 602fd350-edb4-49c9-b593-d223f7449a82
2021-09-01 04:04:44 +00:00
Jonathan Desrosiers
d4c3e5a942 Media: apply the wp_editor_set_quality filter not only when loading an image in the editor but also when saving an converted image, after the mime-type of the output image has changed.
Props mikeschroder, desrosj, azaozz.
Merges [51704] to the 5.8 branch.
Fixes #53667.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51712 602fd350-edb4-49c9-b593-d223f7449a82
2021-09-01 00:43:39 +00:00
Jonathan Desrosiers
06229e47bc Widgets: Pass correct context to get_block_categories() calls.
The `get_block_categories()` function expects either a `WP_Post` or a `WP_Block_Editor_Context` instance as the context argument, not a string.

Follow-up to [50996], [50997].

Props Enchiridion, pbearne, audrasjb, SergeyBiryukov.
Merges [51700] to the 5.8 branch.
Fixes #53757.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51711 602fd350-edb4-49c9-b593-d223f7449a82
2021-09-01 00:33:28 +00:00
Jonathan Desrosiers
f2293e968c Widgets: Show title and media select fields in Accessibility Mode.
This updates the Custom HTML and Media widgets to display the correct fields when adding or editing a widget when using accessibility mode through the Classic Widgets experience.

Follow up to [49973].

Props mark-k, sabernhardt, alexstine, circlecube, audrasjb.
Merges [51701] to the 5.8 branch.
Fixes #53641.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51710 602fd350-edb4-49c9-b593-d223f7449a82
2021-09-01 00:28:29 +00:00
Jonathan Desrosiers
b45f595aab Media: fix showing of the "Filter Media" filds when replacing an image from the media modal.
Props mhuntdesign, sabernhardt, azaozz.
Merges [51703] to the 5.8 branch.
Fixes #53833.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51708 602fd350-edb4-49c9-b593-d223f7449a82
2021-09-01 00:13:41 +00:00
Jonathan Desrosiers
2562fb4a6e Coding Standards: Apply some minor alignment fixes.
These are updates caused by running `composer format`.

Follow up to [51653].

Partially merges [51693] to the 5.8 branch.
See #53668.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51707 602fd350-edb4-49c9-b593-d223f7449a82
2021-09-01 00:10:18 +00:00
Jonathan Desrosiers
bd547a3218 Media: Fix wp_unique_filename() to check for name collisions with all alternate file names when an image may be converted after uploading. This includes possible collinions with pre-existing images whose sub-sizes/thumbnails are regenerated.
Props ianmjones, azaozz.
Merges [51653] to the 5.8 branch.
Fixes #53668.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51706 602fd350-edb4-49c9-b593-d223f7449a82
2021-08-31 23:56:11 +00:00
Jonathan Desrosiers
f5de449949 Editor: Conditionally load registered styles for block variations
In WordPress 5.8 we added the ability to only load styles for blocks when these blocks are rendered. However, these optimizations left out block-styles that get added using the register_block_style() function/API.

Props aristath, gziolo.
Merges [51471] to the 5.8 branch.
Fixes #53616.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51696 602fd350-edb4-49c9-b593-d223f7449a82
2021-08-30 15:36:31 +00:00
Jonathan Desrosiers
bb7645ddb9 Filesystem API: Make sure to only call fread() on non-empty files in PclZip::privAddFile().
This avoids a fatal error on PHP 8 caused by passing a zero value to `fread()` as the `$length` argument, which must be greater than zero.

This commit also amends the previous solution for similar issues elsewhere in the file to ensure consistent type for string values, instead of changing the type from `string` to `bool` when trying to read from an empty file.

Follow-up to [50355].

Props DavidAnderson, jrf, SergeyBiryukov.
Merges [51686] to the 5.8 branch.
Fixes #54036.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51694 602fd350-edb4-49c9-b593-d223f7449a82
2021-08-30 14:27:48 +00:00
Jonathan Desrosiers
9d36011c0c Build: Remove css/dist in grunt clean command.
Modify the `grunt clean:css` command to include the folder `wp-includes/css/dist` to ensure legacy files do not remain if the built files are removed/relocated.

Props desrosj, netweb., peterwilsoncc.
Merges [51689] to the 5.8 branch.
Fixes #53719.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51691 602fd350-edb4-49c9-b593-d223f7449a82
2021-08-30 13:39:59 +00:00
Jonathan Desrosiers
851e023fb7 Menus: Save display locations for new menus.
Fixes a bug preventing the locations saving when creating a new menu. Introduced in [50938].

Props dlh, andraganescu, mukesh27, desrosj, peterwilsoncc.
Merges [51688] to the 5.8 branch.
Fixes #53877.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51690 602fd350-edb4-49c9-b593-d223f7449a82
2021-08-30 13:38:26 +00:00
Peter Wilson
c617db4676 Customize: Prevent collapsing expanded panel/section/control when Esc is pressed on a block editor instance.
This ensures that the current panel is not collapsed when hitting `Esc` with the focus on the widget block editor.

Follow-up to [37347], [39120].

Props gwwar, dlh, SergeyBiryukov.
Merges [51682,51683] to the 5.8 branch.
Fixes #54030.


git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51687 602fd350-edb4-49c9-b593-d223f7449a82
2021-08-30 03:29:25 +00:00
Jonathan Desrosiers
b77313d258 Editor: Ensure block attribute serialization in PHP matches the JavaScript equivalent.
The `serializeAttributes()` function in JavaScript uses `JSON.stringify`, which does not encode slashes and unicode characters by default. This resulted in the PHP serialization through `json_encode()` producing different results.

This also switches from `json_encode()` to `wp_json_encode()` to prevent failures when any non UTF-8 characters are included.

Props kevinfodness, SergeyBiryukov, timothyblynjacobs.
Merges [51674] to the 5.8 branch.
Fixes #53936.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51681 602fd350-edb4-49c9-b593-d223f7449a82
2021-08-27 19:08:21 +00:00
Jonathan Desrosiers
cc3fde44f1 Build/Test Tools: Use list format when defining environment variables in Docker compose file.
This is the correct formatting detailed in the Docker `compose` documentation examples and helps to avoid ambiguities in the yaml parser when values that may cause warnings.

Props pbrearne, ocean90, johnbillion, desrosj.
Merges [51673] to the 5.8 branch.
Fixes #53820.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51680 602fd350-edb4-49c9-b593-d223f7449a82
2021-08-27 19:06:32 +00:00
Jonathan Desrosiers
4eca4d346c Editor: Replace the remaining references to wp.editor with wp.oldEditor.
Props zieladam, azaozz.
Merges [51649] to the 5.8 branch.
Fixes #53762.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51656 602fd350-edb4-49c9-b593-d223f7449a82
2021-08-25 18:47:22 +00:00
Jonathan Desrosiers
bcc43ad1c6 Media: Increase number of media items displayed per page.
Increase the number of media items displayed per page from 40 to 80 to improve the experience for users navigating the library on sites with a large quantity of media in the library.

Props AlGala, antpb, hellofromTonya, joedolson, SergeyBiryukov, wb1234, peterwilsoncc.
Merges [51632] to the 5.8 branch.
Fixes #53827.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51643 602fd350-edb4-49c9-b593-d223f7449a82
2021-08-19 15:00:47 +00:00
Jonathan Desrosiers
f3711d20a3 Media: Fix layout of media library modal on narrow screens.
Reduces the right margin of the media library modal on small and medium width screens to remove excess white-space. On very narrow screens this was preventing the media icons from displaying.

Props andraganescu, desrosj, joedolson, moch11, mukesh27, sabernhardt, SergeyBiryukov, zieladam, peterwilsoncc.
Merges [51631] to the 5.8 branch.
Fixes #53679.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51642 602fd350-edb4-49c9-b593-d223f7449a82
2021-08-19 14:59:08 +00:00
Jonathan Desrosiers
b4d3553217 Customize: Hide native control on background position field.
Hide the browser's native radio button on the custom background position selector in the Customizer and the legacy background screen. This fixes an issue causing both to display.

Props mukesh27, ravipatel, sabernhardt, walbo, peterwilsoncc.
Merges [51637] to the 5.8 branch.
Fixes #53803.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51640 602fd350-edb4-49c9-b593-d223f7449a82
2021-08-19 13:45:18 +00:00
Jonathan Desrosiers
592a108658 Docs: Fix typo in the get_block_editor_settings() description.
Follow-up to [50776].

Props tmatsuur, pbearne, SergeyBiryukov.
Merges [51611] to the 5.8 branch.
Fixes #53922.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51621 602fd350-edb4-49c9-b593-d223f7449a82
2021-08-16 18:41:12 +00:00
Jonathan Desrosiers
678385cce9 Editor: Preserve the original template keys when preparing a list of page templates.
Previously, the original "404" template key was lost when "Default template" is merged into the available templates array, as the `array_merge()` function renumbers numeric keys. Later, when we merge templates on the client side, this caused duplicate "404" templates to appear in the dropdown.

By replacing the `array_merge()` call with `array_replace()`, we make sure to keep the original numeric keys.

Props Mamaduka, Toro_Unit, youknowriad, SergeyBiryukov.
Merges [51595] to the 5.8 branch.
Fixes #53898.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51620 602fd350-edb4-49c9-b593-d223f7449a82
2021-08-16 18:39:15 +00:00
Jonathan Desrosiers
34b5ab7802 Menus: Hide bulk-select on new menu page.
Prevent the bulk-select option from displaying when adding a new menu. This also prevents the option from displaying when an administrator first visits the menu page and no menus are set.

Props dlh, sabernhardt, peterwilsoncc.
Merges [51539] to the 5.8 branch.
Fixes #53654.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51596 602fd350-edb4-49c9-b593-d223f7449a82
2021-08-10 19:35:12 +00:00
Jonathan Desrosiers
d0b1ea37b9 Editor: Prevent block-editor JavaScript loading in other editors.
Add a check to `wp_add_iframed_editor_assets_html()` confirming the edit post screen is using the block-editor before including block-editor specific JavaScript. For the classic and other editors the function returns early without any output.

Props swissspidy, desrosj, peterwilsoncc.
Merges [51540] to the 5.8 branch.
Fixes #53696.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51593 602fd350-edb4-49c9-b593-d223f7449a82
2021-08-10 16:33:46 +00:00
Peter Wilson
38747c03e7 Block Editor: Add missing border setting on button block.
This commit fixes a regression on WordPress 5.8 that made the border radius setting on the buttons block disappear.

Props Mamaduka, daisyo, priethor, desrosj, mikeschroder.
Merges [51538] to the 5.8 branch.
Fixes #53697.



git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51547 602fd350-edb4-49c9-b593-d223f7449a82
2021-08-05 00:43:51 +00:00
Peter Wilson
edde5d5538 Upgrade/Install: Avoid creating nonce during installation.
This avoids a "Table `wp_options` doesn't exist" database error when trying to create a nonce for password reset button.

When installing and using database-saved salts, `wp_create_nonce()` causes database errors as `wp_salt()` attempts to insert into the not-yet-created options table. Since authentication is not available during installation, we can safely skip creating a nonce.

Follow-up to [39684], [50129].

Props schlessera, swissspidy, sanketchodavadiya, hellofromTonya, SergeyBiryukov.
Merges [51525] to the 5.8 branch.
Fixes #53830.



git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51546 602fd350-edb4-49c9-b593-d223f7449a82
2021-08-05 00:31:20 +00:00
Jonathan Desrosiers
1285b5e79d Themes: Add "Template Editing" to the list of WordPress theme features.
Follow-up to [meta11158].

Props poena, desrosj, SergeyBiryukov.
Merges [51510] to the 5.8 branch.
Fixes #53556. See #meta5802.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51516 602fd350-edb4-49c9-b593-d223f7449a82
2021-07-30 12:23:15 +00:00
Jonathan Desrosiers
b24f13bc27 I18n: Fix broken loop in WP_Theme_JSON_Resolver
Related issue in Gutenberg: https://github.com/WordPress/gutenberg/issues/33552.

The loop in `WP_Theme_JSON_Resolver` to extract translatable paths was broken, as it contained an immediate and unconditional return. This caused the loop to immediately exit again after the first iteration, thus never actually looping.

Follow-up to [50959].

Props schlessera.
Merges [51472] to the 5.8 branch.
Fixes #53738.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51515 602fd350-edb4-49c9-b593-d223f7449a82
2021-07-30 12:20:38 +00:00
Jonathan Desrosiers
352c89800b Upgrade/Install: Add files for 5.8 to the $_old_files list that were missed.
Follow up to [51133], [51459].

Props WFMattR, audrasjb, ocean90, johnbillion, pbiron.
Merges [51497] to the 5.8 branch.
Fixes #53702.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51509 602fd350-edb4-49c9-b593-d223f7449a82
2021-07-28 13:04:44 +00:00
Jonathan Desrosiers
34a0d72f0d Docs: Correct a comment about WebP constants in wp-includes/compat.php.
Follow-up to [50810], [50814].

Props GaryJ, rtm909, SergeyBiryukov.
Merges [51474] to the 5.8 branch.
Fixes #53680.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51508 602fd350-edb4-49c9-b593-d223f7449a82
2021-07-28 13:03:22 +00:00
Jonathan Desrosiers
b1c76a8760 Media: Check the posts_per_page value in wp_ajax_query_attachments() before using it as a divisor.
This avoids a "Division by zero" PHP warning if a plugin changes the `posts_per_page` value to zero.

Follow-up to [51145].

Props 2linctools, kapilpaul, audrasjb, SergeyBiryukov.
Merges [51485] to the 5.8 branch.
Fixes #53773.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51507 602fd350-edb4-49c9-b593-d223f7449a82
2021-07-28 13:01:32 +00:00
Jonathan Desrosiers
19c46f90c6 Help/About: Add / character to <img> and <source> tags.
While this has no effect on void elements in HTML5, it fixes a minor inconsistency with the rest of core.

Follow-up to [47493], [48834], [50556], [51418].

Props radixweb, ankitmaru, TobiasBg, sabernhardt, audrasjb, SergeyBiryukov.
Merges [51473] to the 5.8 branch.
Fixes #53716.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51506 602fd350-edb4-49c9-b593-d223f7449a82
2021-07-28 12:54:54 +00:00
Jonathan Desrosiers
c04b897bf4 External Libraries: Correct the underscore version used when registering.
The correct version is `1.13.1`.

Follow up to [50650], [50778].

Props david.binda.
Merges [51469] to the 5.8 branch.
Fixes #53713.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51505 602fd350-edb4-49c9-b593-d223f7449a82
2021-07-28 12:53:17 +00:00
Jonathan Desrosiers
1650858394 External Libraries: Correct the jquery-form version used when registering.
The correct version is `4.3.0`.

Follow up to [50546].

Props david.binda.
Merges [51468] to the 5.8 branch.
Fixes #53714.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51504 602fd350-edb4-49c9-b593-d223f7449a82
2021-07-28 12:51:35 +00:00
Jonathan Desrosiers
24e02de014 External Libraries: Correct the hoverIntent version used when registering.
Follow up to [50521].

Props david.binda.
Merges [51467] to the 5.8 branch.
Fixes #53715.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51503 602fd350-edb4-49c9-b593-d223f7449a82
2021-07-28 12:50:15 +00:00
Jonathan Desrosiers
42efde25a6 Build/Test Tools: Remove the check for changes to version-controlled files in the Test Old Branch workflow.
This workflow does not perform a `git checkout` and is only used to dispatch workflows for old branches, so this check is not needed here.

Merges [51498] to the 5.8 branch.
Fixes #53799.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51502 602fd350-edb4-49c9-b593-d223f7449a82
2021-07-28 12:49:05 +00:00
Peter Wilson
af6e6d6d4e Bundled Themes: Version Bump 2010, 2011 and 2012.
Version bump three bundled themes to avoid file not found and fatal errors introduced for child themes during the 5.8 release cycle.

* Twenty Ten: Version 3.5 (fatal error & 404)
* Twenty Eleven: Version 3.9 (404)
* Twenty Twelve: Version 3.5 (404)

These updates will be released mid 5.8.1 cycle due to the severity of the issues.

Follow up to [51482,51483].

Props dd32, peterwilsoncc.
Merges [51486] to the 5.8 branch.
Fixes #53777.



git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51489 602fd350-edb4-49c9-b593-d223f7449a82
2021-07-26 03:25:25 +00:00
Peter Wilson
e51fb6767d Bundled Themes: Use correct path for loading images in block patterns.
By using `get_template_directory_uri()` instead of `get_stylesheet_directory_uri()`, we make sure to include the images from the parent theme.

This avoids displaying missing images in block patterns when using a child theme of Twenty Ten, Twenty Eleven, or Twenty Twelve.

Follow-up to [51033], [51103], [51106].

Props audrasjb, SergeyBiryukov.
Merges [51483] to the 5.8 branch.
Fixes #53769.



git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51488 602fd350-edb4-49c9-b593-d223f7449a82
2021-07-26 03:23:02 +00:00
Peter Wilson
3e43e0178a Twenty Ten: Use correct path for loading block patterns.
By using `get_template_directory()` instead of `get_stylesheet_directory()`, we make sure to include the `block-patterns.php` file from the parent theme.

This avoids a PHP fatal error when using a child theme of Twenty Ten.

Follow-up to [51106].

Props ryelle, sabernhardt, loranrendel, SergeyBiryukov.
Merges [51482] to the 5.8 branch.
Fixes #53752.


git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51487 602fd350-edb4-49c9-b593-d223f7449a82
2021-07-26 03:19:32 +00:00
Jonathan Desrosiers
a9b0ba25a5 Post WordPress 5.8 version bump.
The 5.8 branch is now 5.8.1-alpha.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51466 602fd350-edb4-49c9-b593-d223f7449a82
2021-07-20 17:47:02 +00:00
Jonathan Desrosiers
1cd75b18d4 WordPress 5.8.
git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51464 602fd350-edb4-49c9-b593-d223f7449a82
2021-07-20 16:05:17 +00:00
Peter Wilson
ac52ad258e Upgrade/Install: Add additional files to $_old_files for 5.8.
Follow up to [51134].

Props desrosj.
Merges [51459] to the 5.8 branch.
Fixes #53367.



git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51460 602fd350-edb4-49c9-b593-d223f7449a82
2021-07-19 01:26:13 +00:00