38246 Commits

Author SHA1 Message Date
Gary Pendergast
f5788217b3 Build Tools: Upgrade @wordpress packages to the latest version.
This also includes the new `@wordpress/format-library` and `@wordpress/notices` packages.

`package-lock.json` has been completely regenerated in this commit.

See #45145.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43840 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-29 07:40:44 +00:00
Gary Pendergast
b2bd3994d4 Meta boxes: Don't show the block editor incompatiblity message when it doesn't apply.
We should only be showing this message in the classic editor interface, for meta boxes that are marked as being incompatible with the block editor.

Fixes #45207.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43839 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-29 04:02:40 +00:00
Gary Pendergast
cdb35577d2 Meta boxes: Don't assume that callback args are an array.
While the documentation for `add_meta_box()` specifices that `$callback_args` should be an array, this has never been enforced, and we have workarounds in place for when it's passed as something other than an array.

Rather than break sites that are passing unexpected data, we can quietly just allow for it, instead.

Props johnjamesjacoby, birgire.
Fixes #45206.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43838 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-29 03:15:11 +00:00
Gary Pendergast
96857764e1 Block Editor: Fix meta boxes not showing.
The block editor needs to duplicate the classic meta box behaviour, so it can extract the registered meta boxes, and import them into the block editor.

To match the classic editor behaviour as closely as possible, this moves the relevant code from the classic editor, into a new function, so it can be called by both.

Props pento, peterwilsoncc.
Fixes #45172.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43837 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-29 02:42:23 +00:00
Gary Pendergast
a46ea4aa86 Build Tools: Add an npm script shortcut to run grunt.
Rather than needing to install grunt globally, this allows running grunt from `node_modules`, instead.

`npm run grunt ...` is effectively the equivalent of running `grunt ...`.

Props andrew.taylor.
See #45214.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43836 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-29 02:11:35 +00:00
Gary Pendergast
25928ac375 Build Tools: Revert [43826] and [43824].
Grabbing the packages directly from the Gutenberg repo was an interesting experiment, but it causes significant workflow issues, particular for folks using Windows.

See #45145.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43835 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-29 01:55:57 +00:00
Daniel Bachhuber
168120ecd0 REST API: Improve performance by avoiding call_user_func().
The `get_compact_response_links()` method was introduced in WP 4.5, and this conditional is no longer necessary.

Props schlessera, timothyblynjacobs.
Fixes #45189.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43834 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-29 00:47:01 +00:00
Daniel Bachhuber
b5e73f7e7f Block Editor: Preload wp/v2/media with OPTIONS for caps check.
Also introduces a `block_editor_preload_paths` filter for plugins and themes to preload additional data.

Props imath, mattheu.
Fixes #45194.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43833 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-29 00:23:11 +00:00
Aaron Jorbin
894e847238 php7.3 compatibility: Fix compact throwing notices for multisite
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. The full RFC can be viewed here: https://wiki.php.net/rfc/compact

By initializing these variables, they can be compacted.

Previously [43819].
See #44416.
Props desrosj.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43832 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-26 20:16:22 +00:00
Gary Pendergast
8dbb161323 Script Loader: Add translator comments and remove textdomains.
The inline script for `wp-date` incorrectly included a textdomain, and lacked translator comments.

Props mukesh27.
Fixes #45191, #45162.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43831 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-26 08:14:49 +00:00
Gary Pendergast
0ba73f24ba Meta Boxes: Fix error when a meta box is rendered with a static method callback.
When `WP_DEBUG` is set, ensure that a static method callback is passed to `ReflectionMethod`, instead of `ReflectionFunction`.

Props DrewAPicture.
Fixes #45192.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43830 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-26 08:10:18 +00:00
Gary Pendergast
9cd32b93da Accessibility: Media: Improve the usage of a few label elements in the media templates.
Label elements should only be used for labelable elements.
- `Uploaded By` and `Uploaded To` aren't form controls and shouldn't be associated with labels
- changes the labels for media source, alternate sources, poster image, and tracks to solve a layout issue and explicitly associate the labels to their form fields (previously, the labels were wrapping also the Remove buttons)

Merges [42444] to the 5.0 branch.

Props Presskopp, afercia.
Fixes #38759, #40468.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43829 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-26 07:13:25 +00:00
Sergey Biryukov
845f569b46 Tests: Use DIR_TESTDATA in test_wp_set_script_translation().
`__DIR__` is not available in PHP 5.2.x.

See #45103.

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43828 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-26 03:54:02 +00:00
Drew Jaynes
ebcfbfe286 Docs: Link to the "Conditional Tags" article in the Theme Developer Handbook from the descriptions for a variety of core conditional tag functions.
These notations largely serve to direct consumers (of both the source and the parsed code reference) to extended information on individual and related conditional tags throughout WordPress. The changeset also standardizes corresponding DocBlock summaries to use third-person singular verbs.

Notations have been added for the following functions:

* comments_open()
* email exists()
* has_excerpt()
* has_post_thumbnail()
* has_tag()
* in_category()
* in_the_loop()
* is_404()
* is_active_sidebar()
* is_active_widget()
* is_admin()
* is_admin_bar_showing()
* is_archive()
* is_attachment()
* is_author()
* is_blog_installed()
* is_category()
* is_comments_popup()
* is_date()
* is_day()
* is_dynamic_sidebar()
* is_feed()
* is_front_page()
* is_home()
* is_local_attachment()
* is_main_query
* is_month()
* is_multi_author
* is_new_day()
* is_page()
* is_page_template()
* is_paged()
* is_plugin_active()
* is_plugin_active_for_network()
* is_plugin_inactive()
* is_plugin_page()
* is_post_type_archive()
* is_preview()
* is_rtl()
* is_search()
* is_single()
* is_singular()
* is_sticky()
* is_tag()
* is_tax()
* is_taxonomy_hierarchical()
* is_time()
* is_trackback()
* is_user_logged_in()
* is_year()
* pings_open()
* post_type_exists()
* taxonomy_exists()
* term_exists()
* username exists()
* wp_attachment_is_image()
* wp_script_is() 

Merges [42710] to the 5.0 branch.

Props janalwin.
Fixes #43254.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43827 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-26 01:23:29 +00:00
Anton Timmermans
2d74b7157c Build tools: Fix build after [43824].
Props omarreiss.
See #45145.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43826 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-25 15:22:12 +00:00
herregroen
4f05bb81f6 I18N: Add JavaScript translation support.
Adds the `wp_set_script_translations` function which registers translations for a JavaScript file. This function takes a handle, domain and optionally a path and ensures JavaScript translation files are loaded if they exist.

Props atimmer, omarreiss, nerrad, swissspidy, ocean90.
Fixes #45103.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43825 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-25 13:59:51 +00:00
Anton Timmermans
6da9e42b26 Build tools: Clone and build from packages repo.
Instead of requiring the packages individually this commit changes it so the packages are used from the packages repository (gutenberg). This is a solution that makes updating the packages easier, as long as we don't have a monorepo to manage both WordPress & the JavaScript packages together.

Props youknowriad, gziolo, omarreiss, herregroen.
See #45145.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43824 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-25 13:42:03 +00:00
Gary Pendergast
4452b29fb8 Post WordPress 5.0 Beta 1 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43823 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-24 21:53:25 +00:00
Gary Pendergast
cef611a087 WordPress 5.0 Beta 1.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43822 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-24 21:37:45 +00:00
Dominik Schilling (ocean90)
5cf0de4e92 Bundled Themes: Remove languages folder with POT file from Twenty Nineteen.
POT files are no longer required.

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43821 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-24 21:00:26 +00:00
Sergey Biryukov
546e59fe33 Upgrade/Install: Convert Sample Page, Hello World, and Privacy Policy to block content.
Props desrosj, garrett-eclipse, danielbachhuber.
Fixes #45151.

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43820 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-24 18:50:35 +00:00
Aaron Jorbin
5a3ad21aeb php7.3 compatibility: Fix compact throwing notices
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. The full RFC can be viewed here: https://wiki.php.net/rfc/compact

This fixes all unit tested code that uses compact.

Props desrosj.
Fixes #44416.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43819 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-24 16:32:29 +00:00
Gary Pendergast
efce353424 Scripts: Add a missing date format to the wp-date config.
`wp-date` recently added the `datetimeAbbreviated` format, but the config wasn't sending it on page load.

Fixes #45158.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43818 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-24 11:47:56 +00:00
Anton Timmermans
c524dc9915 Build tools: Build webpack dev in grunt build.
For the WordPress zip we need both the minified and non-minified files. This is because of `SCRIPT_DEBUG`. So in `grunt build` we need to do both `grunt webpack:prod` and `grunt webpack:dev`.

Props bordoni.
Fixes #45156.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43817 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-24 09:56:30 +00:00
Gary Pendergast
9673e834e0 Block Editor: Remove some errant debugging included in [43815].
Props bordoni.
See #45037.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43816 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-24 08:59:21 +00:00
Gary Pendergast
3609a27bb8 Editor: Minor bug fixes.
Change the default layout slightly, and tweak the HTML stored in `post_content`.

Props matveb, karmatosed, joen, youknowriad, aduth, iseulde, pento, EphoxJames, mkaz, jnylen0, notnownikki, lonelyvegan, chopinbach, njpanderson, mimo84, intronic, westonruter, mcsf, dmsnell, afercia, paulwilde, mitogh, codebykat, mrahmadawais, kopepasah, circlecube, adamsilverstein, timmydcrawford, ephox-mogran, nbachiyski, JDGrimes, laurelfulford, Soean, mapk, sirjonathan, j-falk, ryelle, helen, netweb, lamosty, willybahuaud, maurobringolf, jorbin, spocke, androb, annaharrison, Afraithe, georgeh, matt, melchoyce, nitrajka, sirreal, babbardel, arush, martinlugton, iandunn, oyously, rileybrook, azaozz, folletto, ianstewart, johnpixle, clorith, joedolson, ipstenu, mrwweb, diegoliv, jeffpaul, lukecavanagh, shaunandrews, hugobaeta, jjj, mizejewski, buzztone, jdembowski, webdevmattcrom, GaryJones, jasonagnew, dd32, ieatwebsites, gma992, swissspidy, dixitadusara, ameeker, stagger-lee, jblz, nicbertino, rahmohn, vladanost, gziolo, lancewillett, lynneux, betsela, fuyuko, msdesign21, thrijith, chanthaboune, Cloud887, hblackett, vishalkakadiya, c-shultz, nfmohit, noisysocks, omarreiss, hedgefield, hideokamoto, mirucon, nosolosw, DannyCooper, burhandodhy, zebulan, benjamin_zekavica, danielbachhuber, jorgefilipecosta, ajitbohra, bph, ChrisVanPatten, dixitadusara, antpb, mikehaydon, jahvi, floriansimeth, Mathiu, amedina, diegoreymendez, etoledom, caxco93, yoavf, welcher, bobbingwide, jonsurrell, notlaura, ocean90, eliorivero, wpscholar, Shelob9, travislopes, earnjam, designsimply, johnwatkins0, dfangstrom, igorsch, jaswrks, daniloercoli, rianrietveld, dimadin, SergioEstevao, dlocc, tinkerbelly, schlessera, sumobi, kjellr, ireneyoast, hypest, tfrommen, intronic, johnny5, samikeijonen, bpayton, atimmer, Rahmon, tg-ephox, nerrad, talldan, Xyfi.

See #45037.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43815 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-24 06:45:26 +00:00
Gary Pendergast
f488d429f2 Themes: Document the new theme features being added.
The `add_theme_support()` inline docs now includes the features that the block editor adds.

Props desrosj.
See #45134.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43814 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-24 04:15:27 +00:00
Gary Pendergast
52beb9c65d KSES: Allow the download attribute on <a> tags.
To avoid this being a vector for bypassing the filetypes that are allowed to be uploaded, this attribute is only allowed to be added without a value.

Props kalpshit, arshidkv12, welcher, peterwilsoncc, marina_wp, pento.
See #44724.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43813 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-24 01:18:38 +00:00
Gary Pendergast
2bfffb3e1c Styles: Add helper functions for loading block styles.
Blocks are able to register styles that used in the editor and the frontend, or only in the editor. These functions ensure the correct styles are loaded in the correct place.

See #45065.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43812 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-24 00:35:51 +00:00
Daniel Bachhuber
dfbe885115 Meta: Allow empty strings to be set by Custom Fields meta box.
Because the REST API allows meta keys to have empty values, the Custom Fields meta box should permit the same behavior.

Props charlestonsw, soulseekah.
Fixes #43559.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43811 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-23 18:55:45 +00:00
Daniel Bachhuber
8c0b678862 Embeds: Filter HTML response in oEmbed proxy controller.
Adapts the response from `WP_oEmbed_Controller::get_proxy_item()` so that the response is correctly filtered and embeds work properly in JavaSccript editors. Introduces new `get_oembed_response_data_for_url()` function for preparing internal oEmbed responses.

Props danielbachhuber, imath, swissspidy.
Fixes #45142. 


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43810 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-23 17:47:28 +00:00
Aaron Jorbin
51d04a18dc Bundled Theme: Make twentynineteen the default theme.
After [43808], we can now make twentynineteen the default theme. Twentyseventeen has been a great default, but 5.0 and twentynineteen is guten.

Fixes #45152.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43809 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-23 16:50:33 +00:00
allancole
00a68dc5ac Importing Twenty Nineteen, our new default theme for 2019, set for 5.0.
Let Gutenberg shine with this simple, fast, and powerful theme. Initial development occurred on GitHub. See: https://github.com/WordPress/twentynineteen

Props allancole, karmatosed, kjellr, yingling017, mrasharirfan, milana_cap, fabiankaegy, westonruter, aaronjorbin, netweb, b-07, khleomix, blowery, dereksmart, jasmussen, audrasjb, nielslange, mmaumio, dimadin, joyously, anevins12.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43808 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-23 15:52:15 +00:00
Gary Pendergast
838bad624c Dashboard: Remove the Try Gutenberg callout.
Block or block not. There is no try.

Props mukesh27.
See #45063.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43807 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-23 11:03:20 +00:00
Daniel Bachhuber
e9abe64bdc Blocks: Fix coding standards introduced in [43804].
Props Presskopp, swissspidy.
See #45098


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43806 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-23 10:58:35 +00:00
Gary Pendergast
9811439172 REST API: Add endpoints for blocks.
`WP_REST_Block_Renderer_Controller` allows rendering of server-side rendered blocks, whilst `WP_REST_Blocks_Controller` allows retrieving of reusable blocks.

Props desrosj, danielbachhuber, pento.
See #45065.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43805 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-23 07:03:47 +00:00
Gary Pendergast
2b18dcdecd Blocks: Add the reusable block post type, wp_block.
See #45098.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43804 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-23 06:52:03 +00:00
Gary Pendergast
4bdfa3d5ea Scripts: wp-url is a dependency of wp-api-fetch.
See #45065.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43803 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-23 06:35:17 +00:00
Gary Pendergast
cf0f8e82b5 Script Loader: Fix metadata being registered as an inline script.
[43723] included script metadata for the `wp-polyfill` script that was being registered as an inline script.

See #45065.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43802 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-23 06:20:23 +00:00
Gary Pendergast
ff39bf3d68 Build: Update the @wordpress/editor package.
The `@wordpress/editor` wasn't upgraded to the correct version in [43789].

This commit includes changes from the `@wordpress/block-library` upgrade in [43789], that weren't copied to the correct location in core.

This also regenerates the `package-lock.json` in Linux, which the build server requires.

See #45145.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43801 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-23 05:34:43 +00:00
David A. Kennedy
2d4c428712 Twenty Seventeen: Add styles and support for the new block-based editor.
This update adds styles and theme support related to the new block-based editor to enhance the experience of using it with Twenty Seventeen. 

These are the specific changes made to this theme:

* Add blocks.css, to style blocks on the front end, to make sure they match the theme’s existing HTML element styles.
* Add editor-blocks.css to style blocks in the editor, to make sure they match the theme’s existing HTML element styles.
* Add theme support for `editor-styles`, to pull the existing editor stylesheet into the new editor.
* Add theme support for `wp-block-styles`, to load the default block styles on the front end.

Props laurelfulford, ianbelanger, crunnells.
Fixes #45045.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43800 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-23 01:25:03 +00:00
David A. Kennedy
067529bd3f Twenty Sixteen: Add styles and support for the new block-based editor.
This update adds styles and theme support related to the new block-based editor to enhance the experience of using it with Twenty Sixteen. 

These are the specific changes made to this theme:

* Add blocks.css, to style blocks on the front end, to make sure they match the theme’s existing HTML element styles.
* Add editor-blocks.css to style blocks in the editor, to make sure they match the theme’s existing HTML element styles.
* Add theme support for `editor-styles`, to pull the existing editor stylesheet into the new editor.
* Add theme support for `wp-block-styles`, to load the default block styles on the front end.
* Add theme support for `editor-color-palette`, to load a color palette based on the theme’s color scheme into the block-based editor.

Props laurelfulford.
Fixes #45044.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43799 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-23 01:03:09 +00:00
David A. Kennedy
b6023b4d7a Twenty Fifteen: Add styles and support for the new block-based editor.
This update adds styles and theme support related to the new block-based editor to enhance the experience of using it with Twenty Fifteen. 

These are the specific changes made to this theme:

* Add blocks.css, to style blocks on the front end, to make sure they match the theme’s existing HTML element styles.
* Add editor-blocks.css to style blocks in the editor, to make sure they match the theme’s existing HTML element styles.
* Add theme support for `editor-styles`, to pull the existing editor stylesheet into the new editor.
* Add theme support for `wp-block-styles`, to load the default block styles on the front end.
* Add theme support for `editor-color-palette`, to load a color palette based on the theme’s color scheme into the block-based editor.

Props laurelfulford.
Fixes #45043.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43798 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-23 00:35:37 +00:00
David A. Kennedy
ae00fd945a Twenty Fourteen: Add styles and support for the new block-based editor.
This update adds styles and theme support related to the new block-based editor to enhance the experience of using it with Twenty Fourteen. 

These are the specific changes made to this theme:

* Add blocks.css, to style blocks on the front end, to make sure they match the theme’s existing HTML element styles.
* Add editor-blocks.css to style blocks in the editor, to make sure they match the theme’s existing HTML element styles.
* Add theme support for `editor-styles`, to pull the existing editor stylesheet into the new editor.
* Add theme support for `wp-block-styles`, to load the default block styles on the front end.
* Add theme support for `editor-color-palette`, to load a color palette based on the theme’s color scheme into the block-based editor.

Props laurelfulford, crunnells, ianbelanger.
Fixes #45042.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43797 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-23 00:10:28 +00:00
David A. Kennedy
d5e7451cef Twenty Thirteen: Add styles and support for the new block-based editor.
This update adds styles and theme support related to the new block-based editor to enhance the experience of using it with Twenty Thirteen. 

These are the specific changes made to this theme:

* Add blocks.css, to style blocks on the front end, to make sure they match the theme’s existing HTML element styles.
* Add editor-blocks.css to style blocks in the editor, to make sure they match the theme’s existing HTML element styles.
* Add theme support for `editor-styles`, to pull the existing editor stylesheet into the new editor.
* Add theme support for `wp-block-styles`, to load the default block styles on the front end.
* Add theme support for `editor-color-palette`, to load a color palette based on the theme’s color scheme into the block-based editor.
* Add theme support and styles for `align-wide`, to allow wide and full alignment styles on the blocks.

Props laurelfulford, ianbelanger.
Fixes #45041.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43796 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-22 23:43:55 +00:00
David A. Kennedy
fcabcf15d5 Twenty Twelve: Add styles and support for the new block-based editor.
This update adds styles and theme support related to the new block-based editor to enhance the experience of using it with Twenty Twelve. 

These are the specific changes made to this theme:

* Add blocks.css, to style blocks on the front end, to make sure they match the theme’s existing HTML element styles.
* Add editor-blocks.css to style blocks in the editor, to make sure they match the theme’s existing HTML element styles.
* Add theme support for `editor-styles`, to pull the existing editor stylesheet into the new editor.
* Add theme support for `wp-block-styles`, to load the default block styles on the front end.
* Add theme support for `editor-color-palette`, to load a color palette based on the theme’s color scheme into the block-based editor.

Props ianbelanger, crunnells, laurelfulford.
Fixes #45040.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43795 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-22 23:17:55 +00:00
David A. Kennedy
44da7d65ca Twenty Eleven: Add styles and support for the new block-based editor.
This update adds styles and theme support related to the new block-based editor to enhance the experience of using it with Twenty Eleven. 

These are the specific changes made to this theme:

* Add blocks.css, to style blocks on the front end, to make sure they match the theme’s existing HTML element styles.
* Add editor-blocks.css to style blocks in the editor, to make sure they match the theme’s existing HTML element styles.
* Add theme support for `editor-styles`, to pull the existing editor stylesheet into the new editor.
* Add theme support for `wp-block-styles`, to load the default block styles on the front end.
* Add theme support for `editor-color-palette`, to load a color palette based on the theme’s color scheme into the block-based editor.

Props ianbelanger, laurelfulford.
Fixes #45039.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43794 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-22 23:02:44 +00:00
David A. Kennedy
06a77e8d54 Twenty Ten: Add styles and support for the new block-based editor.
This update adds styles and theme support related to the new block-based editor to enhance the experience of using it with Twenty Ten. 

These are the specific changes made to this theme:

* Add blocks.css, to style blocks on the front end, to make sure they match the theme’s existing HTML element styles.
* Add editor-blocks.css to style blocks in the editor, to make sure they match the theme’s existing HTML element styles.
* Add theme support for `editor-styles`, to pull the existing editor stylesheet into the new editor.
* Add theme support for `wp-block-styles`, to load the default block styles on the front end.
* Add theme support for `editor-color-palette`, to load a color palette based on the theme’s color scheme into the block-based editor.

Props nielslange, crunnells, laurelfulford.
Fixes #45038.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43793 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-22 22:37:18 +00:00
Dominik Schilling (ocean90)
9c4aff4f56 Meta Boxes: Sync checks for valid meta boxes from do_meta_boxes() to the_block_editor_meta_boxes().
See #45112.

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43792 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-22 21:26:20 +00:00
Dominik Schilling (ocean90)
1fc8a0622c Themes: Remove a stray slash and gutenberg text domain.
See #45125.

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43791 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-22 21:00:47 +00:00