forked from WordPress/WordPress
-
Notifications
You must be signed in to change notification settings - Fork 0
Update #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
tu-vu-duy
wants to merge
10,000
commits into
focusjs:master
Choose a base branch
from
WordPress:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Update #1
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…) to preserve CSS cascade. This ensures that on-demand block styles are inserted right after the `wp-block-library` inline style whereas other stylesheets not related to blocks are appended to the end of the `HEAD`. This helps ensure the expected cascade is preserved. If no `wp-block-library` inline style is present, then all styles get appended to the `HEAD` regardless. The handling of the CSS placeholder comment added to the `wp-block-library` inline style is also improved. It is now inserted later to ensure the inline style is printed. Additionally, when the CSS placeholder comment is removed from the `wp-block-library` inline style, the entire `STYLE` tag is now removed if there are no styles left (aside from the `sourceURL` comment). Lastly, the use of the HTML Tag Processor is significantly improved to leverage `WP_HTML_Text_Replacement`. Developed in WordPress/wordpress-develop#10436 Follow-up to [61008]. Props westonruter, peterwilsoncc, dmsnell. Fixes #64099. Built from https://develop.svn.wordpress.org/trunk@61174 git-svn-id: http://core.svn.wordpress.org/trunk@60510 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Adds a test for name spacing custom blocks in layout classnames. Props rishabhwp, wildworks, isabel_brison. Fixes #63839. Built from https://develop.svn.wordpress.org/trunk@61175 git-svn-id: http://core.svn.wordpress.org/trunk@60511 1a063a9b-81f0-0310-95a4-ce76da25c4cd
… of loading strategy and fetchpriority. This addresses a performance issue in the recursive `WP_Scripts::get_highest_fetchpriority_with_dependents()` and `WP_Scripts::filter_eligible_strategies()` methods for redundant processing of shared dependencies in complex dependency graphs. To fix this, a `$stored_results` param is introduced which is passed by reference; this variable contains a cache of the calculated results for all scripts handles, so that subsequent calls for the same handle can return the cached value instead of re-computing it. Developed in WordPress/wordpress-develop#10459 Follow-up to [60704], [60931], [56033]. Props ciobanucatalin, b1ink0, westonruter, mukesh27. See #61734, #12009. Fixes #64194. Built from https://develop.svn.wordpress.org/trunk@61176 git-svn-id: http://core.svn.wordpress.org/trunk@60512 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Changes can be found at https://github.com/WordPress/gutenberg/commits/wp/6.9/. Developed in WordPress/wordpress-develop#10486. See https://make.wordpress.org/core/handbook/about/release-cycle/block-editor-release-process-for-major-releases/#package-updates-and-core-patches. Fixes #64213. Props priethor. Built from https://develop.svn.wordpress.org/trunk@61177 git-svn-id: http://core.svn.wordpress.org/trunk@60513 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit reverts the PHP changes that were made to support the template activation feature. The UI was already reverted through the packages sync in [61177] (Gutenberg PR: WordPress/gutenberg#73025). Developed in WordPress/wordpress-develop#10473. Fixes #64214. Props ellatrix, t-hamano, mcsf, ramonjd. Built from https://develop.svn.wordpress.org/trunk@61178 git-svn-id: http://core.svn.wordpress.org/trunk@60514 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Fix an issue where new notes did not trigger a notification because they are submitted via the REST API. Ensures REST API submissions (for notes) trigger the post author notification. Leverage existing comment notification infrastructure. Developed in WordPress/wordpress-develop#10472. Fixes #64204. Props adamsilverstein, mamaduka, peterwilsoncc, ellatrix, wildworks, mukesh27, desrosj, annezazu, jeffpaul. Built from https://develop.svn.wordpress.org/trunk@61179 git-svn-id: http://core.svn.wordpress.org/trunk@60515 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This re-adds some WordPress specific modifications to the Twemoji library that were accidentally removed in [57626] and [61134]. Unprops desrosj. Props dd32, paulkevan, ellatrix. See #64184. Built from https://develop.svn.wordpress.org/trunk@61180 git-svn-id: http://core.svn.wordpress.org/trunk@60516 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Built from https://develop.svn.wordpress.org/trunk@61181 git-svn-id: http://core.svn.wordpress.org/trunk@60517 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Built from https://develop.svn.wordpress.org/trunk@61182 git-svn-id: http://core.svn.wordpress.org/trunk@60518 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Fix an issue where adding comment_type=note as a query parameter to the wp-admin/edit-comments.php page would unexpectedly cause notes to show. Notes are different from comments - prevent them from showing on the comment list table. Props adamsilverstein, desros, soyebsalar01j. Fixes #64198. Built from https://develop.svn.wordpress.org/trunk@61183 git-svn-id: http://core.svn.wordpress.org/trunk@60519 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Yjs was bundled by accident in the `core-data` package, so we had to ignore the source map verification in an earlier package sync ([61009]). This can now be restored because the issue was fixed in WordPress/gutenberg#72503. Fixes #64120. Built from https://develop.svn.wordpress.org/trunk@61184 git-svn-id: http://core.svn.wordpress.org/trunk@60520 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Includes: * Converting data provider methods to `static` for a slight performance improvement. * Correcting annotations for consistency. Follow-up to [53033], [53125], [54161]. Props mukesh27, SergeyBiryukov. See #63167. Built from https://develop.svn.wordpress.org/trunk@61185 git-svn-id: http://core.svn.wordpress.org/trunk@60521 1a063a9b-81f0-0310-95a4-ce76da25c4cd
…ry::register()`. Follow-up to [59760]. Props Rahmohn, mukesh27, SergeyBiryukov. See #63167. Built from https://develop.svn.wordpress.org/trunk@61186 git-svn-id: http://core.svn.wordpress.org/trunk@60522 1a063a9b-81f0-0310-95a4-ce76da25c4cd
…ts screen. Per the [https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/#naming-conventions Naming Conventions]: > Don’t abbreviate variable names unnecessarily; let the code be unambiguous and self-documenting. This commit includes renaming of the following variables: * `$sbname` to `$sidebar_name`. * `$sbvalue` to `$sidebar_data`. * `$j` to `$widget_count`. * `$i` to `$sidebar_index`. * `$sb` to `$sidebar`. * `$key` to `$sidebar_id`. Follow-up to [10912], [11009], [11427], [26285], [50997]. Props costdev, mukesh27. See #63168. Built from https://develop.svn.wordpress.org/trunk@61187 git-svn-id: http://core.svn.wordpress.org/trunk@60523 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Clarifies how long authentication cookies are set for when setting the `$remember` parameter. Props johnbillion, khoipro, rollybueno, shailu25, siliconforks, wildworks, zodiac1978. Fixes #63230. Built from https://develop.svn.wordpress.org/trunk@61188 git-svn-id: http://core.svn.wordpress.org/trunk@60524 1a063a9b-81f0-0310-95a4-ce76da25c4cd
… editor. This ensures that the font used on the frontend is also used in the block editor. Props rishabhwp, shailu25, sabernhardt, jobata, gulamdastgir04, oglekler, nidhidhandhukiya, Maia12345, audrasjb. Fixes #63798. Built from https://develop.svn.wordpress.org/trunk@61189 git-svn-id: http://core.svn.wordpress.org/trunk@60525 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Fix an issue where block-level presets do not work correctly when default presets are disabled and the slug matches a default preset. Props aaronrobertshaw, bph, ramonopoly, wildworks. Fixes #64195. Built from https://develop.svn.wordpress.org/trunk@61190 git-svn-id: http://core.svn.wordpress.org/trunk@60526 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This avoids using multisite-specific tables and columns in `WP_Date_Query::validate_column()` when on a non-multisite install. Attempting to use `$wpdb->blogs` as an array index when `null` on a non-multisite install causes a deprecation notice in PHP 8.5. This also updates the multisite table alias in `wpdb` to make it clear they could be `null`. Developed in WordPress/wordpress-develop#10498 Follow-up to [60904], [60809], [37477]. Props westonruter, desrosj. See #63061. Fixes #63957. Built from https://develop.svn.wordpress.org/trunk@61191 git-svn-id: http://core.svn.wordpress.org/trunk@60527 1a063a9b-81f0-0310-95a4-ce76da25c4cd
…t set during initial iteration. Follow-up to [60643]. Props westonruter, mindctrl. See #56499. Fixes #64223. Built from https://develop.svn.wordpress.org/trunk@61192 git-svn-id: http://core.svn.wordpress.org/trunk@60528 1a063a9b-81f0-0310-95a4-ce76da25c4cd
The changes in [60942] aimed to add an indicator next to the default date and time formats for the site’s locale in General Settings. However, the changes do not take into account the fact that a user may have a different language than the site’s default selected as their preference. Props swissspidy, johnbillion, SergeyBiryukov, pbearne, desrosj, wildworks. See #64102. Built from https://develop.svn.wordpress.org/trunk@61193 git-svn-id: http://core.svn.wordpress.org/trunk@60529 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Updates the endpoint for Twemoji images to use those released in 17.0.2, following an upstream minor release optimizing the SVG images. Modifies the build script to pull the image file names from the `gh-pages`/deploy branch of Twemoji upon the advice of their contributors. Props peterwilsoncc, paulkevan, wildworks, desrosj. Fixes #64184. Built from https://develop.svn.wordpress.org/trunk@61194 git-svn-id: http://core.svn.wordpress.org/trunk@60530 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Note that the `return` query parameter is not yet functional in the Site Editor. See [WordPress/gutenberg#47934 Gutenberg#47934]. Follow-up to [52341], [52346], [52353], [52802]. Props ninomiho, mcsf, dhruval04, praful2111, mlaetitia1986. See #54578. Fixes #64159. Built from https://develop.svn.wordpress.org/trunk@61195 git-svn-id: http://core.svn.wordpress.org/trunk@60531 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This ensures that the presence of a self-signed certificate from a MySQL/MariaDB container will not cause `db` WP-CLI commands run using `env:cli` in the local development environments to fail. Follow up to [60735]. Props westonruter, mukesh27. Fixes #64128. See #63876. Built from https://develop.svn.wordpress.org/trunk@61196 git-svn-id: http://core.svn.wordpress.org/trunk@60532 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Fix for fatal errors caused by incorrect closing tags in HTML, such as `</br>`. In these cases, the `get_attribute_names_with_prefix` method of the `WP_HTML_Tag_Processor` returns `null`, and the Interactivity API was not handling this situation correctly. Props hugosolar, jonsurrell, darerodz. Fixes #63891. Built from https://develop.svn.wordpress.org/trunk@61197 git-svn-id: http://core.svn.wordpress.org/trunk@60533 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Follow up to [61108]. Change type handling to ensure that falsey string values like `0` are correctly handled. Improves readability of underlying code by consolidating type checks and passing resulting array to the `wp_title_parts` filter. Props tobiasbg, sabernhardt, sirlouen, wildworks, joedolson, mukesh27. Fixes #61352. Built from https://develop.svn.wordpress.org/trunk@61198 git-svn-id: http://core.svn.wordpress.org/trunk@60534 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Code maintenance follow up to r61179. Move `wp_new_comment_via_rest_notify_postauthor` callback from REST API Comments controller to comment.php. Add default to `wp_notes_notify` for multisite compatibility. Props adamsilverstein, justlevine, mukesh27, mamaduka, peterwilsoncc, desros. See #64204. Built from https://develop.svn.wordpress.org/trunk@61199 git-svn-id: http://core.svn.wordpress.org/trunk@60535 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Per the [https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/#naming-conventions Naming Conventions]: > Don’t abbreviate variable names unnecessarily; let the code be unambiguous and self-documenting. This commit includes renaming of the following variables: * `$i` to `$submenu_index`. * `$cap` to `$capability`. * `$tax` to `$taxonomy`. * Several `$awaiting_mod_*` to `$awaiting_moderation_*`. * Several `$ptype_*` to `$post_type_*`. * `$types` to `$post_types`. * `$appearance_cap` to `$appearance_capability`. Follow-up to [12597], [14654], [21199], [23871], [33723], [33867]. Props costdev, SergeyBiryukov. See #63168. Built from https://develop.svn.wordpress.org/trunk@61200 git-svn-id: http://core.svn.wordpress.org/trunk@60536 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This improves how `wp_mail()` handles `Content-Type` headers for multipart messages, preventing cases where the header could be duplicated. Developed in WordPress/wordpress-develop#9500 Props SirLouen, gitlost, rmccue, westi, MattyRob, bgermann, nacin, SergeyBiryukov, dd32, MikeHansenMe, Kleor, kitchin, JeffMatson, abcd95, westonruter, christinecooper, JohnVieth, dawidadach, imokweb, ayeshrajans, lakshyajeet, tusharbharti, sajjad67. Fixes #15448. Built from https://develop.svn.wordpress.org/trunk@61201 git-svn-id: http://core.svn.wordpress.org/trunk@60537 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Because `WordPress/wordpress-develop` is a mirror, the only way to contribute to WordPress on GitHub is by forking the repository (even when a contributor has write access as a Core Committer). This updates the “Getting Started” section to make this more clear. The section about how to contribute using GitHub Codespaces is also being removed since this has been broken for some time (see #57896). This section can be reintroduced once the underlying tooling is fixed. Props pbearne, desrosj, westonruter, wildworks, peterwilsoncc. Fixes #64100. See #57896. Built from https://develop.svn.wordpress.org/trunk@61202 git-svn-id: http://core.svn.wordpress.org/trunk@60538 1a063a9b-81f0-0310-95a4-ce76da25c4cd
The `cd wordpress-develop` step is now mentioned for both approaches for creating a fork and cloning listed above. Follow up to [61202]. Props pbearne, desrosj, westonruter, wildworks, peterwilsoncc. See #64100. Built from https://develop.svn.wordpress.org/trunk@61203 git-svn-id: http://core.svn.wordpress.org/trunk@60539 1a063a9b-81f0-0310-95a4-ce76da25c4cd
…)` test. Follow-up to [61336]. See #64224. Built from https://develop.svn.wordpress.org/trunk@61462 git-svn-id: http://core.svn.wordpress.org/trunk@60774 1a063a9b-81f0-0310-95a4-ce76da25c4cd
… with `if`/`else` statements. Developed in WordPress/wordpress-develop#10711 Follow-up to [61457], [61456], [61455], [61454], [61453], [61445], [61444], [61443], [61442], [61436], [61435], [61434], [61403], [61433], [61432], [61431], [61430], [61429], [61424], [61404], [61403]. See #58874, #63430. Built from https://develop.svn.wordpress.org/trunk@61463 git-svn-id: http://core.svn.wordpress.org/trunk@60775 1a063a9b-81f0-0310-95a4-ce76da25c4cd
…()` ternaries. These had been missed previously due to additional parentheses around the `isset()` expressions. Developed in WordPress/wordpress-develop#10704 Follow-up to [61463], [61457], [61456], [61455], [61454], [61453], [61445], [61444], [61443], [61442], [61436], [61435], [61434], [61403], [61433], [61432], [61431], [61430], [61429], [61424], [61404], [61403]. Props soean. See #58874, #63430. Built from https://develop.svn.wordpress.org/trunk@61464 git-svn-id: http://core.svn.wordpress.org/trunk@60776 1a063a9b-81f0-0310-95a4-ce76da25c4cd
… in `wp_setup_nav_menu_item()`. The `get_post_states()` function is also hardened to short-circuit in case a non-`WP_Post` is passed. A test is added to verify this. Developed in WordPress/wordpress-develop#10706 Follow-up to [47211]. Props apedog, josephscott, joemcgill, westonruter. See #49374. Fixes #58932. Built from https://develop.svn.wordpress.org/trunk@61465 git-svn-id: http://core.svn.wordpress.org/trunk@60777 1a063a9b-81f0-0310-95a4-ce76da25c4cd
…s_active_widget()`. This avoids a possible PHP warning due to an undefined array key. Developed in WordPress/wordpress-develop#10710 Follow-up to [11090], [7080]. Props sageth, josephscott, Ipstenu, mindctrl, westonruter. See #8441, #6023. Fixes #57518. Built from https://develop.svn.wordpress.org/trunk@61466 git-svn-id: http://core.svn.wordpress.org/trunk@60778 1a063a9b-81f0-0310-95a4-ce76da25c4cd
`wp_kses_hair()` is built around an impressive state machine for parsing the span of text following an HTML tag name and the tag’s closing `>` into a structured representation of the attributes. Unfortunately that parsing code doesn’t comply with the HTML Living Standard and is prone to mis-parsing attributes, particularly in the presence of malformed inputs. This patch replaces the existing state machine with the spec-compliant parsing from the HTML API. With a comprehensive test suite covering attribute parsing, the same reliability the Tag Processor affords will be applied to `wp_kses_hair()`, giving new guarantees not previously available in Core: - All attribute values are reported fully-normalized, where character references are decoded and then re-encoded in a predictable manner. Only the “big five” syntax characters (“&<>'"”) will remain, and in their named forms. - All `whole` values are fully normalized and presented either as boolean attributes without a value, or with double-quoted attribute values. - All attributes and their values will be properly parsed according to how a browser would parse them, bringing agreement between the server and user agents. Developed in WordPress/wordpress-develop#9248 Discussed in https://core.trac.wordpress.org/ticket/63724 Props adamziel, dmsnell, jonsurrell, jorbin, westonruter. Fixes #63724. Built from https://develop.svn.wordpress.org/trunk@61467 git-svn-id: http://core.svn.wordpress.org/trunk@60779 1a063a9b-81f0-0310-95a4-ce76da25c4cd
The latest version: * Includes a fix for `sendmail` parameter problems in WordPress. * Reduces memory consumption when sending large attachments. References: * [https://github.com/PHPMailer/PHPMailer/releases/tag/v7.0.2 PHPMailer 7.0.2 release notes] * [PHPMailer/PHPMailer@v7.0.0...v7.0.2 Full list of changes in PHPMailer 7.0.2] Follow-up to [54937], [55557], [56484], [57137], [59246], [59481], [60623], [60813], [60888], [61249]. Props SirLouen, robinvandervliet, desrosj, siliconforks, digitalblanket, studiomondiale, jorbin, westonruter, dmsnell, zoe20, Monarobase, amanandhishoe, SergeyBiyrukov. Fixes #64491. See #64368. Built from https://develop.svn.wordpress.org/trunk@61468 git-svn-id: http://core.svn.wordpress.org/trunk@60780 1a063a9b-81f0-0310-95a4-ce76da25c4cd
… link instead of JavaScript. * The skip link now works when JavaScript is turned off. * By removing the script, the amount of JavaScript sent to the client is reduced for a very marginal performance improvement. * A new `wp-block-template-skip-link` stylesheet is registered, with minification and `path` data for inlining. * The CSS for the skip link now has an RTL version generated, although it is not yet served when the styles are inlined. See #61625. * The `wp_enqueue_block_template_skip_link()` function now exclusively enqueues the stylesheet since the script is removed. * For backwards-compatibility, the skip link will continue to be omitted if `the_block_template_skip_link()` is unhooked from the `wp_footer` action or `wp_enqueue_block_template_skip_link()` is unhooked from `wp_enqueue_scripts`. Developed in WordPress/wordpress-develop#10676 Follow-up to [56932], [51003]. Props rutviksavsani, westonruter, dmsnell, whiteshadow01, Slieptsov. See #59505, #53176. Fixes #64361. Built from https://develop.svn.wordpress.org/trunk@61469 git-svn-id: http://core.svn.wordpress.org/trunk@60781 1a063a9b-81f0-0310-95a4-ce76da25c4cd
…ator. Developed in WordPress/wordpress-develop#10703 Follow-up to [61464], [61463], [61457], [61456], [61455], [61454], [61453], [61445], [61444], [61443], [61442], [61436], [61435], [61434], [61403], [61433], [61432], [61431], [61430], [61429], [61424], [61404], [61403]. Props soean, westonruter, mukesh27. See #58874. Fixes #64488. Built from https://develop.svn.wordpress.org/trunk@61470 git-svn-id: http://core.svn.wordpress.org/trunk@60782 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Follow-up to [56300]. Props sabernhardt, flixos90, luisherranz, gautam23, huzaifaalmesbah, mukesh27, r1k0, SergeyBiryukov. Fixes #60111. Built from https://develop.svn.wordpress.org/trunk@61471 git-svn-id: http://core.svn.wordpress.org/trunk@60783 1a063a9b-81f0-0310-95a4-ce76da25c4cd
The function was removed in [61438] but should have been deprecated instead of removed outright, per WordPress backward compatibility policy. Hot reloading is not used anymore in the latest Gutenberg build tool. Props peterwilsoncc, westonruter. See #64393. Built from https://develop.svn.wordpress.org/trunk@61472 git-svn-id: http://core.svn.wordpress.org/trunk@60784 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Enable Global Styles functionality in classic WordPress themes, allowing features like the Font Library to work without requiring a theme.json file. This change: - Removes restrictions that prevented classic themes from accessing Global Styles features. - Enables font functionality in classic themes through the Font Library. - Fixes Fonts menu not appearing in classic themes by changing its submenu index to avoid collision with Widgets. Props youknowriad, isabel_brison, ramonopoly. Fixes #64408. Built from https://develop.svn.wordpress.org/trunk@61473 git-svn-id: http://core.svn.wordpress.org/trunk@60785 1a063a9b-81f0-0310-95a4-ce76da25c4cd
…on logic. Some replaced instances also fix a bug where the comparison function should have returned `0` as opposed to `1` or `-1` as used in ternaries. This results in a performance improvement. Developed in WordPress/wordpress-develop#10717 Props soean, mukesh27, westonruter. Fixes #64497. Built from https://develop.svn.wordpress.org/trunk@61474 git-svn-id: http://core.svn.wordpress.org/trunk@60786 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This aims to avoid a `JavaScript heap out of memory` fatal error when running `npm run dev`. Follow-up to [25001]. Props SirLouen, desrosj, tusharbharti, ankitkumarshah, SergeyBiryukov. Fixes #63606. Built from https://develop.svn.wordpress.org/trunk@61475 git-svn-id: http://core.svn.wordpress.org/trunk@60787 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Adds `svn:ignore` entries for Gutenberg-generated files that were added to `.gitignore` in [61438]. The following entries were added: * Root directory: `gutenberg` * `src/wp-includes`: `blocks`, `build`, `class-wp-block-parser-block.php`, `class-wp-block-parser-frame.php`, `theme.json` Props peterwilsoncc. See #64393. Built from https://develop.svn.wordpress.org/trunk@61476 git-svn-id: http://core.svn.wordpress.org/trunk@60788 1a063a9b-81f0-0310-95a4-ce76da25c4cd
When setting JavaScript or JSON script tag content, automatically escape sequences like `<script>` and `</script>`. This renders the content safe for HTML. The semantics of any JSON and virtually any JavaScript are preserved. Script type detection follows the HTML standard for identifying JavaScript and JSON script tags. Other script types continue to reject potentially dangerous content. Developed in WordPress/wordpress-develop#10635. Props jonsurrell, dmsnell, westonruter. Fixes #64419. See #63851, #51159. Built from https://develop.svn.wordpress.org/trunk@61477 git-svn-id: http://core.svn.wordpress.org/trunk@60789 1a063a9b-81f0-0310-95a4-ce76da25c4cd
The `assertEqualHTML()` method makes tests resilient to irrelevant syntactic changes in HTML output, focusing on semantic equivalence rather than exact string matching. Developed in WordPress/wordpress-develop#10727. Follow up to [61394], [61391]. Props jonsurrell, cbravobernal. See #64225. Built from https://develop.svn.wordpress.org/trunk@61478 git-svn-id: http://core.svn.wordpress.org/trunk@60790 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Restores the `$is_block_theme` check that was inadvertently removed in [61473]. This ensures that for classic themes, the Customizer's Additional CSS continues to be printed separately via `wp_custom_css_cb()` at priority 101 in `wp_head`, preserving its position at the end of the `<head>` for highest CSS specificity. Follow-up to [61473]. Props westonruter. Fixes #64408. Built from https://develop.svn.wordpress.org/trunk@61479 git-svn-id: http://core.svn.wordpress.org/trunk@60791 1a063a9b-81f0-0310-95a4-ce76da25c4cd
In modern browsers the CSS `content` property provides alt text support for assistive technology in the form `display / alt text`. This introduces support for legacy browsers that do not support the new syntax.
CSS content properties take advantage of the CSS cascade and browsers ignoring values they don't understand by adding duplicate `content` properties in the form:
{{{#!css
content: display;
content: display / alt text;
}}}
Modern browsers will use the second property, legacy browsers will use the first.
Follow-up to [60885] for #63603.
Props acmoifr, joedolson, jorbin, mydesign78, ov3rfly, peterwilsoncc, presskopp, sabernhardt, siliconforks, swissspidy, threadi, wildworks, wolf45.
Fixes #64350.
Built from https://develop.svn.wordpress.org/trunk@61480
git-svn-id: http://core.svn.wordpress.org/trunk@60792 1a063a9b-81f0-0310-95a4-ce76da25c4cd
…n array. This aims to avoid a fatal error if the array was somehow corrupted and contains non-numeric values. Follow-up to [8049]. Props umeshsinghin, azora, sabernhardt, deepakrohilla, narenin, SergeyBiryukov. Fixes #62542. Built from https://develop.svn.wordpress.org/trunk@61481 git-svn-id: http://core.svn.wordpress.org/trunk@60793 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Add tests that verify the behavior of `wp_get_inline_script_tag()` and `wp_get_script_tag()` attribute handling. Developed in WordPress/wordpress-develop#10728. Props jonsurrell, dmsnell. See #64500. Built from https://develop.svn.wordpress.org/trunk@61482 git-svn-id: http://core.svn.wordpress.org/trunk@60794 1a063a9b-81f0-0310-95a4-ce76da25c4cd
…es()`. Follow-up to [61032]. Props hbhalodia. See #64098. Fixes #64503. Built from https://develop.svn.wordpress.org/trunk@61483 git-svn-id: http://core.svn.wordpress.org/trunk@60795 1a063a9b-81f0-0310-95a4-ce76da25c4cd
…`null`. This adds a check that the `$current_screen` global is not only defined, but also has the correct type. Follow-up to [15746]. Props marian1, mayanktripathi32, abcd95, im3dabasia1, SergeyBiryukov. Fixes #62562. Built from https://develop.svn.wordpress.org/trunk@61484 git-svn-id: http://core.svn.wordpress.org/trunk@60796 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Script tags have complicated and unintuitive parsing rules that make them difficult to author correctly. The HTML API automatically escapes script tag contents as necessary and will set attributes correctly. Using the HTML API to generate SCRIPT tags improves safety when working with SCRIPT tags, resolving a class of issues that have manifested repeatedly. Changeset [61418] applied the HTML API to generate style tags in a similar way. Developed in WordPress/wordpress-develop#10639. Props jonsurrell, dmsnell, westonruter. Fixes #64500. See #64419, #40737, #62797, #63851, #51159. Built from https://develop.svn.wordpress.org/trunk@61485 git-svn-id: http://core.svn.wordpress.org/trunk@60797 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Relax Global Styles custom CSS filters to allow arbitrary CSS. Escape HTML characters `<>&` in Global Styles data to prevent it from being mangled by post content filters. The data is JSON encoded and stored in `post_content`. Filters operating on `post_content` expect it to contain HTML. Some KSES filters would otherwise remove essential CSS features like the `<custom-ident>` CSS data type because they appear to be HTML tags. [61418] changed STYLE tag generation to use the HTML API for improved safety. Developed in WordPress/wordpress-develop#10641. Props jonsurrell, dmsnell, westonruter, ramonopoly, oandregal, jorgefilipecosta, sabernhardt, soyebsalar01. See #64418. Built from https://develop.svn.wordpress.org/trunk@61486 git-svn-id: http://core.svn.wordpress.org/trunk@60798 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Restores the `wp_register_development_scripts()` function and associated build infrastructure to enable hot module replacement (HMR) when using `@wordpress/scripts` with the `--hot` flag. The React Refresh scripts were removed in [61438] as part of the Gutenberg build restructuring, but they are still needed for plugin developers using `wp-scripts start --hot` for block development. Props jsnajdr, wildworks, manzoorwanijk. See #64393. Built from https://develop.svn.wordpress.org/trunk@61487 git-svn-id: http://core.svn.wordpress.org/trunk@60799 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This is just an empty commit to unblock the sync. Props aidvu. Built from https://develop.svn.wordpress.org/trunk@61489 git-svn-id: http://core.svn.wordpress.org/trunk@60800 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Follow-up to [49216], [49574]. Props sabernhardt, sagarladani, poena, karmatosed, SergeyBiryukov. Fixes #56748. Built from https://develop.svn.wordpress.org/trunk@61490 git-svn-id: http://core.svn.wordpress.org/trunk@60801 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This changeset enables smooth transitions between the different admin screens. For the admin menu items, distinct view transition names are used to facilitate a simple visual slide effect when the active submenu changes between screens. Props westonruter, mukesh27, joedolson. Fixes #64470. Built from https://develop.svn.wordpress.org/trunk@61491 git-svn-id: http://core.svn.wordpress.org/trunk@60802 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This changeset improves the Gutenberg build integration to simplify the developer workflow and reinstore a flow similar to how package dependencies worked before the Gutenberg checkout-and-build approach was introduced. Key improvements: * Automatic rebuild on ref change: Adds a new `gutenberg:sync` script that stores a hash of the built ref in `.gutenberg-hash` and only rebuilds when the ref changes. * Full integration on `npm install`: Running `npm install` now produces a fully working development environment with Gutenberg assets in `src/`. * Clean Gutenberg checkout: Restores Gutenberg's `package.json` after the build completes. * Stops copying `.js.map` files to `wp-includes/js/dist` since they reference non-existent paths. * Remove package.json files from the build folder. * Avoid closures and use prefixed functions. * Updates build checks to use `jquery.js` instead of `edit-post.js` as the build indicator. Props youknowriad, ellatrix, mcsf, dmsnell, ntsekouras, jorgefilipecosta, tobiasbg, peterwilsoncc. Fixes #64393. Built from https://develop.svn.wordpress.org/trunk@61492 git-svn-id: http://core.svn.wordpress.org/trunk@60803 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.