Commit Graph

47397 Commits

Author SHA1 Message Date
Joe McGill 6e337fb3bd Tag 6.2.4
Built from https://develop.svn.wordpress.org/tags/6.2.4@57486


git-svn-id: http://core.svn.wordpress.org/tags/6.2.4@56987 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-30 19:58:20 +00:00
Joe McGill bf3948fb1d WordPress 6.2.4.
Built from https://develop.svn.wordpress.org/branches/6.2@57436


git-svn-id: http://core.svn.wordpress.org/branches/6.2@56942 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-30 16:43:24 +00:00
Aaron Jorbin dc1a493c5b Grouped Backports to the 6.2 branch
- Install: When populating options, maybe_serialize instead of always serialize.
- Uploads: Check for and verify ZIP archives.

Merges [57388] and [57389] to the 6.2 branch.

Props costdev, peterwilsoncc, azaozz, tykoted, johnbillion, desrosj, afragen, jorbin, xknown.

Built from https://develop.svn.wordpress.org/branches/6.2@57393


git-svn-id: http://core.svn.wordpress.org/branches/6.2@56899 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-30 14:36:26 +00:00
davidbaumwald ca7e76a353 WordPress 6.2.3.
Built from https://develop.svn.wordpress.org/branches/6.2@56899


git-svn-id: http://core.svn.wordpress.org/branches/6.2@56410 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-10-12 19:08:10 +00:00
Joe McGill 2ae9e78b77 Grouped backports to the 6.2 branch.
- REST API: Limit `search_columns` for users without `list_users`.
- Comments: Prevent users who can not see a post from seeing comments on it.
- Application Passwords: Prevent the use of some pseudo protocols in application passwords.
- Restrict media shortcode ajax to certain type
- REST API: Ensure no-cache headers are sent when methods are overriden.
- Prevent unintended behavior when certain objects are unserialized.

Merges [56833], [56834], [56835], [56836], [56837], and [56838] to the 6.2 branch.
Props xknown, jorbin, Vortfu, joehoyle, timothyblynjacobs, peterwilsoncc, ehtis, tykoted, martinkrcho, paulkevan, dd32, antpb, rmccue.

Built from https://develop.svn.wordpress.org/branches/6.2@56895


git-svn-id: http://core.svn.wordpress.org/branches/6.2@56406 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-10-12 18:43:20 +00:00
desrosj dea20b847e Build/Test Tools: Reverse `@react-spring` update.
This reverses the `@react-spring` update in [56854], which is causing `sourceMappingURL` to show in built files incorrectly.

Props jorbin, jorgefilipecosta, mamaduka, desrosj.
Built from https://develop.svn.wordpress.org/branches/6.2@56894


git-svn-id: http://core.svn.wordpress.org/branches/6.2@56405 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-10-12 18:41:56 +00:00
costdev 819ab606e5 Build/Test Tools: Add `sys_get_temp_dir()` to `open_basedir` tests.
In PHPUnit 10.3.5, 9.6.13 and 8.5.34, the child processes used for process isolation now use temporary files to communicate their result to the parent process.

This caused a failure in some tests that set the `open_basedir` PHP directive to a value that did not include `sys_get_temp_dir()`.

This adds `sys_get_temp_dir()` to the `open_basedir` value set by the tests to ensure that permission is still granted for the temporary directory.

PHPUnit uses `sys_get_temp_dir()`. To ensure the result is the same, Core's `get_temp_dir()` function is not used.

References:
- https://github.com/sebastianbergmann/phpunit/issues/5356

Props desrosj, mukesh27, SergeyBiryukov, costdev.
Merges [56622] to the 6.2 branch.
See #59394.
Built from https://develop.svn.wordpress.org/branches/6.2@56625


git-svn-id: http://core.svn.wordpress.org/branches/6.2@56137 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-09-19 17:17:22 +00:00
Bernhard Reiter c13e236a4b HTML API: Update code style so it passes when backported into Gutenberg.
This changes the indentation of a variable in class-wp-html-tag-processor.php
to satisfy both WordPress and Gutenberg linters.

Props dmsnell, zieladam, ntsekouras.
Merges [55674] to the 6.2 branch.
Fixes #58530.
Built from https://develop.svn.wordpress.org/branches/6.2@55925


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55437 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-06-15 15:50:23 +00:00
desrosj 08452a6ca0 Post WordPress 6.2.2 version bump.
The 6.2 branch is now 6.2.3 alpha.
Built from https://develop.svn.wordpress.org/branches/6.2@55842


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55354 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-05-20 06:02:22 +00:00
desrosj 51a67b2b56 WordPress 6.2.2 (for real).
The `$wp_version` number was previously incorrect.
Built from https://develop.svn.wordpress.org/branches/6.2@55837


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55349 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-05-20 04:27:21 +00:00
desrosj ffed1a0071 WordPress 6.2.2.
Built from https://develop.svn.wordpress.org/branches/6.2@55833


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55345 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-05-20 04:13:22 +00:00
desrosj 3d0f7713c9 Editor: Restore shortcode support for block templates.
Follow up to [55761].

Props youknowriad, Clorith, desrosj, antpb, Otto42, johnbillion, jorbin, rmccue, timothyblynjacobs, mikeschroder, peterwilsoncc, audrasjb, matveb, noisysocks, xknown, ehtis, isabel_brison, talldanwp, gziolo, chriscct7, davidbaumwald.
Merges [55828] to the 6.2 branch.
See #58333.
Built from https://develop.svn.wordpress.org/branches/6.2@55829


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55341 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-05-20 04:03:40 +00:00
audrasjb df12352495 Post WordPress 6.1.1 version bump.
The 6.2 branch is now `6.2.2-alpha`.


Built from https://develop.svn.wordpress.org/branches/6.2@55815


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55327 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-05-16 18:40:21 +00:00
audrasjb 607275a8f1 WordPress 6.2.1.
Built from https://develop.svn.wordpress.org/branches/6.2@55792


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55304 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-05-16 16:36:20 +00:00
Sergey Biryukov a941d591a8 Help/About: Update the About page for 6.2.1.
Props audrasjb.
Fixes #58248.
Built from https://develop.svn.wordpress.org/branches/6.2@55770


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55282 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-05-16 14:59:21 +00:00
audrasjb 0420b92621 Media: Prevent CSRF setting attachment thumbnails.
Props martinkrcho, paulkevan, peterwilsoncc, xknown, peterwilsoncc.
Merges [55764] to branch 6.2.


Built from https://develop.svn.wordpress.org/branches/6.2@55769


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55281 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-05-16 14:50:20 +00:00
audrasjb 1da3b10799 Embeds: Add protocol validation for WordPress Embed code.
Validate that links within auto-discovered embeds are using the `http` or `https` protocols before following links.

Props xknown, dd32, peterwilsoncc.
Merges [55763] to branch 6.2.


Built from https://develop.svn.wordpress.org/branches/6.2@55768


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55280 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-05-16 14:48:19 +00:00
audrasjb fc13f95a4d Editor: Ensure block comments are of a valid form.
Ensures that the block delimiter comments are of a valid form: opening with `<!--` and closing with `-->`.

Props xknown, isabel_brison, peterwilsoncc.
Merges [55762] to branch 6.2.


Built from https://develop.svn.wordpress.org/branches/6.2@55767


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55279 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-05-16 14:46:22 +00:00
audrasjb 2edd1a7d5c Editor: Remove shortcode support from block templates.
Props youknowriad, xknown, timothyblynjacobs, matveb.
Merges [55761] to branch 6.2.


Built from https://develop.svn.wordpress.org/branches/6.2@55766


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55278 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-05-16 14:44:19 +00:00
audrasjb 0f3abcc27c I18N: Introduce sanitization function for locale.
Introduce the `sanitize_locale_name()` for sanitizing user input of locales.

Props xknown, timothyblynjacobs, ocean90, peterwilsoncc.
Merges [55760] to branch 6.2.


Built from https://develop.svn.wordpress.org/branches/6.2@55765


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55277 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-05-16 14:42:20 +00:00
audrasjb e2086e1534 Post WordPress 6.2.1 version bump.
Built from https://develop.svn.wordpress.org/branches/6.2@55740


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55252 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-05-09 16:52:21 +00:00
audrasjb 4262161926 WordPress 6.2.1 RC1.
Built from https://develop.svn.wordpress.org/branches/6.2@55739


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55251 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-05-09 16:33:21 +00:00
audrasjb e8eedf2c90 Editor: Update block editor packages to the latest patch releases.
This updates the block editor related npm dependencies to their latest patch versions ahead of WordPress 6.2.1 RC1.

Updated packages:
 - @wordpress/annotations@2.26.4
 - @wordpress/block-directory@4.3.12
 - @wordpress/block-editor@11.3.10
 - @wordpress/block-library@8.3.12
 - @wordpress/components@23.3.7
 - @wordpress/customize-widgets@4.3.12
 - @wordpress/edit-post@7.3.12
 - @wordpress/edit-site@5.3.12
 - @wordpress/edit-widgets@5.3.12
 - @wordpress/editor@13.3.10
 - @wordpress/format-library@4.3.10
 - @wordpress/interface@5.3.8
 - @wordpress/list-reusable-blocks@4.3.7
 - @wordpress/preferences@3.3.7
 - @wordpress/reusable-blocks@4.3.10
 - @wordpress/rich-text@6.3.4
 - @wordpress/server-side-render@4.3.7
 - @wordpress/widgets@3.3.10

This changeset includes the following fixes:
- i18n: Add context to labels related to CSS position properties gutenberg#49135
- Comments: Fix 'sprintf requires more than 1 params' error gutenberg#49054
- Fix the site editor loading in multi-site installs gutenberg#49861
- Fix quick inserter going off-screen in some situations gutenberg#49881
- Site Editor: Decode the site title properly gutenberg#49685
- Firefox: fix input rules (React async state issue) gutenberg#48210
- Only show alignment info when parent layout is constrained. gutenberg#49703
- [Inserter]: Fix onHover error on patterns tab in mobile gutenberg#49450
- Fix site editor redirection after creating new template or template part gutenberg#49364

Props mamaduka, audrasjb, wildworks, ocean90, aristath, costdev, hellofromtonya, youknowriad, mdxfr, oandregal, mattwiebe, bph, ndiego, talldanwp, joen, ellatrix, kevin940726, isabel_brison, andrewserong, ntsekouras, welcher.
Merges [55737] to branch 6.2.
Fixes #58274.

Built from https://develop.svn.wordpress.org/branches/6.2@55738


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55250 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-05-09 14:34:12 +00:00
audrasjb 18bf5b98aa Script Loader: Optimize performance of `_wp_normalize_relative_css_links()` by more than 2x.
- Replace `preg_match_all()` and its secondary `str_replace()` call with `preg_replace_callback()`.
- Fix case where paths beginning with `http` and `https` (but not `http:` and `https:`) were erroneously not counted as relative.
- Improve code style and readability by consolidating conditions and returning once.
- Use `str_starts_with()` consistently instead of `strpos()`.

Follow-up to [52036], [52695], and [52754].

Props westonruter, adamsilverstein, azaozz.
Merges [55658] and [55669] to the 6.2 branch.
Fixes #58069.
See #54243.

Built from https://develop.svn.wordpress.org/branches/6.2@55736


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55248 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-05-09 12:17:19 +00:00
audrasjb 5db2b65b67 Media: Render attachment custom fields for new uploads.
Initialize attachment custom fields during the add callback, so that fields are present as soon as an attachment is uploaded but do not refresh when field values are changed. Follow up to #40909.

Props trepmal, adamsilverstein, joedolson.
Merges [55649] to the 6.2 branch.
Fixes #58051.

Built from https://develop.svn.wordpress.org/branches/6.2@55735


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55247 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-05-09 12:07:26 +00:00
audrasjb c7f1d4266b Help/About: Left-align 6.2 about page subheading.
This changeset removes the `aligncenter` class from `h2` and `is-subheading` items in the WordPress 6.2 About Page, for more consistent alignment. Also, future minor releases will add more left-aligned paragraphs under the "Maintenance Releases" section.

Props shagors, sabernhardt, mukesh27, amin7, costdev, pavanpatil1, audrasjb.
Merges [55716] to the 6.2 branch.
Fixes #57387.

Built from https://develop.svn.wordpress.org/branches/6.2@55731


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55243 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-05-08 20:15:19 +00:00
audrasjb c3dff809b7 Script Loader: Update jQuery version to 3.6.4 to match the current version.
This changeset updates the jQuery version to 3.6.4 in `script-loader.php` to correctly match the current version used in WordPress.

This was accidentally missed in [55491].

Props nickpap, TobiasBg, dhrumilk.
Merges [55713] to the 6.2 branch.
Fixes #58203.
See #57324.

Built from https://develop.svn.wordpress.org/branches/6.2@55730


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55242 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-05-08 20:12:20 +00:00
Sergey Biryukov 8df7e41b8a Docs: Update code examples formatting in `WP_HTML_Tag_Processor` documentation.
Per the [https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#description documentation standards], code samples should be created by indenting every line of the code by 4 spaces, with a blank line before and after. This matches the format used by the rest of core.

Follow-up to [55203], [55304], [55718], [55724].

Props juanmaguitar, coffee2code, azaozz, costdev, dmsnell, johnbillion, SergeyBiryukov.
Merges [55727] to the 6.2 branch.
Fixes #58028.
Built from https://develop.svn.wordpress.org/branches/6.2@55729


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55241 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-05-08 19:59:23 +00:00
Sergey Biryukov 63f3e3a5a5 Docs: Correct the placement of `@see` tags in `WP_HTML_Tag_Processor` class.
This moves a reference link in `::get_attribute_names_with_prefix()` below the code example, so that it is correctly displayed in the Developer Resources.

Includes updating some other `@see` tags for consistency as per the documentation standards.

Additionally, the example code for `WP_HTML_Tag_Processor::get_tag()` is updated to show lowercase tag names in the input HTML, so that it does not convey the wrong impression that the uppercase output from `::get_tag()` depends on the case of the input HTML.

Follow-up to [55203].

Props dmsnell, johnbillion, audrasjb, SergeyBiryukov.
Merges [55724] to the 6.2 branch.
Fixes #58254.
Built from https://develop.svn.wordpress.org/branches/6.2@55728


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55240 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-05-08 19:52:21 +00:00
Bernhard Reiter 6e932eb677 HTML API: Adjust coding style to pass Gutenberg linter.
This patch adjusts some minor neutral whitespace that the Gutenberg linting rejects.
There are no code changes otherwise.

Props dmsnell.
Merges [55721] to the 6.2 branch.
Fixes #58250.
Built from https://develop.svn.wordpress.org/branches/6.2@55722


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55234 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-05-04 08:46:21 +00:00
Bernhard Reiter 34fdb7885c HTML API: Accumulate shift for internal parsing pointer.
A bug was discovered where where the parser wasn't returning to the
start of the affected tag after making some updates.

In few words, the Tag Processor has not been treating its own internal
pointer `bytes_already_parsed` the same way it treats its bookmarks.
That is, when updates are applied to the input document and then
`get_updated_html()` is called, the internal pointer transfers to
the newly-updated content as if no updates had been applied since
the previous call to `get_updated_html()`.

In this patch we're creating a new "shift accumulator" to account for
all of the updates that accrue before calling `get_updated_html()`.
This accumulated shift will be applied when swapping the input document
with the output buffer, which should result in the pointer pointing to
the same logical spot in the document it did before the udpate.

In effect this patch adds a single workaround for treating the
internal pointer like a bookmark, plus a temporary pointer which points
to the beginning of the current tag when calling `get_updated_html()`.
This will preserve the assumption that updating a document doesn't
move that pointer, or shift which tag is currently matched.

Props dmsnell, zieladam.
Merges [55706] to the 6.2 branch.
Fixes #58179.
Built from https://develop.svn.wordpress.org/branches/6.2@55708


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55220 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-05-03 12:11:19 +00:00
Bernhard Reiter 94533cdb92 HTML API: Fix a case where updates are overlooked when seeking to earlier locations.
This retains the WP_HTML_Tag_Processor attribute updates applied before calling seek() – they were erroneously erased in some cases.

Props dmsnell, zieladam.
Merges [55675] to the 6.2 branch.
Fixes #58160.
Built from https://develop.svn.wordpress.org/branches/6.2@55707


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55219 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-05-03 11:57:23 +00:00
Peter Wilson 229077cc3f Security: Update GitHub security policy to refer to H1.
Update the security policy displayed on GitHub, `SECURITY.md`, to refer visitors to the [https://hackerone.com/wordpress HackerOne WordPress program] for the full policy.

This allows the project to maintain a single source of truth and avoid the potential for conflicting information across the two sites.

Props desrosj, hellofromTonya, costdev.
Merges [55670] to the 6.2 branch.
Fixes #57937.

Built from https://develop.svn.wordpress.org/branches/6.2@55679


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55191 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-04-24 05:27:22 +00:00
Bernhard Reiter 7eb548f1e4 HTML API: Add support for a few invalid HTML comment forms.
- Comments created by means of a tag closer with an invalid tag name, e.g. `</3>`.
 - Comments closed with the invalid `--!>` closer. (Comments should be closed by `-->` but if the `!` appears it will also close it, in error.)
 - Empty tag name elements, which are technically skipped over and aren't comments, e.g. `</>`.

Props dmsnell, costdev.
Merges [55667] to the 6.2 branch.
Fixes #58007.
Built from https://develop.svn.wordpress.org/branches/6.2@55668


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55180 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-04-20 17:17:19 +00:00
audrasjb 1e3d9b8007 Docs: Use third-person singular verbs for `WP_Importer` related function descriptions, as per docblocks standards.
Props pouicpouic.
See #57840.

Built from https://develop.svn.wordpress.org/branches/6.2@55663


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55175 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-04-20 10:24:20 +00:00
Bernhard Reiter 484b3840bd HTML API: Ensure attribute updates happen only once for case variants.
When setting a new value for an attribute multiple times and providing
multiple case variations of the attribute name the Tag Processor has
been appending multiple copies of the attribute into the updated HTML.

This means that only the first attribute set determines the value in
the final output, plus the output will //appear// wrong.

In this patch we're adding a test to catch the situation and resolving it
by using the appropriate comparable attribute name as a key for storing
the updates as we go. Previously we stored updates to the attribute by
its given `$name`, but when a new update of the same name with a
case variant was queued, it would not override the previously-enqueued
value as it out to have.

Props dmsnell, zieladam.
Merges [55659] to the 6.2 branch.
Fixes #58146.
Built from https://develop.svn.wordpress.org/branches/6.2@55662


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55174 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-04-20 09:13:23 +00:00
Sergey Biryukov b838393386 Docs: Use typed array notation for `search_columns` in `WP_Query::parse_query()`.
Follow-up to [55248].

Props tmatsuur.
Merges [55597] to the 6.2 branch.
Fixes #57996.
Built from https://develop.svn.wordpress.org/branches/6.2@55640


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55152 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-04-08 09:53:17 +00:00
Sergey Biryukov b48bb0fb4c Administration: Define the `$title` global on the Menus screen for classic themes.
This brings more consistency with other screens and avoids a PHP warning in `get_plugin_page_hookname()`:
{{{
preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
}}}

Follow-up to [13257], [13366], [55263].

Props nendeb55, costdev, SergeyBiryukov.
Merges [55552] to the 6.2 branch.
Fixes #57918.
Built from https://develop.svn.wordpress.org/branches/6.2@55639


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55151 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-04-08 09:48:18 +00:00
audrasjb e893025eed Networks and Sites: Fix incorrect color for Theme enabling admin notices.
This changeset replaces a `notice-updated` class with `notice-success` to fix an issue where the notices were using a gray border color instead of green when enabling or disabling a theme for a network.

Follow-up to [55418].

Props ocean90, audrasjb, marineevain, SergeyBiryukov, dhrumilk, chiragrathod103.
Merges [55584] to the 6.2 branch.
Fixes #58096.

Built from https://develop.svn.wordpress.org/branches/6.2@55638


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55150 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-04-08 09:39:20 +00:00
Sergey Biryukov 19e810a1cf Coding Standards: Apply various alignment corrections from `composer format`.
This fixes a few WPCS warnings along the lines of:
* Array double arrow not aligned correctly
* Equals sign not aligned with surrounding statements
* Usage of ELSE IF is discouraged; use ELSEIF instead

Follow-up to [55099], [55192], [55194], [55271].

Props davidbaumwald, jrf, SergeyBiryukov.
Merges [55606] to the 6.2 branch.
Fixes #57994.
Built from https://develop.svn.wordpress.org/branches/6.2@55636


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55148 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-04-08 09:21:17 +00:00
Sergey Biryukov fd28c6f767 Editor: Correctly load RTL stylesheets for non-core blocks.
If `SCRIPT_DEBUG` is disabled, `register_block_style_handle()` loads core blocks' styles with the `.min` suffix, while non-core ones never use the minified files, but the suffix was still mistakenly included in the `-rtl` file lookup.

This commit updates the logic to match the style path set earlier in the function, ensuring that RTL stylesheets are loaded properly for both core and non-core blocks, with or without `SCRIPT_DEBUG`.

Follow-up to [49982], [50836], [54330], [55486].

Props david.binda.
Merges [55544] and [55547] to the 6.2 branch.
Fixes #57903.
Built from https://develop.svn.wordpress.org/branches/6.2@55635


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55147 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-04-08 09:17:19 +00:00
Sergey Biryukov 24773a3c7c Comments: Add missing arguments for `get_comment_time()` in `comment_time()`.
In a recent change, `comment_time()` was updated to accept a `$comment_id` parameter for consistency with `comment_date()`, following a similar change for `get_comment_time()`.

However, the new parameter was not correctly passed to `get_comment_time()` inside the function. It should be passed as the fourth parameter after `$format`, `$gmt` and `$translate`, not the second.

This commit adds the missing arguments and a few unit tests to confirm the correct behavior.

Follow-up to [55284], [55287], [55308].

Props costdev, tmatsuur, ugyensupport, johnbillion.
Merges [55632] to the 6.2 branch.
Fixes #58064.
Built from https://develop.svn.wordpress.org/branches/6.2@55634


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55146 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-04-08 09:09:20 +00:00
davidbaumwald 03f98fa1ca Post WordPress 6.2 version bump.
The 6.2 branch is now 6.2.1-alpha.
Built from https://develop.svn.wordpress.org/branches/6.2@55611


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55123 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-03-29 19:38:19 +00:00
davidbaumwald 3492ba3269 WordPress 6.2.
Built from https://develop.svn.wordpress.org/branches/6.2@55609


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55121 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-03-29 17:46:20 +00:00
davidbaumwald 028a4476da Post WordPress 6.2 RC5 Version Bump.
Built from https://develop.svn.wordpress.org/branches/6.2@55605


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55117 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-03-28 16:28:17 +00:00
davidbaumwald bc3794dae0 WordPress 6.2 RC5.
Built from https://develop.svn.wordpress.org/branches/6.2@55604


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55116 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-03-28 16:02:20 +00:00
hellofromTonya 192afe3252 Help/About: Make Field Guide link translatable.
On the About page, wraps the Field Guide's link in `__()` to provide a localized field guide, when available.

Follow-up to [55600].

Props davidbaumwald, sergeybiryukov, desrosj, javiercasares, oglekler, mukesh27, clorith, eboxnet, costdev, ocean90.
Reviewed by sergeybiryukov.
Merges [55601] to the 6.2 branch.
Fixes #57477.
Built from https://develop.svn.wordpress.org/branches/6.2@55603


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55115 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-03-28 15:46:25 +00:00
hellofromTonya 5579d5baa1 Help/About: Add Field Guide link.
In the About page, replaces the `#` placeholder with the link to the Field Guide.

Follow-up to [55573], [55449], [55499], [55545].

Props vladytimy, ocean90.
Reviewed by sergeybiryukov.
Merges [55600] to the 6.2 branch.
Fixes #57477.
Built from https://develop.svn.wordpress.org/branches/6.2@55602


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55114 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-03-28 15:44:20 +00:00
hellofromTonya 2bbcd5af2e Date/Time: Revert [55054].
This changeset introduced a regression for partial-hour timezones such as +05:30 UTC which is India and Sri Lanka. How? These timezones are in float. The change made in [55054] type casted them to integer which dropped the decimal for the partial-hour, making the time inaccurate. For example, +05:30 UTC (India and Sri Lanka)'s `'gmt_offset'` is `5.5`, but with the changeset, it was changed to `5`.

Reverting the changeset restores the original state of `current_time()` and thus resolves the regression.

Props reputeinfosystems, Rarst, hellofromTonya, desrosj, audrasjb, sergeybiryukov, costdev, priethor, francina, nekojonez, codingchicken, cbringmann.
Reviewed by desrosj.
Merges [55598] to the 6.2 branch.
See #57035.
Fixes #57998.
Built from https://develop.svn.wordpress.org/branches/6.2@55599


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55111 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-03-28 14:34:27 +00:00
audrasjb 50d75e5e07 Post WordPress 6.2 RC4 version bump.
Built from https://develop.svn.wordpress.org/branches/6.2@55587


git-svn-id: http://core.svn.wordpress.org/branches/6.2@55099 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-03-23 17:32:23 +00:00