Commit Graph

17617 Commits

Author SHA1 Message Date
desrosj
e3221c7d25 Grouped backports to the 5.2 branch.
- Query: Improve sanitization within `WP_Tax_Query`.
- Query: Improve sanitization within `WP_Meta_Query`.
- Upgrade/Install: Avoid using `unserialize()` unnecessarily.
- Formatting: Correctly encode ASCII characters in post slugs.

Merges [52454-52457] to the 5.2 branch.
Props vortfu, dd32, ehtis, zieladam, whyisjake, xknown, peterwilsoncc, desrosj, iandunn.
Built from https://develop.svn.wordpress.org/branches/5.2@52471


git-svn-id: http://core.svn.wordpress.org/branches/5.2@52063 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-06 18:13:36 +00:00
desrosj
0ebcbe65d6 WordPress 5.2.13.
Built from https://develop.svn.wordpress.org/branches/5.2@52119


git-svn-id: http://core.svn.wordpress.org/branches/5.2@51711 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-11-10 17:11:42 +00:00
desrosj
5a4b00a618 Grouped merges for 5.2.12.
- Update `lodash` to the latest version `4.17.21`.
- Disable some attributes for rich text.
- Use hashed/deterministic moduleIDs in webpack config.

Props ellatrix, peterwilsoncc, get_dave, mcsf, talldanwp, youknowriad, desrosj, nerrad, gziolo.
Merges [50940-50941,50984-50985,51426] to the 5.2 branch.
Built from https://develop.svn.wordpress.org/branches/5.2@51756


git-svn-id: http://core.svn.wordpress.org/branches/5.2@51363 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-08 21:22:54 +00:00
Peter Wilson
504360c3e0 WordPress 5.2.11.
Built from https://develop.svn.wordpress.org/branches/5.2@50874


git-svn-id: http://core.svn.wordpress.org/branches/5.2@50483 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-05-12 23:16:42 +00:00
desrosj
8043803e2e Grouped merges for 5.2.10.
* REST API: Allow authors to read their own password protected posts.
* About page update

Merges [50717] to the 5.2 branch.

Built from https://develop.svn.wordpress.org/branches/5.2@50729


git-svn-id: http://core.svn.wordpress.org/branches/5.2@50338 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-04-15 01:11:37 +00:00
desrosj
36cc3aab1a Build/Test Tools: Backport GitHub Action and build improvements to the 5.2 branch.
This backports several build and test tool improvements to the 5.2 branch. Most notably, this includes:

- The changes required to allow each workflow to be triggered by the `workflow_dispatch` event so that tests can be run on a schedule [50590].
- The ability to run PHPUnit tests from `src` instead of `build` [50441-50443].
- Splitting single site and multisite tests into parallel jobs [50379].
- Split slow tests into separate, parallel jobs for PHP 5.6 [50444].
- Better branch and path scoping for GitHub Action workflows when running on `pull_request` [50432,50479].
- Several `devDependency` updates.

Merges [50267,50299,50379,50387,50413,50416,50432,50435-50436,50441-50444,50446,50473-50474,50476,50479,50485-50487,50545,50579,50590,50598] to the 5.2 branch.
See #50401, #51734, #51801, #51802, #52548, #52608, #52612, #52623, #52624, #52625, #52645, #52653, #52658, #52660, #52667.
Built from https://develop.svn.wordpress.org/branches/5.2@50606


git-svn-id: http://core.svn.wordpress.org/branches/5.2@50219 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-26 20:03:48 +00:00
desrosj
cf023b82bd Build/Test Tools: Support NodeJS 14.x in the 5.2 branch.
This updates the 5.2 branch to support the latest LTS version of NodeJS (currently 14.x), allowing the same version to be used across all WordPress branches that receive security updates as a courtesy.

In addition to backporting the package updates that happened after branching 5.2, dependencies that were removed in future releases have also been updated to their latest versions.

Props desrosj, dd32, netweb, jorbin, whyisjake.
Merges [45321,45765,45826,45875,46403-46404,46408-46409,47404,47867,47872-47873,48213,48705,49636,49933,49937,49939-49940,49983,49989,50017,50126,50176,50185] to the 5.2 branch.
See #52341.
Built from https://develop.svn.wordpress.org/branches/5.2@50191


git-svn-id: http://core.svn.wordpress.org/branches/5.2@49869 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-02-05 03:20:06 +00:00
desrosj
b4da91521f Build Tools: Fix running installing Composer dependencies using Composer 2.0.
This updates the `dealerdirect/phpcodesniffer-composer-installer` package to allow installing version `0.7.0` which supports Composer 2.0.

It also includes several minor spacing/alignment coding standards fixes that are made as a result of the package update.

Props itowhid06, jrf.
Merges [49306] to the 5.2 branch.
See #51624, #48301.
Built from https://develop.svn.wordpress.org/branches/5.2@49514


git-svn-id: http://core.svn.wordpress.org/branches/5.2@49269 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-11-06 16:29:54 +00:00
Sergey Biryukov
130b6904f3 WordPress 5.2.9.
Built from https://develop.svn.wordpress.org/branches/5.2@49461


git-svn-id: http://core.svn.wordpress.org/branches/5.2@49220 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-30 19:50:57 +00:00
desrosj
8dd5c0cdec WordPress 5.2.8.
Built from https://develop.svn.wordpress.org/branches/5.2@49412


git-svn-id: http://core.svn.wordpress.org/branches/5.2@49171 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-29 19:37:05 +00:00
whyisjake
505afcd180 General: WordPress updates
* XML-RPC: Improve error messages for unprivileged users.
* External Libraries: Disable deserialization in Requests_Utility_FilteredIterator
* Embeds: Disable embeds on deactivated Multisite sites.
* Coding standards: Modify escaping functions to avoid potential false positives.
* XML-RPC: Return error message if attachment ID is incorrect.
* Upgrade/install: Improve logic check when determining installation status.
* Meta: Sanitize meta key before checking protection status.
* Themes: Ensure that only privileged users can set a background image when a theme is using the deprecated custom background page.

Brings the changes from [49380,49382-49388] to the 5.2 branch.

Props xknown, zieladam, peterwilsoncc, whyisjake, desrosj, dd32.

Built from https://develop.svn.wordpress.org/branches/5.2@49394


git-svn-id: http://core.svn.wordpress.org/branches/5.2@49153 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-29 18:45:55 +00:00
Sergey Biryukov
94cd77983b Administration: Pass the result of set-screen-option filter to the new set_screen_option_{$option} filter to ensure backward compatibility.
Rename the `$keep` parameter of both filters to `$screen_option` for clarity, update the documentation to better reflect its purpose.

Follow-up to [47951].

Props Chouby, sswells, SergeyBiryukov.
Merges [48241] to the 5.2 branch.
Fixes #50392.
Built from https://develop.svn.wordpress.org/branches/5.2@48246


git-svn-id: http://core.svn.wordpress.org/branches/5.2@48015 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-07-01 09:47:58 +00:00
desrosj
8b8aef2834 WordPress 5.2.7.
Built from https://develop.svn.wordpress.org/branches/5.2@47991


git-svn-id: http://core.svn.wordpress.org/branches/5.2@47759 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-10 21:34:59 +00:00
desrosj
0d6541c100 General: Backport several commits for release.
- Embeds: Ensure that the title attribute is set correctly on embeds.
- Editor: Prevent HTML decoding on by setting the proper editor context.
- Formatting: Ensure that wp_validate_redirect() sanitizes a wider variety of characters.
- Themes: Ensure a broken theme name is returned properly.
- Administration: Add a new filter to extend set-screen-option. 

Merges [47948-47951] to the 5.2 branch.
Props xknown, sstoqnov, vortfu, SergeyBiryukov, whyisjake.
Built from https://develop.svn.wordpress.org/branches/5.2@47960


git-svn-id: http://core.svn.wordpress.org/branches/5.2@47732 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-10 18:12:52 +00:00
Sergey Biryukov
a0ec22dbda Themes: Add "Block Editor Styles" and "Wide Blocks" to the list of WordPress theme features.
These were added to Theme Directory API in anticipation of being committed to core for WordPress 5.2+, which has not happened until now.

Follow-up to [meta8273].

Merges [47790] to the 5.2 branch.
See #46272.
Built from https://develop.svn.wordpress.org/branches/5.2@47793


git-svn-id: http://core.svn.wordpress.org/branches/5.2@47569 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-05-14 09:24:07 +00:00
Sergey Biryukov
b8368e4d72 Update the About page for WordPress 5.2.6
Built from https://develop.svn.wordpress.org/branches/5.2@47704


git-svn-id: http://core.svn.wordpress.org/branches/5.2@47481 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-04-29 18:41:43 +00:00
Sergey Biryukov
7d171684bc WordPress 5.2.5
Built from https://develop.svn.wordpress.org/branches/5.2@46921


git-svn-id: http://core.svn.wordpress.org/branches/5.2@46721 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-12-12 20:24:58 +00:00
desrosj
d60f90873c Post WordPress 5.2.4 version bump. The 5.2 branch is now 5.2.5-alpha.
Built from https://develop.svn.wordpress.org/branches/5.2@46540


git-svn-id: http://core.svn.wordpress.org/branches/5.2@46337 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-14 22:02:53 +00:00
desrosj
9380cf2995 WordPress 5.2.4.
Built from https://develop.svn.wordpress.org/branches/5.2@46508


git-svn-id: http://core.svn.wordpress.org/branches/5.2@46305 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-14 20:06:55 +00:00
desrosj
2df5a45321 Help/About: Update the About page for 5.2.3.
Props whyisjake, desrosj.
Fixes #47923.
Built from https://develop.svn.wordpress.org/branches/5.2@46046


git-svn-id: http://core.svn.wordpress.org/branches/5.2@45858 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-09-04 22:08:25 +00:00
whyisjake
affedce0a8 Update wp.a11y.speak() to sanitize HTML before display.
Merges [45979] to the 5.2 branch

Props iandunn, adamsilverstein, sstoqnov, peterwilsoncc

Built from https://develop.svn.wordpress.org/branches/5.2@45989


git-svn-id: http://core.svn.wordpress.org/branches/5.2@45800 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-09-04 17:23:52 +00:00
Sergey Biryukov
4315d85d65 Escape the output in wp_ajax_upload_attachment().
Merges [45936] to the 5.2 branch.
Props whyisjake, sstoqnov.
Built from https://develop.svn.wordpress.org/branches/5.2@45938


git-svn-id: http://core.svn.wordpress.org/branches/5.2@45749 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-09-04 16:15:51 +00:00
Sergey Biryukov
6b8460ee43 Customizer: Trim whitespace from custom link URLs.
This complements a similar fix for the Menus screen in [45655].

Props donmhico, audrasjb.
Merges [45869] to the 5.2 branch.
Fixes #47888. See #47723.
Built from https://develop.svn.wordpress.org/branches/5.2@45870


git-svn-id: http://core.svn.wordpress.org/branches/5.2@45681 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-08-21 00:29:52 +00:00
Sergey Biryukov
6faaa121a8 Block Editor: Fix the link to the classic editor when incompatible meta boxen are detected.
Props tmatsuur, mukesh27.
Merges [45618] to the 5.2 branch.
Fixes #45935.
Built from https://develop.svn.wordpress.org/branches/5.2@45848


git-svn-id: http://core.svn.wordpress.org/branches/5.2@45659 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-08-19 04:53:53 +00:00
Sergey Biryukov
fc5723d396 Upgrade/Install: Bring some consistency to installation screen styles.
* Include `forms.css` and `l10n.css`, for consistency with login screen and other admin screens.
* Remove redundant `@import` directives from `login.css` for files already declared as dependencies.
* Adjust margin on password strength meter for consistency with other fields.
* Increase font size for "You will need this password to log in" notice.
* Fix misaligned icon on "Hide" button for the password.

Props iseulde, dan@micamedia.com, bassgang, cdog, johnbillion, nmenescardi, mukesh27, alpipego, SergeyBiryukov.
Merges [45673] to the 5.2 branch.
Fixes #35776, #43483, #47757, #47758.
Built from https://develop.svn.wordpress.org/branches/5.2@45844


git-svn-id: http://core.svn.wordpress.org/branches/5.2@45655 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-08-19 04:44:53 +00:00
Sergey Biryukov
8cf11a944f Customize: Make the color picker close when clicking on the empty area on the right.
Props monikarao, afercia.
Merges [45722] to the 5.2 branch.
Fixes #47693.
Built from https://develop.svn.wordpress.org/branches/5.2@45843


git-svn-id: http://core.svn.wordpress.org/branches/5.2@45654 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-08-19 04:39:51 +00:00
Sergey Biryukov
ad85b0fe1d Accessibility: Fix the headings hierarchy in the legacy Custom Background and Custom Header pages.
Props afercia.
Merges [45411] to the 5.2 branch.
Fixes #47386.
Built from https://develop.svn.wordpress.org/branches/5.2@45839


git-svn-id: http://core.svn.wordpress.org/branches/5.2@45650 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-08-19 04:29:53 +00:00
Sergey Biryukov
7b8b2a7f5c Accessibility: Improve settings tables and forms after [45403].
- adds `role="presentation"` to the edit comment table 
- removes a few pointless `<fieldset>` elements
- adds a few missing `<label>` elements
- adds the CSS class `class="td-full"` to table rows spanning to multiple cells
- adds explicit `scope="row"` attribute to the table headers in `options-permalink.php`: this table is better communicated as data table 
- uses consistent label association in the "Privacy Settings" page
- in the installation page "Set up your database connection": associates descriptions to their inout fields using `aria-describedby`
- improves the link to gravatar.com in the `user-edit.php` page

Props afercia.
Merges [45416] to the 5.2 branch.
See #46899.
Fixes #47390.
Built from https://develop.svn.wordpress.org/branches/5.2@45835


git-svn-id: http://core.svn.wordpress.org/branches/5.2@45646 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-08-19 04:15:52 +00:00
Sergey Biryukov
18987f840c Accessibility: Make sure layout tables across the admin are correctly linearized.
Adds `role="presentation"` to the `<table>` elements used for layout purposes.

Ideally, HTML tables should be used for tabular data. When tables are used for layout purposes, it's important to remove any native semantics so that assistive technologies can correctly announce the table content in a linearized fashion.

Props greatislander, afercia.
Merges [45403] to the 5.2 branch.
See #46899.
Built from https://develop.svn.wordpress.org/branches/5.2@45834


git-svn-id: http://core.svn.wordpress.org/branches/5.2@45645 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-08-19 04:13:54 +00:00
Sergey Biryukov
7b82b8fd18 Site Health: Use correct variable when checking PHP requirements for a plugin update in WP_Plugins_List_Table::single_row().
Props diddledan, sharaz, vaishalipanchal, afragen.
Merges [45750] to the 5.2 branch.
Fixes #47835.
Built from https://develop.svn.wordpress.org/branches/5.2@45833


git-svn-id: http://core.svn.wordpress.org/branches/5.2@45644 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-08-19 04:09:52 +00:00
Sergey Biryukov
d8a0523887 Editor: Fix undefined $locked var in edit-form-blocks.php when the show_post_locked_dialog filter is used to disable displaying of the dialog.
Props aprea.
Merges [45564] to the 5.2 branch.
Fixes #47604.
Built from https://develop.svn.wordpress.org/branches/5.2@45831


git-svn-id: http://core.svn.wordpress.org/branches/5.2@45642 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-08-19 04:04:52 +00:00
Sergey Biryukov
e81b064b0b Customize: Fix text direction for color picker in RTL.
Props vjik, SergeyBiryukov.
Merges [45626] to the 5.2 branch.
Fixes #47688. See #23740.
Built from https://develop.svn.wordpress.org/branches/5.2@45830


git-svn-id: http://core.svn.wordpress.org/branches/5.2@45641 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-08-19 04:02:52 +00:00
Sergey Biryukov
22eb801023 Block Editor: Avoid a PHP warning when a theme adds an editor style with an empty filename.
Props pento, gqevu6bsiz.
Merges [45619] to the 5.2 branch.
Fixes #45739.
Built from https://develop.svn.wordpress.org/branches/5.2@45829


git-svn-id: http://core.svn.wordpress.org/branches/5.2@45640 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-08-19 04:00:52 +00:00
Sergey Biryukov
37b995b2bb Menus: Fix the Custom Links text fallback.
When adding a Custom Link and leaving the "Link Text" field empty, WordPress used to set a default fallback text: "Menu Item".

The changes in [36379] broke this behavior making the fallback text: `(Pending)`, with a leading space.

Pending major refactoring of the Menus page (which is going to use a block-based user interface) this change just restores the original behavior by adding the fallback text to the related AJAX response.

Props christophherr, Fencer04, thakkarhardik, backermann1978, audrasjb.
Merges [45727] to the 5.2 branch.
Fixes #38415.
Built from https://develop.svn.wordpress.org/branches/5.2@45828


git-svn-id: http://core.svn.wordpress.org/branches/5.2@45639 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-08-19 03:56:53 +00:00
Sergey Biryukov
7bde97c5d1 Plugins: Fix the plugin details modal layout after [45520].
Props mukesh27, marybaum, audrasjb.
Merges [45563] to the 5.2 branch.
Fixes #47561.
Built from https://develop.svn.wordpress.org/branches/5.2@45666


git-svn-id: http://core.svn.wordpress.org/branches/5.2@45477 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-07-24 22:02:56 +00:00
desrosj
65463622a1 Help/About: Improve wording of PHP Error Protection section.
Merges [45551] to the 5.2 branch.

Props pedromendonca, garrett-eclipse.
See #47475.
Fixes #47538.
Built from https://develop.svn.wordpress.org/branches/5.2@45552


git-svn-id: http://core.svn.wordpress.org/branches/5.2@45363 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-06-20 09:55:54 +00:00
desrosj
41aff9bd35 Help/About: Update the About page for WordPress 5.2.2.
Reviewed by ocean90, desrosj.

Props audrasjb.
Fixes #47558.
Built from https://develop.svn.wordpress.org/branches/5.2@45548


git-svn-id: http://core.svn.wordpress.org/branches/5.2@45359 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-06-18 16:53:52 +00:00
Andrew Ozz
5d7e433b1d Add a Recovery Mode Exit button to the notice. This fixes it in responsive view.
Props desrosj, karmatosed, chetan200891, afercia, afragen, garrett-eclipse.
Merges [45529] to the 5.2 branch.
Fixes #47070.

Built from https://develop.svn.wordpress.org/branches/5.2@45530


git-svn-id: http://core.svn.wordpress.org/branches/5.2@45341 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-06-13 16:05:52 +00:00
Andrea Fercia
63870541c7 Administration: Improve the horizontal centering of the Site Health tabs.
Props dkarfa, davidbaumwald, Clorith, tinkerbelly, afercia.
Merges [45522] to the 5.2 branch.
Fixes #46881 for 5.2.2.

Built from https://develop.svn.wordpress.org/branches/5.2@45523


git-svn-id: http://core.svn.wordpress.org/branches/5.2@45334 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-06-12 19:36:53 +00:00
Andrea Fercia
3d1f02b537 Administration: Fix the responsive layout after changes to the Screen Options and Help buttons position.
Merges [45520] to the 5.2 branch.
Fixes #45094 for 5.2.2.

Built from https://develop.svn.wordpress.org/branches/5.2@45521


git-svn-id: http://core.svn.wordpress.org/branches/5.2@45332 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-06-12 19:24:55 +00:00
Sergey Biryukov
3b157938be I18N: Merge duplicate "authenticity could not be verified" strings, fix comma placement on About page.
Props pedromendonca, garrett-eclipse.
Merges [45515] to the 5.2 branch.
Fixes #47475.
Built from https://develop.svn.wordpress.org/branches/5.2@45516


git-svn-id: http://core.svn.wordpress.org/branches/5.2@45327 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-06-10 14:16:53 +00:00
Andrea Fercia
8da585f83f Administration: Improve the Site Health tables layout for small screens.
Props immeet94, jankimoradiya, desrosj, shashank3105, chetan200891, Clorith, hedgefield. 

Merges [45463] to the 5.2 branch.
Fixes #46960 for 5.2.2.

Built from https://develop.svn.wordpress.org/branches/5.2@45514


git-svn-id: http://core.svn.wordpress.org/branches/5.2@45325 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-06-10 14:03:52 +00:00
Andrea Fercia
b2fbbe2100 Administration: Remove extra border from the Screen Options and Help buttons.
The extra border was visible in the responsive view for smaller screens after [32844].

Props jitendrabanjara1991.

Merges [45501] and [45502] to the 5.2 branch.
Fixes #46749 for 5.2.2.

Built from https://develop.svn.wordpress.org/branches/5.2@45513


git-svn-id: http://core.svn.wordpress.org/branches/5.2@45324 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-06-10 13:59:52 +00:00
Sergey Biryukov
7eab77d326 I18N: Merge duplicate "Status" and "Info" strings on Site Health screens.
Props ramiy.
Merges [45488] to the 5.2 branch.
Fixes #47227.
Built from https://develop.svn.wordpress.org/branches/5.2@45512


git-svn-id: http://core.svn.wordpress.org/branches/5.2@45323 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-06-10 13:48:52 +00:00
Sergey Biryukov
e28153577f Media: Restore correct arrow direction in RTL in Attachment Details modal.
Reverts [29264]. As we now have a build task to replace dashicons for RTL, the CSS rules no longer worked as expected and had the opposite effect.

Props ramiy, SergeyBiryukov.
Merges [45495] to the 5.2 branch.
Fixes #46289.
Built from https://develop.svn.wordpress.org/branches/5.2@45511


git-svn-id: http://core.svn.wordpress.org/branches/5.2@45322 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-06-10 13:46:52 +00:00
desrosj
f8677253e4 I18N: Combine similar strings with minor differences.
Merges [45298] to the 5.2 branch.

Props dimadin.
Fixes #47158.
Built from https://develop.svn.wordpress.org/branches/5.2@45510


git-svn-id: http://core.svn.wordpress.org/branches/5.2@45321 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-06-10 13:34:45 +00:00
Andrea Fercia
c3bc45b95d Accessibility: Improve the Screen Options and Help buttons order.
- makes the buttons visual order match the DOM order
- also, restores the focus style on the "hero" primary button after [34948]

Props vrimill, mukesh27 for reporting and testing.
Merges [45503] to the 5.2 branch.
Fixes #45094 for 5.2.2.

Built from https://develop.svn.wordpress.org/branches/5.2@45509


git-svn-id: http://core.svn.wordpress.org/branches/5.2@45320 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-06-10 13:33:52 +00:00
Peter Wilson
426d43abb7 Site health: Introduce view_site_health_checks capability.
Introduces the faux primitive capability `view_site_health_checks` available to single site admins and multisite super-admin to view the site health page within the admin.

The capability is mapped to the `install_plugins` capability without being dependent on the file system being writable. This fixes a bug where the feature couldn't be used by sites unable to write to the file system or managed through version control.

The capability is granted on the `user_has_cap` filter.

Props birgire, Clorith, palmiak, peterwilsoncc, spacedmonkey.
Merges [45507] to the 5.2 branch.
Fixes #46957 for 5.2.2.


Built from https://develop.svn.wordpress.org/branches/5.2@45508


git-svn-id: http://core.svn.wordpress.org/branches/5.2@45319 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-06-10 07:50:53 +00:00
Sergey Biryukov
da22a1cc85 Upgrade/Install: As a follow-up to [45357], when linking to Update PHP support page in error messages, check if wp_get_update_php_url() and wp_get_update_php_annotation() exist.
`wp-admin/includes/update-core.php` runs in the context of the previous WordPress version. Any calls to newly introduced functions there need to be checked via `function_exists()`.

Reviewed by desrosj, earnjam, SergeyBiryukov.

Props dd32, imath.
Merges [45365] to the 5.2 branch.
Fixes #47323.
Built from https://develop.svn.wordpress.org/branches/5.2@45366


git-svn-id: http://core.svn.wordpress.org/branches/5.2@45177 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-05-20 14:32:02 +00:00
desrosj
b3425b83cd Help/About: Replace minor release strings with pre-existing ones.
Also, update the number of bugs fixed in 5.2.1 to include those being fixed after RC1.

Reviewed by desrosj, SergeyBiryukov.

Props ocean90, SergeyBiryukov, mukesh27.
Fixes #47312.
Built from https://develop.svn.wordpress.org/branches/5.2@45364


git-svn-id: http://core.svn.wordpress.org/branches/5.2@45175 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-05-20 14:22:02 +00:00