Commit Graph

37652 Commits

Author SHA1 Message Date
Sergey Biryukov
51a1a54a87 Help/About: Reorder release squad titles for some consistency in translation tools.
Follow-up to [59545].

See #62386.
Built from https://develop.svn.wordpress.org/trunk@59552


git-svn-id: http://core.svn.wordpress.org/trunk@58938 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-21 23:16:24 +00:00
audrasjb
243c0cc59e Login and Registration: Adjust login form margins for better consistency.
This changeset addresses adjusts margins around the login form for visual consistency. The margin above and below the form is now consistently set to 24px, and the margin below the logo has also been adjusted to 24px.

Follow-up to [26072].

Props deeppatel8950, audrasjb, priyank9033, viralsampat, vijaysinh9094, sabernhardt, .
Fixes #61667.



Built from https://develop.svn.wordpress.org/trunk@59551


git-svn-id: http://core.svn.wordpress.org/trunk@58937 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-21 22:39:27 +00:00
audrasjb
8d89d471f0 Media: Fix margin issues on the Media file upload screen.
This changeset fixes an issue in the Media Library where icons or thumbnails of uploaded files were stuck to the border of their container after file upload.

Follow-up to [58279].

Props sukhendu2002, im3dabasia1, sainathpoojary, joedolson.
Fixes #62573.
See #60141.



Built from https://develop.svn.wordpress.org/trunk@59550


git-svn-id: http://core.svn.wordpress.org/trunk@58936 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-21 21:54:27 +00:00
audrasjb
f56f7a1ec6 Docs: Docblock improvements in .
Props shailu25.
Fixes #62730.
See #62281.


Built from https://develop.svn.wordpress.org/trunk@59549


git-svn-id: http://core.svn.wordpress.org/trunk@58935 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-21 17:23:24 +00:00
Sergey Biryukov
48eb68ca1e Docs: Update parameter type hints to include null for post thumbnail functions.
Follow-up to [12320], [12351], [20646], [32618], [34167], [34373], [37915].

Props apermo, jasonsa19.
Fixes #62720.
Built from https://develop.svn.wordpress.org/trunk@59548


git-svn-id: http://core.svn.wordpress.org/trunk@58934 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-20 23:35:23 +00:00
Peter Wilson
1747403b13 Help/About: Add additional release squad titles to credits page.
Introduces translatable strings for additional [https://make.wordpress.org/core/handbook/about/release-cycle/wordpress-release-team-and-focus-leads/ release squad titles].

This is to allow improved acknowledgement of an individual's role in a release squad by enabling the use of these roles in the credits API going forward.

Props audrasjb, desrosj, jorbin, timse201, yogeshbhutkar.
Fixes #62386.


Built from https://develop.svn.wordpress.org/trunk@59545


git-svn-id: http://core.svn.wordpress.org/trunk@58931 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-19 21:56:26 +00:00
Peter Wilson
20621484e8 REST API: Protect against fatal error for post types without format support.
Ignore the `format` parameter introduced in WordPress 6.7 for post types that do not support post formats. This protects against a fatal error being thrown in later version of PHP or a warning in earlier versions of PHP.

Follow up to r59115.

Props dd32, sergeybiryukov, yogeshbhutkar.
Fixes #62646.
See #62014.

Built from https://develop.svn.wordpress.org/trunk@59544


git-svn-id: http://core.svn.wordpress.org/trunk@58930 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-19 21:43:24 +00:00
Bernhard Reiter
13521bce0b Block Hooks: Apply to synced patterns.
Apply Block Hooks to synced patterns (i.e. `core/block` instances).

Props bernhard-reiter, gziolo.
Fixes #62704.
Built from https://develop.svn.wordpress.org/trunk@59543


git-svn-id: http://core.svn.wordpress.org/trunk@58929 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-19 13:26:28 +00:00
Sergey Biryukov
87e7f72397 Docs: Add missing single quote in WP_User_Query::prepare_query() DocBlock.
Follow-up to [38715], [52226].

Props kkmuffme, mukesh27.
Fixes #62714.
Built from https://develop.svn.wordpress.org/trunk@59542


git-svn-id: http://core.svn.wordpress.org/trunk@58928 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-19 10:24:23 +00:00
Sergey Biryukov
4210bfdbb2 Privacy: Replace hardcoded MD5 references in wp_credits_section_list().
The Credits API has been updated to return SHA-256 email hashes.

Follow-up to [59532], [meta14307].

Props haozi.
Fixes #62706, #60638.
Built from https://develop.svn.wordpress.org/trunk@59541


git-svn-id: http://core.svn.wordpress.org/trunk@58927 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-19 03:44:24 +00:00
Peter Wilson
447e58166c External Libraries: Append .1 to react/react-dom versions.
Replaces the `-umd` appendage for the `react` and `react-dom` script versions with `.1`. This it to prevent issues with third party code expecting the version number in the form `/^[\d\.]+$/`.

Updates the version to tests in `Tests_Dependencies_Scripts::test_vendor_script_versions_registered_manually` to include the modified version used for cache busting.

Follow up to [59536], [58775].

Props azaozz, desrosj, peterwilsoncc.
Fixes #62422.



Built from https://develop.svn.wordpress.org/trunk@59540


git-svn-id: http://core.svn.wordpress.org/trunk@58926 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-19 03:09:23 +00:00
desrosj
5cb9ffc5ca External Libraries: Append a string to react/react-dom versions.
In 6.7, [58775] changed the way `react` and `react-dom` are bundled in Core. This commit resulted in some changes to the built files that are distributed in WordPress even though the actual version of the libraries remained the same.

The result can be a blank white screen when trying to edit a post when those two script files are heavily cached. This adds `-umd` to the end of the version number to properly purge caches until the next update to these libraries occurs.

Props levskipg, get_dave, smerriman, jdnd, juanwp22, seanlanglands, robertstaddon.
Fixes 62422.
Built from https://develop.svn.wordpress.org/trunk@59536


git-svn-id: http://core.svn.wordpress.org/trunk@58922 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-18 18:51:25 +00:00
John Blackbourn
dfd4b20ea2 Build/Test Tools: Remove an unnecessary call to svn in a debugging step.
None of the steps in any of the workflows use svn, so this debugging step is unnecessary, and svn has been removed in the ubuntu-24.04 runner which will be rolling out to GitHub Actions imminently.

See #62221

Built from https://develop.svn.wordpress.org/trunk@59534


git-svn-id: http://core.svn.wordpress.org/trunk@58920 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-18 11:31:25 +00:00
Sergey Biryukov
f176b759f8 Coding Standards: Fix WPCS issues in get_avatar_data().
Follow-up to [59532].

See #60638.
Built from https://develop.svn.wordpress.org/trunk@59533


git-svn-id: http://core.svn.wordpress.org/trunk@58919 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-18 00:25:29 +00:00
Sergey Biryukov
d427228024 Privacy: Use SHA-256 hashing algorithm for Gravatar.
This aims to improve privacy by switching to a more secure algorithm, as an MD5 string can be reversed.

Follow-up to [6748], [31107].

Props henry.wright, jucaduca, haozi, desrosj, dd32, SergeyBiryukov.
See #60638.
Built from https://develop.svn.wordpress.org/trunk@59532


git-svn-id: http://core.svn.wordpress.org/trunk@58918 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-17 23:58:26 +00:00
desrosj
469695a82b Build/Test Tools: Document every matrix exclusion.
There should be inline documentation anytime a strategy matrix has an `exclude` combination configured so that contributors have proper context as to why it’s there.

See #62221.
Built from https://develop.svn.wordpress.org/trunk@59531


git-svn-id: http://core.svn.wordpress.org/trunk@58917 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-17 17:22:21 +00:00
desrosj
f9c3f86d5f Build/Test Tools: Update Default Theme devDependencies.
The `devDependencies` for all default themes with `package.json` files (Twenty Nineteen, Twenty Twenty, and Twenty Twenty-One) are now updated to their latest versions with a few exceptions in Twenty Twenty-One:

- Upgrading `stylelint`/`@wordpress/stylelint-config` requires some work to address rule deprecations.
- `@wordpress/eslint-plugin` does not yet support `eslint` 9.x.

Additionally, `npm audit fix` has been run for each theme.
See #62220.
Built from https://develop.svn.wordpress.org/trunk@59530


git-svn-id: http://core.svn.wordpress.org/trunk@58916 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-17 17:00:22 +00:00
desrosj
c647b6061a Build/Test Tools: Allow more control when testing older branches.
This adds an input to the Test Old Branches workflow that allows a specific branch to be specified or `all` to run all old branches.

The default behavior is to only test the currently supported version of WordPress as defined in the `CURRENTLY_SUPPORTED_BRANCH` environment variable.

Follow up to [59520].

See #62221.
Built from https://develop.svn.wordpress.org/trunk@59529


git-svn-id: http://core.svn.wordpress.org/trunk@58915 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-17 16:51:21 +00:00
desrosj
7b6d85e4ac Build/Test Tools: Regularly run the html-api-html5lib-tests.
In [58010], the external test suite from `html5lib` was imported to validate the tree-construction steps in the HTML Processor to ensure that they are behaving according to the HTML specification.

The test group was excluded by default because there are a high number of skipped tests. The number of skipped tests has come down, but the group does not need to be run on every job.

This introduces a new job in the PHPUnit workflow for regularly running these tests on their own using the changes in [59251[.

Props desrosj, jonsurrell, jorbin, dmsnell, costdev, chaion07, engahmeds3ed.
Fixes #61209.
Built from https://develop.svn.wordpress.org/trunk@59528


git-svn-id: http://core.svn.wordpress.org/trunk@58914 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-17 16:40:22 +00:00
desrosj
0e72c10e41 Build/Test Tools: Use MySQL 8.4 as the default.
MySQL 8.4 is the latest LTS.

See #62221.
Built from https://develop.svn.wordpress.org/trunk@59527


git-svn-id: http://core.svn.wordpress.org/trunk@58913 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-17 14:45:22 +00:00
Pascal Birchler
9aa68357b0 Build/Test Tools: Fix version number when downgrading WP in performance tests.
The tagged version on GitHub requires the trailing `.0`, but `wp core update` doesn't accept a trailing zero.

Follow-up to [59525].

See #62148.
Built from https://develop.svn.wordpress.org/trunk@59526


git-svn-id: http://core.svn.wordpress.org/trunk@58912 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-17 13:28:17 +00:00
Pascal Birchler
47a09521ea Build/Test Tools: Use correct tag name for the baseline version.
The tagged version on GitHub requires the trailing `.0`.

See #62148.
Built from https://develop.svn.wordpress.org/trunk@59525


git-svn-id: http://core.svn.wordpress.org/trunk@58911 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-17 12:47:17 +00:00
Pascal Birchler
18a5d4b9be Build/Test Tools: Add Twenty Twenty-Five to the Performance Tests.
Updates the baseline used for the performance tests to 6.7, so that the theme is available in those test runs.

Props joemcgill, flixos90, desrosj, swissspidy.
Fixes #62148.
Built from https://develop.svn.wordpress.org/trunk@59524


git-svn-id: http://core.svn.wordpress.org/trunk@58910 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-17 12:11:19 +00:00
Bernhard Reiter
1bf26605ca Block Hooks: Enable for post content.
Block Hooks were previously only applied to layout elements such as templates, template parts, patterns, and navigation menus -- things that are edited in the Site Editor.

This changeset enables Block Hooks in post content. The parity between frontend and editor is preserved: Blocks inserted by Block Hooks are visible both on the frontend and in the editor, and any customizations made by the user are respected on the frontend.

This is possible thanks to setting the `metadata.ignoredHookedBlocks` attribute on anchor blocks (a technique first introduced in [57594]). For first child and last child insertion into a Post Content block, the corresponding post object's `_wp_ignored_hooked_blocks` post meta is set.

Props bernhard-reiter, gziolo, jonsurrell, karolmanijak, leewillis77.
Fixes #61074.
Built from https://develop.svn.wordpress.org/trunk@59523


git-svn-id: http://core.svn.wordpress.org/trunk@58909 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-17 10:37:22 +00:00
Sergey Biryukov
072c0afc53 Editor: Check get_user_count() instead of get_users() for the locked post notice.
This aims to avoid slowing down the post editing by using a cached value instead of calling `get_users()`, which can be slow when plugins add various filters to all `get_users()` calls, especially with meta value comparisons on large `user_meta` tables.

Follow-up to [24304], [24543], [41829], [53011], [53018].

Props berislav.grgicak, bor0, costdev.
See #55958.
Built from https://develop.svn.wordpress.org/trunk@59522


git-svn-id: http://core.svn.wordpress.org/trunk@58908 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-16 23:51:25 +00:00
desrosj
2b5ee6e41c Build/Test Tools: Update the Codecov GitHub Action.
This updates the `codecov/codecov-action` to from version `4.6.0` to `5.1.1`.

See #62221.
Built from https://develop.svn.wordpress.org/trunk@59521


git-svn-id: http://core.svn.wordpress.org/trunk@58907 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-16 20:06:23 +00:00
desrosj
50aeb23800 Build/Test Tools: Support manual runs for the test old branch workflow.
This is the only workflow that does not currently support manually running.

See #62221.
Built from https://develop.svn.wordpress.org/trunk@59520


git-svn-id: http://core.svn.wordpress.org/trunk@58906 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-16 19:40:27 +00:00
desrosj
4fdd73689f Build/Test Tools: Update slackapi/slack-github-action.
This makes the necessary changes to update the Slack GitHub Action to the latest version, currently `2.0.0`.

Most notably this update provides more control over how attempts re retried when rate limiting is encountered.

Reverts [59209].

See #61701, #62221.
Built from https://develop.svn.wordpress.org/trunk@59519


git-svn-id: http://core.svn.wordpress.org/trunk@58905 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-16 19:29:24 +00:00
Felix Arntz
f7d4ea3ceb Site Health: Remove use of deprecated function from wp_is_https_supported().
Follow up to [56664].

Props peter8nss, debarghyabanerjee, sebastienserre, geekofshire, swissspidy, desrosj.
Fixes #62252.
See #58494.

Built from https://develop.svn.wordpress.org/trunk@59517


git-svn-id: http://core.svn.wordpress.org/trunk@58903 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-16 14:08:24 +00:00
Sergey Biryukov
15f2879461 Tests: Clean up convert_smilies() tests.
Includes:
* Removing redundant `use_smilies` option switches, as it is set to 1 by default.
* Restoring the `$wpsmiliestrans` array before performing assertions, not after.
* Moving most of the `smilies_init()` calls to a `set_up()` method.

Follow-up to [409/tests], [26191], [28717].

See #62278.
Built from https://develop.svn.wordpress.org/trunk@59516


git-svn-id: http://core.svn.wordpress.org/trunk@58902 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-15 23:24:23 +00:00
Sergey Biryukov
57e024a157 Formatting: Check the result of preg_split() in convert_smilies().
This aims to avoid a fatal error from `count()` when `preg_split()` fails on large input.

Includes:
* Optimizing the regular expression used to split the input by tags to avoid unlimited backtracking for better performance.
* Adjusting the function logic for better readability.

Follow-up to [340], [4380], [26191].

Props podpirate, nathkrill, rajinsharwar, dmsnell, bjorsch, q0rban, audrasjb, rupw, Ov3rfly, jorbin, nhrrob, chaion07, mcqueen22, azaozz, narenin, roybellingan, SergeyBiryukov.
See #51019.
Built from https://develop.svn.wordpress.org/trunk@59515


git-svn-id: http://core.svn.wordpress.org/trunk@58901 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-14 23:53:24 +00:00
joedolson
cc3c3bf4e6 Comments: Avoid reverting comment reply when context menu is open.
Fix a bug where a comment reply would be discarded if `esc` was pressed to dismiss the context menu in Safari or Firefox.

Checks whether the contextmenu is open and ignores the `esc` key if it is.

Props yellowafterlife, yogeshbhutkar, joedolson.
Fixes #62346.
Built from https://develop.svn.wordpress.org/trunk@59514


git-svn-id: http://core.svn.wordpress.org/trunk@58900 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-14 01:32:18 +00:00
audrasjb
880bce2ad5 Themes: Replace "Active" wording with "Installed" in the theme install checks page.
When reinstalling a theme by uploading a ZIP file, the wording used in some strings referred to the "active" theme even though it's not the currrently active theme. This changeset replaces these strings to refer to the "installed" theme, which is more accurate.

Follow-up to [52610], [52580].

Props afercia, ankitkumarshah, abcd95, yogeshbhutkar, parthvataliya, sainathpoojary, virgar, gaellebesson, nuryko, guillaumeturpin, maximemeganck, sabrineg.
Fixes #62603.
See #54831, #54770



Built from https://develop.svn.wordpress.org/trunk@59513


git-svn-id: http://core.svn.wordpress.org/trunk@58899 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-13 23:53:17 +00:00
Sergey Biryukov
afde562494 Coding Standards: Use strict comparison in get_blog_id_from_url().
Follow-up to [https://mu.trac.wordpress.org/changeset/1538 mu:1538].

Props debarghyabanerjee.
See #62283.
Built from https://develop.svn.wordpress.org/trunk@59512


git-svn-id: http://core.svn.wordpress.org/trunk@58898 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-13 23:17:17 +00:00
joedolson
e25f6d7e2f Editor: Hide 'Skip to Editor' if editor not supported.
Wrap the classic editor 'Skip to Editor' link in a conditional to prevent it from rendering on post types that do not have editor support.

Props wildworks, parthvataliya, narenin, sainathpoojary, ankitkumarshah, parthvataliya, im3dabasia1.
Fixes #62623.
Built from https://develop.svn.wordpress.org/trunk@59511


git-svn-id: http://core.svn.wordpress.org/trunk@58897 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-13 21:53:15 +00:00
joedolson
ac54a93332 Customize: Remove unnecessary height: 100% on accordion button.
Remove CSS that could occasionally trigger the accordion buttons to be 100% the height of the accordion container.

Props dhewercorus, im3dabasia1, sabernhardt, rvoigt, ghinamt, vishy-moghan, frankbiganski, redkite.
Fixes #62491.
Built from https://develop.svn.wordpress.org/trunk@59510


git-svn-id: http://core.svn.wordpress.org/trunk@58896 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-13 21:10:20 +00:00
desrosj
26335af1ac Build/Test Tools: Update devDependencies.
This updates the following `devDependencies`:

- `dotenv` from `16.4.5` to `16.4.7`
- `dotenv-expand` from `11.0.6` to `12.0.1`
- `postcss` from `8.4.47` to `8.4.49`
- `qunit` from `2.22.0` to `2.23.1`
- `sass` from `1.79.4` to `1.79.6`
- `terser-webpack-plugin` from `5.3.10` to `5.3.11`
- `uglify-js` from `3.17.4` to `3.19.3`
- `uuid` from `9.0.1` to `11.0.3`
- `webpack` from `5.90.2` to `5.97.1`

Additionally, `npm audit fix` has been run.

Follow up to [58585].

See #62220.
Built from https://develop.svn.wordpress.org/trunk@59509


git-svn-id: http://core.svn.wordpress.org/trunk@58895 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-13 19:06:24 +00:00
desrosj
4efa589165 Build/Test Tools: Trim down the upgrade testing matrix.
The upgrade testing workflow is currently at ~978 jobs spawned from the strategy matrix. While it's great to test all possible combinations, GitHub's UI cannot keep up with tracking that number of jobs, often taking 30-45 minutes to accurately report the outcome even though the jobs themselves all complete in under 5 minutes.

This is 2x the total number of concurrent jobs allowed for the entire organization (which creates a backlog and slows everything down even more).

This trims down the number of combinations included in the testing matrices to be a bit more thoughtful following the following methodology:

- The last two releases of WordPress are tested against all PHP and MySQL LTS version combinations and the most recent innovation release.
- The next 6 oldest versions of WordPress are tested against both the oldest and newest releases of PHP currently supported for both PHP 7 & 8 along with the oldest and newest MySQL LTS versions currently supported (no innovation releases).
- For the remaining versions of WordPress receiving security updates, they are only included if the database version was different that the previous major release.
- The oldest version of WordPress receiving security updates should always be tested against the same full list of combinations as the last two releases.

When choosing which MySQL versions to test against:

- Only the most recent innovation release should be included in testing.
- Even though MySQL >= 5.5.5 is currently supported, there are no 5.5.x Docker containers available that work on modern architectures.
- 5.6.x Docker containers are available and work, but 5.6 only accounts for ~2.3% of installs as of 12/6/2024.defaults:
- 5.7.x accounts for ~20% of installs, so this is used below instead.

With these changes, the total number of jobs is reduced by ~58%.

Props johnbillion, mukesh27.
See #62221.
Built from https://develop.svn.wordpress.org/trunk@59508


git-svn-id: http://core.svn.wordpress.org/trunk@58894 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-13 15:34:14 +00:00
desrosj
d3d4603b99 Build/Test Tools: Remove repository specific logic from callable workflows.
Because reusable workflows could be called from any other repository in a variety of contexts, repository specific `if` conditions should not be present.

Instead, this logic should be included in the calling workflows only.

Props johnbillion.
See #62221.
Built from https://develop.svn.wordpress.org/trunk@59507


git-svn-id: http://core.svn.wordpress.org/trunk@58893 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-13 14:59:14 +00:00
Sergey Biryukov
56f776835d Filesystem API: Check PHP_OS_FAMILY instead of php_uname() in PclZip.
The `php_uname()` function can be disabled on some hosts, in which case the call fails.

The `PHP_OS_FAMILY` constant indicates the operating system family PHP was built for, and is available as of PHP 7.2.0.

Reference: [https://www.php.net/manual/en/reserved.constants.php#constant.php-os-family PHP Manual: Predefined Constants: PHP_OS_FAMILY].

Follow-up to [6779], [57985], [58678], [58684].

Props daymobrew, costdev, desrosj.
Fixes #57711.
Built from https://develop.svn.wordpress.org/trunk@59506


git-svn-id: http://core.svn.wordpress.org/trunk@58892 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-12 22:23:16 +00:00
Sergey Biryukov
caaf759d21 Docs: Correct formatting for script module data filter documentation examples.
Follow-up to [58579].

Props jonsurrell.
See #62281.
Built from https://develop.svn.wordpress.org/trunk@59505


git-svn-id: http://core.svn.wordpress.org/trunk@58891 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-11 15:20:18 +00:00
Sergey Biryukov
d1058355a5 Twenty Twenty-Two: Fix PHPCS issues in functions.php.
* Inline comments must end in full stops, exclamation marks, or question marks.
* There must be exactly one blank line after the file comment.

Follow-up to [52081].

Props pitamdey, mukesh27.
Fixes #62648.
Built from https://develop.svn.wordpress.org/trunk@59504


git-svn-id: http://core.svn.wordpress.org/trunk@58890 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-10 23:22:16 +00:00
gziolo
04a6ab1c8d HTML API: Remove nullable from get_breadcrumbs return type
Follow-up [58713]
Props jonsurrell, westonruter, gziolo.
Fixes #62674.


Built from https://develop.svn.wordpress.org/trunk@59503


git-svn-id: http://core.svn.wordpress.org/trunk@58889 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-10 11:41:16 +00:00
gziolo
70af002cdb HTML API: Prevent bookmarks from being set on virtual tokens
Fixes the issue when an HTML_Processor bookmark was set at a virtual token (a node in the resulting document that does not correspond to an HTML token present in the input string), seek behavior was unreliable.

Props jonsurrell, gziolo.
Fixes #62521.



Built from https://develop.svn.wordpress.org/trunk@59502


git-svn-id: http://core.svn.wordpress.org/trunk@58888 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-10 09:13:20 +00:00
Sergey Biryukov
cfb0b131dc REST API: Correct description for the humanized_updated block directory property.
Follow-up to [48242], [51676].

Props mujuonly, mukesh27.
Fixes #62667.
Built from https://develop.svn.wordpress.org/trunk@59501


git-svn-id: http://core.svn.wordpress.org/trunk@58887 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-09 22:45:19 +00:00
gziolo
e8b5d1a702 HTML API: Step past closing HTML, BODY tags
The HTML specification does not close HTML or BODY tags (pop them off the stack of open elements) when their tag closers are encountered. The HTML processor correctly handled this behavior, however it incorrectly "paused" by returning true from the step functions. 

Props jonsurrell, dmsnell, gziolo.
Fixes #62583.


Built from https://develop.svn.wordpress.org/trunk@59500


git-svn-id: http://core.svn.wordpress.org/trunk@58886 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-09 12:44:17 +00:00
isabel_brison
833417c545 Editor: Update docblocks for wp_get_global_stylesheet and WP_Theme_JSON::get_stylesheet.
Updates docblocks to account for new use of the `custom-css` string in their `$types` parameters and adds information to deprecation of `wp_get_global_styles_custom_css`.

Props justlevine, isabel_brison, ramonopoly.
Fixes #62665.

Built from https://develop.svn.wordpress.org/trunk@59499


git-svn-id: http://core.svn.wordpress.org/trunk@58885 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-09 02:55:18 +00:00
Sergey Biryukov
f60edf3667 Coding Standards: Use strict comparison in wp-includes/comment-template.php.
Follow-up to [162], [2685], [4494], [8878], [8961], [55660].

Props aristath, poena, afercia, SergeyBiryukov.
See #62279.
Built from https://develop.svn.wordpress.org/trunk@59498


git-svn-id: http://core.svn.wordpress.org/trunk@58884 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-08 23:43:21 +00:00
Sergey Biryukov
708282ecaf Coding Standards: Use strict comparison in media_upload_form_handler().
Follow-up to [10390].

Props deepakrohilla, iflairwebtechnologies, mukesh27, dingguodong, aristath.
Fixes #62009.
Built from https://develop.svn.wordpress.org/trunk@59497


git-svn-id: http://core.svn.wordpress.org/trunk@58883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-07 22:08:19 +00:00
Sergey Biryukov
c10dbc8434 Coding Standards: Use correct escaping function for wp_http_referer.
Follow-up to [58069].

Props yogeshbhutkar, sainathpoojary, PcTevree, knutsp, siliconforks, stromhalm, shanemuir.
Fixes #62551.
Built from https://develop.svn.wordpress.org/trunk@59496


git-svn-id: http://core.svn.wordpress.org/trunk@58882 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-06 17:07:22 +00:00