wp-5.0
branch
Author |
Sergey Biryukov <[email protected]>
2019-12-12 20:25:01 +0000
|
---|
Author |
Jake Spurlock <[email protected]>
2019-12-12 18:51:11 +0000
|
---|
Props: danielbachhuber, whyisjake, peterwilson, xknown. Prevent stored XSS through wp_targeted_link_rel(). Props: vortfu, whyisjake, peterwilsoncc, xknown, SergeyBiryukov, flaviozavan. Update wp_kses_bad_protocol() to recognize : on uri attributes, wp_kses_bad_protocol() makes sure to validate that uri attributes don't contain invalid/or not allowed protocols. While this works fine in most cases, there's a risk that by using the colon html5 named entity, one is able to bypass this function. Brings r46895 to the 5.3 branch. Props: xknown, nickdaugherty, peterwilsoncc. Prevent stored XSS in the block editor. Brings r46896 to the 5.3 branch. Prevent escaped unicode characters become unescaped in unsafe HTML during JSON decoding. Props: aduth, epiqueras.
Author |
Jonathan Desrosiers <[email protected]>
2019-10-14 20:05:28 +0000
|
---|
Author |
Jake Spurlock <[email protected]>
2019-10-14 18:26:01 +0000
|
---|
- Query: Remove the static query property. - HTTP API: Protect against hex interpretation. - Filesystem API: Prevent directory travelersals when creating new folders. - Administration: Ensure that admin referer nonce is valid. - REST API: Send a Vary: Origin header on GET requests. Backports [46474], [46475], [46476], [46477], [46478], [46483], [46485] to the 5.0 branch.
Author |
Jonathan Desrosiers <[email protected]>
2019-09-04 23:53:38 +0000
|
---|
Author |
Jonathan Desrosiers <[email protected]>
2019-09-04 21:23:16 +0000
|
---|
Author |
Jake Spurlock <[email protected]>
2019-09-04 21:13:51 +0000
|
---|
Props aduth, flaviozavan, epiqueras, jorgefilipecosta
Author |
Andrew Ozz <[email protected]>
2019-09-04 18:38:27 +0000
|
---|
Merges [45342] to the 5.0 branch. Props MikeNGarrett, peterwilsoncc, azaozz. Fixes #47020.
Author |
Jonathan Desrosiers <[email protected]>
2019-09-04 18:10:34 +0000
|
---|
Merges [45997] to the 5.0 branch. Props irsdl, sstoqnov, whyisjake.
Author |
Jake Spurlock <[email protected]>
2019-09-04 18:03:24 +0000
|
---|
Props aduth, flaviozavan, epiqueras
Author |
Sergey Biryukov <[email protected]>
2019-09-04 17:46:02 +0000
|
---|
Merges [45990] to the 5.0 branch. Props xknown, sstoqnov.
Author |
Sergey Biryukov <[email protected]>
2019-09-04 17:04:15 +0000
|
---|
Merges [45971] to the 5.0 branch. Props vortfu, whyisjake, peterwilsoncc.
Author |
Jake Spurlock <[email protected]>
2019-09-04 16:31:20 +0000
|
---|
Merges [45937] to the 5.0 branch. Props vortfu, whyisjake, peterwilsoncc
Author |
Sergey Biryukov <[email protected]>
2019-09-04 16:25:25 +0000
|
---|
Merges [45936] to the 5.0 branch. Props whyisjake, sstoqnov.
Author |
John Blackbourn <[email protected]>
2019-03-25 16:22:15 +0000
|
---|
This removes the PHP 5.6 job which runs without an object cache in place as the likelihood of a change being backported that only breaks 5.6 environments without an object cache is small. See #42387
Author |
John Blackbourn <[email protected]>
2019-03-25 00:54:59 +0000
|
---|
This switches to caching npm's local cache instead of `node_modules` in order to prevent issues caused by modules compiled using a different version of node. Merges [44993] into the 5.0 branch. See #46632
Author |
John Blackbourn <[email protected]>
2019-03-25 00:18:17 +0000
|
---|
This removes the PHP 7.2, 7.1, 7.0, 5.5, 5.4, 5.3, and nightly jobs. See #42387, #40407
Author |
Gary Pendergast <[email protected]>
2019-03-13 00:43:56 +0000
|
---|
Author |
Gary Pendergast <[email protected]>
2019-03-13 00:34:09 +0000
|
---|
Author |
Sergey Biryukov <[email protected]>
2019-03-12 22:32:54 +0000
|
---|
Merges [44842] to the 5.0 branch.
Author |
Sergey Biryukov <[email protected]>
2019-03-12 22:17:34 +0000
|
---|
Merges [44833] to the 5.0 branch.
Author |
Jonathan Desrosiers <[email protected]>
2019-01-09 19:05:41 +0000
|
---|
Author |
Jonathan Desrosiers <[email protected]>
2019-01-09 18:09:32 +0000
|
---|
Author |
Jonathan Desrosiers <[email protected]>
2019-01-09 17:39:13 +0000
|
---|
Fixes #45884.
Author |
Jonathan Desrosiers <[email protected]>
2019-01-07 23:08:42 +0000
|
---|
Author |
Jonathan Desrosiers <[email protected]>
2019-01-07 22:55:23 +0000
|
---|
Author |
Joe McGill <[email protected]>
2019-01-07 22:22:03 +0000
|
---|
This adds some special case handling in 'wp_check_filetype_and_ext()' that prevents some common file types from being blocked based on mismatched MIME checks, which were made more strict in WordPress 5.0.1. Merges [44438], [44439], [44441], and [44442] to the 4.9 branch. Props Kloon, birgire, tellyworth, joemcgill. See #45615.
Author |
Jonathan Desrosiers <[email protected]>
2019-01-07 20:58:09 +0000
|
---|
Currently, when viewing the block editor with JavaScript disabled, the user sees a blank admin page with the admin menu sidebar. This adds an admin notice informing the user that JavaScript is required for the new block editor. Props mkaz, pento, azaozz, ocean90, desrosj. Merges [44437] to the 5.0 branch. Fixes #45453.
Author |
Sergey Biryukov <[email protected]>
2019-01-07 19:00:45 +0000
|
---|
Update the theme versions and release dates for the default themes, in time for WordPress 5.0.3. The POT file for Twenty Eleven has also been updated. Props laurelfulford. Merges [44435] to the 5.0 branch. Fixes #45792.
Author |
Sergey Biryukov <[email protected]>
2019-01-07 18:39:03 +0000
|
---|
When existing scripts or styles are updated in default themes, the version numbers in the enqueues should also be bumped to make sure the old files don't cache. This update bumps version numbers for changes since version 5.0, for themes Twenty Eleven through Twenty Nineteen. Props laurelfulford. Merges [44382] to the 5.0 branch. Fixes #45679.
Author |
Sergey Biryukov <[email protected]>
2019-01-07 18:34:28 +0000
|
---|
Props superpoincare. Merges [44432] to the 5.0 branch. Fixes #45794.
Author |
Sergey Biryukov <[email protected]>
2019-01-07 16:17:31 +0000
|
---|
When the original block editor styles were added to the existing default themes, the button blocks were styled to match how each theme styled the `button` tag. However, the styles should respect the block editor's default style, "Rounded", and allow switching to the other styles, like "Outlined" and "Square". Props laurelfulford. Merges [44381] to the 5.0 branch. Fixes #45541.
Author |
Sergey Biryukov <[email protected]>
2019-01-07 16:10:07 +0000
|
---|
The original theme description in Twenty Nineteen was intended as a placeholder; this update replaces it with a proper description, and removes the unnecessary `theme-options` tag. Props jobthomas, kjellr. Merges [44377] to the 5.0 branch. Fixes #45693.
Author |
Sergey Biryukov <[email protected]>
2019-01-07 16:05:48 +0000
|
---|
Update right-aligned image block styles to push them outside of the text column on the front end, to match the original design and how the block looks in the editor. Props kjellr, joen, allancole. Merges [44371] to the 5.0 branch. Fixes #45716.
Author |
Sergey Biryukov <[email protected]>
2019-01-07 16:01:23 +0000
|
---|
On pages and posts with featured images, the top level menu items have a slight transparency on hover, which was being inherited by their submenus. This update removes that inheritance, improving readability and consistency in the menu's appearance. Props kjellr. Merges [44368] to the 5.0 branch. Fixes #45689.
Author |
Sergey Biryukov <[email protected]>
2019-01-07 15:59:04 +0000
|
---|
The menu's original markup included some non-semantic tags and an unnecessary tabindex attribute that made it difficult to navigate via keyboard. Props allancole, anevins, kjellr. Merges [44376] to the 5.0 branch. Fixes #45713.
Author |
Sergey Biryukov <[email protected]>
2019-01-07 15:55:06 +0000
|
---|
Twenty Seventeen's original styles for the block editor custom colors had some issues: they weren't being applied to the button blocks due to lack of specificity, and when applied to paragraph blocks, there was no padding in the editor. This update makes sure the colors and related styles work as expected. Props laurelfulford. Merges [44402] to the 5.0 branch. Fixes #45426.
Author |
Sergey Biryukov <[email protected]>
2019-01-07 15:50:24 +0000
|
---|
The outlined button block style was displaying white text on a white background on hover. This update makes sure the text remains legible on hover when this button style is applied. Props rickalee, kjellr. Merges [44370] to the 5.0 branch. Fixes #45726.
Author |
Sergey Biryukov <[email protected]>
2019-01-07 15:46:55 +0000
|
---|
The button block in Twenty Fourteen was incorrectly inheriting a text underline from the theme's link styles. Props bobbingwide. Merges [44378] to the 5.0 branch. Fixes #45732.
Author |
Sergey Biryukov <[email protected]>
2019-01-07 15:44:36 +0000
|
---|
The "Continue Reading" link that's generated by the More block is styled to include an arrow next to the text; that arrow shouldn't inherit the text underline style. This update removes it. Props littlebigthing, kjellr. Merges [44369] to the 5.0 branch. Fixes #45715.
Author |
Sergey Biryukov <[email protected]>
2019-01-07 15:41:44 +0000
|
---|
A change to the MediaElement.js caused Twenty Fourteen's custom video play button to display in the top corner, rather than centered. This update returns it to its correct position. Props mmaumio, celloexpressions. Merges [44380] to the 5.0 branch. Fixes #44664.
Author |
Dominik Schilling (ocean90) <[email protected]>
2019-01-07 14:41:53 +0000
|
---|
Removes `file_exist()` checks before calling `load_script_translations()` to let the determined paths be passed to `load_script_translations()` which provides its own file check and the possibility to filter the path. Merge of [44418] to the 5.0 branch. Props swissspidy, johnbillion, ocean90. Fixes #45769.
Author |
Jonathan Desrosiers <[email protected]>
2019-01-06 20:18:08 +0000
|
---|
Props westonruter, laurelfulford. Merges [43659] and [44408] to the 5.0 branch. Fixes #44883.
Author |
Jonathan Desrosiers <[email protected]>
2019-01-06 20:07:34 +0000
|
---|
A static variable contains an integer that is incremented with each call. This number is returned with the optional prefix. As such the returned value is not universally unique, but it is unique across the life of the PHP process. Props westonruter, dlh. Merges [43658] and [44406] to the 5.0 branch. See #44883.
Author |
Jonathan Desrosiers <[email protected]>
2019-01-06 19:42:36 +0000
|
---|
Avoids change the selected link when using the Shift + Up/Down arrow keys to select text in the form fields. Props afercia. Merges [42807] to the 5.0 branch. Fixes #43253.
Author |
Dominik Schilling (ocean90) <[email protected]>
2019-01-06 17:05:24 +0000
|
---|
The inline JavaScript added by `WP_Scripts::print_translations()` should check whether `locale_data.$text_domain` exists and fall back to `locale_data.messages` otherwise. Merge of [44403] to the 5.0 branch. Props swissspidy. Fixes #45441.
Author |
Jonathan Desrosiers <[email protected]>
2019-01-05 04:13:20 +0000
|
---|
In [42523], `trunk` was updated to use explicit context instead of a trailing space for the Edit string in TinyMCE plugins. [43472] later backported this change, but the string in `class-wp-editor.php` was missed. This fixes the `Edit` string so not display as `Edit|button` in the 5.0 branch. Props dimadin. See #42543, #44134. Fixes #44919.
Author |
Jonathan Desrosiers <[email protected]>
2019-01-05 03:50:46 +0000
|
---|
In the Classic Editor, the “Add Media” button was outside of the TinyMCE editor. In the Block Editor, the “Add Media” button was moved into the TinyMCE toolbar in the Classic block, but the tooltip was not added to the list of translatable strings. This adds “Add Media” to that list. The corresponding keyboard shortcut is also specified for the “Add Media” button. Props afercia. Merges [44398-44399] to the 5.0 branch. Fixes #45788.
Author |
Dominik Schilling (ocean90) <[email protected]>
2019-01-04 20:38:34 +0000
|
---|
The unminified package vendor scripts are bundled with the release package thus the value of the `SCRIPT_DEBUG` constant should be honored. Merge of [44391] to the 5.0 branch. Props earnjam. Fixes #45535.
Author |
Jonathan Desrosiers <[email protected]>
2019-01-04 20:29:41 +0000
|
---|
While the filter is documented to only support a `WP_Error`, it has been a common practice to return true in a validation function if no errors have occurred. This was already caught when the same filter was executed in `WP_Customize_Setting`, it was however missing in `WP_Customize_Manager::validate_setting_values()`. Props flixos90. Merges [43578] to the 5.0 branch. Fixes #44809.
Author |
Jonathan Desrosiers <[email protected]>
2019-01-04 20:18:09 +0000
|
---|
Updated packages: - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] Props: youknowriad, gziolo, desrosj. Merges [44389] to the 5.0 branch. Fixes #45814.
Author |
Jonathan Desrosiers <[email protected]>
2019-01-03 18:55:00 +0000
|
---|
This prevents a potential fatal error from an `ArgumentCountError` exception in PHP 7.1 or greater Props dlh. Merges [43561] to the 5.0 branch. Fixes #44770.
Author |
Jonathan Desrosiers <[email protected]>
2019-01-03 16:23:09 +0000
|
---|
Fixes Tests_Basic::test_license Merges [44379] to the 5.0 branch. Props jorbin.
Author |
laurelfulford <[email protected]>
2018-12-21 21:08:56 +0000
|
---|
The theme's original navigation JavaScript was making it so all links on a site were immediately followed on touchstart when using a touch-enabled device. This update makes sure links are followed at touchend, to improve usability and menu behavior. Props anevins, panchen, kjellr. Fixes #45510.
Author |
Gary Pendergast <[email protected]>
2018-12-19 23:55:44 +0000
|
---|
Author |
Gary Pendergast <[email protected]>
2018-12-19 23:21:49 +0000
|
---|
Author |
Jonathan Desrosiers <[email protected]>
2018-12-19 22:27:51 +0000
|
---|
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.
Author |
Gary Pendergast <[email protected]>
2018-12-19 22:18:44 +0000
|
---|
Props desrosj. Fixes #45703.
Author |
laurelfulford <[email protected]>
2018-12-19 02:48:14 +0000
|
---|
Update the theme versions and release dates for the default themes, in time for WordPress 5.0.2. The POT files for Twenty Ten and Eleven have also been updated. Merges [44322] into the 5.0 branch. Fixes #45681.
Author |
Gary Pendergast <[email protected]>
2018-12-18 12:01:36 +0000
|
---|
Author |
Gary Pendergast <[email protected]>
2018-12-18 11:51:07 +0000
|
---|
Author |
Gary Pendergast <[email protected]>
2018-12-18 11:07:46 +0000
|
---|
This filter is superfluous here, the `load_script_textdomain_relative_path` should be used for customising the textdomain path. See #45528. Props dimadin.
Author |
Grzegorz (Greg) Ziółkowski <[email protected]>
2018-12-18 10:36:53 +0000
|
---|
Updated packages: - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] Props youknowriad, pento. Fixes #45637.
Author |
Gary Pendergast <[email protected]>
2018-12-18 03:39:14 +0000
|
---|
`determine_locale()` accesses the `$pagenow` global, but this is set after mu-plugins are loaded, so we need to check that it's been set. Props swissspidy, azaozz. See #45668.
Author |
Gary Pendergast <[email protected]>
2018-12-17 03:38:25 +0000
|
---|
Author |
Gary Pendergast <[email protected]>
2018-12-17 02:02:00 +0000
|
---|
Author |
Gary Pendergast <[email protected]>
2018-12-16 23:56:13 +0000
|
---|
See #45456.
Author |
laurelfulford <[email protected]>
2018-12-16 19:46:55 +0000
|
---|
Fix the `font-family` used for Simplified Chinese (zh_CN) in the block editor CSS. Props vaishalipanchal, ze3kr. Fixes #45408.
Author |
Dominik Schilling (ocean90) <[email protected]>
2018-12-16 15:53:34 +0000
|
---|
* Introduces `pre_load_script_translations` to short-circuit the function. * Introduces `load_script_translation_file` to filter the file path for loading script translations. * Introduces `load_script_translations` to filter the JSON-encoded translation data. Props johnbillion, strategio, swissspidy, dimadin, ocean90. See #45425.
Author |
Dominik Schilling (ocean90) <[email protected]>
2018-12-16 11:05:53 +0000
|
---|
See #45547.
Author |
laurelfulford <[email protected]>
2018-12-15 20:20:44 +0000
|
---|
This update replaces the term “Gutenberg” in the themes code comments and classes with something more future-friendly. Fixes #45452.
Author |
laurelfulford <[email protected]>
2018-12-15 20:00:28 +0000
|
---|
The markup for the default block appender changed from a text input to a text area in the editor; this update makes the same change in the default theme styles. Fixes #45450.
Author |
Jonathan Desrosiers <[email protected]>
2018-12-15 17:26:37 +0000
|
---|
A closing parenthesis was misplaced in the `$scripts->add( 'wp-tinymce-lists' )` call, causing the dependencies and version to be incorrectly passed to `includes_url()` instead. Props volodymyrkolesnykov. Fixes: #45506.
Author |
Jonathan Desrosiers <[email protected]>
2018-12-15 17:13:37 +0000
|
---|
When using the block-based editor in Twenty Sixteen, superscript is displaying below the baseline and subscript is displaying above the baseline. This is the opposite of what should occur. This reverses the two to display correctly. Props greg-raven, torontodigits, JDTrower. Fixes: #44776.
Author |
herregroen <[email protected]>
2018-12-15 12:54:54 +0000
|
---|
Fixes the `load_script_textdomain` function not resolving the md5 hash based on the relative path for WordPress installations in a subdirectory. Also adds a filter to allow sites using CDNs or other alternative asset locations to filter the relative path resolution. Props akirk, fierevere, swissspidy, mypacecreator, babaevan, tmatsuur, ocean90. Fixes #45528.
Author |
Gary Pendergast <[email protected]>
2018-12-15 01:30:32 +0000
|
---|
`wp_get_script_polyfill()` only accepts two parameters, but this call was passing a third. Props swissspidy. See #45472.
Author |
Gary Pendergast <[email protected]>
2018-12-15 00:16:41 +0000
|
---|
In `WP_REST_Attachments_Controller::create_item()`, `wp-admin/includes/image.php` was being `require_once()`-ed... twice. The superflous `require_once()` has been quietly removed. Props david.binda. See #45420.
Author |
laurelfulford <[email protected]>
2018-12-14 23:24:49 +0000
|
---|
Twenty Seventeen’s editor styles contained an Internet Explorer 8 specific fix that stopped images from being scalable in the editor in other browsers. Since the editor no longer supports IE8, this fix can safely be removed. Props audrasjb, mihaivalentin, subrataemfluence. Fixes #39738.
Author |
laurelfulford <[email protected]>
2018-12-14 23:09:40 +0000
|
---|
To improve accessibility, the cookies content checkbox in the comment form needed some visible indication when it’s in focus. Props pratikthink, afercia. Fixes #44699.
Author |
laurelfulford <[email protected]>
2018-12-14 22:52:55 +0000
|
---|
Twenty Seventeen was designed with bolded numbers for its ordered list styles. This was removed from the theme prior to launch, but it was left in the editor styles, so it needed to be removed there, too. Props mmaumio, edpittol. Fixes #44775.
Author |
Jonathan Desrosiers <[email protected]>
2018-12-14 22:28:18 +0000
|
---|
This commit fixes the final differences between the version of Twenty Nineteen in core and the one in GitHub. The two are now identical. See #45424.
Author |
Jonathan Desrosiers <[email protected]>
2018-12-14 22:03:36 +0000
|
---|
This commit brings over several changes that occurred upstream in the theme’s GitHub repository into core. - Fix left/right-aligned pullquote spacing. https://github.com/WordPress/twentynineteen/pull/695 - Improve `readme.txt` to follow the correct standards for themes. https://github.com/WordPress/twentynineteen/issues/689 Props kjellr, allancole. See #45424.
Author |
laurelfulford <[email protected]>
2018-12-14 21:52:07 +0000
|
---|
Simplify some of the button block’s CSS selectors in the theme, to make sure the default colors don’t override the custom colors on the front end. Fixes #45427.
Author |
Jonathan Desrosiers <[email protected]>
2018-12-14 21:50:16 +0000
|
---|
This commit brings over several changes that occurred upstream in the theme’s GitHub repository into core. - Fixes some minor code quality issues. https://github.com/WordPress/twentynineteen/pull/237 - Fix PHP Warning: Parameter must be an array or an object that implements Countable. https://github.com/WordPress/twentynineteen/pull/661 - Add missing text domain and escaping to comment author text. https://github.com/WordPress/twentynineteen/pull/274 - Remove hyphens rule for cover image text. https://github.com/WordPress/twentynineteen/pull/691 Props khleomix, grapplerulrich, iCaleb, kjellr, allancole. See #45424.
Author |
laurelfulford <[email protected]>
2018-12-14 21:39:47 +0000
|
---|
Simplify some of the button block’s CSS selectors in the theme, to make sure the default colors don’t override the custom colors on the front end. Fixes #45428.
Author |
laurelfulford <[email protected]>
2018-12-14 21:30:27 +0000
|
---|
Simplify some of the button block’s CSS selectors in the theme, to make sure the default colors don’t override the custom colors on the front end. Fixes #45429.
Author |
Jonathan Desrosiers <[email protected]>
2018-12-14 21:23:52 +0000
|
---|
This commit brings over several changes that occurred upstream in the theme’s GitHub repository into core. - Fix the gallery caption link color. https://github.com/WordPress/twentynineteen/pull/687 - Remove left padding from pullquote blocks. https://github.com/WordPress/twentynineteen/pull/690 - Print `skip-link-focus-fix` inline instead of enqueueing as blocking script. https://github.com/WordPress/twentynineteen/pull/47 - Fix and improve some strings with placeholders. https://github.com/WordPress/twentynineteen/pull/217 Props kjellr, allancole, dimadin, westonruter. See #45424.
Author |
laurelfulford <[email protected]>
2018-12-14 21:13:56 +0000
|
---|
Simplify some of the button block’s CSS selectors in the theme, to make sure the default colors don’t override the custom colors on the front end. Also make sure the button’s gradient is not applied when a custom background color is added, since it will hide it. Fixes #45431.
Author |
laurelfulford <[email protected]>
2018-12-14 20:54:35 +0000
|
---|
Simplify some of the button block’s CSS selectors in the theme, to make sure the default colors don’t override the custom colors on the front end. Also make sure the button’s gradient is not applied when a custom background color is added, since it will hide it. Fixes #45432.
Author |
allancole <[email protected]>
2018-12-14 20:41:25 +0000
|
---|
This update changes the following: - Add proper frontend styles for center aligned archive and category blocks. More info here: https://github.com/WordPress/twentynineteen/pull/684 - Fix image_filter theme option conditional function. More info here: https://github.com/WordPress/twentynineteen/pull/680 - Remove duplicate rule-line when a separator block is followed by H1/H2 in the editor. Props richtabor. More info here: https://github.com/WordPress/twentynineteen/pull/686 Props richtabor, kjellr. See #45424.
Author |
allancole <[email protected]>
2018-12-14 20:11:18 +0000
|
---|
This change properly sets the primary color hue theme option. - More info: https://github.com/WordPress/twentynineteen/pull/683 Props richtabor. See #45424.
Author |
laurelfulford <[email protected]>
2018-12-14 20:10:32 +0000
|
---|
Simplify some of the button block’s CSS selectors in the theme, to make sure the default colors don’t override the custom colors on the front end. Fixes #45433.
Author |
laurelfulford <[email protected]>
2018-12-14 19:51:20 +0000
|
---|
Update a mistake in Twenty Eleven's block editor styles that erroneously sets the `font-size` to `300`, when it should set the `font-weight` to `300`. This was causing browsers in quirks mode to make the editor font size very large. Fixes #45421.
Author |
allancole <[email protected]>
2018-12-14 19:48:17 +0000
|
---|
This update changes the following: - Reverts the customization to the toolbar for wide and full blocks to make them more usable. More info here: https://github.com/WordPress/twentynineteen/pull/668 - Add nowrap to the columns block at breakpoints above 600px. More info here: https://github.com/WordPress/twentynineteen/pull/674 Props joen, kjellr. Fixes #45369. See #45424.
Author |
laurelfulford <[email protected]>
2018-12-14 19:37:23 +0000
|
---|
Make sure the block editor custom colors in the theme also override the theme's `:visited` link styles. This prevents contrast issues, like in the button block -- when the background is dark, the purple `:visited` link can be difficult to read. Fixes #45434.
Author |
allancole <[email protected]>
2018-12-14 19:08:06 +0000
|
---|
This change adds general code quality and documentation improvements. - More info here: https://github.com/WordPress/twentynineteen/pull/546 Props grapplerulrich, iCaleb.
Author |
Jonathan Desrosiers <[email protected]>
2018-12-14 16:31:30 +0000
|
---|
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.
Author |
Riad Benguella <[email protected]>
2018-12-14 12:19:57 +0000
|
---|
Updated packages: - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] This also includes the updates the Core blocks. The script loader is updated to match the Gutenberg repository too. Props atimmer, gziolo, joen. Fixes #45442, #45637.
Author |
Jeremy Felt <[email protected]>
2018-12-13 03:40:01 +0000
|
---|
Author |
Jeremy Felt <[email protected]>
2018-12-13 02:10:39 +0000
|
---|
Author |
Peter Wilson <[email protected]>
2018-12-13 01:29:42 +0000
|
---|
Merges [44048] to the 5.0 branch.
Author |
Gary Pendergast <[email protected]>
2018-12-13 01:24:11 +0000
|
---|
The `meta_input`, `file`, and `guid` fields are not intended to be updated through user input.
Author |
Peter Wilson <[email protected]>
2018-12-13 00:27:51 +0000
|
---|
Ensure activation of a site is not attempted multiple times and users are shown the correct message if they follow the link a second time. Merges [44021] to the 5.0 branch.
Author |
Ian Dunn <[email protected]>
2018-12-12 23:59:25 +0000
|
---|
r44014 introduced the `wp_kses_uri_attributes` function and filter, but incorrectly used `4.9.9` instead of `5.0.1`.
Author |
Ian Dunn <[email protected]>
2018-12-12 23:52:05 +0000
|
---|
This commit introduces the `wp_kses_uri_attributes` function and filter. The function centralizes the list of attributes, in order to prevent inconsistency, and the filter provides a way for plugins to customize the attributes.
Author |
Gary Pendergast <[email protected]>
2018-12-12 23:11:33 +0000
|
---|
To avoid backwards compatibility issues, `<form>` is re-added if a custom filter has added the `<input>` or `<select>` elements to `$allowedposttags`.
Author |
Jeremy Felt <[email protected]>
2018-12-12 23:00:06 +0000
|
---|
Author |
Gary Pendergast <[email protected]>
2018-12-06 19:45:08 +0000
|
---|
Author |
Gary Pendergast <[email protected]>
2018-12-06 17:58:43 +0000
|
---|
Author |
Mel Choyce <[email protected]>
2018-12-06 02:50:17 +0000
|
---|
Props skithund, afercia, lonelyvegan. See #45178.
Author |
Gary Pendergast <[email protected]>
2018-12-05 22:24:21 +0000
|
---|
Ensures the correct assets are used for the device loading the page. Props joemcgill. See #45178.
Author |
Gary Pendergast <[email protected]>
2018-12-04 23:03:34 +0000
|
---|
Props melchoyce. See #45178.
Author |
Gary Pendergast <[email protected]>
2018-12-04 07:05:50 +0000
|
---|
Author |
Gary Pendergast <[email protected]>
2018-12-04 06:53:08 +0000
|
---|
Author |
Gary Pendergast <[email protected]>
2018-12-04 04:31:52 +0000
|
---|
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.
Author |
Gary Pendergast <[email protected]>
2018-12-04 04:16:28 +0000
|
---|
The screenshot is now up to date with the theme, and reflects the visuals in the About page. Props kjellr, allancole. See #45424.
Author |
Gary Pendergast <[email protected]>
2018-12-04 04:11:11 +0000
|
---|
Props kjellr, allancole. See #45424.
Author |
Gary Pendergast <[email protected]>
2018-12-04 04:09:46 +0000
|
---|
This visual issue had been previously fixed in the block editor, is now fixed in the published post, too. Props kjellr, allancole. See #45424.
Author |
Gary Pendergast <[email protected]>
2018-12-04 02:10:44 +0000
|
---|
`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.
Author |
Gary Pendergast <[email protected]>
2018-12-04 01:12:47 +0000
|
---|
`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.
Author |
Jonathan Desrosiers <[email protected]>
2018-11-30 23:16:38 +0000
|
---|
Author |
Jonathan Desrosiers <[email protected]>
2018-11-30 23:04:30 +0000
|
---|
Author |
allancole <[email protected]>
2018-11-30 22:35:02 +0000
|
---|
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.
Author |
Riad Benguella <[email protected]>
2018-11-30 20:57:02 +0000
|
---|
Updated packages - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] Other changes: - Backport the parser changes. Fixes #45145.
Author |
Miguel Fonseca <[email protected]>
2018-11-30 20:24:42 +0000
|
---|
* Also update the customizer tests to match it. Props SergeyBiryukov, pento.
Author |
Mel Choyce <[email protected]>
2018-11-30 16:26:13 +0000
|
---|
Props kjellr. See #45178.
Author |
Mel Choyce <[email protected]>
2018-11-30 16:22:46 +0000
|
---|
Props pento. See #45178.
Author |
Riad Benguella <[email protected]>
2018-11-30 13:35:19 +0000
|
---|
Props swissspidy. See #45145.
Author |
Riad Benguella <[email protected]>
2018-11-30 13:23:09 +0000
|
---|
This was ported manually from https://github.com/WordPress/gutenberg/pull/12326 Props pento, swissspidy. See #45145.
Author |
Riad Benguella <[email protected]>
2018-11-30 09:58:24 +0000
|
---|
Update packages: - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] - @wordpress/[email protected] Other changes: Fix a translator comment in edit-form-blocks.php. Rename the gutenberg_ functions in blocks/latest-comments.php. Props pento. Fixes #45145.
Author |
Andrew Ozz <[email protected]>
2018-11-29 08:29:18 +0000
|
---|
See #45178.
Author |
Mel Choyce <[email protected]>
2018-11-28 17:30:11 +0000
|
---|
- 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.
Author |
Gary Pendergast <[email protected]>
2018-11-27 06:38:34 +0000
|
---|
Props ocean90. See #45217.
Author |
Gary Pendergast <[email protected]>
2018-11-23 09:40:33 +0000
|
---|
Author |
Gary Pendergast <[email protected]>
2018-11-23 09:13:32 +0000
|
---|
Author |
Riad Benguella <[email protected]>
2018-11-23 08:34:44 +0000
|
---|
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.
Author |
Gary Pendergast <[email protected]>
2018-11-23 08:14:07 +0000
|
---|
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.
Author |
Gary Pendergast <[email protected]>
2018-11-23 00:41:56 +0000
|
---|
`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.
Author |
Riad Benguella <[email protected]>
2018-11-22 19:39:02 +0000
|
---|
Adds heartbeat nonces refreshing support to wp.apiFetch requests. Props pento, adamsilverstein, dd32, desrosj. Fixes #45113.
Author |
gziolo <[email protected]>
2018-11-22 18:02:35 +0000
|
---|
@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.
Author |
tofumatt <[email protected]>
2018-11-22 15:23:46 +0000
|
---|
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.
Author |
Riad Benguella <[email protected]>
2018-11-22 07:24:01 +0000
|
---|
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.
Author |
noisysocks <[email protected]>
2018-11-22 06:04:04 +0000
|
---|
Updates packages: - block-library - components - edit-post - editor - format-library - list-reusable-blocks - nux See #45145
Author |
Gary Pendergast <[email protected]>
2018-11-22 03:58:19 +0000
|
---|
`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.
Author |
Gary Pendergast <[email protected]>
2018-11-22 03:20:30 +0000
|
---|
See #45201.
Author |
Gary Pendergast <[email protected]>
2018-11-22 03:11:22 +0000
|
---|
[43931] unintentionally caused the unminified files to wrap the code in an `eval()` call. See #45201.
Author |
Gary Pendergast <[email protected]>
2018-11-22 02:04:51 +0000
|
---|
These files are fairly large, and while they're useful in development, they're not needed in the final build. Props pento, mcsf. See #45201.
Author |
Peter Wilson <[email protected]>
2018-11-22 00:24:01 +0000
|
---|
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.
Author |
allancole <[email protected]>
2018-11-21 22:42:16 +0000
|
---|
This update changes the following: - Add dynamic theme version to stylesheet enqueue. Props grapplerulrich, kjellr.
Author |
allancole <[email protected]>
2018-11-21 22:29:55 +0000
|
---|
This update changes the following: - Fixes link colors within solid-color pullquote blocks. Props kjellr, xkon.
Author |
allancole <[email protected]>
2018-11-21 20:13:16 +0000
|
---|
This update changes the following: - Fix social-menu and site-logo alignment. Props kjellr, xkon.
Author |
allancole <[email protected]>
2018-11-21 19:56:23 +0000
|
---|
This update changes the following: - Add PHPCS code quality fixes for functions.php - Update stylesheets with a fresh Sass re-compile Props xkon, kjellr
Author |
Riad Benguella <[email protected]>
2018-11-21 19:45:36 +0000
|
---|
Using the package.json versions of the npm dependencies as versions when registering the WordPress scripts. Props dimadin, dd32. Fixes #45187.
Author |
Riad Benguella <[email protected]>
2018-11-21 19:38:51 +0000
|
---|
Clarify the return value. Props desrosj, mukesh27. Fixes #45342.
Author |
Riad Benguella <[email protected]>
2018-11-21 19:29:11 +0000
|
---|
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.
Author |
Mel Choyce <[email protected]>
2018-11-21 16:59:11 +0000
|
---|
Props @matveb, @kjellr, @Alexis Lloyd, @courtney0burton, @melchoyce. See #45178.
Author |
Miguel Fonseca <[email protected]>
2018-11-21 16:34:28 +0000
|
---|
Fixes #45073.
Author |
Miguel Fonseca <[email protected]>
2018-11-21 16:17:17 +0000
|
---|
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.
Author |
Daniel Bachhuber <[email protected]>
2018-11-21 15:08:01 +0000
|
---|
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
Author |
Daniel Bachhuber <[email protected]>
2018-11-21 14:43:33 +0000
|
---|
* 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.
Author |
Daniel Bachhuber <[email protected]>
2018-11-21 14:34:09 +0000
|
---|
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.
Author |
Daniel Bachhuber <[email protected]>
2018-11-21 14:10:18 +0000
|
---|
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.
Author |
Andrew Ozz <[email protected]>
2018-11-21 12:27:12 +0000
|
---|
Fixes #45365.
Author |
Andrew Ozz <[email protected]>
2018-11-21 12:17:02 +0000
|
---|
Fixes #45348.
Author |
Mel Choyce <[email protected]>
2018-11-21 02:38:17 +0000
|
---|
Props @pixelverbieger, @ocean90, @karmatosed, @pento, @boemedia, @lonelyvegan, @sami.keijonen, @TimothyBlynJacobs, @xkon, @afercia, @laurelfulford, @joostdevalk, @ipstenu, @matveb, @joen, @tinkerbelly, @chanthaboune, @kjellr, @alexislloyd, @melchoyce. See #45178.
Author |
Gary Pendergast <[email protected]>
2018-11-21 01:47:49 +0000
|
---|
[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.
Author |
laurelfulford <[email protected]>
2018-11-21 01:04:56 +0000
|
---|
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.
Author |
Gary Pendergast <[email protected]>
2018-11-21 01:02:46 +0000
|
---|
This function was used as a translation workaround in the Gutenberg plugin, it has been replaced in core with the `wp_set_script_translations()` functionality, instead. See #45111.
Author |
allancole <[email protected]>
2018-11-19 21:26:02 +0000
|
---|
This update changes the following: - Fix JS errors in customizer caused by menu scripts - Fix footer menu spacing - Fix pullquote block borders to follow Gutenberg’s described style - Fix editor-only styles so they don't appear on the frontend when not needed - Fix search field widget width on mobile - Fix :visited .button link colors - Fix Block toolbar position in the editor - Fix off-canvas mobile menu to prevent text from overflowing - Improve column block formatting for the editor and frontend - Improve CSS optimization for selectors that add `dashes` to multi-level lists - Improve editor font sizes to use pixels over ems - Improve styles for galleries in the Classic Editor block - Improve priority+ more-menu threshold to allow more space for menu-items - Improve logo size on mobile devices - Improve customizer color options to present a single, unified color option - Improve print stylesheet for better spacing and colors - Add more color options to Gutenberg editor Initial development occurred on GitHub. See: https://github.com/WordPress/twentynineteen Props allancole, karmatosed, kjellr, yingling017, mrasharirfan, milana_cap, fabiankaegy, westonruter, jorbin, netweb, b-07, khleomix, audrasjb, nielslange, mmaumio, richsalvucci, littlebigthing, dimadin, joyously, anevins, peterwilsoncc, dannycooper, iCaleb, siriokun, technosiren, travel_girl, azchughtai, ianbelanger, nadim1992, ismailelkorchi, nativeinside, chetan200891, grapplerulrich, ocean90, joshfeck, frankew, AbdulWahab610, mendezcode, eliorivero, melchoyce, joen, laurelfulford, mdawaffe, kraftbj, dsmart, nao, mayukojpn, enodekciw, ketuchetan, atanasangelovdev, poena, sharaz, artisticasad, mukesh27, burhandodhy, crunnells, aprakasa, themeroots, imonly_ik, tlxo, youthkee, brentswisher, smyoon315, mrahmadawais, desideveloper, Kau-Boy, mor10, mikeyarce, dingo_bastard
Author |
Daniel Bachhuber <[email protected]>
2018-11-19 14:09:07 +0000
|
---|
In [43736], we prevented rendering fields when not present in `?_fields=`. However, because `get_fields_for_response()` is dependent on `get_item_schema()`, any custom fields registered with a null schema would be incorrectly excluded from the response. Because the REST API permits a null schema for `register_rest_field()`, those fields should be included in the available fields for a response. Fixes #45220.
Author |
Gary Pendergast <[email protected]>
2018-11-16 01:06:55 +0000
|
---|
Author |
Gary Pendergast <[email protected]>
2018-11-16 00:57:19 +0000
|
---|
Author |
Gary Pendergast <[email protected]>
2018-11-16 00:22:27 +0000
|
---|
CSS coming from the `@wordpress` packages wasn't being minified in the build. This had the noteable side effect of causing RTL CSS to not be loaded when `SCRIPT_DEBUG` was set to `false`. Props websupporter. See #45330.
Author |
allancole <[email protected]>
2018-11-16 00:13:32 +0000
|
---|
This update changes the following: - Improve menu UI to support keyboard navigation in both directions - Improve more-menu-link visibility when no menu items are hidden - Improve text-selection custom colors for better contrast and legibility - Improve support for sticky toolbars in the editor - Improve table element fonts - Add .button class support - Remove translation escaping - Fix menu JS to prevent unused touched event listeners - Fix duplicate more-menu-link issue on selective refresh in the customizer - Fix editor font-weights for headings - Fix search form input style - Fix nested blockquote styles - Fix download block button style when download text stretches more than one line - Fix audio block centering issue - Fix align-full blocks in the editor so they don’t create horizontal scrollbars - Fix editor to prevent Gutenberg's meta boxes area from overlapping the content Initial development occurred on GitHub. See: https://github.com/WordPress/twentynineteen Props allancole, karmatosed, kjellr, yingling017, mrasharirfan, milana_cap, fabiankaegy, westonruter, aaronjorbin, ntwb, b-07, khleomix, audrasjb, nielslange, mmaumio, richsalvucci, littlebigthing, dimadin, joyously, anevins12, peterwilsoncc, DannyCooper, WPprodigy, siriokun, briannaorg, 00travelgirl00, shahjehanali1, ianbelanger79, nadim1992, Ismail-elkorchi, nativeinside, iamchetanp, grappler, ocean90, joshfeck, frankew, abdulwahab610, mendezcode, eliorivero, melchoyce, jasmussen, laurelfulford, mdawaffe, kraftbj, dereksmart, naokomc, mayukojpn, enodekciw, chetansatasiya, ketuchetan, atanas-angelov-dev, carolinan, sharazghouri, artisan-asad, mukeshpanchal27, mukesh27, burhandodhy, @crunnells, aryaprakasa, tlxo, themeroots, whizbangik, yingles, tlxo, youthkee, brentswisher, smy315, ahmadawais, desi-developer, 2ndkauboy, mor10.
Author |
Andrew Duthie <[email protected]>
2018-11-16 00:09:08 +0000
|
---|
Updates packages: annotations, api-fetch, block-library, blocks, components, compose, core-data, data, date, edit-post, editor, element, format-library, i18n, list-reusable-blocks, notices, nux, plugins, rich-text, viewport Updates changed dependencies in script-loader.php Upgrades React from 16.5.2 to 16.6.3 See #45145
Author |
Gary Pendergast <[email protected]>
2018-11-16 00:01:47 +0000
|
---|
[43900] changed the plugin version, causing a unit test failure. See #45345.
Author |
Gary Pendergast <[email protected]>
2018-11-15 23:52:47 +0000
|
---|
Previously, the TinyMCE inline scripts were added on the `init` action in the block editor. In the classic editor, however, these scripts are loaded when the TinyMCE window is printed, and some plugins rely on them being loaded later, so they can attach to the appropriate filters. See #45338.
Author |
Gary Pendergast <[email protected]>
2018-11-15 23:37:31 +0000
|
---|
I'm sorry, Hello Dolly. You're my favourite plugin, but the way you output your lyrics doesn't play nicely with the block editor, particuarly on mobile devices. This isn't Farewell Dolly, you're still on every other admin page, and I know you'll come back better and stronger. Props joen. See #45345.
Author |
Gary Pendergast <[email protected]>
2018-11-15 23:19:40 +0000
|
---|
When switching themes, `wp_map_nav_menu_locations()` is used to ensure nav menus are placed in the relevant menu location. Occasionally, menus are registered to locations with numeric slugs, rather than strings. `wp_map_nav_menu_locations()` assumed it would be the latter, and ran `stripos()` on those numeric slugs. This behaviour is deprecated in PHP 7.3. As this is the last known PHP 7.3 incompatibility, this commit also removes PHP 7.3 from Travis' `allowed_failures` list. Props desrosj, jorbin. See #45018.
Author |
herregroen <[email protected]>
2018-11-15 14:36:39 +0000
|
---|
Fixes an undefined index PHP warning in the load_script_textdomain function and a non-interrupting JS error when registering a domain which has no translations. Props omarreiss, ocean90, georgestephanis. Fixes #45256.
Author |
Daniel Bachhuber <[email protected]>
2018-11-15 12:56:54 +0000
|
---|
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.
Author |
Gary Pendergast <[email protected]>
2018-11-13 01:14:27 +0000
|
---|
Author |
Gary Pendergast <[email protected]>
2018-11-13 01:01:02 +0000
|
---|
Author |
Gary Pendergast <[email protected]>
2018-11-13 00:24:07 +0000
|
---|
`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.
Author |
Gary Pendergast <[email protected]>
2018-11-12 23:37:31 +0000
|
---|
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.
Author |
allancole <[email protected]>
2018-11-12 23:19:13 +0000
|
---|
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.
Author |
Riad Benguella <[email protected]>
2018-11-12 17:01:09 +0000
|
---|
- 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.
Author |
Andrew Ozz <[email protected]>
2018-11-12 13:56:41 +0000
|
---|
See #45264.
Author |
Andrew Ozz <[email protected]>
2018-11-12 10:34:50 +0000
|
---|
Fixes #45264.
Author |
Andrew Ozz <[email protected]>
2018-11-12 10:02:25 +0000
|
---|
See #45145.
Author |
Gary Pendergast <[email protected]>
2018-11-12 04:22:46 +0000
|
---|
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.
Author |
Gary Pendergast <[email protected]>
2018-11-12 04:18:52 +0000
|
---|
Props atimmer. See #45156.
Author |
Gary Pendergast <[email protected]>
2018-11-12 03:37:41 +0000
|
---|
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.
Author |
Gary Pendergast <[email protected]>
2018-11-12 02:26:18 +0000
|
---|
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.
Author |
Gary Pendergast <[email protected]>
2018-11-09 09:43:29 +0000
|
---|
See #45290.
Author |
Gary Pendergast <[email protected]>
2018-11-09 09:05:47 +0000
|
---|
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.
Author |
Gary Pendergast <[email protected]>
2018-11-09 08:55:50 +0000
|
---|
See #45290.
Author |
Gary Pendergast <[email protected]>
2018-11-09 08:32:19 +0000
|
---|
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.
Author |
Gary Pendergast <[email protected]>
2018-11-09 08:28:40 +0000
|
---|
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.
Author |
herregroen <[email protected]>
2018-11-08 11:33:46 +0000
|
---|
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.
Author |
Dominik Schilling (ocean90) <[email protected]>
2018-11-08 09:23:10 +0000
|
---|
Props CantoThemes, ocean90. See #45271.
Author |
laurelfulford <[email protected]>
2018-11-06 06:16:39 +0000
|
---|
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.
Author |
laurelfulford <[email protected]>
2018-11-06 06:06:00 +0000
|
---|
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.
Author |
laurelfulford <[email protected]>
2018-11-06 05:56:54 +0000
|
---|
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.
Author |
laurelfulford <[email protected]>
2018-11-06 01:25:46 +0000
|
---|
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.
Author |
laurelfulford <[email protected]>
2018-11-06 01:21:06 +0000
|
---|
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.
Author |
laurelfulford <[email protected]>
2018-11-06 01:09:57 +0000
|
---|
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.
Author |
laurelfulford <[email protected]>
2018-11-06 01:00:58 +0000
|
---|
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.
Author |
laurelfulford <[email protected]>
2018-11-06 00:49:33 +0000
|
---|
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.
Author |
laurelfulford <[email protected]>
2018-11-06 00:24:12 +0000
|
---|
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.
Author |
Andrew Ozz <[email protected]>
2018-11-05 08:38:47 +0000
|
---|
- 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.
Author |
Gary Pendergast <[email protected]>
2018-11-05 02:46:14 +0000
|
---|
Merges [42812,42819] to the 5.0 branch. Props SergeyBiryukov. Fixes #43508.
Author |
Gary Pendergast <[email protected]>
2018-11-05 00:18:44 +0000
|
---|
Author |
Gary Pendergast <[email protected]>
2018-11-05 00:06:03 +0000
|
---|
Author |
Gary Pendergast <[email protected]>
2018-11-04 23:22:25 +0000
|
---|
This was causing the custom meta box to be incorrectly added to post types that don't support it. Props ocean90, epointal. Fixes #45257,
Author |
Daniel Bachhuber <[email protected]>
2018-11-03 14:13:16 +0000
|
---|
Props danielbachhuber, peterwilsoncc. Fixes #45269. See #42864.
Author |
Gary Pendergast <[email protected]>
2018-11-03 07:56:28 +0000
|
---|
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.
Author |
allancole <[email protected]>
2018-11-02 23:52:16 +0000
|
---|
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.
Author |
herregroen <[email protected]>
2018-11-01 13:50:59 +0000
|
---|
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.
Author |
Gary Pendergast <[email protected]>
2018-11-01 05:19:48 +0000
|
---|
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.
Author |
Gary Pendergast <[email protected]>
2018-11-01 05:06:44 +0000
|
---|
CodeMirror is no longer used in the block editor, so we don't need to load the settings. Props noisysocks. Fixes #45248.
Author |
Gary Pendergast <[email protected]>
2018-11-01 04:32:37 +0000
|
---|
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.
Author |
Gary Pendergast <[email protected]>
2018-11-01 02:34:26 +0000
|
---|
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.
Author |
Gary Pendergast <[email protected]>
2018-11-01 02:24:18 +0000
|
---|
Remove the "Quick Edit" for `wp_block`s, too, as they don't need any of that functionality. Props noisysocks. Fixes #45247.
Author |
Gary Pendergast <[email protected]>
2018-11-01 02:01:04 +0000
|
---|
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.
Author |
Daniel Bachhuber <[email protected]>
2018-10-31 14:02:45 +0000
|
---|
I thought I was writing JavaScript. Alas. See #45196.
Author |
Daniel Bachhuber <[email protected]>
2018-10-31 13:25:28 +0000
|
---|
This fixture schema ensures `wp-api-generated.js` doesn't change when running tests in local dev environments. Fixes #45196.
Author |
Daniel Bachhuber <[email protected]>
2018-10-31 12:44:21 +0000
|
---|
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.
Author |
Daniel Bachhuber <[email protected]>
2018-10-31 11:34:01 +0000
|
---|
See #45098
Author |
Gary Pendergast <[email protected]>
2018-10-31 06:00:03 +0000
|
---|
- `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.
Author |
Gary Pendergast <[email protected]>
2018-10-31 05:49:01 +0000
|
---|
Trunk now matches Gutenberg 4.2 RC1. See #45145.
Author |
Daniel Bachhuber <[email protected]>
2018-10-31 02:32:49 +0000
|
---|
`is_user_logged_in()` is a pluggable function, and loaded after plugins are loaded. If a plugin calls `__()` too early, `is_user_logged_in()` is missing and WordPress will fatal. `get_user_locale()` already handles this scenario for us, so it's safe to rely on exclusively. See #44758. Fixes #45235.
Author |
Gary Pendergast <[email protected]>
2018-10-30 04:59:49 +0000
|
---|
Author |
Gary Pendergast <[email protected]>
2018-10-30 04:46:12 +0000
|
---|
Author |
Gary Pendergast <[email protected]>
2018-10-30 02:43:08 +0000
|
---|
See #45145.
Author |
allancole <[email protected]>
2018-10-30 02:13:07 +0000
|
---|
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.
Author |
Gary Pendergast <[email protected]>
2018-10-29 08:00:56 +0000
|
---|
See #45145.
Author |
Gary Pendergast <[email protected]>
2018-10-29 07:40:44 +0000
|
---|
This also includes the new `@wordpress/format-library` and `@wordpress/notices` packages. `package-lock.json` has been completely regenerated in this commit. See #45145.
Author |
Gary Pendergast <[email protected]>
2018-10-29 04:02:40 +0000
|
---|
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.
Author |
Gary Pendergast <[email protected]>
2018-10-29 03:15:11 +0000
|
---|
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.
Author |
Gary Pendergast <[email protected]>
2018-10-29 02:42:23 +0000
|
---|
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.
Author |
Gary Pendergast <[email protected]>
2018-10-29 02:11:35 +0000
|
---|
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.
Author |
Gary Pendergast <[email protected]>
2018-10-29 01:55:57 +0000
|
---|
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.
Author |
Daniel Bachhuber <[email protected]>
2018-10-29 00:47:01 +0000
|
---|
The `get_compact_response_links()` method was introduced in WP 4.5, and this conditional is no longer necessary. Props schlessera, timothyblynjacobs. Fixes #45189.
Author |
Daniel Bachhuber <[email protected]>
2018-10-29 00:23:11 +0000
|
---|
Also introduces a `block_editor_preload_paths` filter for plugins and themes to preload additional data. Props imath, mattheu. Fixes #45194.
Author |
Aaron Jorbin <[email protected]>
2018-10-26 20:16:22 +0000
|
---|
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.
Author |
Gary Pendergast <[email protected]>
2018-10-26 08:14:49 +0000
|
---|
The inline script for `wp-date` incorrectly included a textdomain, and lacked translator comments. Props mukesh27. Fixes #45191, #45162.
Author |
Gary Pendergast <[email protected]>
2018-10-26 08:10:18 +0000
|
---|
When `WP_DEBUG` is set, ensure that a static method callback is passed to `ReflectionMethod`, instead of `ReflectionFunction`. Props DrewAPicture. Fixes #45192.
Author |
Gary Pendergast <[email protected]>
2018-10-26 07:13:25 +0000
|
---|
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.
Author |
Sergey Biryukov <[email protected]>
2018-10-26 03:54:02 +0000
|
---|
`__DIR__` is not available in PHP 5.2.x. See #45103.
Author |
Drew Jaynes <[email protected]>
2018-10-26 01:23:29 +0000
|
---|
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.
Author |
Anton Timmermans <[email protected]>
2018-10-25 15:22:12 +0000
|
---|
Props omarreiss. See #45145.
Author |
herregroen <[email protected]>
2018-10-25 13:59:51 +0000
|
---|
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.
Author |
Anton Timmermans <[email protected]>
2018-10-25 13:42:03 +0000
|
---|
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.
Author |
Gary Pendergast <[email protected]>
2018-10-24 21:53:25 +0000
|
---|
Author |
Gary Pendergast <[email protected]>
2018-10-24 21:37:45 +0000
|
---|
Author |
Dominik Schilling (ocean90) <[email protected]>
2018-10-24 21:00:26 +0000
|
---|
POT files are no longer required.
Author |
Sergey Biryukov <[email protected]>
2018-10-24 18:50:35 +0000
|
---|
Props desrosj, garrett-eclipse, danielbachhuber. Fixes #45151.
Author |
Aaron Jorbin <[email protected]>
2018-10-24 16:32:29 +0000
|
---|
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.
Author |
Gary Pendergast <[email protected]>
2018-10-24 11:47:56 +0000
|
---|
`wp-date` recently added the `datetimeAbbreviated` format, but the config wasn't sending it on page load. Fixes #45158.
Author |
Anton Timmermans <[email protected]>
2018-10-24 09:56:30 +0000
|
---|
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.
Author |
Gary Pendergast <[email protected]>
2018-10-24 08:59:21 +0000
|
---|
Props bordoni. See #45037.
Author |
Gary Pendergast <[email protected]>
2018-10-24 06:45:26 +0000
|
---|
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.
Author |
Gary Pendergast <[email protected]>
2018-10-24 04:15:27 +0000
|
---|
The `add_theme_support()` inline docs now includes the features that the block editor adds. Props desrosj. See #45134.
Author |
Gary Pendergast <[email protected]>
2018-10-24 01:18:38 +0000
|
---|
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.
Author |
Gary Pendergast <[email protected]>
2018-10-24 00:35:51 +0000
|
---|
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.
Author |
Daniel Bachhuber <[email protected]>
2018-10-23 18:55:45 +0000
|
---|
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.
Author |
Daniel Bachhuber <[email protected]>
2018-10-23 17:47:28 +0000
|
---|
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.
Author |
Aaron Jorbin <[email protected]>
2018-10-23 16:50:33 +0000
|
---|
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.
Author |
allancole <[email protected]>
2018-10-23 15:52:15 +0000
|
---|
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.
Author |
Gary Pendergast <[email protected]>
2018-10-23 11:03:20 +0000
|
---|
Block or block not. There is no try. Props mukesh27. See #45063.
Author |
Daniel Bachhuber <[email protected]>
2018-10-23 10:58:35 +0000
|
---|
Props Presskopp, swissspidy. See #45098
Author |
Gary Pendergast <[email protected]>
2018-10-23 07:03:47 +0000
|
---|
`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.
Author |
Gary Pendergast <[email protected]>
2018-10-23 06:52:03 +0000
|
---|
See #45098.
Author |
Gary Pendergast <[email protected]>
2018-10-23 06:35:17 +0000
|
---|
See #45065.
Author |
Gary Pendergast <[email protected]>
2018-10-23 06:20:23 +0000
|
---|
[43723] included script metadata for the `wp-polyfill` script that was being registered as an inline script. See #45065.
Author |
Gary Pendergast <[email protected]>
2018-10-23 05:34:43 +0000
|
---|
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.
Author |
David A. Kennedy <[email protected]>
2018-10-23 01:25:03 +0000
|
---|
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.
Author |
David A. Kennedy <[email protected]>
2018-10-23 01:03:09 +0000
|
---|
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.
Author |
David A. Kennedy <[email protected]>
2018-10-23 00:35:37 +0000
|
---|
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.
Author |
David A. Kennedy <[email protected]>
2018-10-23 00:10:28 +0000
|
---|
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.
Author |
David A. Kennedy <[email protected]>
2018-10-22 23:43:55 +0000
|
---|
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.
Author |
David A. Kennedy <[email protected]>
2018-10-22 23:17:55 +0000
|
---|
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.
Author |
David A. Kennedy <[email protected]>
2018-10-22 23:02:44 +0000
|
---|
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.
Author |
David A. Kennedy <[email protected]>
2018-10-22 22:37:18 +0000
|
---|
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.
Author |
Dominik Schilling (ocean90) <[email protected]>
2018-10-22 21:26:20 +0000
|
---|
See #45112.
Author |
Dominik Schilling (ocean90) <[email protected]>
2018-10-22 21:00:47 +0000
|
---|
See #45125.
Author |
Daniel Bachhuber <[email protected]>
2018-10-22 19:57:07 +0000
|
---|
Responsive embeds is a way for a theme to opt in to WordPress dynamically scaling the width/height of an embed. When a theme supports responsive embeds, a `wp-embed-responsive` class is added to the `<body>` tag. This information is also presented through the REST API for clients to respect. Props desrosj. Fixes #45125.
Author |
Anton Timmermans <[email protected]>
2018-10-22 13:57:49 +0000
|
---|
Generated using `npm update @wordpress/api-fetch @wordpress/blob @wordpress/block-library @wordpress/blocks @wordpress/components @wordpress/compose @wordpress/core-data @wordpress/data @wordpress/date @wordpress/dom @wordpress/edit-post @wordpress/editor @wordpress/element @wordpress/escape-html @wordpress/list-reusable-blocks @wordpress/nux @wordpress/plugins @wordpress/redux-routine @wordpress/rich-text @wordpress/url @wordpress/viewport`. See #45145.
Author |
Gary Pendergast <[email protected]>
2018-10-22 06:12:55 +0000
|
---|
See [36550] for `WP_Styles`. Merges [43565] to the 5.0 branch. Props bpayton. Fixes #44551.
Author |
Gary Pendergast <[email protected]>
2018-10-22 06:05:01 +0000
|
---|
Merges [43581] to the 5.0 branch. Props pross. Fixes #44785.
Author |
Gary Pendergast <[email protected]>
2018-10-22 05:14:59 +0000
|
---|
This allows us to apply WordPress Coding Standards rules to new files in the 5.0 branch. Props netweb. Fixes #44366.
Author |
Gary Pendergast <[email protected]>
2018-10-22 05:06:00 +0000
|
---|
`grunt-contrib-imagemin` was updated, which included some changes to image minification. Those changes are now applies. Props netweb. See #45080.
Author |
Gary Pendergast <[email protected]>
2018-10-22 05:03:38 +0000
|
---|
`autoprefixer` was updated, which included some vendor prefix changes. Those changes are now applied. Props netweb. See #45080.
Author |
Gary Pendergast <[email protected]>
2018-10-22 04:53:49 +0000
|
---|
Props netweb. Fixes #45119.
Author |
Gary Pendergast <[email protected]>
2018-10-22 04:49:24 +0000
|
---|
Merges [42460] to the 5.0 branch. Props netweb. Fixes #43075.
Author |
Gary Pendergast <[email protected]>
2018-10-22 04:03:07 +0000
|
---|
The cover image block uses the `url()` function in its inline CSS, to show the cover image. KSES didn't allow this, causing the block to not save correctly for Author and Contributor users. As KSES does already check each attribute name against an allowed list, we're able to add an extra check for certain attributes to be able to use the `url()` function, too. Props peterwilsoncc, azaozz, pento, dd32. See #45067.
Author |
Gary Pendergast <[email protected]>
2018-10-22 03:13:09 +0000
|
---|
See #45037.
Author |
Gary Pendergast <[email protected]>
2018-10-22 02:31:38 +0000
|
---|
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.
Author |
Gary Pendergast <[email protected]>
2018-10-22 02:15:28 +0000
|
---|
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.
Author |
Gary Pendergast <[email protected]>
2018-10-22 02:05:23 +0000
|
---|
This method allows checking (or setting) whether the block editor is loading on the current screen. See #45037.
Author |
Daniel Bachhuber <[email protected]>
2018-10-21 15:02:49 +0000
|
---|
Introduces new `determine_locale()` function for deciding the proper locale to use for a response. Default value is `get_user_locale()` in the admin, and `get_locale()` on the frontend. Because REST API requests are considered frontend requests, `?_locale=user` can be used to render the response in the user's locale. Also updates `wp-login.php?wp_lang` implementation to benefit from this abstraction. Props flixos90, mnelson4, swissspidy, TimothyBlynJacobs. Fixes #44758.
Author |
Gary Pendergast <[email protected]>
2018-10-20 08:35:41 +0000
|
---|
`WP_Text_Diff_Renderer_Table` is used to generate the diff view in revisions, but there were some cases that could cause it to take excessive amounts of time to run. Some noteable cases include: - When a large number of new lines were inserted in the middle of the post from one revision to the next. - When both revisions contain >100 lines. - When either revision contains a lot of long lines. In one extreme test case, the diff view took over a minute to generate. With this change, it now takes less than a second. See #35667.
Author |
Sergey Biryukov <[email protected]>
2018-10-20 04:20:58 +0000
|
---|
PHPUnit 3.6.x requires `exclude` and `file` paths to be relative to the checkout root. PHPUnit 4.0.0+ requires the paths to be relative to the configuration file. See #45131.
Author |
Daniel Bachhuber <[email protected]>
2018-10-19 18:52:31 +0000
|
---|
Narrow the scope of the included wp-admin files loaded for `wp_generate_attachment_metadata()`, `wp_handle_upload()`, `wp_tempnam()`, and `wp_handle_sideload()`. Requires only `wp-admin/includes/file.php` and `wp-admin/includes/image.php` instead of `wp-admin/includes/admin.php`. Props ocean90, lonelyvegan, soulseekah, pratikthink. Merges [43589], [43604] to the 5.0 branch. Fixes #43757.
Author |
Daniel Bachhuber <[email protected]>
2018-10-19 18:40:33 +0000
|
---|
Props chetan200891, burhandodhy, swissspidy. Merges [43622] to the 5.0 branch. See #44717.
Author |
Daniel Bachhuber <[email protected]>
2018-10-19 18:32:03 +0000
|
---|
When constructing the request URL, ensure that `?` is replaced with `&` when the API root already contains a `?`. Fixes an issue where requests were broken when sites had permalinks set to plain. Props aduth. Merges [42965] to the 5.0 branch. Fixes #42382.
Author |
Daniel Bachhuber <[email protected]>
2018-10-19 17:57:38 +0000
|
---|
The `block_version` denotes which version of Blocks the `post_content` contains. Introduces new `block_version()` function for versioning Blocks. Props danielbachhuber, birgire. Fixes #43887.
Author |
Daniel Bachhuber <[email protected]>
2018-10-19 14:08:12 +0000
|
---|
There's some PHP 5.2 (cough, cough) edge case where paths calculated differently, possibly caused by differing version of PHPUnit. See #45132, #45131, #43316.
Author |
Daniel Bachhuber <[email protected]>
2018-10-19 13:48:42 +0000
|
---|
* Adds `WP_REST_Autosaves_Controller` which extends `WP_REST_Revisions_Controller`. * Autosaves endpoint is registered for all post types except `attachment` because even post types without revisions enabled are expected to autosave. * Because setting the `DOING_AUTOSAVE` constant pollutes the test suite, autosaves tests are run last. We may want to improve upon this later. Props adamsilverstein, aduth, azaozz, danielbachhuber, rmccue. Fixes #43316.
Author |
Daniel Bachhuber <[email protected]>
2018-10-19 11:56:20 +0000
|
---|
The `100` number could be valid in certain test run configurations. The `REST_TESTS_IMPOSSIBLY_HIGH_NUMBER` constant is impossibly high for this very reason. Fixes #45128.
Author |
Daniel Bachhuber <[email protected]>
2018-10-19 11:13:57 +0000
|
---|
`rest_url()` inconsistent addes slashes to the passed path depending on whether the site has pretty permalinks enabled. Apart from being inconsistent, this also caused the unit tests to fail when pretty permalinks are enabled. Props frank-klein. Merges [42250] to the 5.0 branch. Partially reverts [43720]. Fixes #42452. See #41451, #45017.
Author |
Miguel Fonseca <[email protected]>
2018-10-19 10:50:20 +0000
|
---|
Fixes #45123.
Author |
Gary Pendergast <[email protected]>
2018-10-19 09:11:12 +0000
|
---|
See #45110.
Author |
Gary Pendergast <[email protected]>
2018-10-19 08:56:58 +0000
|
---|
This function helps perform multiple REST API requests, for the purpose of preloading data into a page. See #45110.
Author |
Gary Pendergast <[email protected]>
2018-10-19 08:43:25 +0000
|
---|
`use_block_editor_for_post()` and `use_block_editor_for_post_type()` determine if the block editor should be loaded. `get_block_categories()` and `get_block_editor_server_block_settings()` provide data be included while the block editor is loading. See #45110.
Author |
Gary Pendergast <[email protected]>
2018-10-19 06:44:16 +0000
|
---|
They're now returned by a new function, `wp_get_code_editor_settings()`, so they can be reused by the block editor. See #45127.
Author |
Gary Pendergast <[email protected]>
2018-10-19 06:05:13 +0000
|
---|
- `grunt webpack:dev` now copies packages JS into `/src/wp-includes/js/dist`, and CSS into `/src/wp-includes/css/dist`. - `grunt webpack:prod` does the same, but into `/build` instead of `/src`. - `grunt build` now runs the `webpack:prod` task. Props atimmer, pento. Fixes #45119.
Author |
Gary Pendergast <[email protected]>
2018-10-19 05:51:07 +0000
|
---|
This function formats locale information to be used by Jed. Props desrosj. See #45111.
Author |
Gary Pendergast <[email protected]>
2018-10-19 01:42:15 +0000
|
---|
As the block editor adds its own `<p>` tags, disabling the wpautop stops the classic editor from removing them. See #45113.
Author |
Daniel Bachhuber <[email protected]>
2018-10-18 20:48:17 +0000
|
---|
When window.location.origin isn't set, correctly insert two slashes between the protocol and host when constructing the fallback URL. Props abdullahramzan. Merges [43566] into the 5.0 branch. Fixes #44764.
Author |
Daniel Bachhuber <[email protected]>
2018-10-18 20:31:58 +0000
|
---|
The 409 error code is intended for situations where it is expected that the user will resolve the conflict and resubmit the same request. We use 400 error codes for other routes when a duplicate request is made. The 400 status code tells the user they need to modify their request for it to be successful. Props shooper. Merges [42354] to the 5.0 branch. Fixes #42781. See #41370.
Author |
Daniel Bachhuber <[email protected]>
2018-10-18 20:25:47 +0000
|
---|
The permissions error message when a request tries to fetch post statuses unauthenticated is incorrect. It was a copy/paste from elsewhere, as indicated by the use of "in this post type" where this is no post type referenced. Props schlessera. Merges [42356] to the 5.0 branch. Fixes #42303.
Author |
Anton Timmermans <[email protected]>
2018-10-18 13:26:12 +0000
|
---|
See #45065. Props swissspidy.
Author |
Anton Timmermans <[email protected]>
2018-10-18 13:21:03 +0000
|
---|
After [43738], TinyMCE would be loaded earlier than before, which makes filters run at a different time relative to the loading of TinyMCE. Fix this by calling `wp_print_scripts` at the location where TinyMCE would previously be inserted as a `<script>` tag in the page. Props azaozz, omarreiss. Fixes #45065.
Author |
Gary Pendergast <[email protected]>
2018-10-18 11:53:49 +0000
|
---|
Posts containing blocks are now correctly handled when displaying on the front end, including dynamic blocks and nested blocks. See #45109.
Author |
Gary Pendergast <[email protected]>
2018-10-18 04:39:40 +0000
|
---|
The `WP_Block_Parser` class, and the accompanying `parse_blocks()` helper function, can be used to parse an array of blocks out of a content string. `WP_Block_Parser` is copied from the `@wordpress/block-serialization-default-parser` package. To ensure it stays in sync with the JavaScript parser, changes should be implemented in the package first, then the package version should be upgraded to include the changes. See #45109.
Author |
Sergey Biryukov <[email protected]>
2018-10-18 04:14:41 +0000
|
---|
Props desrosj. Merges [42879] to the 5.0 branch. Fixes #43624.
Author |
Sergey Biryukov <[email protected]>
2018-10-18 04:13:36 +0000
|
---|
Merges [42878] to the 5.0 branch. See #43624.
Author |
Sergey Biryukov <[email protected]>
2018-10-18 04:12:09 +0000
|
---|
Props netweb. Merges [42405] to the 5.0 branch. Fixes #42909.
Author |
Sergey Biryukov <[email protected]>
2018-10-18 04:08:08 +0000
|
---|
Props netweb. Merges [42733] to the 5.0 branch. Fixes #43411.
Author |
Sergey Biryukov <[email protected]>
2018-10-18 03:41:46 +0000
|
---|
Applying continue to a switch is equivalent to using break and quite possibly, a continue targeting a higher level control structure is actually intended. To target the higher level control structure, a numeric argument has to be passed to continue. This fixes two cases in WordPress Core where this is currently happening. See: https://github.com/php/php-src/pull/3364 See: https://wiki.php.net/rfc/continue_on_switch_deprecation Props jrf. Merges [43653] to the 5.0 branch. Fixes #44543.
Author |
Sergey Biryukov <[email protected]>
2018-10-18 03:10:42 +0000
|
---|
Props BandonRandon. Merges [42642] to the 5.0 branch. Fixes #42535. See #41948.
Author |
Daniel Bachhuber <[email protected]>
2018-10-18 02:03:58 +0000
|
---|
Because the existing `post_updated_messages` filter can be modified dynamically based on post state, it's unreliable to use with REST API clients. Instead, these new labels give clients stateless equivalents. Props earnjam. Fixes #45101.
Author |
Gary Pendergast <[email protected]>
2018-10-18 01:52:58 +0000
|
---|
These helper functions allow easy access to the global block registry. See #45109.
Author |
Gary Pendergast <[email protected]>
2018-10-18 01:30:49 +0000
|
---|
These are the foundational classes allowing blocks to be registered and used throughout WordPress. This commit also includes the `has_block()` and `has_blocks()` functions, which are required for unit testing these classes. Props adamsilverstein, danielbachhuber, desrosj. See #45097, #45109.
Author |
Daniel Bachhuber <[email protected]>
2018-10-17 22:19:20 +0000
|
---|
`_doing_it_wrong()`, indeed. Props joehoyle. See #39965.
Author |
K. Adam White <[email protected]>
2018-10-17 20:09:33 +0000
|
---|
When comparing the old and new values for a meta key being set, ensure both values are sanitized using the same logic so that equal values match. props boonebgorges, dcavins, MattGeri, pilou69, TimothyBlynJacobs. Fixes #42069.
Author |
Daniel Bachhuber <[email protected]>
2018-10-17 17:02:04 +0000
|
---|
Introduces a `WP_REST_Search_Controller` class which registers a `/wp/v2/search` endpoint. Search types are handled by extending `WP_REST_Search_Handler`. The default search type is `WP_REST_Post_Search_Handler` but can be filtered by plugins or a theme. Props danielbachhuber, flixos90, pento, rmccue. Fixes #39965.
Author |
Anton Timmermans <[email protected]>
2018-10-17 15:28:33 +0000
|
---|
Adjusts the packages registration after [43723]: * Combine the different registration functions into one `wp_default_packages` function. To reach this goal move the prefix logic into a function so it can be called from different locations. Use a `static` variable there to prevent duplicate inclusion of `version.php`. * Call this function from the `wp_default_scripts` action by registering it as a default filter. * Combine some of the logic in `_WP_Editors::print_tinymce_scripts` into `wp_register_tinymce_scripts`. The logic to force an uncompressed TinyMCE script file stays in `_WP_Editors::force_uncompressed_tinymce` because that logic is very specific to the classic editor. * The script handle `wp-tinymce` is now a dependency of the `editor` script handle. In combination with the previous item, this makes the classic editor work. * Adjust the syntax of the script paths to be more consistent with other WordPress code. * Always use `"production"` mode for the media files to prevent people from inadvertently committing development files. Props pento, omarreiss. Fixes #45065.
Author |
Daniel Bachhuber <[email protected]>
2018-10-17 11:19:02 +0000
|
---|
The existing `rest_insert_*` actions are fired before meta and additional fields are updated. These new `rest_after_*` actions fire after all write operations have completed. Props timothyblynjacobs. Fixes #42864.
Author |
Daniel Bachhuber <[email protected]>
2018-10-17 02:40:23 +0000
|
---|
In [43087], we improved REST API performance by only rendering the fields specified in the request. Similarly, any fields registered with `register_rest_field()` should only be rendered when included in `?_fields=`. Props dlh. Fixes #45099.
Author |
K. Adam White <[email protected]>
2018-10-16 22:49:59 +0000
|
---|
See #45016.
Author |
K. Adam White <[email protected]>
2018-10-16 22:27:05 +0000
|
---|
In order to correctly render parts of its UI, the new editor needs to be aware of the active theme's post-formats and post-thumbnails support. This data is exposed by querying for the active theme on a new /wp/v2/themes endpoint for sufficiently privileged users. props desrosj. Fixes #45016.
Author |
Peter Wilson <[email protected]>
2018-10-16 04:41:45 +0000
|
---|
Completes merging [42770] to the 5.0 branch. See #43187.
Author |
Peter Wilson <[email protected]>
2018-10-16 04:12:21 +0000
|
---|
Props notnownikki, iseulde, azaozz. Merges [42770] to the 5.0 branch. Fixes #43187.
Author |
Peter Wilson <[email protected]>
2018-10-15 23:43:40 +0000
|
---|
Allow low-privileged users to use the ARIA attributes `aria-describedby`, `aria-details`, `aria-label`, `aria-labelledby` and `aria-hidden`. Props mattheu, swissspidy, rianrietveld, afercia, GaryJ. See #30421.
Author |
Daniel Bachhuber <[email protected]>
2018-10-15 22:05:18 +0000
|
---|
Because WP REST API requests aren't identified until `parse_request`, it's impractical to reference the `REST_REQUEST` constant in `wp_debug_mode()`. Instead, it's more helpful to assume that a request wanting a JSON response probably doesn't want PHP errors breaking the response. Props chrisl27, duanestorey, earnjam. Fixes #44534.
Author |
Felix Arntz <[email protected]>
2018-10-15 11:45:16 +0000
|
---|
Object type-specific actions that should happen before or after modification of metadata have so far been part of the respective wrapper functions. By using action and filter hooks, this changeset ensures they are always executed, even when calling the lower-level Meta API functions directly, which the REST API does as a prime example. Props flixos90, spacedmonkey. Fixes #44467.
Author |
Gary Pendergast <[email protected]>
2018-10-15 05:34:48 +0000
|
---|
In the full edit screen, CPTs that have disabled the `publicly_queryable` option will hide the slug field, as it doesn't need to be edited. This change brings the Quick Edit view into line with that behaviour. Merges [43664] to the 5.0 branch. Props bhargavmehta, krutidugade. Fixes #43278.
Author |
Peter Wilson <[email protected]>
2018-10-15 05:21:04 +0000
|
---|
Add global support for HTML attributes prefixed `data-` for authors and contributors, as required by the new editor. Props azaozz, peterwilsoncc. Fixes #33121.
Author |
Aaron Jorbin <[email protected]>
2018-10-15 02:47:44 +0000
|
---|
Travis now supports PHP7.3 without workarounds, so let's remove the workarounds. Previously [43692]. See #44771.
Author |
Gary Pendergast <[email protected]>
2018-10-13 03:10:50 +0000
|
---|
See #44858.
Author |
Gary Pendergast <[email protected]>
2018-10-13 02:51:34 +0000
|
---|
This functionality will cause the command to be retried up to three times in case of a non-zero return value. Implementing it on commands that perform network requests means that intermittent network failures are less likely to cause a build to fail, as they'll be retried up to three times. Merges [43645] to the 5.0 branch. Props johnbillion. Fixes #44858.
Author |
Anton Timmermans <[email protected]>
2018-10-12 11:43:50 +0000
|
---|
This allows the packages to be consumed by plugins and core itself. The code has been based on the work done in the Gutenberg plugin. We've added an array with all the packages and the vendor packages to loop through. This sets a convention so all packages will be registered in the same way. This array can eventually be generated by a webpack plugin. We need to register TinyMCE explicitly. Previously TinyMCE was used by inserting custom `<script>` tags into the relevant admin pages. This is not suitable for the new editor, so we need to explicitly register TinyMCE. We could, in the future, refactor the custom `<script>` tags to use the registered TinyMCE script instead. Polyfills are inserted into the page only when necessary using `document.write`. Props omarreiss, herregroen, youknowriad, gziolo. Fixes #45065.
Author |
Sergey Biryukov <[email protected]>
2018-10-12 11:15:46 +0000
|
---|
Otherwise, `wp-admin/setup-config.php` triggers an undefined constant warning in PHP 7.2. Props mariusvw, jryancard for initial patch. Merges [42701] to the 5.0 branch. Fixes #35560.
Author |
Sergey Biryukov <[email protected]>
2018-10-11 23:13:42 +0000
|
---|
See [43684]. See #45064.
Author |
Daniel Bachhuber <[email protected]>
2018-10-11 22:24:51 +0000
|
---|
In order for clients to present permalink previews, the REST API must share the computed results of `get_sample_permalink()`. These two values are now exposed as `permalink_template` and `generated_slug` for public, viewable post types, but only for `context=edit`. Props danielbachhuber, rahulsprajapati. Fixes #45017.
Author |
Anton Timmermans <[email protected]>
2018-10-11 10:00:16 +0000
|
---|
We decided to split the media webpack config into it's own file. The main webpack config then combines this file with the packages config. Include vendor scripts by copying them. We copy the minified files if they are available. If they aren't available we minify the original files ourselves. Props omarreiss, herregroen, gziolo, youknowriad, netweb, adamsilverstein. See #45065.
Author |
Sergey Biryukov <[email protected]>
2018-10-11 08:13:51 +0000
|
---|
Merges [43601] to the 5.0 branch. Fixes #44620.
Author |
Sergey Biryukov <[email protected]>
2018-10-11 08:10:54 +0000
|
---|
In addition to the merge noted below, includes important brackets added in [42343]. Props dhanendran, gnif, SergeyBiryukov. Merges [42695] and [42702] to the 5.0 branch. Fixes #43255.