Commit Graph

39621 Commits

Author SHA1 Message Date
Sergey Biryukov
dc2e521269 Accessibility: In back-compat code added for get_search_form() in [44956], when checking the (previously boolean) $args value, account for non-strict comparison.
Props dkarfa, sachyya-sachet.
Fixes #47177. See #42057.

git-svn-id: https://develop.svn.wordpress.org/trunk@45340 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-17 02:21:20 +00:00
Sergey Biryukov
dc8c8dd878 Help/About: Restore placeholder for WordPress version in tagline on About, Credits, and Freedoms pages to include minor versions.
Props desrosj, mukesh27.
Fixes #46408.

git-svn-id: https://develop.svn.wordpress.org/trunk@45338 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-17 01:07:12 +00:00
Sergey Biryukov
040a58ff57 Site Health: Use correct singular string for plugin and theme version tests.
Props edocev, Presskopp.
Fixes #47264.

git-svn-id: https://develop.svn.wordpress.org/trunk@45336 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-17 00:59:20 +00:00
Sergey Biryukov
448234f966 I18N: Avoid using placeholders for link start and end tags in alt text description strings added in [45158].
Use an established pattern of moving additional link attributes out of the translatable string.

Props dimadin.
Fixes #47159.

git-svn-id: https://develop.svn.wordpress.org/trunk@45334 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-17 00:52:32 +00:00
Sergey Biryukov
e6dcab7803 Site Health: In PHP modules test, ensure the description is translated as a whole sentence, not as separate string parts.
Props dimadin, SergeyBiryukov.
Fixes #47161.

git-svn-id: https://develop.svn.wordpress.org/trunk@45331 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-17 00:06:49 +00:00
Sergey Biryukov
0126a4bd2a Site Health: In HTTP requests test, when checking whether the WP_HTTP_BLOCK_EXTERNAL constant is defined, check its value as well.
Props chesio.
Fixes #47297.

git-svn-id: https://develop.svn.wordpress.org/trunk@45328 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-16 22:07:35 +00:00
Jonathan Desrosiers
c18460698f Privacy: Prevent email field for personal data requests from overflowing.
Props anischarolia, ianbelanger, afercia.
Fixes #46961.

git-svn-id: https://develop.svn.wordpress.org/trunk@45326 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-16 20:44:41 +00:00
Jonathan Desrosiers
cd511054a0 Menus: Fix alignment of menu actions on mobile.
In [41197], changes were made to improve the responsive view for the Menu Name field and Save buttons. This caused the Delete Menu button to be misaligned.

Props ianbelanger, audrasjb, afercia, mukesh27.
Fixes #47173.

git-svn-id: https://develop.svn.wordpress.org/trunk@45324 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-16 19:04:42 +00:00
Jonathan Desrosiers
b7a79cf126 Site Health: Improve alignment and spacing for section headers.
This changes the CSS for Site Health headers to use flexbox, which helps ensure the text is vertically aligned center and consistently spaced in both the Status and Info tabs. It also fixes an issue where the loading spinner GIF was cut off on smaller screens (originally reported in #47203.

Props Presskopp, odminstudios, kjellr, afercia, desrosj, hedgefield, ianbelanger, xavortm.
Fixes #47063.

git-svn-id: https://develop.svn.wordpress.org/trunk@45322 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-16 18:29:47 +00:00
Jonathan Desrosiers
7bd0450833 Build/Test Tools: Upgrade node-sass to 4.12.0.
`node-sass` 4.12 adds support for Node 12. This will prevent errors for anyone running Node 12 locally instead of the LTS version (currently 10.15.3).

Props desrosj, aduth, netweb.
Fixes #47257.

git-svn-id: https://develop.svn.wordpress.org/trunk@45321 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-16 18:14:37 +00:00
Andrew Duthie
9848fad564 Block Editor: Upgrade WordPress packages to the latest versions.
Updated packages:

 - @wordpress/annotations@1.2.3
 - @wordpress/block-editor@2.0.2
 - @wordpress/block-library@2.4.5
 - @wordpress/blocks@6.2.5
 - @wordpress/components@7.3.2
 - @wordpress/dom@2.2.5
 - @wordpress/e2e-tests@1.1.5
 - @wordpress/edit-post@3.3.5
 - @wordpress/editor@9.2.5
 - @wordpress/format-library@1.4.5
 - @wordpress/list-reusable-blocks@1.3.5
 - @wordpress/nux@3.2.5
 - @wordpress/rich-text@3.2.3

Props: youknowriad, gwwar, iseulde, tfrommen, gziolo.

Fixes #47284.


git-svn-id: https://develop.svn.wordpress.org/trunk@45319 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-16 18:06:27 +00:00
Andrew Ozz
d2e3a1f1a0 Build tools: fix generating *-rtl.css files in wp-includes/css after grunt --dev was used.
Fixes #47078.

git-svn-id: https://develop.svn.wordpress.org/trunk@45317 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-16 02:24:58 +00:00
Andrew Ozz
b202561a5f Update TinyMCE to 4.9.4. Changelog: https://github.com/tinymce/tinymce/blob/4.x/changelog.txt.
Fixes #47229 for trunk.

git-svn-id: https://develop.svn.wordpress.org/trunk@45316 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-15 23:44:37 +00:00
Jonathan Desrosiers
ffc2d83dea Bootstrap/Load: Prevent PHP errors when a drop-in triggers fatal error protection.
When a drop-in (such as `advanced-cache.php`) contains a PHP error, additional PHP errors are caused when displaying the error protection screen because `load_default_textdomain()` and `WP_Error` are not yet available.

Though recovery mode is not supported for `mu-plugins` and drop-ins, fatal error protection is. This change ensures the error screen is displayed when a fatal error is encountered within a drop-in and not a white screen.

Props TimothyBlynJacobs, spacedmonkey, daxelrod.
Fixes #47265.

git-svn-id: https://develop.svn.wordpress.org/trunk@45311 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-15 18:18:02 +00:00
Jonathan Desrosiers
cc12950d41 Administration: Remove duplicate font-face declaration in Dashicons CSS.
This was causing console warnings in some browsers.

Props aduth, joen, afercia, timph, ianbelanger.
Fixes #47183.

git-svn-id: https://develop.svn.wordpress.org/trunk@45310 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-15 16:07:57 +00:00
Jonathan Desrosiers
851cb8b8f2 Site Health: Improve vertical alignment of icons in test result descriptions.
This change removes redundant CSS properties for different health check statuses in favor of utilizing the `.dashicons` class already in Core to define them more consistently. This also fixes the vertical alignment issues.

Props chetan200891, Clorith, desrosj.
Fixes #46940.

git-svn-id: https://develop.svn.wordpress.org/trunk@45309 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-15 14:24:15 +00:00
Jonathan Desrosiers
f10ea0702a Site Health: Link to the correct plugin update screen in multisite installs.
Props Clorith, sebastienserre, jeremyfelt, desrosj.
Fixes #47189.

git-svn-id: https://develop.svn.wordpress.org/trunk@45308 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-15 14:11:50 +00:00
Sergey Biryukov
f4ceb91c5a Docs: Add a @see reference to WP_REST_Revisions_Controller in WP_REST_Autosaves_Controller DocBlock.
Props chintan1896.
Fixes #47232.

git-svn-id: https://develop.svn.wordpress.org/trunk@45307 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-14 23:52:47 +00:00
Sergey Biryukov
8cacee3960 Docs: Add @see references to WP_Widget_Media in media widget DocBlocks.
Props iamjaydip.
Fixes #47231.

git-svn-id: https://develop.svn.wordpress.org/trunk@45306 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-14 20:21:28 +00:00
Sergey Biryukov
6146ba90ce Docs: Add missing @see tag to WP_REST_Post_Search_Handler DocBlock.
Props vishitshah.
Fixes #47230.

git-svn-id: https://develop.svn.wordpress.org/trunk@45305 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-14 14:58:09 +00:00
Sergey Biryukov
e953dca4e7 Docs: Convert @see reference in WP_REST_Request DocBlock to @link, to avoid a broken link in Developer Reference.
See #47110.

git-svn-id: https://develop.svn.wordpress.org/trunk@45304 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-14 14:54:31 +00:00
Sergey Biryukov
4ee05756d2 Docs: Fix typo in wp_mail() description.
Props seedsca.
Fixes #47208.

git-svn-id: https://develop.svn.wordpress.org/trunk@45302 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-10 09:52:13 +00:00
Andrea Fercia
cae0608a7f Accessibility: Improve the "skip links" position for medium and small screens.
Fixes #47065.


git-svn-id: https://develop.svn.wordpress.org/trunk@45301 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-09 21:10:20 +00:00
Andrea Fercia
2ee480e11c Accessibility: Add aria-current to the links in the <nav> elements introduced in [44905].
Also fixes a few translators comments and coding standards.

Props audrasjb.
Fixes #47106.


git-svn-id: https://develop.svn.wordpress.org/trunk@45300 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-09 20:57:06 +00:00
Jonathan Desrosiers
5b2fb1637c Twenty Nineteen: Fix Docblock spelling error.
Props mukesh27.
Fixes #47129.

git-svn-id: https://develop.svn.wordpress.org/trunk@45299 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-09 20:07:49 +00:00
Jonathan Desrosiers
3da0d67f80 I18N: Combine similar strings with minor differences.
Props dimadin.
Fixes #47158.

git-svn-id: https://develop.svn.wordpress.org/trunk@45298 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-09 19:47:28 +00:00
Jonathan Desrosiers
d69d56abb1 Twenty Nineteen: Remove duplicate code block.
Introduced in [44305].

Props mukesh27, afercia.
Fixes #46455.

git-svn-id: https://develop.svn.wordpress.org/trunk@45297 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-09 18:03:15 +00:00
Jonathan Desrosiers
a72dd388f5 Administration: Prevent cards on the Tools page from overflowing on small screens.
Props anischarolia, mukesh27.
Fixes #46972.

git-svn-id: https://develop.svn.wordpress.org/trunk@45296 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-09 14:55:18 +00:00
Jonathan Desrosiers
3607546bad Help/About: Update the 5.2 tagline on Freedoms and Credits.
Props ocean90.
See #46901.

git-svn-id: https://develop.svn.wordpress.org/trunk@45292 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-07 19:59:17 +00:00
laurelfulford
6b6671d94b Default Themes: Bump the version numbers and release dates.
Update the theme versions and release dates for the default themes, in time for WordPress 5.2.

The POT files for Twenty Eleven and Twenty Ten have also been updated.

Fixes #47172.



git-svn-id: https://develop.svn.wordpress.org/trunk@45289 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-07 18:48:28 +00:00
Jonathan Desrosiers
6289d9e304 Help/About: Final 5.2 about page updates.
Use final image URLs and fix a bug in IE11 where images were being cut off.

Props afercia, SergeyBiryukov, ianbelanger, desrosj, audrasjb.
See #46901.

git-svn-id: https://develop.svn.wordpress.org/trunk@45287 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-07 17:18:34 +00:00
Andrew Ozz
96649a5ad1 Fix setup_postdata() to set the (inside the loop) globals before the_post action is fired. Follow-up from #42814 and [44941].
Props david.binda, spacedmonkey, boonebgorges, birgire, jorbin, azaozz.
Fixes #47114 for trunk.

git-svn-id: https://develop.svn.wordpress.org/trunk@45285 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-04 20:59:11 +00:00
Jonathan Desrosiers
e1bb084bfc Editor: Correct since annotation for the excerpt_allowed_blocks filter.
Props mukesh27, rabmalin.
Fixes #47079.

git-svn-id: https://develop.svn.wordpress.org/trunk@45284 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-03 16:54:00 +00:00
Jonathan Desrosiers
bc7aaed50a Update the package-lock.json file to 5.3.0.
git-svn-id: https://develop.svn.wordpress.org/trunk@45283 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-03 16:51:58 +00:00
Aaron Jorbin
5640763da9 Trunk is now 5.3 alpha
git-svn-id: https://develop.svn.wordpress.org/trunk@45282 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-02 16:27:59 +00:00
Jonathan Desrosiers
dc51270899 Post WordPress 5.2 RC2 version bump.
git-svn-id: https://develop.svn.wordpress.org/trunk@45280 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-02 16:12:41 +00:00
Jonathan Desrosiers
a3ee84ea3b WordPress 5.2 RC2.
git-svn-id: https://develop.svn.wordpress.org/trunk@45279 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-02 16:03:07 +00:00
Jonathan Desrosiers
994950ea8c Help/About: Polish the About page for 5.2.
- The About page now uses a CSS grid to layout its design, making the page’s structure more obvious and hopefully easier for contributors in the future.
- Removes some code that is no longer used (such as videos, mejs elements, etc.).
- Update images.
- Unnecessary HTML is removed from a string on the page. This was a regression.
- Only users with the correct capability should be instructed to check their site status.
- Fixes the placement of commas.

Reviewed by melchoyce, afercia, jeremyfelt, and desrosj.

Props ryelle, melchoyce, cathibosco1, man4toman, SergeyBiryukov, afercia, ramiy, kjellr, tellyworth, earnjam, andreamiddleton, marybaum.
See #46901.

git-svn-id: https://develop.svn.wordpress.org/trunk@45278 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-02 15:43:10 +00:00
Jonathan Desrosiers
ff53498be8 Bootstrap/Load: Ensure recovery link email and related notices are properly translated.
When recovery mode is triggered before the site’s locale has been initialized, the message displayed to the user and the email sent to the site administrator with the recovery mode link are always rendered in `en_US`. This change ensures the site’s locale is used even when an error happens early in the loading process.

Reviewed by swissspidy, SergeyBiryukov, and desrosj.

Props wolly, TimothyBlynJacobs, fierevere.
Fixes #47093.

git-svn-id: https://develop.svn.wordpress.org/trunk@45277 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-02 10:52:10 +00:00
Jonathan Desrosiers
f33df7cde4 Help/About: Fix tab display issues.
This change restores About page tab heights and fixes bugs with the tab bottom border caused by [44905] and [45243].

Reviewed by SergeyBiryukov and desrosj.

Props ixkaito, ianbelanger, afercia, SergeyBiryukov.
See #46901.
Fixes #47075.

git-svn-id: https://develop.svn.wordpress.org/trunk@45276 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-02 10:36:02 +00:00
Jonathan Desrosiers
62645be17e Site Health: Disable recommendations that could be problematic on multisite installs.
When viewing Site Health for a multisite install, there are a few recommendations that are not appropriate and could have negative implications for other sites on the install if the administrator follows the advice provided.

For example, Site Health recommends that inactive plugins and themes for a site should be removed. On a single site install, this is a great recommendation. However, on a multisite install, inactive plugins and themes for one site should not be removed because they could be active for other sites on the network.

This change also disables the `test_wp_version_check_attached()` test for multisite. This test checks for the presence of the `wp_version_check()` function on the `wp_version_check` hook, which is not present for every site on multisite.

Reviewed by jeremyfelt and desrosj.

Props iandunn, Clorith, azaozz, jeremyfelt.
Fixes #47084.

git-svn-id: https://develop.svn.wordpress.org/trunk@45275 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-01 18:07:46 +00:00
Aaron Jorbin
a8942b4a17 Admin: Add some additional clarity to some about page links
It's important for links to have enough information in them in order to be clearly actionable. Destination and purpose should be clear. For example, `debug` isn't nearly as useful as `learn how to debug issues`.

This was signed off on by chanthaboune and jorbin.

Props afercia.
See: #46901.



git-svn-id: https://develop.svn.wordpress.org/trunk@45274 602fd350-edb4-49c9-b593-d223f7449a82
2019-04-30 17:30:27 +00:00
Gary Pendergast
23867a2d77 Post WordPress 5.2 RC1 version bump
git-svn-id: https://develop.svn.wordpress.org/trunk@45273 602fd350-edb4-49c9-b593-d223f7449a82
2019-04-26 01:22:51 +00:00
Gary Pendergast
a5a9960f84 WordPress 5.2 RC1
git-svn-id: https://develop.svn.wordpress.org/trunk@45272 602fd350-edb4-49c9-b593-d223f7449a82
2019-04-26 01:14:16 +00:00
Gary Pendergast
3477102cec Admin: Add the text for the WordPress 5.2 About page.
This changes includes placeholder images for now, they'll be replaced by the final images before final release.

Props chanthaboune, melchoyce, karmatosed, pento, marybaum, birgire, earnjam, andreamiddleton.
See #46901.



git-svn-id: https://develop.svn.wordpress.org/trunk@45271 602fd350-edb4-49c9-b593-d223f7449a82
2019-04-26 00:56:57 +00:00
Gary Pendergast
3491bfc7e5 Media: Revert [44947].
`get_available_post_mime_types()` uses a query that's extremely slow on sites with lots of posts. The original fix can be revisited after those performance issues are tackled.

See #43658.


git-svn-id: https://develop.svn.wordpress.org/trunk@45270 602fd350-edb4-49c9-b593-d223f7449a82
2019-04-26 00:43:50 +00:00
Andrea Fercia
03f3b316a2 Accessibility: Remove redundant title attribute from the "Exit Recovery Mode" link.
Fixes #47045.


git-svn-id: https://develop.svn.wordpress.org/trunk@45269 602fd350-edb4-49c9-b593-d223f7449a82
2019-04-25 16:03:26 +00:00
Gary Pendergast
095c0c950c Bootstrap/Load: Tweak the recovery mode email text and behaviour.
- Change the recovery mode link expiry to 1 day.
- Improve the email text.
- Add a new `recovery_email_support_info` filter, for hosts to be able to customise their support contact information.

Props pento, chanthaboune, michelleweber, matt.
Fixes #46898.



git-svn-id: https://develop.svn.wordpress.org/trunk@45268 602fd350-edb4-49c9-b593-d223f7449a82
2019-04-25 00:46:39 +00:00
K. Adam White
9ec1a46b8a REST API: Always urlencode_deep() query args in get_items methods.
Passing all received query arguments through urlencode_deep ensures that the full set of query arguments are encoded in the same way.

Props dmsnell.
Fixes #46199


git-svn-id: https://develop.svn.wordpress.org/trunk@45267 602fd350-edb4-49c9-b593-d223f7449a82
2019-04-25 00:07:23 +00:00
Sergey Biryukov
4f4f253821 Docs: Use 3-digit, x.x.x style semantic versioning for @since 5.2.0 entries in wp-admin/includes/file.php.
See #46543.

git-svn-id: https://develop.svn.wordpress.org/trunk@45266 602fd350-edb4-49c9-b593-d223f7449a82
2019-04-24 23:35:50 +00:00