Aaron Jorbin
6d4b4f5228
Grouped Backports to the 5.0 branch.
...
- Install: When populating options, maybe_serialize instead of always serialize.
- Uploads: Check for and verify ZIP archives.
Merges [57388] and [57389] to the 5.0 branch.
Props costdev, peterwilsoncc, azaozz, tykoted, johnbillion, desrosj, afragen, jorbin, xknown.
Built from https://develop.svn.wordpress.org/branches/5.0@57405
git-svn-id: http://core.svn.wordpress.org/branches/5.0@56911 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-30 15:01:41 +00:00
davidbaumwald
7587053972
Grouped backports to the 5.0 branch.
...
- Comments: Prevent users who can not see a post from seeing comments on it.
- Shortcodes: Restrict media shortcode ajax to certain type.
- REST API: Ensure no-cache headers are sent when methods are overridden.
- REST API: Limit `search_columns` for users without `list_users`.
- Prevent unintended behavior when certain objects are unserialized.
Merges [56833], [56834], [56835], [56836], and [56838] to the 5.0 branch.
Props xknown, jorbin, joehoyle, timothyblynjacobs, peterwilsoncc, ehtis, tykoted, antpb, rmccue.
Built from https://develop.svn.wordpress.org/branches/5.0@56871
git-svn-id: http://core.svn.wordpress.org/branches/5.0@56382 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-10-12 18:19:31 +00:00
Sergey Biryukov
cc0aa4e659
Grouped backports to the 5.0 branch.
...
- Media: Prevent CSRF setting attachment thumbnails.
- Embeds: Add protocol validation for WordPress Embed code.
- I18N: Introduce sanitization function for locale.
- Editor: Ensure block comments are of a valid form.
Merges [55760-55764] to the 5.0 branch
Props dd32, isabel_brison, martinkrcho, matveb, ocean90, paulkevan, peterwilsoncc, timothyblynjacobs, xknown, youknowriad.
Built from https://develop.svn.wordpress.org/branches/5.0@55791
git-svn-id: http://core.svn.wordpress.org/branches/5.0@55303 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-05-16 16:03:44 +00:00
Sergey Biryukov
892fb39abc
Grouped backports to the 5.0 branch.
...
- Posts, Post types: Apply KSES to post-by-email content,
- General: Validate host on "Are you sure?" screen,
- Posts, Post types: Remove emails from post-by-email logs,
- Media: Refactor search by filename within the admin,
- Pings/trackbacks: Apply KSES to all trackbacks,
- Comments: Apply kses when editing comments,
- Customize: Escape blogname option in underscores templates,
- REST API: Lockdown post parameter of the terms endpoint,
- Mail: Reset PHPMailer properties between use,
- Query: Validate relation in `WP_Date_Query`,
- Widgets: Escape RSS error messages for display.
Merges [54521], [54522], [54523], [54524], [54525], [54526], [54527], [54528], [54529], [54530], [54541] to the 5.0 branch.
Props voldemortensen, johnbillion, paulkevan, peterwilsoncc, xknown, dd32, audrasjb, martinkrcho, vortfu, davidbaumwald, tykoted, timothyblynjacobs, johnjamesjacoby, ehtis, matveb, talldanwp.
Built from https://develop.svn.wordpress.org/branches/5.0@54571
git-svn-id: http://core.svn.wordpress.org/branches/5.0@54125 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-17 18:16:15 +00:00
desrosj
e84750df64
Grouped backports to the 5.0 branch.
...
- Query: Improve sanitization within `WP_Tax_Query`.
- Query: Improve sanitization within `WP_Meta_Query`.
- Upgrade/Install: Avoid using `unserialize()` unnecessarily.
- Formatting: Correctly encode ASCII characters in post slugs.
Merges [52454-52457] to the 5.0 branch.
Props vortfu, dd32, ehtis, zieladam, whyisjake, xknown, peterwilsoncc, desrosj, iandunn.
Built from https://develop.svn.wordpress.org/branches/5.0@52473
git-svn-id: http://core.svn.wordpress.org/branches/5.0@52065 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-06 18:15:24 +00:00
whyisjake
8428d1077f
General: WordPress updates
...
* XML-RPC: Improve error messages for unprivileged users.
* External Libraries: Disable deserialization in Requests_Utility_FilteredIterator
* Embeds: Disable embeds on deactivated Multisite sites.
* Coding standards: Modify escaping functions to avoid potential false positives.
* XML-RPC: Return error message if attachment ID is incorrect.
* Upgrade/install: Improve logic check when determining installation status.
* Meta: Sanitize meta key before checking protection status.
* Themes: Ensure that only privileged users can set a background image when a theme is using the deprecated custom background page.
Brings the changes from [49380,49382-49388] to the 5.0 branch.
Props xknown, zieladam, peterwilsoncc, whyisjake, desrosj, dd32.
Built from https://develop.svn.wordpress.org/branches/5.0@49396
git-svn-id: http://core.svn.wordpress.org/branches/5.0@49155 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-29 18:51:46 +00:00
Sergey Biryukov
639a8628e2
Administration: Pass the result of `set-screen-option` filter to the new `set_screen_option_{$option}` filter to ensure backward compatibility.
...
Rename the `$keep` parameter of both filters to `$screen_option` for clarity, update the documentation to better reflect its purpose.
Follow-up to [47951].
Props Chouby, sswells, SergeyBiryukov.
Merges [48241] to the 5.0 branch.
Fixes #50392 .
Built from https://develop.svn.wordpress.org/branches/5.0@48248
git-svn-id: http://core.svn.wordpress.org/branches/5.0@48017 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-07-01 09:49:40 +00:00
desrosj
c5a0caaaae
General: Backport several commits for release.
...
- Embeds: Ensure that the title attribute is set correctly on embeds.
- Editor: Prevent HTML decoding on by setting the proper editor context.
- Formatting: Ensure that `wp_validate_redirect()` sanitizes a wider variety of characters.
- Themes: Ensure a broken theme name is returned properly.
- Administration: Add a new filter to extend set-screen-option.
Merges [47947-47951] to the 5.0 branch.
Props xknown, sstoqnov, vortfu, SergeyBiryukov, whyisjake.
Built from https://develop.svn.wordpress.org/branches/5.0@47964
git-svn-id: http://core.svn.wordpress.org/branches/5.0@47735 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-10 18:22:47 +00:00
Sergey Biryukov
045c01e20b
Escape the output in `wp_ajax_upload_attachment()`.
...
Merges [45936] to the 5.0 branch.
Props whyisjake, sstoqnov.
Built from https://develop.svn.wordpress.org/branches/5.0@45941
git-svn-id: http://core.svn.wordpress.org/branches/5.0@45752 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-09-04 16:26:48 +00:00
Sergey Biryukov
ed88ef2072
Comments: Improve comment content filtering.
...
Merges [44842] to the 5.0 branch.
Built from https://develop.svn.wordpress.org/branches/5.0@44844
git-svn-id: http://core.svn.wordpress.org/branches/5.0@44676 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-03-12 22:33:45 +00:00
desrosj
91afce3ea8
Posts, Post Types: Correctly show hierarchical post type hierarchy in admin.
...
In [44185], a bug was introduced where hierarchical post types would not display in the correct default order (hierarchically).
This was caused by a `! isset()` check, which returned `false` after [44185], causing the correct default value to not be applied. This switches that conditional to use an `empty()` check, ignoring the new empty string assignment that was added to prevent a PHP notice when `compact()` is called.
Merges [44338] to the 5.0 branch.
Props davidbinda.
Fixes #45711 .
Built from https://develop.svn.wordpress.org/branches/5.0@44339
git-svn-id: http://core.svn.wordpress.org/branches/5.0@44169 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-19 22:28:45 +00:00
Gary Pendergast
90667f52ba
Block Editor: Remove a deprecated notice being generated by the meta box compat functions.
...
See #45456 .
Built from https://develop.svn.wordpress.org/branches/5.0@44248
git-svn-id: http://core.svn.wordpress.org/branches/5.0@44078 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-17 03:24:41 +00:00
desrosj
15db443250
PHP 7.3 Compatibility: Fix compact related 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. 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 .
Built from https://develop.svn.wordpress.org/branches/5.0@44185
git-svn-id: http://core.svn.wordpress.org/branches/5.0@44015 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-15 11:01:25 +00:00
Peter Wilson
1f5919e631
Multisite: Validate activation links.
...
Merges [44048] to the 5.0 branch.
Built from https://develop.svn.wordpress.org/branches/5.0@44050
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43880 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-13 01:30:45 +00:00
Gary Pendergast
8d463ab37f
Editor: Remove unwanted fields before saving posts.
...
The `meta_input`, `file`, and `guid` fields are not intended to be updated through user input.
Built from https://develop.svn.wordpress.org/branches/5.0@44047
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43877 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-13 01:25:47 +00:00
mcsf
73b656936c
Update `sidebars_widgets` to match Twenty Nineteen's single widget area
...
* Also update the customizer tests to match it.
Props SergeyBiryukov, pento.
Built from https://develop.svn.wordpress.org/branches/5.0@43954
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43786 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-11-30 20:25:46 +00:00
Mel Choyce
34e52b90e9
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 .
Built from https://develop.svn.wordpress.org/branches/5.0@43952
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43784 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-11-30 16:23:46 +00:00
Gary Pendergast
07ebb6262c
Block Editor: Clarify a translator comment in meta box handling.
...
Props ocean90.
See #45217 .
Built from https://develop.svn.wordpress.org/branches/5.0@43945
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43777 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-11-27 06:39:48 +00:00
Gary Pendergast
be60664fe1
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 .
Built from https://develop.svn.wordpress.org/branches/5.0@43941
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43773 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-11-23 08:15:46 +00:00
youknowriad
97e84f8a03
Block Editor: Refresh nonces used by wp.apiFetch.
...
Adds heartbeat nonces refreshing support to wp.apiFetch requests.
Props pento, adamsilverstein, dd32, desrosj.
Fixes #45113 .
Built from https://develop.svn.wordpress.org/branches/5.0@43939
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43771 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-11-22 19:40:46 +00:00
mcsf
0d5fd392e8
Warn users of Gutenberg plugin of its deactivation upon 5.0 upgrade.
...
Fixes #45073 .
Built from https://develop.svn.wordpress.org/branches/5.0@43921
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43753 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-11-21 16:35:48 +00:00
mcsf
ba1c444bf3
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 .
Built from https://develop.svn.wordpress.org/branches/5.0@43920
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43752 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-11-21 16:18:49 +00:00
Gary Pendergast
aea8dfd090
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 .
Built from https://develop.svn.wordpress.org/branches/5.0@43912
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43744 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-11-21 01:48:49 +00:00
Gary Pendergast
8f8f3bb91d
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 .
Built from https://develop.svn.wordpress.org/branches/5.0@43885
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43714 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-11-12 03:38:50 +00:00
Gary Pendergast
fdf428e44f
Tests: Fix tests broken in PHP 5.x after [43879].
...
See #45290 .
Built from https://develop.svn.wordpress.org/branches/5.0@43883
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43712 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-11-09 09:44:49 +00:00
Gary Pendergast
cd22d51724
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 .
Built from https://develop.svn.wordpress.org/branches/5.0@43882
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43711 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-11-09 09:06:47 +00:00
Gary Pendergast
98e9bbdc19
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 .
Built from https://develop.svn.wordpress.org/branches/5.0@43880
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43709 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-11-09 08:33:46 +00:00
Gary Pendergast
a46a68ad7f
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 ,
Built from https://develop.svn.wordpress.org/branches/5.0@43863
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43692 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-11-04 23:23:49 +00:00
Gary Pendergast
325cb107d1
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 .
Built from https://develop.svn.wordpress.org/branches/5.0@43861
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43690 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-11-03 07:57:54 +00:00
Gary Pendergast
e0664765b6
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 .
Built from https://develop.svn.wordpress.org/branches/5.0@43858
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43687 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-11-01 05:20:47 +00:00
Gary Pendergast
d9e31a1bb9
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 .
Built from https://develop.svn.wordpress.org/branches/5.0@43856
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43685 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-11-01 04:33:46 +00:00
Gary Pendergast
049d3a6db8
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 .
Built from https://develop.svn.wordpress.org/branches/5.0@43855
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43684 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-11-01 02:35:46 +00:00
Gary Pendergast
eb4031a209
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 .
Built from https://develop.svn.wordpress.org/branches/5.0@43854
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43683 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-11-01 02:25:47 +00:00
Gary Pendergast
1fb36474cb
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 .
Built from https://develop.svn.wordpress.org/branches/5.0@43848
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43677 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-31 18:15:54 +00:00
Gary Pendergast
ebb5e6dd0d
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 .
Built from https://develop.svn.wordpress.org/branches/5.0@43840
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43669 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-29 08:36:36 +00:00
Gary Pendergast
f2e3a6c1ac
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 .
Built from https://develop.svn.wordpress.org/branches/5.0@43839
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43668 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-29 08:31:06 +00:00
Gary Pendergast
3549683ca3
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 .
Built from https://develop.svn.wordpress.org/branches/5.0@43838
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43667 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-29 08:30:14 +00:00
Gary Pendergast
742913ca97
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 .
Built from https://develop.svn.wordpress.org/branches/5.0@43837
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43666 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-29 08:29:23 +00:00
Gary Pendergast
0c54153886
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 .
Built from https://develop.svn.wordpress.org/branches/5.0@43830
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43659 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-26 08:12:39 +00:00
Drew Jaynes
2f515c6db0
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 .
Built from https://develop.svn.wordpress.org/branches/5.0@43827
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43656 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-26 07:38:26 +00:00
Sergey Biryukov
bbd58a5c35
Upgrade/Install: Convert `Sample Page`, `Hello World`, and `Privacy Policy` to block content.
...
Props desrosj, garrett-eclipse, danielbachhuber.
Fixes #45151 .
Built from https://develop.svn.wordpress.org/branches/5.0@43820
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43649 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-24 18:51:51 +00:00
danielbachhuber
7e3414597f
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 .
Built from https://develop.svn.wordpress.org/branches/5.0@43811
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43640 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-23 18:56:38 +00:00
Aaron Jorbin
634bb165bc
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 .
Built from https://develop.svn.wordpress.org/branches/5.0@43809
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43638 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-23 16:51:39 +00:00
Gary Pendergast
46e270096b
Dashboard: Remove the Try Gutenberg callout.
...
Block or block not. There is no try.
Props mukesh27.
See #45063 .
Built from https://develop.svn.wordpress.org/branches/5.0@43807
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43636 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-23 11:04:40 +00:00
Dominik Schilling
957a6af144
Meta Boxes: Sync checks for valid meta boxes from `do_meta_boxes()` to `the_block_editor_meta_boxes()`.
...
See #45112 .
Built from https://develop.svn.wordpress.org/branches/5.0@43792
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43621 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-23 06:08:59 +00:00
Gary Pendergast
6800a811b6
Meta Boxes: Add `__back_compat_meta_box` and `__block_editor_compatible_meta_box` flags to meta boxes.
...
When meta boxes are registered, they can use the `__back_compat_meta_box` and `__block_editor_compatible_meta_box` flags, to show whether this registration just exists for if the classic editor is loaded, and whether this meta box is compatible with the block editor.
When a meta box marks itself as incompatible with the block editor, and `WP_DEBUG` is enabled, a warning will show inside that meta box in the classic editor.
As all core meta boxes have been recreated in the block editor, they can be marked with the `__back_compat_meta_box` flag.
See #45112 .
Built from https://develop.svn.wordpress.org/branches/5.0@43779
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43608 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-22 02:32:41 +00:00
Gary Pendergast
acda70184d
Block Editor: Add helper functions to collect meta box information.
...
To allow the block editor to render meta boxes, it needs to collect information about how those meta boxes are registered, and format it for the block editor to make use of.
See #45112 .
Built from https://develop.svn.wordpress.org/branches/5.0@43778
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43607 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-22 02:16:39 +00:00
Gary Pendergast
e0361726c2
Block Editor: Add an `is_block_editor()` method to `WP_Screen`.
...
This method allows checking (or setting) whether the block editor is loading on the current screen.
See #45037 .
Built from https://develop.svn.wordpress.org/branches/5.0@43777
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43606 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-22 02:06:40 +00:00
mcsf
326cd6af15
Deactivate Gutenberg plugin on update to 5.0.
...
Fixes #45123 .
Built from https://develop.svn.wordpress.org/branches/5.0@43765
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43594 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-19 10:51:39 +00:00
Gary Pendergast
93343de1bd
i18n: Remove some translation domains accidentally included in [43762].
...
See #45110 .
Built from https://develop.svn.wordpress.org/branches/5.0@43764
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43593 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-19 09:12:38 +00:00