Moves focus to a proper element within the media modal to avoid the underlying
page to scroll to the bottom. Removes the media modal `freeze` option.
Props andreiglingeanu, adamsilverstein.
Merges [42624] to the 4.9 branch.
Fixes#39859.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42627 602fd350-edb4-49c9-b593-d223f7449a82
In particular allows audio and video playlists to be added to the Text widget and previewed.
Props bpayton, westonruter.
See #40854.
Merges [42613], [42617] to the 4.9 branch.
Fixes#42495.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42622 602fd350-edb4-49c9-b593-d223f7449a82
A user should still be able to have the capability, even when language packs cannot be automatically installed. The automatic installation part is separate from that now.
Props flixos90.
Merges [42606] to the 4.9 branch.
Fixes#42697.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42607 602fd350-edb4-49c9-b593-d223f7449a82
Replaces the fairy (male) browser support test with a woman in business suit levitating. While the things that make people different sometimes become less obvious this isn't always a problem, because the things that make you strange are the things that make you powerful.
Props peterwilsoncc.
Merges [42598] to the 4.9 branch.
Fixes#42862.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42601 602fd350-edb4-49c9-b593-d223f7449a82
Merges [42581], [42585], and [42594] to the 4.9 branch.
Adds tests to continue the behavior for both null and strings. Skip the tests on PHP 5.2 as they require ReflectionMethod.
See https://wiki.php.net/rfc/counting_non_countables for information on the PHP change.
Fixes#42860.
Props dd32 for test skipping and janak007 and ayeshrajans for initial patches.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42597 602fd350-edb4-49c9-b593-d223f7449a82
When a post slug is changed, we store a copy of the old slug, so that we can redirect visitors visiting the old URL to the new URL.
In the same way, this stores a copy of the old date, when the post date changes, so we can redirect visitors to the new URL.
Merge of [42401,42587,42588] to the 4.9 branch.
Props nickmomrik, frank-klein.
Fixes#15397.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42589 602fd350-edb4-49c9-b593-d223f7449a82
This change reduces the number of API calls which WordPress makes to api.wordpress.org during release windows.
Previously the background updates would run upon every core update transient refresh, however now they'll only run if there's an update available.
The change also increases the cache period for plugin & theme checks when running via the cron, from never-cache to 2 hours, which should hopefully reduce the number of needless API calls.
Merges [42584] to the 4.9 branch.
Fixes#43103 for 4.9.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42586 602fd350-edb4-49c9-b593-d223f7449a82
Editor: when keeping the scroll position treat all shortcodes as preview-able. Otherwise in some cases the marker span can get stuck inside the shortcode and break the markup.
Props azaozz, lizkarkoski and othellobloke for testing.
Fixes#42908 for 4.9.3.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42575 602fd350-edb4-49c9-b593-d223f7449a82
WordPress was already on 2.5.0, but Twemoji decided to break their versioning, so 2.4.0 is actually the latest release.
Merges [42566] to the 4.9 branch.
Fixes#42862.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42567 602fd350-edb4-49c9-b593-d223f7449a82
This fixes a PHP Warning in `wpdb::parse_db_host()` when WordPress is used with (sometimes a modern) PHP that's compiled against an ancient PCRE version.
Merges [42549] to the 4.9 branch.
Fixes#43109 for 4.9.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42550 602fd350-edb4-49c9-b593-d223f7449a82
Backports [42547] without adding new files due to how minor updates work.
JSHint inherits a license from JSLint that includes the clause "The Software shall be used for Good, not Evil." WordPress's license specifically allows grants the freedom to run the program, for any purpose. Please note, this is not an encouragement of evil. Rather than doing something evil, how about learning to love those around you. Instead of tweeting lies and saying people are "Not Good!", help your neighbor. In the words of Lin Manual Miranda, "Love is love is love is love is love is love is love is love, cannot be killed or swept aside."
This replaces JSHint with esprima, a part of the larger jQuery project, and a custom wrapper for some basic error checking within codemirror.
The existing JSHint configuration is kept in place in case someone wants to use that, but they can only do so for Good.
Fixes#42850
Props netweb for a spelling fix on a comment.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42548 602fd350-edb4-49c9-b593-d223f7449a82
`toggleClass()` expects a boolean as a second argument, not an integer.
Props iCaleb.
Merges 42457 to the 4.9 branch.
Fixes#42867.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42458 602fd350-edb4-49c9-b593-d223f7449a82