14030 Commits

Author SHA1 Message Date
Gary Pendergast
dec38c46aa Default Themes: Bump the version numbers and release dates.
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
2018-12-04 04:31:52 +00:00
Gary Pendergast
ae4fc35be7 Twenty Nineteen: Update the screenshot.
The screenshot is now up to date with the theme, and reflects the visuals in the About page.

Props kjellr, allancole.
See #45424.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43963 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-04 04:16:28 +00:00
Gary Pendergast
05d632c86f Twenty Nineteen: Fix classic block icons not displaying with non-latin fonts.
Props kjellr, allancole.
See #45424.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43962 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-04 04:11:11 +00:00
Gary Pendergast
583454d555 Twenty Nineteen: Fix non-breaking spaces being too wide on the front end.
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
2018-12-04 04:09:46 +00:00
Gary Pendergast
0cea68e9e6 Scripts: Ensure sub-directory WordPress installs can load polyfill scripts.
`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
2018-12-04 02:10:44 +00:00
Gary Pendergast
d09e22ff41 l10n: Ensure JavaScript language packages are loaded for the user locale.
`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
2018-12-04 01:12:47 +00:00
Jonathan Desrosiers
764de9fa7f Post WordPress 5.0 RC2 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43958 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-30 23:16:38 +00:00
Jonathan Desrosiers
165e94a461 WordPress 5.0 RC2.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43957 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-30 23:04:30 +00:00
allancole
6a43a9f59a Updating Twenty Nineteen, our new default theme for 2019, set for 5.0.
This changes fixes a security issue found in a dependency script used in our build tool. 

- The malicious dependency is now removed and no longer called when running `npm install` or `npm run build`. 
- More info here: https://github.com/WordPress/twentynineteen/pull/675

Props allancole, kjellr, netweb, twoabove.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43956 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-30 22:35:02 +00:00
Riad Benguella
1c0d6d8853 Block Editor: Update @wordpress package dependencies.
Updated packages

 - @wordpress/block-library@2.2.9
 - @wordpress/block-serialization-default-parser@2.0.1
 - @wordpress/block-serialization-spec-parser@2.0.1
 - @wordpress/blocks@6.0.3
 - @wordpress/edit-post@3.1.4
 - @wordpress/editor@9.0.4
 - @wordpress/format-library@1.2.7

Other changes:

 - Backport the parser changes.

Fixes #45145.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43955 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-30 20:57:02 +00:00
Miguel Fonseca
81e0366e57 Update sidebars_widgets to match Twenty Nineteen's single widget area
* Also update the customizer tests to match it.

Props SergeyBiryukov, pento.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43954 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-30 20:24:42 +00:00
Mel Choyce
6c581357ba Help/About: Update "Support for the Classic Editor plugin will remain in WordPress until 2021" to "through 2021" to further clarify timeline.
Props kjellr.
See #45178.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43953 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-30 16:26:13 +00:00
Mel Choyce
8cbeb96732 Help/About: Fix the user's saved WordPress.org username from being changed to wordpressdotorg when they click the About page link to install the Classic Editor plugin.
Props pento.
See #45178.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43952 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-30 16:22:46 +00:00
Riad Benguella
214e8c1ab5 Block Editor: Remove the latest "gutenberg" mention in the latest-comments.php file
Props swissspidy.
See #45145.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43951 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-30 13:35:19 +00:00
Riad Benguella
c52baf9de4 Block Editor: Rename the gutenberg_ functions in blocks/latest-comments.php.
This was ported manually from https://github.com/WordPress/gutenberg/pull/12326

Props pento, swissspidy.
See #45145. 


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43950 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-30 13:23:09 +00:00
Riad Benguella
73a41baf9c Block Editor: Update @wordpress package dependencies.
Update packages:

 - @wordpress/block-library@2.2.8
 - @wordpress/components@7.0.3
 - @wordpress/edit-post@3.1.3
 - @wordpress/editor@9.0.3
 - @wordpress/format-library@1.2.6
 - @wordpress/list-reusable-blocks@1.1.16
 - @wordpress/nux@3.0.4

Other changes:

Fix a translator comment in edit-form-blocks.php.
Rename the gutenberg_ functions in blocks/latest-comments.php.

Props pento.
Fixes #45145.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43949 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-30 09:58:24 +00:00
Andrew Ozz
2914fcea4b Help/About: Do not show the "Keep it Classic" section and the link to it at the top when the Classic Editor plugin is already installed.
See #45178.

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43947 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-29 08:29:18 +00:00
Mel Choyce
d64723a8b9 Help/About: Minor updates.
- 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
2018-11-28 17:30:11 +00:00
Gary Pendergast
92fb224208 Block Editor: Clarify a translator comment in meta box handling.
Props ocean90.
See #45217.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43945 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-27 06:38:34 +00:00
Gary Pendergast
7f7046ec03 Post WordPress 5.0 RC1 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43944 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-23 09:40:33 +00:00
Gary Pendergast
2bccfeffb4 WordPress 5.0 RC1.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43943 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-23 09:13:32 +00:00
Riad Benguella
94b478183f Block Editor: Fix the WordPress packages and vendor script registration.
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
2018-11-23 08:34:44 +00:00
Gary Pendergast
da6b20d392 Block Editor: Add a placeholder for meta boxes that don't work in the block editor.
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
2018-11-23 08:14:07 +00:00
Gary Pendergast
104ff2d3c7 Query: Remove nextpage block delimiters when setting up global post data.
`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
2018-11-23 00:41:56 +00:00
Riad Benguella
8d003dcdc6 Block Editor: Refresh nonces used by wp.apiFetch.
Adds heartbeat nonces refreshing support to wp.apiFetch requests.

Props pento, adamsilverstein, dd32, desrosj.
Fixes #45113. 


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43939 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-22 19:39:02 +00:00
gziolo
a4f3345eca About: Update Freedoms page to include illustrations.
@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
2018-11-22 18:02:35 +00:00
tofumatt
8e65c872ba Help/About: Add copy for new block editor.
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
2018-11-22 15:23:46 +00:00
Riad Benguella
6151007fec Block Editor: Fix loading the script handling the "Manage Reusable Blocks" page.
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
2018-11-22 07:24:01 +00:00
noisysocks
6bf7597c6b Block Editor: Update @wordpress package dependencies
Updates packages:

- block-library
- components
- edit-post
- editor
- format-library
- list-reusable-blocks
- nux

See #45145


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43935 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-22 06:04:04 +00:00
Gary Pendergast
48500bf839 WPDB: Check that $wpdb->last_result is countable before counting with it.
`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
2018-11-22 03:58:19 +00:00
Peter Wilson
e55da18ea2 Formatting: Revert pre-save filter adding rel="noopener".
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
2018-11-22 00:24:01 +00:00
allancole
be920c82f5 Updating Twenty Nineteen, our new default theme for 2019, set for 5.0.
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
2018-11-21 22:42:16 +00:00
allancole
691a74fe55 Updating Twenty Nineteen, our new default theme for 2019, set for 5.0.
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
2018-11-21 22:29:55 +00:00
allancole
1cf66057f6 Updating Twenty Nineteen, our new default theme for 2019, set for 5.0.
This update changes the following: 

- Fix social-menu and site-logo alignment.

Props kjellr, xkon.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43927 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-21 20:13:16 +00:00
allancole
ec99e72451 Updating Twenty Nineteen, our new default theme for 2019, set for 5.0.
This update changes the following: 

- Add PHPCS code quality fixes for functions.php
- Update stylesheets with a fresh Sass re-compile

Props xkon, kjellr



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43926 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-21 19:56:23 +00:00
Riad Benguella
9e8f5dde86 Core Editor: Specify script versions for the WordPress packages and their vendor dependencies.
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
2018-11-21 19:45:36 +00:00
Riad Benguella
8b3134f288 Block Editor: Clarify PHP Docs of the block_version function.
Clarify the return value.

Props desrosj, mukesh27.
Fixes #45342.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43924 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-21 19:38:51 +00:00
Riad Benguella
47c42639aa Block Editor: Fix PHP warning showing up when loading editor styles while in RTL.
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
2018-11-21 19:29:11 +00:00
Mel Choyce
4a58b3de2e About Page: Update images and de-italicize a11y note.
Props @matveb, @kjellr, @Alexis Lloyd, @courtney0burton, @melchoyce.
See #45178.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43922 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-21 16:59:11 +00:00
Miguel Fonseca
904cb8b220 Warn users of Gutenberg plugin of its deactivation upon 5.0 upgrade.
Fixes #45073.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43921 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-21 16:34:28 +00:00
Miguel Fonseca
154e0bd880 Block Editor: Show privacy help notice on Privacy Policy page.
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
2018-11-21 16:17:17 +00:00
Daniel Bachhuber
60ec049c98 Block Editor: Update @WordPress dependencies to match Gutenberg 4.5.1.
Updates packages: annotations,
api-fetch,
block-library,
blocks,
components,
core-data,
data,
dom, edit-post,
editor,
format-library,
jest-console,
jest-preset-default,
keycodes,
html-entities,
list-reusable-blocks,
notices,
nux,
rich-text,
scripts,
token-list, url,
viewport

Fixes undefined notices in some blocks. Removes incorrect `'gutenberg'` textdomain too.

See #45145


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43919 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-21 15:08:01 +00:00
Daniel Bachhuber
9ee7a34c9f REST API: Preserve unknown, respect null in server-side block rendering.
* 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
2018-11-21 14:43:33 +00:00
Daniel Bachhuber
8ef1b05bfe REST API: Always include title.raw/content.raw for Blocks in context=view.
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
2018-11-21 14:34:09 +00:00
Daniel Bachhuber
8e8dca6069 Block Editor: Expose value of user_can_richedit().
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
2018-11-21 14:10:18 +00:00
Andrew Ozz
f02568afb4 TinyMCE: Fix the keyboard shortcut (Alt+Shift+H) to not open the default Block Editor help modal and change the title of the help modal to "Classic Block Keyboard Shortcuts" in the Classic BLock. Also remove Alt+Shift+Z in the Classic Block as it conflicts with the Block Editor.
Fixes #45365.

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43915 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-21 12:27:12 +00:00
Andrew Ozz
b9ac168134 TinyMCE: Run the "wp_editor_settings" and "disable_captions" filters for the Classic block. Fixes possible regressions in plugins that use these filters, also plugins that use them to add filters for the buttons, external plugins, etc.
Fixes #45348.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43914 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-21 12:17:02 +00:00
Mel Choyce
b436ee19f3 About Page: Initial About Page design and strings for 5.0.
Props @pixelverbieger, @ocean90, @karmatosed, @pento, @boemedia, @lonelyvegan, @sami.keijonen, @TimothyBlynJacobs, @xkon, @afercia, @laurelfulford, @joostdevalk, @ipstenu, @matveb, @joen, @tinkerbelly, @chanthaboune, @kjellr, @alexislloyd, @melchoyce.
See #45178.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43913 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-21 02:38:17 +00:00
Gary Pendergast
3d2ce47072 Upgrade/Install: Split Sample Page, Hello World, and Privacy Policy content.
[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
2018-11-21 01:47:49 +00:00
laurelfulford
1bf081f614 Twenty Sixteen: Update theme’s wide image styles to include Image Blocks
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
2018-11-21 01:04:56 +00:00