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
Removes filters adding `rel="noopener"` to links targeting `_blank`.
Previous implementation could introduce blank `rel` attributes and could corrupt JSON data when saving via the customizer.
See #43187.
Reverts [43732] and [43733] from the 5.0 branch.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43930 602fd350-edb4-49c9-b593-d223f7449a82
This update changes the following:
- Add dynamic theme version to stylesheet enqueue.
Props grapplerulrich, kjellr.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43929 602fd350-edb4-49c9-b593-d223f7449a82
This update changes the following:
- Fixes link colors within solid-color pullquote blocks.
Props kjellr, xkon.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43928 602fd350-edb4-49c9-b593-d223f7449a82
Using the package.json versions of the npm dependencies as versions when registering
the WordPress scripts.
Props dimadin, dd32.
Fixes#45187.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43925 602fd350-edb4-49c9-b593-d223f7449a82
In RTL languages, WordPress adds style-editor-rtl.css editor styles to the global $editor_styles
This patch ignores handling these styles if the file is not preset.
Props desrosj, mostafa.s1990.
Fixes#45288.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43923 602fd350-edb4-49c9-b593-d223f7449a82
When editing a page set to be the Privacy Policy page, display a help notice
containing a link to the Privacy Policy guide.
This changeset ports this functionality to the new Block Editor.
Props desrosj.
Fixes#45057.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43920 602fd350-edb4-49c9-b593-d223f7449a82
* Skips validation where there is no attribute definition, but keeps the attribute value. Previously, the attribute would be omitted from the attributes passed to `render_callback`. Notably, this resolves an issue where `render_callback` cannot receive a block's `align` and `customClassName` attribute values, since these are defined as a client-side filter.
* Validates `null` as a proper value in its own right. Previously, a client implementation of a block could track `{"attribute":null}` as an explicitly empty value, and the server would wrongly initiate defaulting behavior. The new behavior will now only populate a default value if the attribute is not defined at all, including when unset in its being invalid per the attribute schema.
Props aduth, noisysocks, youknowriad.
See #45145 for the patch, #45098 for the original ticket.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43918 602fd350-edb4-49c9-b593-d223f7449a82
Demarcations for reusable blocks are always expected to be accessible by clients.
Props noisysocks, youknowriad.
See #45145 for the patch, #45098 for the original ticket.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43917 602fd350-edb4-49c9-b593-d223f7449a82
In order for the Block Editor to know whether to allow visual editing, it needs to know the value of `user_can_richedit()`.
Props youknowriad.
Fixes#45375.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43916 602fd350-edb4-49c9-b593-d223f7449a82
[43820] converted the content to blocks, but included block markers in the translateable strings, which made translations difficult to do accurately.
Props desrosj, dd32, ocean90.
See #45151.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43912 602fd350-edb4-49c9-b593-d223f7449a82
Twenty Sixteen includes functionality and styles that make full-size images extend wider than the content when they are added to posts, and appear below the post meta. This update adds the same behavior to image blocks and their captions.
Fixes: #45380.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43911 602fd350-edb4-49c9-b593-d223f7449a82