For the block editor to be able to expose the Preview button correctly, it needs to know the `is_post_type_viewable()` setting, this change adds it to the Post Type response.
Props danielbachhuber.
Merges [43007] to the 4.9 branch.
Fixes#43739.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43038 602fd350-edb4-49c9-b593-d223f7449a82
This complements the `theme_{$post_type}_templates` dynamic filter added in [38951].
Props desrosj.
Merges [43025] and [43027] to the 4.9 branch.
Fixes#43872.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43028 602fd350-edb4-49c9-b593-d223f7449a82
As eager as we all are to see Gutenberg put before a wider audience, there are still a handful of issues that need to be fixed, which won't be done before the 4.9.5 release.
Reverts [42869].
See #41316.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42883 602fd350-edb4-49c9-b593-d223f7449a82
* In initCrop, handle touch events in addition to mouse events.
* In imageSelect jQuery plugin, accept event.which of 0 as provided by touch events.
Props yahil, alexgso, joemcgill.
Merges [42818] to the 4.9 branch.
Fixes#41242.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42874 602fd350-edb4-49c9-b593-d223f7449a82
To encourage more people to try Gutenberg, this new Dashboard box allows site users to easily install and try out Gutenberg.
Props pento, melchoyce, joen, karmatosed, joemcgill, SergeyBiryukov, jorbin.
Fixes#41316.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42869 602fd350-edb4-49c9-b593-d223f7449a82
Make `<br />` tags on the screen behave as line breaks again after [41836]. Add a missing fieldset + legend for better accessibility.
Props afercia, RavanH, obenland, garrett-eclipse.
Merges [42864] to the 4.9 branch.
Fixes#42724. See #34539.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42865 602fd350-edb4-49c9-b593-d223f7449a82
Passing a `nonce` argument with an empty string to `wp.api.init()` now does no longer fall back to `wpApiSettings.nonce`. This makes it possible to stop sending nonce headers, for example to a read-only endpoint on another site in a multisite install.
Merge of [42852] to the 4.9 branch.
Props adamsilverstein, FPCSJames, ocean90, swissspidy.
See #42948, #43266.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42854 602fd350-edb4-49c9-b593-d223f7449a82
This brings the improved nonce handling from [41553] to collections to remove the direct `wpApiSettings.nonce` dependency.
Merge of [42851] to the 4.9 branch.
Props adamsilverstein, ocean90, swissspidy.
See #43265.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42853 602fd350-edb4-49c9-b593-d223f7449a82
Fix an issue where the screen viewport resized to an oversized state on mobile devices after moving sub-menus.
Merge of [42817] to the 4.9 branch.
Props adamsilverstein, kwonye.
Fixes#36884.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42850 602fd350-edb4-49c9-b593-d223f7449a82
At the time, having both `required` and `aria-required` meant a wider range of support for browsers and assistive technology. Today, it's safe to use just `required`.
Merge of [42758] to the 4.9 branch.
Props lakenh, afercia, davidakennedy, henry.wright.
Fixes#39045.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42849 602fd350-edb4-49c9-b593-d223f7449a82
Preventing contextually created attachments from being added to the grid collection in Attachments.validator. Remove the previous filtering introduced in [41937] which caused the placement issue.
Merge of [42739-42740] to the 4.9 branch.
Props lancewillett, Junaidkbr, designsimply, joemcgill.
Fixes#42968.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42848 602fd350-edb4-49c9-b593-d223f7449a82
Trigger a keyup event when clearing the search field in response to closing the add item panel. The keyup event triggers a search and resets the results. Previously, the search field was cleared while the potentially blank search results were left in place making it impossible to select new menu items.
Merge of [42744] to the 4.9 branch.
Props Blair jersyer, aranwer104, afercia.
See #43333.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42846 602fd350-edb4-49c9-b593-d223f7449a82
This updates the expected version number for Hello Dolly in `Tests_Ajax_Update_Plugin::test_update_plugin` following [42839].
See #43555.
Merges [42841] to the 4.9 branch.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42842 602fd350-edb4-49c9-b593-d223f7449a82
This updates the Hello Dolly plugin to remove lines which could be objectionable when shown in the admin out of context, and brings the lyrics more in line with Louis Armstrong's recording.
Props sebastienthivinfocom, birgire, audrasjb, joemcgill.
Fixes#43555.
Merges [42839] to the 4.9 branch.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42840 602fd350-edb4-49c9-b593-d223f7449a82
This is a partial revert of [41724], so image captions include an
inline `width` style instead of `max-width`.
This returns the caption shortcode to the pre-4.9.0 behavior, while
retaining the extra unit test coverage added in [41724].
Fixes#43123. See #33981.
Merges [42837] to the 4.9 branch.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42838 602fd350-edb4-49c9-b593-d223f7449a82
This allows referrer-restricted content from third parties (such as images and fonts) to continue working in the admin area.
Props aranwer104, qcmiao
Fixes#43285
Merges [42830] to the 4.9 branch.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42831 602fd350-edb4-49c9-b593-d223f7449a82
Corrects logic that kept plugins from setting crop value of intermediate image sizes for rendered PDFs.
Adds test.
Props leemon, SergeyBiryukov, chetan200891, birgire.
Merges [42792] to the 4.9 branch.
Fixes#43226.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42813 602fd350-edb4-49c9-b593-d223f7449a82
While intended as a playful error message, `Cheatin’ uh?` can be interpreted as insulting or accusatory in an already stressful situation. This replaces Cheatin’ with more meaningful error messages, depending on the error that occurs.
Props ElectricFeet, EricMeyer, karmatosed, dd32, BandonRandon, melchoyce, kristastevens for language; dmsnell for original patch; peterwilsoncc.
Merged [42648] and [42719] to the 4.9 branch.
Fixes#38332.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42811 602fd350-edb4-49c9-b593-d223f7449a82
This allows showing a name when only the first or last name is provided.
Props shital-patel, antipole.
Merges [42256] and [42257] to the 4.9 branch.
Fixes#42713.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42805 602fd350-edb4-49c9-b593-d223f7449a82
This corrects the attribute needed to allow PHPUnit to generate coverage reports, and also adds a blacklist of files and directories that are excluded from coverage reports.
Props schlessera, jipmoors
See #43067, #43240
Merges [42665] to the 4.9 branch.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42666 602fd350-edb4-49c9-b593-d223f7449a82
This code branch is responsible for running all autoupdates, including plugins and themes - which should run regardless of if there's a core autoupdate available.
This revert does not revert the `$timeout` changes, as these should still use cached data if it's available.
Ideally this should be decoupled from the core update check to allow background updates to operate even when the core update check is disabled or running more often than twice daily.
Merges [42653] to the 4.9 branch.
Fixes#43103, #43235.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42654 602fd350-edb4-49c9-b593-d223f7449a82