38468 Commits

Author SHA1 Message Date
John Blackbourn
a494bb1dee Build/Test tools: Switch npm dependency caching strategy on Travis CI.
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 


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44995 602fd350-edb4-49c9-b593-d223f7449a82
2019-03-25 00:54:59 +00:00
John Blackbourn
c3afc1069d Build/Test tools: Trim the test matrix on Travis in order to speed up the 5.0 branch build.
This removes the PHP 7.2, 7.1, 7.0, 5.5, 5.4, 5.3, and nightly jobs.

See , 


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44992 602fd350-edb4-49c9-b593-d223f7449a82
2019-03-25 00:18:17 +00:00
Gary Pendergast
070b00cecb WordPress 5.0.4, undoing the incorrect version bump in [44862].
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44866 602fd350-edb4-49c9-b593-d223f7449a82
2019-03-13 00:43:56 +00:00
Gary Pendergast
b34a86942e WordPress 5.0.5
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44862 602fd350-edb4-49c9-b593-d223f7449a82
2019-03-13 00:34:09 +00:00
Sergey Biryukov
d10c22bc89 Comments: Improve comment content filtering.
Merges [44842] to the 5.0 branch.

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44844 602fd350-edb4-49c9-b593-d223f7449a82
2019-03-12 22:32:54 +00:00
Sergey Biryukov
cadb2bde0c Formatting: Improve rel="nofollow" handling in comments.
Merges [44833] to the 5.0 branch.

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44835 602fd350-edb4-49c9-b593-d223f7449a82
2019-03-12 22:17:34 +00:00
Jonathan Desrosiers
a6d0325b2d Post WordPress 5.0.3 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44523 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-09 19:05:41 +00:00
Jonathan Desrosiers
d1b26da866 WordPress 5.0.3.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44521 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-09 18:09:32 +00:00
Jonathan Desrosiers
f8951f6851 About: Add 5.0.3 details to the about page.
Fixes .

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44520 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-09 17:39:13 +00:00
Jonathan Desrosiers
8a6861580f Post WordPress 5.0.3-RC1 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44445 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-07 23:08:42 +00:00
Jonathan Desrosiers
e9ae7de8f2 WordPress 5.0.3-RC1.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44444 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-07 22:55:23 +00:00
Joe McGill
d9a6440ca2 Upload: Fix upload failures of common text file types.
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 .


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44443 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-07 22:22:03 +00:00
Jonathan Desrosiers
a6c26ca0f2 Block Editor: Display notice to the user when JavaScript is disabled.
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 .

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44440 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-07 20:58:09 +00:00
Sergey Biryukov
75a2cedc40 Default Themes: Bump the version numbers and release dates.
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 .

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44436 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-07 19:00:45 +00:00
Sergey Biryukov
029f1c0301 Bundled Themes: Bump script and style version numbers.
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 .

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44434 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-07 18:39:03 +00:00
Sergey Biryukov
7ebf6c2a9b Twenty Twelve: Correct padding rule precedence for Quote block.
Props superpoincare.
Merges [44432] to the 5.0 branch.
Fixes .

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44433 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-07 18:34:28 +00:00
Sergey Biryukov
b2ba551c26 Bundled Themes: Make sure button blocks respect settings.
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 .

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44430 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-07 16:17:31 +00:00
Sergey Biryukov
b0abd9d01e Twenty Nineteen: Update theme description and tags.
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 .

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44429 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-07 16:10:07 +00:00
Sergey Biryukov
9e05b92447 Twenty Nineteen: Push right-aligned image block outside of text column.
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 .

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44428 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-07 16:05:48 +00:00
Sergey Biryukov
190ef35bc9 Twenty Nineteen: Remove transparency from submenus.
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 .

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44427 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-07 16:01:23 +00:00
Sergey Biryukov
ffa3a4e448 Twenty Nineteen: Improve menu semantics and keyboard navigation.
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 .

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44426 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-07 15:59:04 +00:00
Sergey Biryukov
25bb41dd80 Twenty Seventeen: Improve selectors for block editor custom colors.
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 .

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44425 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-07 15:55:06 +00:00
Sergey Biryukov
1574b76f41 Twenty Nineteen: Fix hover appearance for outlined button block style.
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 .

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44424 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-07 15:50:24 +00:00
Sergey Biryukov
5358fc0e53 Twenty Fourteen: Remove text decoration from button block.
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 .

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44423 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-07 15:46:55 +00:00
Sergey Biryukov
4acf0f6803 Twenty Nineteen: Remove underline from "Continue Reading" arrow.
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 .

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44422 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-07 15:44:36 +00:00
Sergey Biryukov
1f39070947 Twenty Fourteen: Correct video play button position.
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 .

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44421 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-07 15:41:44 +00:00
Dominik Schilling (ocean90)
86acc5f728 I18N: Expose JSON translation file paths in load_script_textdomain().
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 .

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44419 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-07 14:41:53 +00:00
Jonathan Desrosiers
583df78504 Twenty Seventeen: Use a simple counter incremented with each call instead of uniqid() for generating unique IDs for HTML elements.
Props westonruter, laurelfulford.

Merges [43659] and [44408] to the 5.0 branch.
Fixes .

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44409 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-06 20:18:08 +00:00
Jonathan Desrosiers
f95257f204 General: Introduce wp_unique_id(), a PHP implementation of Underscore's uniqueId method.
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 .

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44407 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-06 20:07:34 +00:00
Jonathan Desrosiers
3f6df95e64 Accessibility: Insert Link modal: Improve keyboard interaction.
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 .

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44405 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-06 19:42:36 +00:00
Dominik Schilling (ocean90)
2acbb2a7e4 I18N/Script Loader: Support text domains other than "messages".
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 .

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44404 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-06 17:05:24 +00:00
Jonathan Desrosiers
239d1d1556 Editor: Use explicit context instead of a trailing space for Edit string in TinyMCE.
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 , .
Fixes .

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44401 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-05 04:13:20 +00:00
Jonathan Desrosiers
c3d51239d7 Editor: Allow the “Add Media” button tooltip to be translated in the Classic block.
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 .

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44400 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-05 03:50:46 +00:00
Dominik Schilling (ocean90)
90ee9f51a7 Script Loader: Load unminified package vendor scripts when SCRIPT_DEBUG is set.
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 .

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44393 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-04 20:38:34 +00:00
Jonathan Desrosiers
45a8f1d7c5 Customize: Safeguard a check on the customize_validate_{$setting_id} filter value to ensure it is a WP_Error.
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 .

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44392 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-04 20:29:41 +00:00
Jonathan Desrosiers
5340afd185 Block Editor: Upgrade @WordPress packages to the latest versions.
Updated packages:

- @wordpress/annotations@1.0.5
- @wordpress/api-fetch@2.2.7
- @wordpress/block-library@2.2.12
- @wordpress/block-serialization-default-parser@2.0.3
- @wordpress/blocks@6.0.5
- @wordpress/components@7.0.5
- @wordpress/core-data@2.0.16
- @wordpress/data@4.2.0
- @wordpress/deprecated@2.0.4
- @wordpress/dom@2.0.8
- @wordpress/edit-post@3.1.7
- @wordpress/editor@9.0.7
- @wordpress/format-library@1.2.10
- @wordpress/hooks@2.0.4
- @wordpress/list-reusable-blocks@1.1.18
- @wordpress/notices@1.1.2
- @wordpress/nux@3.0.6
- @wordpress/plugins@2.0.10
- @wordpress/rich-text@3.0.4
- @wordpress/url@2.3.3
- @wordpress/viewport@2.1.0

Props: youknowriad, gziolo, desrosj.

Merges [44389] to the 5.0 branch.
Fixes .

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44390 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-04 20:18:09 +00:00
Jonathan Desrosiers
d55618e69c Customize: Pass missing parameter to dynamic option_{$option} filter in WP_Customize_Widgets::capture_filter_pre_get_option().
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 .

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44387 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-03 18:55:00 +00:00
Jonathan Desrosiers
c49005aca2 Happy New Year!
Fixes Tests_Basic::test_license

Merges [44379] to the 5.0 branch.

Props jorbin.

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44384 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-03 16:23:09 +00:00
laurelfulford
0acb4ebc35 Twenty Nineteen: Make sure links are followed on touchend, not touchstart.
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 .



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44357 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-21 21:08:56 +00:00
Gary Pendergast
eb965c27c0 Post WordPress 5.0.2 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44342 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-19 23:55:44 +00:00
Gary Pendergast
901f4fbada WordPress 5.0.2.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44340 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-19 23:21:49 +00:00
Jonathan Desrosiers
a0e2d2ab0c Posts, Post Types: Correctly show hierarchical post type hierarchy in admin.
In [44185], a bug was introduced where hierarchical post types would not display in the correct default order (hierarchically).

This was caused by a `! isset()` check, which returned `false` after [44185], causing the correct default value to not be applied. This switches that conditional to use an `empty()` check, ignoring the new empty string assignment that was added to prevent a PHP notice when `compact()` is called.

Merges [44338] to the 5.0 branch.

Props davidbinda.
Fixes .

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44339 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-19 22:27:51 +00:00
Gary Pendergast
c22f4e71ae About: Add 5.0.2 details to the about page.
Props desrosj.
Fixes .



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44337 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-19 22:18:44 +00:00
laurelfulford
999a6537c2 Default Themes: Bump the version numbers and release dates.
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 .



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44323 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-19 02:48:14 +00:00
Gary Pendergast
65433fe5f5 Post WordPress 5.0.2 RC2 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44290 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-18 12:01:36 +00:00
Gary Pendergast
dedead9d8d WordPress 5.0.2 RC2
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44289 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-18 11:51:07 +00:00
Gary Pendergast
0f5de39c56 i18n: Remove the script_loader_src filter from load_script_textdomain().
This filter is superfluous here, the `load_script_textdomain_relative_path` should be used for customising the textdomain path.

See .
Props dimadin.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44288 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-18 11:07:46 +00:00
Grzegorz (Greg) Ziółkowski
6163135856 Block Editor: Upgrade @WordPress packages to the latest version (4.7.1)
Updated packages:

 - @wordpress/block-library@2.2.11
 - @wordpress/edit-post@3.1.6
 - @wordpress/editor@9.0.6
 - @wordpress/format-library@1.2.9

Props youknowriad, pento.

Fixes .




git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44287 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-18 10:36:53 +00:00
Gary Pendergast
3422c59710 i18n: Prevent a PHP warning when a mu-plugin loads a textdomain.
`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 .



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44284 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-18 03:39:14 +00:00
Gary Pendergast
8afa10d989 Post WordPress 5.0.2 RC1 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44259 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-17 03:38:25 +00:00