48048 Commits

Author SHA1 Message Date
Sergey Biryukov
166b55a12b Upgrade/Install: Pass stored credentials to WP_Filesystem() where appropriate.
With the introduction of temporary backups of plugins and themes before updating, a new Site Health test was added to verify that plugin and theme temporary backup directories are writable or can be created.

When using a non-direct filesystem, the Site Health test did not include the required credentials, leading to a fatal error as the connection was not initialized properly.

This commit attemps to use the stored credentials if available, and displays a message otherwise.

Includes a similar fix in a function that performs a cleanup of the temporary backup directory.

Follow-up to [55720].

Props utsav72640, rajinsharwar, costdev, mukesh27, peterwilsoncc, audrasjb, SergeyBiryukov.
Reviewed by audrasjb, SergeyBiryukov.
Merges [56341] to the 6.3 branch.
See #58940.

git-svn-id: https://develop.svn.wordpress.org/branches/6.3@56342 602fd350-edb4-49c9-b593-d223f7449a82
2023-08-01 16:08:16 +00:00
Kelly Choyce-Dwan
5ae26c62a7 Help/About: Add images to About page, match header style to images.
Props richtabor, markoserb, audrasjb, peterwilsoncc, mukesh27.
Reviewed by davidbaumwald.
Merges [56339] to the 6.3 branch.
See #58067.



git-svn-id: https://develop.svn.wordpress.org/branches/6.3@56340 602fd350-edb4-49c9-b593-d223f7449a82
2023-08-01 15:09:29 +00:00
Jb Audras
9ea43a57f8 Help/About: Escape "Contribute" links, for better consistency.
Props SergeyBiryukov, peterwilsoncc.
Reviewed by peterwilsoncc, audrasjb.
Merges [56337] to the 6.3 branch.
See #23348.




git-svn-id: https://develop.svn.wordpress.org/branches/6.3@56338 602fd350-edb4-49c9-b593-d223f7449a82
2023-08-01 12:58:43 +00:00
Jb Audras
0cb0b79cfe Help/About: Remove target="_blank" from the Contribute link.
Props davidbaumwald.
Reviewed by audrasjb.
Merges [56335] to the 6.3 branch.
See #23348.




git-svn-id: https://develop.svn.wordpress.org/branches/6.3@56336 602fd350-edb4-49c9-b593-d223f7449a82
2023-08-01 12:51:02 +00:00
Jb Audras
afa1e0b0f9 Editor: second update of npm packages for 6.3 RC3.
Includes bug fixes for footnotes, patterns, command palette, top toolbar and other small regressions.

Props andrewserong, spacedmonkey.
Reviewed by audrasjb.
Merges [56332] to the 6.3 branch.
Fixes #58926.




git-svn-id: https://develop.svn.wordpress.org/branches/6.3@56334 602fd350-edb4-49c9-b593-d223f7449a82
2023-08-01 12:38:06 +00:00
Isabel Brison
be0255b6ac Editor: fix duplication in templates list.
Excludes parent template when a child template is defined during template retrieval.

Props oandregal, mukesh27, flixos90, bgardner, peterwilsoncc.
Reviewed by peterwilsoncc.
Merges [56329] to the 6.3 branch.
Fixes #57756.


git-svn-id: https://develop.svn.wordpress.org/branches/6.3@56330 602fd350-edb4-49c9-b593-d223f7449a82
2023-08-01 04:22:42 +00:00
Jb Audras
adb69ff250 Help/About: Make Contribute links translatable.
Follow-up to [17877], [26354], [35898], [43032], [56220], [56312].

Props sereedmedia, tobifjellner, oglekler, ryelle, fierevere, davidbaumwald, audrasjb.
Reviewed by davidbaumwald.
Merges [56327] to the 6.3 branch.
See #23348.




git-svn-id: https://develop.svn.wordpress.org/branches/6.3@56328 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-31 20:33:48 +00:00
Jb Audras
a5b4c91068 Editor: initial update of npm packages for 6.3 RC3.
Includes bug fixes for patterns, command palette and several minor regressions.

Props ramonopoly.
Reviewed by audrasjb, isabel_brison.
Merges [56320] to the 6.3 branch.
See #58926.




git-svn-id: https://develop.svn.wordpress.org/branches/6.3@56322 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-28 13:01:21 +00:00
Jb Audras
2103cb9966 Bundled Themes: Bump version numbers for WordPress 6.3.
In coordination with the release of 6.3, a new version of each bundled theme will also be released. This bumps the version of each theme to the following:

- Twenty Ten: 3.9
- Twenty Eleven: 4.4
- Twenty Twelve: 4.0
- Twenty Thirteen: 3.9
- Twenty Fourteen: 3.7
- Twenty Fifteen: 3.5
- Twenty Sixteen: 3.0
- Twenty Seventeen: 3.3
- Twenty Nineteen: 2.6
- Twenty Twenty: 2.3
- Twenty Twenty-One: 1.9
- Twenty Twenty-Two: 1.5
- Twenty Twenty-Three: 1.2

Props mukesh27, hareesh-pillai, audrasjb, jakariaistauk, kafleg, sabernhardt, spacedmonkey.
Reviewed by audrasjb, spacedmonkey.
Merges [56315] to the 6.3 branch.
Fixes #57857.




git-svn-id: https://develop.svn.wordpress.org/branches/6.3@56318 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-27 10:18:04 +00:00
Sergey Biryukov
32432f9647 Help/About: Update “Get involved in WordPress” link on the Credits tab.
This commit updates the link URL to send contributors to an orientation tool for a short survey on what team they may be interested in joining. This coincides with the Get Involved tab.

Follow-up to [17877], [26354], [35898], [43032], [56220].

Props courane01, audrasjb.
Reviewed by audrasjb, SergeyBiryukov.
Merges [56311] to the 6.3 branch.
See #23348.

git-svn-id: https://develop.svn.wordpress.org/branches/6.3@56312 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-26 16:23:40 +00:00
Joe Dolson
3aa1da63f4 Help/About: Fix the Get Involved tab on Network Admin.
This changeset adds a wp-admin/network/contribute.php file to allow the Get Involved tab to work on Network Admin.

Props courane01, ryelle, audrasjb.
Reviewed by joedolson.
Merges [56309] to the 6.3 branch.
See #23348.

git-svn-id: https://develop.svn.wordpress.org/branches/6.3@56310 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-25 22:19:59 +00:00
Jb Audras
b49c476401 Post WordPress 6.3 RC2 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/6.3@56307 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-25 16:38:34 +00:00
Jb Audras
4d7038a289 WordPress 6.3 RC2.
git-svn-id: https://develop.svn.wordpress.org/branches/6.3@56306 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-25 16:13:14 +00:00
Jb Audras
4628b6e3c5 Editor: update npm packages with bug fixes for 6.3 RC2.
Includes miscellaneous bug fixes for 6.3 RC12.

Props ramonopoly, audrasjb, swissspidy, peterwilsoncc, joemcgill.
Reviewed by audrasjb, mikeschroder.
Merges [56298] to the 6.3 branch.
Fixes #58804.




git-svn-id: https://develop.svn.wordpress.org/branches/6.3@56305 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-25 15:03:22 +00:00
Jb Audras
247611b0f0 Twenty Twenty-One: Enable Dark Mode in the block editor iframe.
This changeset replaces `add_action( 'enqueue_block_editor_assets' )`, with `add_action( 'enqueue_block_assets' )`, in class `Twenty_Twenty_One_Dark_Mode` and class 
`Twenty_Twenty_One_Custom_Colors`. This fixes an issue when activating dark mode in Twenty Twenty-One, where dark mode was not enabled in the block editor.

Props poena, mikinc860, huzaifaalmesbah, hasanuzzamanshamim, Ankit-K-Gupta.
Reviewed by desrosj, audrasjb.
Merges [56300] to the 6.3 branch.
Fixes #58835.




git-svn-id: https://develop.svn.wordpress.org/branches/6.3@56304 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-25 14:42:22 +00:00
Jb Audras
f7c81d41d7 Editor: Fix conditionals in Template Editing Mode.
Previously, Site Editor client-side routing started using only the path query argument for loading non-editor views. The router removed the `postType` query 
argument, which caused an error message to be displayed when the template parts list page was reloaded.

This changeset fixes the issue as it was affecting hybrid themes.

Props Mamaduka, isabel_brison, ramonopoly.
Reviewed by isabel_brison, audrasjb.
Merges [56302] to the 6.3 branch.
Fixes #58889.




git-svn-id: https://develop.svn.wordpress.org/branches/6.3@56303 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-25 14:33:58 +00:00
Isabel Brison
f4c4bf4536 Editor: load title on navigation fallback.
Adds raw title property when loading the navigation fallback with an embed context.

Props ramonopoly, get_dave, scruffian, mukesh27, audrasjb.
Reviewed by audrasjb.
Merges [56296] to the 6.3 branch.
See #58557.


git-svn-id: https://develop.svn.wordpress.org/branches/6.3@56297 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-25 06:33:12 +00:00
Jb Audras
a6bfd28e4d Help/About: Updates to About page.
Update the headers, icons, and avatar style to match the designs. Fix the version strings on embedded images. Remove the tagline on main About page. Update "ctrl" 
to the correct capitalization, "Ctrl".

Follow-up to [56263].

Props richtabor, markoserb, audrasjb, nekojonez.
Reviewed by peterwilsoncc, audrasjb.
Merges [56292] to the 6.3 branch.
See #58067.




git-svn-id: https://develop.svn.wordpress.org/branches/6.3@56295 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-25 00:10:12 +00:00
Jb Audras
9c5d00859a Administration: Update dashboard welcome panel for 6.3.
Update the background image and styles for the Welcome Panel. This iteration does not use different colors on the admin color schemes, so the CSS for that has been 
removed. This also adds back in a working "Edit styles" link, which was removed in 6.2 because the link was broken.

Props richtabor, markoserb.
Reviewed by peterwilsoncc, audrasjb.
Merges [56291] to the 6.3 branch.
Fixes #58545.




git-svn-id: https://develop.svn.wordpress.org/branches/6.3@56294 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-25 00:07:26 +00:00
Jb Audras
d98a95f6af Help/About: Add illustrations to the Get Involved tab.
Follow-up to [56220], [56227], [56233], [56234], [56259].

Props richtabor, markoserb.
Reviewed by peterwilsoncc, audrasjb.
Merges [56290] to the 6.3 branch.
Fixes #23348.




git-svn-id: https://develop.svn.wordpress.org/branches/6.3@56293 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-25 00:04:24 +00:00
Jb Audras
86d22dc3d9 Editor: fix popover positioning.
Pins the floating-ui package versions to avoid breaking changes when they update.

Props isabel_brison, ramonopoly, spacedmonkey, bhrugesh12, huzaifaalmesbah, audrasjb, azaozz.
Reviewed by audrasjb.
Merges [56284] to the 6.3 branch.
Fixes #58847.




git-svn-id: https://develop.svn.wordpress.org/branches/6.3@56289 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-24 21:00:45 +00:00
Jb Audras
c33c5a703d Editor: Fix abbreviations of "Example" in block-template-utils.php.
This changeset improves the consistency of the use of "e.g." in template descriptions.

Props jordesign, audrasjb, joedolson.
Reviewed by joedolson.
Merges [56287] to the 6.3 branch.
Fixes #58879.




git-svn-id: https://develop.svn.wordpress.org/branches/6.3@56288 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-24 20:55:24 +00:00
Jb Audras
9b80231b36 Media: Fix Image rotation button overflow in translations.
Fix CSS to cover the image rotation button action text being longer than the Image Rotation menu toggle. Prevent the button text from overflowing the 
button.

Follow-up to [56239].

Props kebbet, joedolson.
Reviewed by audrasjb.
Merges [56282] to the 6.3 branch.
Props kebbet.
Fixes #58877.




git-svn-id: https://develop.svn.wordpress.org/branches/6.3@56286 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-24 20:39:50 +00:00
Joe Dolson
7c7180e231 Docs: Fix indentation issue in WP_REST_Global_Styles_Revisions_Controller class.
Follow-up to [56082].
Reviewed by joedolson.
Merges [56272] to the 6.3 branch.
See #57840, #58524.

git-svn-id: https://develop.svn.wordpress.org/branches/6.3@56280 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-21 18:43:38 +00:00
Jb Audras
5e7d87a402 Media: Fix height max value in image scaling.
Set the `max` attribute in the height input for image scaling to reference the image height, instead of the width.

Follow-up to [55919].

Props costdev, joedolson, joemcgill.
Reviewed by audrasjb.
Merges [56277] to the 6.3 branch.
Fixes #50523.




git-svn-id: https://develop.svn.wordpress.org/branches/6.3@56278 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-21 15:05:46 +00:00
Jb Audras
ce6fe08ff9 REST API: Update Global styles revisions private methods to protected.
This changeset updates the private vars and methods in the Global styles revisions rest API controller to be protected, so class entities that inherit 
from the base can use them, and to allow iterating on 6.3 features without having to copy over private methods to new classes.

Props ramonopoly.
Reviewed by spacedmonkey.
Merges [56268] to the 6.3 branch.
Fixes #58846.




git-svn-id: https://develop.svn.wordpress.org/branches/6.3@56275 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-21 09:41:54 +00:00
Sergey Biryukov
c0442243f3 Security: Update the Security Policy for the 6.3 branch.
See [56267] for trunk.

git-svn-id: https://develop.svn.wordpress.org/branches/6.3@56269 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-19 11:09:24 +00:00
Mike Schroder
ba04ac9481 Branch 6.3
git-svn-id: https://develop.svn.wordpress.org/branches/6.3@56266 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-19 05:15:57 +00:00
David Baumwald
d6f72bad6f Post WordPress 6.3 RC1 version bump.
git-svn-id: https://develop.svn.wordpress.org/trunk@56265 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-18 17:02:33 +00:00
David Baumwald
a0e2ecfa24 WordPress 6.3 RC1.
git-svn-id: https://develop.svn.wordpress.org/trunk@56264 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-18 16:44:12 +00:00
Kelly Choyce-Dwan
53a51a046d Help/About: Update the About page for 6.3.
This is the start of the WordPress 6.3 about page, introducing new content and a first pass of the new style.

Props jpantani, dansoschin, annezazu, priethor, marybaum, eidolonnight, clarkeemily, flixos90, cbringmann, meher, richtabor, markoserb, joen, saxonafletcher, jameskoster, davidbaumwald, peterwilsoncc, ryelle.
See #58067.



git-svn-id: https://develop.svn.wordpress.org/trunk@56263 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-18 16:18:32 +00:00
Bernie Reiter
75caa9c318 Editor: Add test for context setting in Comment Template block.
Test that `commentId` context is correctly set and made available by the Comment Template block to the `render_block_context` filter (at priority 2 and higher), and to the `render_block` filter (important when programmatically inserting child blocks into the Comment Template block).

Furthermore, test that child blocks inserted via the `render_block_data` filter are retained and thus present at `render_block` filter stage.

Props andrewserong, ramonopoly, peterwilsoncc, costdev, mukesh27, flixos90.
Fixes #58839.

git-svn-id: https://develop.svn.wordpress.org/trunk@56262 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-18 16:07:49 +00:00
Sergey Biryukov
722f73761c Administration: Add a missing closing </span> tag for column sorting indicators.
Includes wrapping a few other long markup lines for better readability.

Follow-up to [55971], [56004], [56260].

See #32170, #57839.

git-svn-id: https://develop.svn.wordpress.org/trunk@56261 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-18 14:07:02 +00:00
Sergey Biryukov
eb52f08d4e Coding Standards: Use strict comparison for static strings in wp-admin/includes/class-wp-list-table.php.
Follow-up to [55971], [56004].

See #32170, #57839.

git-svn-id: https://develop.svn.wordpress.org/trunk@56260 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-18 14:03:57 +00:00
Jb Audras
b973822085 Help/About: String changes in the Contribute screen.
Follow-up to [56220], [56227], [56233], [56234].

Props costdev.
See #23348.




git-svn-id: https://develop.svn.wordpress.org/trunk@56259 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-18 10:45:24 +00:00
Jonny Harris
d0b8f4927f Upgrade/Install: Add correct parameters to add_option in upgrade_630
Introduced in [55854], `upgrade_630` function was introduced to update `can_compress_scripts` option to autoload. However the function `add_option` was invoked incorrectly, passing 3 parameters and not 4. The third parameter, which is deprecated, triggers a  deprecated argument warning. In this change, pass 4 parameters instead of 3. 

Props gudmdharalds, spacedmonkey, costdev, mukesh27.
Fixes #58821.

git-svn-id: https://develop.svn.wordpress.org/trunk@56258 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-18 10:07:05 +00:00
Jb Audras
3df7a53c98 Docs: Various docblocks corrections.
See #57840.




git-svn-id: https://develop.svn.wordpress.org/trunk@56257 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-18 07:35:16 +00:00
Jb Audras
30071283f5 Docs: Fix various incorrect @since mentions.
Props costdev, mukesh27.
Fixes #58834.
See #57840.




git-svn-id: https://develop.svn.wordpress.org/trunk@56256 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-18 07:28:47 +00:00
Isabel Brison
9520d9eb69 Editor: update npm packages with second round of bug fixes for 6.3 RC1.
Includes miscellaneous bug fixes for 6.3 RC1.

Props ramonopoly, mukesh27.
Fixes #58804.


git-svn-id: https://develop.svn.wordpress.org/trunk@56255 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-18 07:17:23 +00:00
Felix Arntz
2b931da110 Editor: Fix bug where it was not possible to style custom block elements in theme.json.
This changeset resolves a bug where WordPress would only allow HTML elements within core's own blocks to be styled in `theme.json`. Prior to this change, any `theme.json` rules applying to elements in custom blocks were ignored. With this fix it is now possible to style third-party block elements in `theme.json`.

Props flixos90, azaozz, costdev, glendaviesnz, spacedmonkey, oandregal.
Fixes #57868.


git-svn-id: https://develop.svn.wordpress.org/trunk@56254 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-18 00:00:49 +00:00
Jb Audras
2e64ff87b8 Twenty Twenty-Three: Revert [55898].
This changeset reverts [55898] which removed redundant `px` units in a few inline styles, because 1) The values in the block comment and the style 
attribute needs to match ; 2) The block control does not accept unitless values.

Follow-up to [54312], [54629], [55898].

Props TobiasBg, poena, oglekler.
See #58485.




git-svn-id: https://develop.svn.wordpress.org/trunk@56253 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-17 22:24:39 +00:00
Jb Audras
36e890071e External Libraries: Update deprecated jQuery code in Farbtastic lib.
This changeset updates some deprecated jQuery code in the Farbtastic external library. As this vendor script is not maintained anymore, this changeset 
also adds a docblock to specify that the library has been "adopted" by WP Core.

Props Malae, sabernhardt, SergeyBiryukov, Presskopp, mrinal013, peterwilsoncc, oglekler, jorbin.
Fixes #57946.




git-svn-id: https://develop.svn.wordpress.org/trunk@56252 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-17 22:01:08 +00:00
Andrew Ozz
d36975aee7 Twenty Twenty-Three: Remove the perPage attribute where the query inherits from the global query. The global attribute should be used instead.
Props: mikachan, onemaggie.
Fixes: #58581.

git-svn-id: https://develop.svn.wordpress.org/trunk@56251 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-17 21:32:47 +00:00
Andrew Ozz
924df264a0 Media: Stop using and deprecate set_imagick_time_limit(). Seems it causes more problems than it solves.
Follow-up to #52569 and [55404].

Props: dsar, antpb, audrasjb, SergeyBiryukov, hberberoglu, mtxz, densityapps, ekazda, matt_fw, soulseekah, mikeschroder, azaozz.

Fixes: #58202.

git-svn-id: https://develop.svn.wordpress.org/trunk@56250 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-17 20:02:11 +00:00
Joe McGill
be1cb4583a General: Rename wp_in_development_mode() to wp_is_development_mode().
This changes the function name for the helper function to check whether the current environment is running with the `WP_DEVELOPMENT_MODE` constant set to be more consistent with similar functions in core, like `wp_is_maintenance_mode()` and `wp_is_recover_mode()`.

Props flixos90, swissspidy, costdev, peterwilson, robinwpdeveloper, SergeyBiryukov, joemcgill.
See 57487.


git-svn-id: https://develop.svn.wordpress.org/trunk@56249 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-17 14:48:48 +00:00
Jb Audras
7df1b8366d Editor: Fix a PHP notice appearing when adding a new template part.
This changeset fixes a PHP notice appearing when a template part is created in the site editor. It also adds a unit test case to cover 
`WP_REST_Templates_Controller::prepare_item_for_database`.

Props wildworks, dunhakdis, Rahmohn, oglekler, audrasjb, mukesh27, costdev, dunhakdis.
Fixes #57851.




git-svn-id: https://develop.svn.wordpress.org/trunk@56248 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-17 14:20:42 +00:00
K. Adam White
fb9814474e Build Tools: Remove outmoded jsvalidate task from Gruntfile.
grunt-jsvalidate was added to catch situations where minification introduced parsing errors in Internet Explorer.
IE is no longer supported by WordPress, and the grunt task itself has not been maintained for a decade.
Removing this task simplifies the build and avoids false-positive warnings where the outdated tool flags modern JS syntax incorrectly.

Props westonruter, joemcgill, jorbin, youknowriad, desrosj, swissspidy.
Fixes #58645. See #26615.


git-svn-id: https://develop.svn.wordpress.org/trunk@56247 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-17 14:05:51 +00:00
Joe McGill
967abef19e Script Loader: Improve test coverage for wp_print_scripts().
This is a follow-up to [56092], which further improves PHPUnit test coverage and inline docs for ensuring `async` and `defer` attributes are being properly handled for scripts that are printed without being enqueued.

Props peterwilsoncc, azaozz, westonruter, joemcgill.
See #58648.


git-svn-id: https://develop.svn.wordpress.org/trunk@56246 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-17 14:04:00 +00:00
Sergey Biryukov
8b5cfe0887 Code Modernization: Use str_contains() in a few more places.
`str_contains()` was introduced in PHP 8.0 to perform a case-sensitive check indicating if the string to search in (haystack) contains the given substring (needle).

WordPress core includes a polyfill for `str_contains()` on PHP < 8.0 as of WordPress 5.9.

This commit replaces `false !== strpos( ... )` with `str_contains()` in core files, making the code more readable and consistent, as well as better aligned with modern development practices.

Follow-up to [55988], [55990], [56014], [56021], [56031], [56032], [56065], [56241].

See #58206.

git-svn-id: https://develop.svn.wordpress.org/trunk@56245 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-17 13:16:14 +00:00
Isabel Brison
2beefda2c0 Editor: trim footnote anchors from post excerpts.
Adds the `excerpt_remove_footnotes` function to trim footnote anchors from post excerpts.

Props: ramonopoly, costdev, mukesh27, mcsf, azaozz.
Fixes #58805.


git-svn-id: https://develop.svn.wordpress.org/trunk@56244 602fd350-edb4-49c9-b593-d223f7449a82
2023-07-17 01:45:24 +00:00