Make sure the block editor custom colors in the theme also override the theme's `:visited` link styles. This prevents contrast issues, like in the button block -- when the background is dark, the purple `:visited` link can be difficult to read.
Fixes#45434.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44188 602fd350-edb4-49c9-b593-d223f7449a82
In PHP 7.3, the `compact()` function has been changed to issue an `E_NOTICE` level error if a passed string refers to an unset variable. In previous versions of PHP, this notice was silently skipped. This fixes a few more instances of unset variables in the WordPress admin.
The full RFC can be viewed here: https://wiki.php.net/rfc/compact.
See #44416.
Fixes#45483.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44185 602fd350-edb4-49c9-b593-d223f7449a82
Ensure activation of a site is not attempted multiple times and users are shown the correct message if they follow the link a second time.
Merges [44021] to the 5.0 branch.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44022 602fd350-edb4-49c9-b593-d223f7449a82
r44014 introduced the `wp_kses_uri_attributes` function and filter, but incorrectly used `4.9.9` instead of `5.0.1`.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44017 602fd350-edb4-49c9-b593-d223f7449a82
This commit introduces the `wp_kses_uri_attributes` function and filter. The function centralizes the list of attributes, in order to prevent inconsistency, and the filter provides a way for plugins to customize the attributes.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44014 602fd350-edb4-49c9-b593-d223f7449a82
To avoid backwards compatibility issues, `<form>` is re-added if a custom filter has added the `<input>` or `<select>` elements to `$allowedposttags`.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43994 602fd350-edb4-49c9-b593-d223f7449a82
With WordPress 5.0 just a few short days away, the default themes can have their version numbers bumped.
The POT files for Twentys Ten and Eleven have also been updated.
Props laurelfulford, maedahbatool, mrahmadawais, pento.
See #45167.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43964 602fd350-edb4-49c9-b593-d223f7449a82
This visual issue had been previously fixed in the block editor, is now fixed in the published post, too.
Props kjellr, allancole.
See #45424.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43961 602fd350-edb4-49c9-b593-d223f7449a82
`wp_get_script_polyfill()` bypasses `WP_Scripts::do_item()`, so didn't transform the script path into its fully qualified URL.
Props swissspidy, ocean90.
See #45469.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43960 602fd350-edb4-49c9-b593-d223f7449a82
`load_script_textdomain()` had a reversed check to decide if the user locale should be loaded. This check is now replaced with `determine_local()`.
Props ocean90.
See #45465.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43959 602fd350-edb4-49c9-b593-d223f7449a82
- Updated the various images.
- Added new "developer happiness" images.
- Fixed the responsive figcaption styles.
- Added a link to wporg plugin favorites as a shortcode to get to the classic plugin.
- Renamed "cover image" to "cover."
- Updated CSS to account for small-screen issues.
Props desrosj, audrasjb, antpb, jjj, elrae, Otto42, afercia, karmatosed, kjellr, alexislloyd, melchoyce.
See #45178.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43946 602fd350-edb4-49c9-b593-d223f7449a82
The version is set properly and the scripts are automatically loaded in the footer.
This patch also includes a revert for the reusable blocks enqueue script.
Props pento, swissspidy.
Fixes#45402.
See #45396.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43942 602fd350-edb4-49c9-b593-d223f7449a82
If a meta box is registered with the `__block_editor_compatible_meta_box` set to `false`, it's indicating that it doesn't work in the block editor. If that's the case, we can add a place holder to inform the user that they'll need to use the classic interface to work with this meta box.
Props pento, jorgefilipecosta, peterwilsoncc, karmatosed, noisysocks, dd32.
See #45217.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43941 602fd350-edb4-49c9-b593-d223f7449a82
`WP_Query::setup_postdata()` splits the post up by `<!--nextpage-->`, which causes invalid block data to be contained in the post content.
This change removes the `<!-- wp:nextpage -->` and `<!-- /wp:nextpage -->`, as well.
Props pento, youknowriad, azaozz, noisysocks.
See #45401.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43940 602fd350-edb4-49c9-b593-d223f7449a82
@cathibosco has made some great illustrations of the Four Freedoms on https://wordpress.org/about/. Let's bring that over to the admin Freedoms page.
Props @melchoyce, @cathibosco, @boemedia, @karmatosed, @tobifjellner, @helen, @matveb, @mcsf.
Fixes#45386.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43938 602fd350-edb4-49c9-b593-d223f7449a82
Adds information about the new block editor (Gutenberg) and the Classic Editor
to the about page.
Props @pixelverbieger, @ocean90, @melchoyce, @boemedia, @sami.keijonen, @TimothyBlynJacobs, @xkon, @afercia, @Otto42, @pento.
Fixes#45178.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43937 602fd350-edb4-49c9-b593-d223f7449a82
This ensures the "import from JSON" and "export JSON" buttons are shown properly.
The script is loaded in the footer because it relies on the DOM being already there.
Props noisysocks, mukesh27.
Fixes#45396.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43936 602fd350-edb4-49c9-b593-d223f7449a82
`wpdb::get_col()` iterates over `$wpdb->last_result`, which can be a non-countable value, should the preceeding query have failed.
Props spacedmonkey, desrosj.
See #45299.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43934 602fd350-edb4-49c9-b593-d223f7449a82