38303 Commits

Author SHA1 Message Date
Daniel Bachhuber
4b791ecf5f REST API: Avoid using 'parent' as path argument name for autosaves.
When 'parent' is set as the path argument name, it gets passed down through to the `create_item()` method and can erroneously reset the 'parent' value on the post itself. Instead, we rename the argument to 'id' and replicate the revision controller's `get_items_permissions_check()` to instead reference 'id'.

Also ensures revision query params (of which there are many) aren't exposed as the query params for autosaves (of which there are two).

Props TimothyBlynJacobs.
See #43316.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43897 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-15 12:56:54 +00:00
Gary Pendergast
e964c993be Post WordPress 5.0 Beta 4 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43896 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-13 01:14:27 +00:00
Gary Pendergast
ecceac076e WordPress 5.0 Beta 4.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43895 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-13 01:01:02 +00:00
Gary Pendergast
ff57e40a76 Script Loader: Fix an error introduced in [43893].
`wp_common_block_scripts_and_styles()` should only exit early if we're in the admin and the current screen isn't the block editor.

See #45302.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43894 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-13 00:24:07 +00:00
Gary Pendergast
9d9854594b Scripts: Fix a PHP error in admin-ajax calls.
When making an ajax request, `wp_enqueue_registered_block_scripts_and_styles()` checked if `is_admin()` was true before accessing `$current_screen`, rather than checking if `$current_screen` was defined. This is usually fine, execept for in ajax requests.

Props ocean90, foreverpinetree, pento.
See #45203.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43893 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-12 23:37:31 +00:00
allancole
f2517bad92 Updating Twenty Nineteen, our new default theme for 2019, set for 5.0.
This update applies the following changes:

- Improve menu UI to support keyboard, click and touch interactions
- Improve variable scoping and js performance in menu interaction javascript
- Improve custom-colors for selected text, buttons and menu hover styles
- Improve margins structure for more consistency between editor and frontend
- Improve discussion avatars for simpler wording and better performance
- Improve fonts in list widgets and list blocks 
- Improve comment responsive spacing and avatar display
- Improve various block styles to make them consistent between the editor and frontend
- Add tabbed browsing support for ie11
- Add backwards compatibility support for older versions of WordPress
- Add fallback styles for older versions of WP where Gutenberg is activated and then deactivated (backwards compatibility)
- Add `sizes` attribute for featured images to improve responsive performance
- Add focus-within polyfill
- Add a footer menu for secondary page links
- Fix editor styles to prevent conflicts with plugins that add meta boxes to the editor
- Fix columns block issues on small screens
- Fix empty-space font text cursor issue in Gutenberg editor
- Fix RTL floating styles so that left/right floats are honored
- Fix cover image block margins/padding
- Fix invalid rgba style
- Fix php warning when returning attributes
- Fix gallery widget margins to improve gallery grids
- Fix .entry-content selectors to prevent shortcodes, plugins and other unknown content from breaking the layout
- Remove translation escaping to follow code standards in previous default themes
- Remove custom color output in the fronten header when default color is selected
- Remove fly-out sub-sub-sub-menu behavior on desktop to prevent sub-menus from falling off the screen
- General code clean up and coding standards improvements

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, peterwilsoncc, dannycooper, icaleb, siriokun, technosiren, travel_girl, azchughtai, ianbelanger, nadim1992, ismailelkorchi, nativeinside, chetan200891, icaleb, grapplerulrich, ocean90, joshfeck, frankew, abdulwahab610, mendezcode, eliorivero, melchoyce, joen, laurelfulford, mdawaffe, kraftbj, dsmart, mukeshpanchal27, burhandodhy, crunnells, Ismail-elkorchi, aryaprakasa, @tlxo, @themeroots, @whizbangik, @yingles, @youthkee, @brentswisher, @smy315, @ahmadawais, @desi-developer.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43892 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-12 23:19:13 +00:00
Riad Benguella
0c58fd2301 Block Editor: Update @wordpress dependencies to the latest version matching Gutenberg 4.3.0
- Update the editor,edit-post,components,block-library,nux and list-reusable blocks packages
 - Also add a missing wp-date dependency to the editor script

Props atimmer
See #45145.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43891 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-12 17:01:09 +00:00
Andrew Ozz
ab37690438 Fix linting after [43889].
See #45264.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43890 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-12 13:56:41 +00:00
Andrew Ozz
e5d7e4b82b Block Editor: Fix the TinyMCE wordpress plugin to handle hiding/showing of toolbars in the classic block. Change the classic block toolbar to use the (now fixed) wp_adv button.
Fixes #45264.

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43889 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-12 10:34:50 +00:00
Andrew Ozz
c2aa32f654 Block Editor: A little cleanup to render_block(). Always normalize $block['attrs'] to array in 'render_block' filter.
See #45145.

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43888 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-12 10:02:25 +00:00
Gary Pendergast
781f30bf49 Docs: Future-proof comments referencing 5.0 TODOs.
Some Customizer-related files contain inline comments referencing work to do for #42364 for 5.0. Those comments are now outdated as #42364 was moved to the 5.1 milestone.

Props dlh.
See #45115.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43887 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-12 04:22:46 +00:00
Gary Pendergast
e603cf6ba3 Build Tools: Add non-minified @wordpress scripts to the build output.
Props atimmer.
See #45156.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43886 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-12 04:18:52 +00:00
Gary Pendergast
114a1eeb3f Block Editor: Hide the Custom Fields meta box option if that meta box has been removed.
Some plugins remove the Custom Fields meta box, particularly when they provide functionality that replaces it. The block editor would correctly not display this meta box in these circumstances, but it still showed the option to display or hide it.

Props pento, noisysocks.
See #45282.




git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43885 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-12 03:37:41 +00:00
Gary Pendergast
26414eec37 Block Editor: Update @wordpress dependencies to the latest version.
Changes of note:
- Includes the new Annotations API package.
- `wp-polyfill-ecmascript.js` is renamed to `wp-polyfill.js`.
- `strip_dynamic_blocks()` has been removed in favour of `excerpt_remove_blocks()`.
- The PHP block parser is now syncing from the `block-serialization-default-parser` package.
- `do_blocks()` uses the new parser.
- The `do_block` filter has been removed from `do_blocks()`, in favour of a `render_block` filter in `render_block()`.

See #45145, #45190, #45264, #45282.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43884 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-12 02:26:18 +00:00
Gary Pendergast
ca69dd523b Tests: Fix tests broken in PHP 5.x after [43879].
See #45290.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43883 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-09 09:43:29 +00:00
Gary Pendergast
d02d1ea4df Meta Boxes: Add the block_editor_meta_box_hidden_fields action.
Lacking an appropriate action in the classic editor, plugins that add meta boxes have historically hooked into various actions in order to add hidden input fields.

This change also adds backwards compatibility for two of the most common: `edit_form_after_title`, and `edit_form_advanced`.

Props pento, danielbachhuber.
See #45283.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43882 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-09 09:05:47 +00:00
Gary Pendergast
e2c2c1bd25 Tests: Fix a failing test after [43879].
See #45290.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43881 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-09 08:55:50 +00:00
Gary Pendergast
cbc780e3c8 Block Editor: Prevent the meta box form from being accidentally submitted.
Meta boxes are loaded inside a wrapper form, that the block editor submits as part of the saving process. It shouldn't be submitted manually.

See #45284.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43880 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-09 08:32:19 +00:00
Gary Pendergast
55ccd0f2ee Formatting: Ensure wpautop() isn't run on content generated from blocks.
As `do_blocks()` is run before `wpautop()` in `the_content` filter, we can remove in a Just In Time fashion, before that filter is run.

After `wpautop()`s original priority has passed, we can re-add it in a Just Too Late fashion, to ensure it's available if `the_content` filter is run multiple times on a page load.

Props pento, nerrad.
Fixes #45290.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43879 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-09 08:28:40 +00:00
herregroen
7138832595 I18N: Set translations for all WordPress packages scripts.
Calls `wp_set_script_translations` for all packages scripts that have translations. Also correctly sets the domain on the translations.

Props omarreiss, pento, ocean90.
Fixes #45161.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43878 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-08 11:33:46 +00:00
Dominik Schilling (ocean90)
4bfa0886eb Script Loader: Ensure default packages are registered when loaded via load-scripts.php.
Props CantoThemes, ocean90.
See #45271.

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43877 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-08 09:23:10 +00:00
laurelfulford
fb7798cfcc Twenty Seventeen: Fix issues with theme's Gutenberg support.
A handful of issues were missed in Twenty Seventeen's Gutenberg support, added in #45045. This commit includes the following fixes:

* Update editor placeholder text to use the correct font family.
* Center text and bullets in list-based widget blocks, when block itself is centered.
* Include non "image" variations of the Cover block classes `.wp-block-cover` and `.wp-block-cover-text` in the styles.
* Add spacing underneath the Media & Text block, but make sure the final paragraph in the block doesn't add too much space.
* Simplify selectors used to set editor width to just `.wp-block`.
* Prevent margin from theme's editor-style.css from interfering with editor alignment. 
 
Props pento, davidakennedy.
Fixes #45246.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43876 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-06 06:16:39 +00:00
laurelfulford
d3a6be55cb Twenty Sixteen: Fix issues with theme's Gutenberg support.
A handful of issues were missed in Twenty Sixteen's Gutenberg support, added in #45044. This commit includes the following fixes:

* Center text and bullets in list-based widget blocks, when block itself is centered.
* Correct styles for the editor placeholder text, so it's not inheriting a darker gray from the theme's CSS. 
* Include non "image" variations of the Cover block classes `.wp-block-cover` and `.wp-block-cover-text` in the styles.
* Reset Cover blocks as `display: flex` when they are centered, to maintain their original appearance.
* Add spacing underneath the Media & Text block, but make sure the final paragraph in the block doesn't add too much space.
* Simplify selectors used to set editor width to just `.wp-block`.
* Prevent margin from theme's editor-style.css from interfering with editor alignment. 
 
Props pento, davidakennedy.
Fixes #45245.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43875 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-06 06:06:00 +00:00
laurelfulford
b36494e4a7 Twenty Fifteen: Fix issues with theme's Gutenberg support.
A handful of issues were missed in Twenty Fifteen's Gutenberg support, added in #45043. This commit includes the following fixes:

* Center text and bullets in list-based widget blocks, when block itself is centered.
* Add a margin to blocks that are aligned to the left or to the right, to create space.
* Include non "image" variations of the Cover block classes `.wp-block-cover` and `.wp-block-cover-text` in the styles.
* Add spacing underneath the Media & Text block, but make sure the final paragraph in the block doesn't add too much space.
* Simplify selectors used to set editor width to just `.wp-block`.
* Prevent margin from theme's editor-style.css from interfering with editor alignment. 

Props pento, davidakennedy.
Fixes #45244.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43874 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-06 05:56:54 +00:00
laurelfulford
8c14472b97 Twenty Fourteen: Fix issues with theme's Gutenberg support.
A handful of issues were missed in Twenty Fourteen's Gutenberg support, added in #45042. This commit includes the following fixes:

* Update editor placeholder text to use the correct font family.
* Center text and bullets in list-based widget blocks, when block itself is centered.
* Remove unnecessary spacing from the Columns block.
* Add spacing underneath the Media & Text block, but make sure the final paragraph in the block doesn't add too much space.
* Include non "image" variations of the Cover block classes `.wp-block-cover` and `.wp-block-cover-text` in the styles.
* Simplify selectors used to set editor width to just `.wp-block`.

Props pento, davidakennedy.
Fixes #45243.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43873 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-06 01:25:46 +00:00
laurelfulford
e14fa692df Twenty Thirteen: Fix issues with theme's Gutenberg support.
A handful of issues were missed in Twenty Thirteen's Gutenberg support, added in #45041. This commit includes the following fixes:

* Center text and bullets in list-based widget blocks, when block itself is centered.
* Prevent full and wide aligned blocks from getting wider than Twenty Thirteen's design.
* Prevent wide aligned blocks from getting too wide, as they can seem out of proportion with the full aligned blocks.
* Make sure full and wide blocks display at the correct width in the editor.
* Include non "image" variations of the Cover block classes `.wp-block-cover` and `.wp-block-cover-text` in the styles.
* Make sure wide and full aligned Table blocks span the available width on the front end.
* Add spacing underneath the Media & Text block, but make sure the final paragraph in the block doesn't add too much space.
* Simplify selectors used to set editor width to just `.wp-block`.


Props pento, davidakennedy.
Fixes #45242.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43872 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-06 01:21:06 +00:00
laurelfulford
2d8d13cfe7 Twenty Twelve: Fix issues with theme's Gutenberg support.
A handful of issues were missed in Twenty Twelve's Gutenberg support, added in #45040. This commit includes the following fixes:

* Update editor placeholder text to use the correct font family.
* Center text and bullets in list-based widget blocks, when block itself is centered.
* Include non "image" variations of the Cover block classes `.wp-block-cover` and `.wp-block-cover-text` in the styles.
* Add spacing underneath the Media & Text block, but make sure final paragraph in the block doesn't add too much space.
* Simplify selectors used to set editor width to just `.wp-block`.


Props pento, davidakennedy.
Fixes #45240.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43871 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-06 01:09:57 +00:00
laurelfulford
104e25b627 Twenty Eleven: Fix issues with theme's Gutenberg support.
A handful of issues were missed in Twenty Eleven's Gutenberg support, added in #45039. This commit includes the following fixes:

* Center text and bullets in list-based widget blocks when block itself is centered.
* Include non "image" variations of the Cover block classes `.wp-block-cover` and `.wp-block-cover-text` in the styles.
* Add spacing underneath the Media & Text block, but make sure final paragraph in the block doesn't add too much space.
* Simplify selectors used to set editor width to just `.wp-block`.
* Prevent margin from theme's editor-style.css from interfering with editor alignment. 

Props pento, davidakennedy.
Fixes #45239.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43870 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-06 01:00:58 +00:00
laurelfulford
1401fd3d72 Twenty Ten: Fix issues with theme's Gutenberg support.
A handful of issues were missed in Twenty Ten's Gutenberg support, added in #45038. This commit includes the following fixes:

* Update editor placeholder text to use the correct font family and size.
* Remove unnecessary spacing from the Columns block.
* Include non "image" variations of the Cover block classes `.wp-block-cover` and `.wp-block-cover-text` in the styles.
* Add spacing underneath the Media & Text block.
* Simplify selectors used to set editor width to just `.wp-block`.

Fixes #45238.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43869 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-06 00:49:33 +00:00
laurelfulford
c99ccf859e Bundled Themes: Add theme support for responsive embeds
Add `add_theme_support( 'responsive-embeds' );` to all of the responsive default themes as part of their Gutenberg support. This makes sure any embeds coming from the new block-based editor maintain their aspect ratios at different screen sizes.

Fixes #45274.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43868 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-06 00:24:12 +00:00
Andrew Ozz
abfbb344f1 TinyMCE:
- Fix parsing of the init array in script-loader.
- Do not JSON encode the options object when outputting it from PHP.
- Remove JSON decoding of TinyMCE's `style_formats` option.

Fixes #45221.

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43867 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-05 08:38:47 +00:00
Gary Pendergast
1f4c84c65d Tests: Skip symlinked theme file tests if the links could not be created, or if symlink() is not available
Merges [42812,42819] to the 5.0 branch.

Props SergeyBiryukov.
Fixes #43508.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43866 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-05 02:46:14 +00:00
Gary Pendergast
d1807924bc Post WordPress 5.0 Beta 3 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43865 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-05 00:18:44 +00:00
Gary Pendergast
141768a67b WordPress 5.0 Beta 3.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43864 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-05 00:06:03 +00:00
Gary Pendergast
fc3644fff9 Meta Boxes: Add curly brackets missed in [43861].
This was causing the custom meta box to be incorrectly added to post types that don't support it.

Props ocean90, epointal.
Fixes #45257,


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43863 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-04 23:22:25 +00:00
Daniel Bachhuber
a4b6ac656f REST API: Prevent duplicate firing of rest(_after)?_insert_attachment actions.
Props danielbachhuber, peterwilsoncc.
Fixes #45269.
See #42864.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43862 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-03 14:13:16 +00:00
Gary Pendergast
5504866f20 Build Tools: Update the @wordpress packages.
This brings support for the custom fields meta box to the block editor.

The `webpack` and `copy-webpack-plugin` packages have also been updated.

See #45145.
Fixes #45257.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43861 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-03 07:56:28 +00:00
allancole
c2527dfc96 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, peterwilsoncc, dannycooper, icaleb, siriokun, technosiren, travel_girl, azchughtai, ianbelanger, nadim1992, ismailelkorchi, nativeinside, chetan200891, icaleb, grapplerulrich, ocean90, joshfeck, frankew, abdulwahab610, mendezcode, eliorivero, melchoyce, joen, laurelfulford, mdawaffe, kraftbj, dsmart, mukeshpanchal27, burhandodhy, crunnells, Ismail-elkorchi, aryaprakasa.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43860 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-02 23:52:16 +00:00
herregroen
c4bffce143 I18N: Improve JavaScript translation support.
Improves upon [43825] by adding unit tests to cover additional use-cases and changes loading translations to only occur when outputting the script to allow setting translations on dependencies.

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


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43859 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-01 13:50:59 +00:00
Gary Pendergast
fe56c5deb3 Editor: Cast the result of the default_content, default_title, and default_excerpt filters.
If a plugin returns a non-string value (or returns `null`) on these filters, it can cause errors in the block editor. Casting them as a string prevents these errors.

Props dd32.
See #45236.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43858 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-01 05:19:48 +00:00
Gary Pendergast
12f0039b5c Block Editor: Remove CodeMirror settings.
CodeMirror is no longer used in the block editor, so we don't need to load the settings.

Props noisysocks.
Fixes #45248.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43857 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-01 05:06:44 +00:00
Gary Pendergast
364f935221 Block Editor: Don't show back compat or incompatible meta boxes in Options.
Meta boxes that exist for back compat, or that are incompatible with the block editor aren't displayed, so they don't need an option to display or hide them in the Options dialog.

Props noisysocks.
Fixes #45249.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43856 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-01 04:32:37 +00:00
Gary Pendergast
4d2db97c5d Posts: Remove the slug from Quick Edit for posts that are not is_post_type_viewable().
This is a followup to [43728], which added the same check, but using the `publicly_queryable` option. This behaviour is incorrect for `_builtin` post types, which go by the logic in `is_post_type_viewable()`, instead.

See #43278.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43855 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-01 02:34:26 +00:00
Gary Pendergast
d9bc4caf9d Blocks: Add "Export as JSON" action to the wp_block post list screen.
Remove the "Quick Edit" for `wp_block`s, too, as they don't need any of that functionality.

Props noisysocks.
Fixes #45247.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43854 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-01 02:24:18 +00:00
Gary Pendergast
981c18c941 Build Tools: Switch to Node 10.13.0.
Now that Node 10 is the LTS branch, with 10.13.0 as the first LTS release, let's use that for building WordPress.

See #45241.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43853 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-01 02:01:04 +00:00
Daniel Bachhuber
7818e29cc5 REST API: Fix array syntax after [43851].
I thought I was writing JavaScript. Alas.

See #45196.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43852 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-31 14:02:45 +00:00
Daniel Bachhuber
fcd9381149 REST API: Regenerate fixure schema after introduction of new endpoints.
This fixture schema ensures `wp-api-generated.js` doesn't change when running tests in local dev environments.

Fixes #45196.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43851 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-31 13:25:28 +00:00
Daniel Bachhuber
74a3e2788a REST API: Restore access to audio/video metadata functions.
Ensures `wp_read_video_metadata()`/`wp_read_audio_metadata()` functions are available when uploading video and audio. Fixes error introduced in [43589].

Props ocean90.
See #43757.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43850 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-31 12:44:21 +00:00
Daniel Bachhuber
b05849574d Blocks: Include necessary labels for the 'wp_block' post type.
See #45098


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43849 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-31 11:34:01 +00:00
Gary Pendergast
6ca255f3fd FTP/PemFTP Library: Fix some PHP notices.
- `ftp_base::glob()` used `each()`, which is deprecated as of PHP 7.2.
- `ftp_base::fget()` was missing the decleration of its third parameter, `$rest`.

Props itowhid06.
See #44489.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43848 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-31 06:00:03 +00:00