Commit Graph

51256 Commits

Author SHA1 Message Date
Sergey Biryukov
69f8f6ecf6 Coding Standards: Sanitize input values in wp-trackback.php.
Follow-up to [4676], [12284], [23594], [53719].

Props utsav72640, mukesh27, ankitmaru, dhruvang21, SergeyBiryukov.
Fixes #58511.
Built from https://develop.svn.wordpress.org/trunk@60646


git-svn-id: http://core.svn.wordpress.org/trunk@59982 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-19 12:30:31 +00:00
joedolson
304382e37d Accessibility: Make buttons to add site images look like buttons.
The buttons to add site icons, logos, header images, and background images were designed with a dashed border. This led to confusion with users thinking they were drop regions for image uploads, rather than buttons to trigger an upload.

Change design of upload buttons to clarify expected user interaction.

Props emaildano, afercia, joedolson, ankitkumarshah, logicrays, shailu25.
Fixes #47579.
Built from https://develop.svn.wordpress.org/trunk@60645


git-svn-id: http://core.svn.wordpress.org/trunk@59981 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-18 20:27:37 +00:00
Sergey Biryukov
e2442c0b5b Users: Remove deprecated user contact methods.
The three default contact methods (AIM, Yahoo IM, Jabber) were removed for new installations in WordPress 3.6.

This commit removes the remaining references from the codebase, as the associated services were discontinued quite a while ago.

The `user_contactmethods` filter is available for adding or removing contact methods.

Follow-up to [23588], [25606].

Props butterflymedia, birgire, Presskopp, yashjawale, SergeyBiryukov.
Fixes #44374.
Built from https://develop.svn.wordpress.org/trunk@60644


git-svn-id: http://core.svn.wordpress.org/trunk@59980 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-18 12:33:29 +00:00
Sergey Biryukov
db9f74475c Coding Standards: Move count() usage in wp_dashboard_recent_comments().
While the rule to discourage using functions like `count()` in a loop condition is a recommendation/best practice rule from the `WordPress-Extra` ruleset and does not directly apply to WordPress core, this is intended as a minor readability and code clarity improvement.

Follow-up to [10090], [17556], [20609], [26144].

Props krunal265, johnbillion, audrasjb, dhruvang21, SergeyBiryukov.
Fixes #56499.
Built from https://develop.svn.wordpress.org/trunk@60643


git-svn-id: http://core.svn.wordpress.org/trunk@59979 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-17 16:59:26 +00:00
Sergey Biryukov
669bacd5bd Revisions: Add year to timestamp in revisions comparison interface.
This aims to make it easier to distinguish between revisions from different years.

Follow-up to [23769], [23898], [24520].

Props kgagne, iamadisingh, abcd95, SergeyBiryukov.
Fixes #63816.
Built from https://develop.svn.wordpress.org/trunk@60642


git-svn-id: http://core.svn.wordpress.org/trunk@59978 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-16 21:53:28 +00:00
Adam Silverstein
1cd68235bb Media: ensure wp_get_attachment_image uses valid user-provided width and height.
Fix a bug introduced in WordPress 6.8.2 (r60415) that led to user supplied values for width and height in the $attr array passed to `wp_get_attachment_image` to be overwritten.

Props rainbowgeek, ocean90, rollybueno, shreya0shrivastava, heybran, mukesh27.
Fixes #63714.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59977 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-15 19:11:32 +00:00
joedolson
6b2e46fdcd Media: Fix button sizing on Edit Media screen.
On the Edit Media screen, buttons were not all of consistent size. This was caused by custom sizing applied to CSS in the Edit Media panel that was not consistent with other button sizes.

Remove custom sizing and adds class so all Edit Media buttons will match styling of other admin buttons in desktop and mobile viewports.

Props hbhalodia, sabernhardt, sandeepdahiya, mikinc860, mukesh27, joedolson.
Fixes #63559.
Built from https://develop.svn.wordpress.org/trunk@60640


git-svn-id: http://core.svn.wordpress.org/trunk@59976 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-15 18:16:32 +00:00
Sergey Biryukov
eb32f853f6 Quick/Bulk Edit: Check if post status is set in wp_ajax_inline_save().
This aims to avoid a PHP warning if the status value is missing in the request.

Follow-up to [8951], [9083].

Props bor0, jorbin, SergeyBiryukov.
Fixes #63622.
Built from https://develop.svn.wordpress.org/trunk@60639


git-svn-id: http://core.svn.wordpress.org/trunk@59975 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-15 11:01:30 +00:00
joedolson
214a011d89 Media: Fix button focus visibility in media uploads.
Following [r58279], the focus outline on the Edit button after uploading media was partially cut off. Adjust margin and padding to ensure the outline is visible, while also supporting appropriate word wrapping on long file names.

Props dilipbheda, karthikeya01, sabernhardt, narenin, zunaid321, Marius84, ankitkumarshah,  riddhidave, dilip2615, SirLouen, Presskopp, joedolson.
Fixes #63239.
Built from https://develop.svn.wordpress.org/trunk@60637


git-svn-id: http://core.svn.wordpress.org/trunk@59973 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-14 23:08:34 +00:00
joedolson
60cb3d6db9 Administration: Remove obsolete placeholder styles.
Remove the browser-prefixed placeholder styling `-ms-input-placeholder` and custom opacity for `-moz-placeholder`. `--ms-input-placeholder` is no longer used by any supported browsers and Firefox now uses `color-mix` to set placeholder colors instead of reduced opacity.

Props afercia, abcd95, sabernhardt, aialvi, joedolson.
Fixes #63030.
Built from https://develop.svn.wordpress.org/trunk@60636


git-svn-id: http://core.svn.wordpress.org/trunk@59972 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-14 21:37:26 +00:00
Sergey Biryukov
1c777979ed REST API: Correct error handling in WP_REST_Server::serve_batch_request_v1().
This aims to avoid a fatal error when hitting the batch request endpoint with a malformed URL.

Follow-up to [49252].

Props bor0, SirLouen, SergeyBiryukov.
Fixes #63502.
Built from https://develop.svn.wordpress.org/trunk@60635


git-svn-id: http://core.svn.wordpress.org/trunk@59971 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-14 21:16:35 +00:00
davidbaumwald
f63d38c151 Users: Fire wp_set_password action when creating or updating a user's password.
Various filters and actions fire during user creation and editing, making available all manner of user data to be acted upon by custom code.  However, a user's password was not included in the data that was made available.

This change now fires an existing action, `wp_set_password`, during initial user creation and when an existing user's password is updated. 

Props ChloeD, scribu, dd32, pento, chriscct7, johnbillion, logicrays, nimeshatxecurify.
Fixes #22114.
Built from https://develop.svn.wordpress.org/trunk@60634


git-svn-id: http://core.svn.wordpress.org/trunk@59970 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-13 20:14:28 +00:00
dmsnell
2191d0443c HTML API: Make WP_HTML_Processor::serialize_token() public.
The serialize_token() method was added in WordPress 6.7.0 as a protected member on the WP_HTML_Processor class. It wasn’t clear at the time of merging if it would be necessary to expose it as a public method. However, since that time a number of experiments have led to the conclusion that it would be very valuable to do so.

This patch opens up the method for invocation from the outside, trivializing the generation of normative HTML subspans from a parent document.

Developed in https://github.com/WordPress/wordpress-develop/pull/9456
Discussed in https://core.trac.wordpress.org/ticket/63823

Follow-up to [59076].

Props dmsnell, jonsurrell.
Fixes #38044.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59969 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-13 17:58:28 +00:00
Sergey Biryukov
090fb72df0 Export: Split the query for post authors in wxr_authors_list() into smaller chunks.
This aims to avoid a fatal error when attempting to export content on larger WP instances with a lot of data.

Follow-up to [15961], [28731].

Props bor0, SirLouen, SergeyBiryukov.
Fixes #63503.
Built from https://develop.svn.wordpress.org/trunk@60632


git-svn-id: http://core.svn.wordpress.org/trunk@59968 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-13 16:28:31 +00:00
dmsnell
246e75a2b7 Follow-up: Add wp_is_valid_utf8() for normalizing UTF-8 checks.
When the `seemsUtf8` test file was removed, the file was left in subversion as an empty file. This patch removes the file.

Discussed in https://core.trac.wordpress.org/ticket/38044

Follow-up to [60630].

Props dmsnell, johnbillion.
See #38044.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59967 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-12 18:25:24 +00:00
dmsnell
ede3a79f96 Add wp_is_valid_utf8() for normalizing UTF-8 checks.
There are several existing mechanisms in Core to determine if a given string contains valid UTF-8 bytes or not. These are spread out and depend on which extensions are installed on the running system and what is set for `blog_charset`. The `seems_utf8()` function is one of these mechanisms.

`seems_utf8()` does not properly validate UTF-8, unfortunately, and is slow, and the purpose of the function is veiled behind its name and historic legacy.

This patch deprecates `seems_utf()` and introduces `wp_is_valid_utf8()`; a new, spec-compliant, efficient, and focused UTF-8 validator. This new validator defers to `mb_check_encoding()` where present, otherwise validating with a pure-PHP implementation. This makes the spec-compliant validator available on all systems regardless of their runtime environment.

Developed in https://github.com/WordPress/wordpress-develop/pull/9317
Discussed in https://core.trac.wordpress.org/ticket/38044

Props dmsnell, jonsurrell, jorbin.
Fixes #38044.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59966 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-12 18:15:36 +00:00
Sergey Biryukov
08d1cf7509 Database: Update default DB_CHARSET to utf8mb4 in wp-config-sample.php.
`utf8mb4` is the complete UTF-8 implementation in MySQL, supporting the full range of Unicode characters by using up to 4 bytes per character. This includes characters outside the Basic Multilingual Plane, such as emoji and supplementary characters. `utf8mb4` ensures full compatibility with modern text content and diverse character sets.

As of WordPress 4.2, on both new and existing installations, WordPress would automatically upgrade database tables to `utf8mb4` on compatible servers (MySQL 5.5.3 or later). However, the default `DB_CHARSET` value during setup was still set to `utf8` for compatibility with older MySQL versions.

As of WordPress 6.5, the minimum required MySQL version is 5.5.5, so the default can be updated to `utf8mb4`.

Follow-up to [30345], [31349], [57173], [57926].

Props bchecketts, JavierCasares, dmsnell, SergeyBiryukov.
Fixes #48285.
Built from https://develop.svn.wordpress.org/trunk@60629


git-svn-id: http://core.svn.wordpress.org/trunk@59965 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-12 14:47:31 +00:00
John Blackbourn
bb508374c8 Build/Test Tools: Adjust various jobs names in the GitHub Actions workflows to remove duplication and improve grouping in the UI when they run.
Props desrosj, mukesh27, johnbillion

See #63170
Built from https://develop.svn.wordpress.org/trunk@60628


git-svn-id: http://core.svn.wordpress.org/trunk@59964 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-12 09:19:29 +00:00
dmsnell
54c562ac5b Convert two source files to UTF-8
The files in this commit have previously contained text encoded as Windows-1252 (commonly mistaken for latin1/ISO-8859-1), in ways that present invalid UTF-8 bytes.

This commit converts the encodings to UTF-8, which resolves the encoding issues. While the whole-posts document could be argued to be intentionally Windows-1252, there was no obvious evidence that this was more than an historic legacy. The JavaScript file, however, definitely ought to be UTF-8.

Developed in https://github.com/WordPress/wordpress-develop/pull/9425
Discussed in https://core.trac.wordpress.org/ticket/63815

Props dmsnell, swisspidy.
Fixes #63815.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59963 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-12 03:56:27 +00:00
desrosj
b28e86f5e7 Build/Test Tools: Use newer runner images for MacOS & Windows.
GitHub is in the process of deploying an update to their MacOS and Windows GitHub Actions runners that changes the `-latest` tag to point to `macos-15` and `windows-2025`. Once this completes, the number of available runners for the previous version will decline and could result in longer queues.

This updates the build process testing workflow to test against these new versions.

Prop johnbillion. 
See #63170.
Built from https://develop.svn.wordpress.org/trunk@60626


git-svn-id: http://core.svn.wordpress.org/trunk@59962 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-12 00:21:27 +00:00
John Blackbourn
8fe3cb3703 Build/Test Tools: Ensure a change to the Node version always runs relevant test workflows.
Props johnbillion, desrosj

See #63170
Built from https://develop.svn.wordpress.org/trunk@60625


git-svn-id: http://core.svn.wordpress.org/trunk@59961 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-11 17:06:24 +00:00
John Blackbourn
b45c2d8c98 Build/Test Tools: Add some further missing permissions to the GitHub Actions workflows.
These permissions are not required for a public repo but are required for a private repo, for example a private fork.

Props johnbillion, desrosj

Follow-up to r60612.

See #63170
Built from https://develop.svn.wordpress.org/trunk@60624


git-svn-id: http://core.svn.wordpress.org/trunk@59960 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-11 16:44:28 +00:00
Sergey Biryukov
66506c9fd6 External Libraries: Upgrade PHPMailer to version 6.10.0.
This is a feature and maintenance release introducing full support for [https://www.rfc-editor.org/rfc/rfc6531 RFC 6531 SMTPUTF8], meaning that plugin or theme developers are now free to use Unicode characters in email addresses, such as `JøeÜser@example.com`, without any complicated encoding schemes. Using this feature requires sending through a mail server that advertises support for SMTPUTF8. For full details see [https://github.com/PHPMailer/PHPMailer/blob/master/SMTPUTF8.md SMTPUTF8.md].

This commit also includes the parts of PHPMailer not previously bundled with core, specifically the DSNConfigurator, OAuth, and POP3 classes, so that plugin developers could use those extended features without including their own versions of the library.

Including the full library aims to make it easier (and faster) for core to update in case of security issues, and to provide more flexibility and security for plugins and (by extension) users of WordPress.

References:
* [https://github.com/PHPMailer/PHPMailer/releases/tag/v6.10.0 PHPMailer 6.10.0 release notes]
* [https://github.com/PHPMailer/PHPMailer/compare/v6.9.3...v6.10.0 Full list of changes in PHPMailer 6.10.0]

Follow-up to [54937], [55557], [56484], [57137], [59246], [59481].

Props agulbra, Ipstenu, JeffMatson, lukecavanagh, dd32, Otto42, JeffMatson, MattyRob, desrosj, SirLouen, SergeyBiryukov.
Fixes #39714, #63811.
Built from https://develop.svn.wordpress.org/trunk@60623


git-svn-id: http://core.svn.wordpress.org/trunk@59959 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-11 16:18:33 +00:00
Sergey Biryukov
23c1de7d05 Database: Add support for SET STATEMENT in wpdb::get_table_from_query().
MariaDB supports setting various parameters for queries. This commit ensures that `wpdb` can properly retrieve the table name from such queries.

Reference: [https://mariadb.com/docs/server/reference/sql-statements/administrative-sql-statements/set-commands/set-statement MariaDB Documentation: SET STATEMENT].

Follow-up to [30345].

Props dd32.
Fixes #63777.
Built from https://develop.svn.wordpress.org/trunk@60622


git-svn-id: http://core.svn.wordpress.org/trunk@59958 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-10 21:00:34 +00:00
Sergey Biryukov
a4ffbcc9a9 Docs: Correct @return type for get_post_field().
Follow-up to [6379], [21559], [24490].

Props marian1, rollybueno.
Fixes #63802.
Built from https://develop.svn.wordpress.org/trunk@60621


git-svn-id: http://core.svn.wordpress.org/trunk@59957 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-09 12:49:34 +00:00
Sergey Biryukov
bc22cb534b Twenty Twenty-Five: Fix typo in font credit URL protocol.
Follow-up to [59146].

Props rollybueno, sabernhardt, dhruvang21, shailu25.
Fixes #63747.
Built from https://develop.svn.wordpress.org/trunk@60620


git-svn-id: http://core.svn.wordpress.org/trunk@59956 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-08 21:50:31 +00:00
joedolson
90da60fa36 Administration: Reduce mobile item spacing in .misc-pub-section.
On small viewports, the total vertical padding of `.misc-pub-section` was adjusted from 14px to 40px.

This significant different made for difficult reading of information in the Post Publish metabox, the Media details meta box, and the comment editing metabox.

Shift the total vertical padding to 24px to improve the readability of metaboxes on mobile.

Props mikinc860, dhrumilk, debarghyabanerjee, mukesh27, hbhalodia, sabernhardt, joedolson.
Fixes #63571.
Built from https://develop.svn.wordpress.org/trunk@60619


git-svn-id: http://core.svn.wordpress.org/trunk@59955 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-08 01:57:30 +00:00
Sergey Biryukov
0cf4698be4 Docs: Correct return and parameter types for WP_Block_List methods.
Follow-up to [48159], [56803].

Props marian1.
Fixes #63753.
Built from https://develop.svn.wordpress.org/trunk@60618


git-svn-id: http://core.svn.wordpress.org/trunk@59954 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-07 14:47:34 +00:00
jonsurrell
f2b80c32ee HTML API: Reduce length checks in skip_script_data.
Apply an optimization to remove several repeated string length checks in `WP_HTML_Tag_Processor::skip_script_data()`.

Developed in https://github.com/WordPress/wordpress-develop/pull/9230.

Props jonsurrell, dmsnell.
See #63738.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59953 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-07 08:33:26 +00:00
jonsurrell
2a29ee2915 KSES: Prevent normalization from unescaping escaped numeric character references.
Fixes an issue where `wp_kses_normalize_entities` would transform inputs like "'" into "'", changing the intended HTML text.

This behavior has present since the initial version of KSES was introduced in [649].

[2896] applied the normalization to post content for users without the "unfiltered_html" capability.

Developed in https://github.com/WordPress/wordpress-develop/pull/9099.

Props jonsurrell, dmsnell, sirlouen.
Fixes #63630.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59952 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-07 08:00:31 +00:00
Peter Wilson
cb8f8282f3 Options, Meta APIs: Test site transients stored correctly.
Adds unit tests to ensure that site transients are stored correctly:

* in `wp_options` on single site installs,
* in `wp_sitemeta` on multisite installs.

Props peterwilsoncc, rollybueno.
See #63167.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59951 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-07 04:27:34 +00:00
Peter Wilson
216a4157c9 Upgrade/Install: Reduce number of DB queries populating roles.
Reduces the number of database queries made when populating roles during install/multisite site creation by 344 (347 queries down to 3).

`populate_roles()` has been modified to prevent an individual database query each time a role or capability is added to the `WP_Roles` object. Instead the roles option, `{$wpdb->prefix}user_roles` is updated once at the end of the function call.

Introduces a test to ensure that updating the roles option via `WP_Roles` and updating the option in the manner now used by `populate_roles()` results in the same capabilities been applied to a role.

Props fliespl, johnjamesjacoby, ocean90, realloc, rishabhwp, sainathpoojary, sirlouen, spacedmonkey, swissspidy.
Fixes #37687.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59950 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-07 01:34:33 +00:00
audrasjb
2ef90d3315 Administration: Avoid rendering empty bottom tablenav container when pagination is hidden.
This changeset removes the bottom `tablenav` container on taxonomy term list screens when it contains a hidden `.tablenav-pages.no-pages` element, to prevent unnecessary vertical spacing when no tags exist.

Props sainathpoojary, dilipbheda, audrasjb, abcd95, dhruvang21, SirLouen.
Fixes #63369.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59949 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-06 22:37:30 +00:00
John Blackbourn
16ef43ce26 Build/Test Tools: Add some missing permissions to the GitHub Actions workflows.
These permissions are not required for a public repo but are required for a private repo, for example a private fork.

Props johnbillion, desrosj

See #63170
Built from https://develop.svn.wordpress.org/trunk@60612


git-svn-id: http://core.svn.wordpress.org/trunk@59948 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-06 18:44:27 +00:00
Bernhard Reiter
a8a35da6b7 Block Bindings: Add filter to set supported block attributes.
Add a new filter, `block_bindings_supported_attributes_{$block_type}`, that allows customizing which of a block's attributes can be connected to a Block Bindings source.

Props bernhard-reiter, gziolo, maxschmeling.
Closes #62090.
Built from https://develop.svn.wordpress.org/trunk@60611


git-svn-id: http://core.svn.wordpress.org/trunk@59947 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-06 18:22:31 +00:00
Sergey Biryukov
988a2ab8fd Twenty Twenty-Four: Use third-person singular verbs for function descriptions.
Reference: [https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#documenting-tips PHP Documentation Standards: Documenting Tips].

Props vladimiraus, mukesh27, SergeyBiryukov.
See #63692.
Built from https://develop.svn.wordpress.org/trunk@60610


git-svn-id: http://core.svn.wordpress.org/trunk@59946 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-06 17:00:32 +00:00
Weston Ruter
b4e1bf55cc Site Health: Improve descriptions for critical issues and recommended improvements.
Props aarti1318, naveendwivedi, westonruter, sabernhardt, dhruvang21, rollybueno.
Fixes #63787.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59945 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-05 21:36:29 +00:00
jonsurrell
2625a6ca44 Docs: Fix typos in HTML API documentation.
Corrects misspelling "compatability" to "compatibility."

Developed in https://github.com/WordPress/wordpress-develop/pull/8769.

Props dhruvang21, jonsurrell, abcd95, getsyash, truptikanzariya, nareshbheda, sergeybiryukov, dmsnell, sabernhardt.
See #63391.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59876 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-05 14:02:27 +00:00
Bernhard Reiter
b8cf69052d Block Bindings: Add core/post-data source.
Add a new Block Bindings source, `core/post-data`, which exposes `date` and `modified` fields for now -- reflecting the publish date and the last modified date of the post, respectively. The source could be subsequently extended to include other fields associated with a post object, such as title, featured image, etc.

Props bernhard-reiter.
Closes #63741.
Built from https://develop.svn.wordpress.org/trunk@60539


git-svn-id: http://core.svn.wordpress.org/trunk@59875 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-05 13:54:35 +00:00
Sergey Biryukov
e05901f85c Twenty Twenty-Two: Use third-person singular verbs for function descriptions.
Reference: [https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#documenting-tips PHP Documentation Standards: Documenting Tips].

Props vladimiraus, mukesh27, SergeyBiryukov.
See #63692.
Built from https://develop.svn.wordpress.org/trunk@60538


git-svn-id: http://core.svn.wordpress.org/trunk@59874 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-05 09:08:39 +00:00
Sergey Biryukov
ff0f834484 Twenty Twenty-One: Use third-person singular verbs for function descriptions.
Reference: [https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#documenting-tips PHP Documentation Standards: Documenting Tips].

Props vladimiraus, mukesh27, SergeyBiryukov.
See #63692.
Built from https://develop.svn.wordpress.org/trunk@60537


git-svn-id: http://core.svn.wordpress.org/trunk@59873 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-04 20:55:31 +00:00
Sergey Biryukov
807d44133f Twenty Twenty: Use third-person singular verbs for function descriptions.
Reference: [https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#documenting-tips PHP Documentation Standards: Documenting Tips].

Props vladimiraus, mukesh27, SergeyBiryukov.
See #63692.
Built from https://develop.svn.wordpress.org/trunk@60536


git-svn-id: http://core.svn.wordpress.org/trunk@59872 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-03 15:27:31 +00:00
Sergey Biryukov
eabdc61bfa Twenty Nineteen: Use third-person singular verbs for function descriptions.
Reference: [https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#documenting-tips PHP Documentation Standards: Documenting Tips].

Props vladimiraus, mukesh27, SergeyBiryukov.
See #63692.
Built from https://develop.svn.wordpress.org/trunk@60535


git-svn-id: http://core.svn.wordpress.org/trunk@59871 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-02 13:28:28 +00:00
desrosj
404ee6710f Build/Test Tools: Spawn fewer jobs in GitHub Actions on forks.
The GitHub Actions workflows currently limit when jobs run for forks by short-circuiting any that are triggered by `push` events when not running within the `wordpress-develop` repository. 

Because the large majority of forks are not created under organizations, they will be subject to the individual account limit of 20 concurrent jobs (40 for pro accounts) at any given time instead of the 500 concurrent job limit that applies to the WordPress organization. This means that a single pull request back to a fork can take several hours to complete the workflow jobs that are spawned.

This revises the conditional statements to further limit the number of jobs that spawn within a fork while still allowing the full test matrices for forks within the `WordPress` organization and pull requests back to `wordpress-develop`.

These adjustments result in a maximum of 53 jobs when all workflows configured to run within forks are triggered. Of these, ~66% will run in less than 3 minutes, and ~55% will run in less than 1 minute.

Props jorbin, johnbillion. 
Fixes #63752.
Built from https://develop.svn.wordpress.org/trunk@60534


git-svn-id: http://core.svn.wordpress.org/trunk@59870 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-01 12:44:29 +00:00
Sergey Biryukov
b66426a1c4 Twenty Seventeen: Use third-person singular verbs for function descriptions.
Reference: [https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#documenting-tips PHP Documentation Standards: Documenting Tips].

Props vladimiraus, mukesh27, SergeyBiryukov.
See #63692.
Built from https://develop.svn.wordpress.org/trunk@60533


git-svn-id: http://core.svn.wordpress.org/trunk@59869 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-01 11:29:30 +00:00
desrosj
82d142a2ea Build/Test Tools: Update the Inovation Releases tested.
This updates the PHPUnit test strategy matrix to test current Innovation Releases.
- MySQL 9.4 is now the current Innovation Release.
- With the release of the 11.8 LTS version, MariaDB has no current Innovation Releases.

See #63167.
Built from https://develop.svn.wordpress.org/trunk@60532


git-svn-id: http://core.svn.wordpress.org/trunk@59868 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-01 11:05:30 +00:00
audrasjb
4f965a7ad0 Docs: Fix since declaration in get_test_search_engine_visibility() docblock.
See #63375.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59866 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-31 23:11:21 +00:00
audrasjb
3930f78020 Site Health: Add a test and the related notice for the Search Engine Visibility setting.
This changeset adds a new Site Health test to make site owners more aware when search engines are discouraged from indexing their sites.
It also increases the visibility of the related Dashboard widget notice.

Changes:
- Adds a new Site Health test under the "Privacy" category to check whether search engines are discouraged
- Displays "recommended" status when search engines are discouraged, with clear messaging to review settings
- Provides a direct link to the Reading Settings page to change this option
- Use a red/alert color to the dashicon used on the Dashboard widget notice

Props jeffr0, newyorkerlaura, joedolson, codente, abcd95, andrewhoyer, SirLouen, johnbillion, mymothersdaughter, audrasjb, Emlebrun, gaeldenysiak, beryldlg, Spaceshipone, coralietixeront, peterwilsoncc.
Fixes #63375.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59865 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-31 23:09:27 +00:00
audrasjb
dd37da8585 Plugins: Move the Add Plugins screen description above the filter menu.
This changeset moves the Add Plugins screen general description above the filter menu. It also rephrases a bit the wording of this description.

Props Presskopp, audrasjb, dhruvang21, shailu25.
Fixes #63723.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59864 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-31 22:49:33 +00:00
Sergey Biryukov
c5ea9c2c86 Twenty Sixteen: Use third-person singular verbs for function descriptions.
Reference: [https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#documenting-tips PHP Documentation Standards: Documenting Tips].

Props vladimiraus, mukesh27, SergeyBiryukov.
See #63692.
Built from https://develop.svn.wordpress.org/trunk@60527


git-svn-id: http://core.svn.wordpress.org/trunk@59863 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-31 20:48:28 +00:00