Commit Graph

39120 Commits

Author SHA1 Message Date
laurelfulford
ebe82fa034 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.
Fixes #45726.



git-svn-id: https://develop.svn.wordpress.org/trunk@44370 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-28 20:14:26 +00:00
laurelfulford
2fa1a2f29f 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.
Fixes #45715.



git-svn-id: https://develop.svn.wordpress.org/trunk@44369 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-28 19:19:45 +00:00
laurelfulford
42656f3e7a 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.
Fixes #45689.



git-svn-id: https://develop.svn.wordpress.org/trunk@44368 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-28 18:11:45 +00:00
Sergey Biryukov
de5ab7155b Taxonomy: Fix typo in taxonomy_meta_box_sanitize_cb_checkboxes() argument name.
Props itowhid06.
Fixes #45756.

git-svn-id: https://develop.svn.wordpress.org/trunk@44367 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-28 18:03:06 +00:00
Sergey Biryukov
f2db5d2bb2 Build Tools: Remove unnecessary sprintf() in translatable strings.
Add a missing `sprintf()` for `npm install` substring.

See #44492.

git-svn-id: https://develop.svn.wordpress.org/trunk@44366 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-28 13:52:31 +00:00
Sergey Biryukov
a68bcf5227 Build Tools: After [44359], add src/wp-admin/js to .gitignore.
Props iandunn.
See #44492.

git-svn-id: https://develop.svn.wordpress.org/trunk@44365 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-28 13:52:12 +00:00
Boone Gorges
5427baed55 Update since annotation on allow_empty_comment hook.
Originally introduced in [42661].

Fixes #16979.

git-svn-id: https://develop.svn.wordpress.org/trunk@44364 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-28 13:41:23 +00:00
Pascal Birchler
e0f93daa56 Build/Test Tools: Instruct Git and Subversion to ignore Composer's /vendor directory.
Re-adds changes from [42405] after being reverted by accident in [43309].

Fixes #45770


git-svn-id: https://develop.svn.wordpress.org/trunk@44363 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-28 09:59:10 +00:00
Ian Dunn
26f3fa0cfe SVN: Trim trailing whitespace to match ignore entry exactly.
When the entry for `wp-cli.local.yml` was added in r30057, it included a trailing whitespace. Presumably, that doesn't cause any problems with some combinations of OS/SVN client/EOL markers/etc, but in some cases it will prevent the entry from being ignored. After removing the whitespace, the file is ignored as expected.

See #30134.


git-svn-id: https://develop.svn.wordpress.org/trunk@44362 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-25 19:26:42 +00:00
Anton Timmermans
5faccb9683 Build tools: Fix the travis:js build.
After [44359] it is impossible to not use ES6 syntax for some logic in the `Gruntfile.js`, so adjust the `esversion` setting for the `Gruntfile.js` to 6. Because the previous setting in `.jshintrc` was not compatible with setting `esversion`, set the `esversion` in the `.jshintrc` explicitly.

See #44492.


git-svn-id: https://develop.svn.wordpress.org/trunk@44361 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-24 13:53:11 +00:00
Anton Timmermans
68dd26a4c0 Build tools: Fix the grunt format:php build.
Re-add variable that was removed on accident by [44359]. Also run `grunt format:php` to adjust the code style.
.--This line, and those below, will be ignored--

M    Gruntfile.js
M    src/index.php
M    src/wp-admin/index.php
M    src/wp-includes/class-wp-block-parser.php


git-svn-id: https://develop.svn.wordpress.org/trunk@44360 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-24 13:44:05 +00:00
Anton Timmermans
d2d7243e80 Build tools: Allow building WordPress to src.
After the JavaScript reorganization in [43309], it was no longer possible to test WordPress from the `src` folder. That meant a build step was required to test PHP modifications. That is suboptimal as even a simple copy is slower than a web server just serving the new file.

We achieve building to `src` by setting a `WORKING_DIR` constant in the Gruntfile that is `build` by default, but changes to `src` when the `--dev` flag is present on any Grunt command. We provide sensible defaults so some commands, such as copying `version.php`, always build to `build`.

Because testing from `build` is no longer required, we change the messages present in `index.php` and `wp-admin/index.php` to be more broadly about building WordPress.

We also change the webpack config to have more straightforward behavior based on the `buildTarget` argument. It only determines the build target now and has no implicit behavior anymore. `grunt build` still works as it worked before, to make sure that the build server produces the same `wordpress.zip` we are used to.

We do all this instead of a symlink setup because symlinks don't work on every platform.

Props omarreiss, netweb, flixos90, SergeyBiryukov.
Fixes #44492.


git-svn-id: https://develop.svn.wordpress.org/trunk@44359 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-24 13:28:22 +00:00
laurelfulford
29cb0f5ad5 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.

Already committed to the 5.0 branch in [44357].

Props anevins, panchen, kjellr.
Fixes #45510.



git-svn-id: https://develop.svn.wordpress.org/trunk@44358 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-21 21:35:48 +00:00
Jonathan Desrosiers
30dcae9e2d External Libraries: zxcvbn library.
This reverts [44354] for more investigation into inconsistent password strength values that passed locally prior to commit.

Unprops omarreiss, netweb, desrosj.
See #43749.

git-svn-id: https://develop.svn.wordpress.org/trunk@44356 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-20 21:02:16 +00:00
Jonathan Desrosiers
54debcd452 Docs: Correctly specify the $page parameter of list_pages filter as a WP_Post.
Props ianbelanger.
Fixes #44398.

git-svn-id: https://develop.svn.wordpress.org/trunk@44355 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-20 20:04:00 +00:00
Jonathan Desrosiers
691f79b76b External Libraries: Update zxcvbn to 4.2.2.
Version 4.2.2 of the zxcvbn password strength library has several bug fixes. A full list of changes can be seen here: https://github.com/dropbox/zxcvbn/compare/v4.4.1...v4.4.2.

This commit also adds the library as a project dependency, making it easier to update in the future. Because the dictionary within the library contains non-PG language, a `rot13:zxcvbn` task has been added to Grunt to perform a ROT-13 cipher on the library. This task has been added to `grunt build` and `grunt build:js`.

Props omarreiss, netweb, desrosj.
Fixes #43749.

git-svn-id: https://develop.svn.wordpress.org/trunk@44354 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-20 19:45:15 +00:00
Jonathan Desrosiers
96a6ed10dc Administration: Update default fallback color for SVG icons.
Currently, when an SVG is used as a menu icon, the color is inconsistent with the other, default dashicons and the contrast ratio does not meet the minimum requirement for accessibility.

This updates the base color for the default `fresh` color scheme to ensure consistency and proper contrast.

Props swift, dschalk.
Fixes #44209.

git-svn-id: https://develop.svn.wordpress.org/trunk@44353 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-20 19:00:39 +00:00
Sergey Biryukov
14335331e6 Plugins: Colorize plugin card compatibility icons on Add Plugins screen.
Props afragen, melchoyce, daniel-koskinen.
Fixes #44619.

git-svn-id: https://develop.svn.wordpress.org/trunk@44352 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-20 18:14:42 +00:00
Sergey Biryukov
8e881be345 Users: Remove unnecessary is_null() call in get_avatar_data().
The `! is_null()` portion of the condition is unnecessary, because `isset()` checks whether a variable is set *and* is not null.

Props JPry.
Fixes #44927.

git-svn-id: https://develop.svn.wordpress.org/trunk@44351 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-20 02:48:28 +00:00
Sergey Biryukov
36f615eac6 Docs: Fix typo in wp_add_inline_script() and wp_add_inline_style() description.
Props jankimoradiya.
Fixes #45705.

git-svn-id: https://develop.svn.wordpress.org/trunk@44350 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-20 02:41:47 +00:00
Sergey Biryukov
ed9d1c8252 Toolbar: Remove extra zero-width space in wp-includes/css/admin-bar.css.
Props hailite.
Fixes #44931.

git-svn-id: https://develop.svn.wordpress.org/trunk@44349 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-20 02:31:28 +00:00
Sergey Biryukov
e7a3c38b2b Docs: Update @since tag for the WP_User_Query instance added to found_users_query filter in [43660].
Fixes #43679.

git-svn-id: https://develop.svn.wordpress.org/trunk@44348 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-20 02:23:11 +00:00
Sergey Biryukov
cd9e00cd86 Docs: Update @since tag for edit_post_{$post->post_type} hook introduced in [43535].
Props garrett-eclipse.
Fixes #34706.

git-svn-id: https://develop.svn.wordpress.org/trunk@44347 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-20 02:18:43 +00:00
Sergey Biryukov
a5e6c8a7d8 Docs: Update @deprecated tag for WP_Http::_dispatch_request(). See [42766].
Fixes #43414.

git-svn-id: https://develop.svn.wordpress.org/trunk@44346 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-20 01:58:13 +00:00
Sergey Biryukov
61ab633727 Docs: Update @since tag for the addition of query start time to logged query data.
Fixes #43315.

git-svn-id: https://develop.svn.wordpress.org/trunk@44345 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-20 00:58:53 +00:00
Sergey Biryukov
23e4da8516 Plugins: Introduce actions for individual plugin load events:
* `plugin_loaded`: Fires once a single activated plugin has loaded.
* `mu_plugin_loaded`: Fires once a single must-use plugin has loaded.
* `network_plugin_loaded`: Fires once a single network-activated plugin has loaded.

Props Rarst, schlessera.
Fixes #41346.

git-svn-id: https://develop.svn.wordpress.org/trunk@44344 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-20 00:51:30 +00:00
Sergey Biryukov
a8268fbf76 Build: Remove a stray CSS comment that Autoprefixer failed to remove in [43309].
Props netweb.
See #45080.

git-svn-id: https://develop.svn.wordpress.org/trunk@44343 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-20 00:26:52 +00:00
Jonathan Desrosiers
47584c7bc0 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.

Props davidbinda.
Fixes #45711.

git-svn-id: https://develop.svn.wordpress.org/trunk@44338 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-19 22:22:50 +00:00
Drew Jaynes
d8968636b7 Docs: Add missing @return notations to three MO method DocBlocks.
Props subrataemfluence.
Fixes #44421.


git-svn-id: https://develop.svn.wordpress.org/trunk@44336 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-19 17:03:27 +00:00
Drew Jaynes
cd55551896 Docs: Add a missing DocBlock summary and $action parameter description for wp_ajax_delete_page().
Props abhijitrakas.
Fixes #44206.


git-svn-id: https://develop.svn.wordpress.org/trunk@44335 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-19 16:59:14 +00:00
Drew Jaynes
367a6cba81 Docs: Add backtick escaping around a variable name in the DocBlock for update_post_meta().
Also adds a note to the description explaining that it can be used in place of `add_post_meta()`.

See #42505.


git-svn-id: https://develop.svn.wordpress.org/trunk@44334 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-19 16:38:51 +00:00
Drew Jaynes
931777debb Docs: Remove erroneous pipe character usage in the oembed_providers filter DocBlock.
Avoids markdown table display errors when parsed and displayed in the Code Reference.

See #42505.


git-svn-id: https://develop.svn.wordpress.org/trunk@44333 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-19 16:35:30 +00:00
Drew Jaynes
f1abdd8f74 Docs: Fix an @see reference to use the correct class name in the wp_script_add_data() DocBlock.
Props joyously.
See #42505.


git-svn-id: https://develop.svn.wordpress.org/trunk@44332 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-19 16:28:05 +00:00
Drew Jaynes
3e4a5df698 Docs: Fix a few minor inline documentation typos in a variety of files and contexts.
Props ramizmanked.
Fixes #45463.


git-svn-id: https://develop.svn.wordpress.org/trunk@44331 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-19 07:41:41 +00:00
Drew Jaynes
593bdb87fa Docs: Update an inline @see reference in the DocBlock for wpdb::prepare() to reference wpdb::esc_like() the method instead of esc_like() the nonexistent function.
Props antaltettinger.
Fixes #45204. 


git-svn-id: https://develop.svn.wordpress.org/trunk@44330 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-19 07:29:22 +00:00
Drew Jaynes
97dcdf4a94 Docs: Ensure the optional $width and $height parameters are documented as such with defaults in the add_image_size() DocBlock.
Props andrewza.
Fixes #45203.


git-svn-id: https://develop.svn.wordpress.org/trunk@44329 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-19 07:25:21 +00:00
Drew Jaynes
0e057556d3 Customizer: Remove a line of commented-out code in WP_Customize_Nav_Menus::customize_register().
Retains a more explicit future-compat version of the todo notation that used to accompany the commented-out code.

Props harsh175, dlh.
Fixes #44633.


git-svn-id: https://develop.svn.wordpress.org/trunk@44328 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-19 07:22:02 +00:00
Drew Jaynes
5e3c64657a Docs: Remove references to the now-defunct $merged_filters global from two method DocBlocks in WP_UnitTestCase.
The `$merged_filters` global was removed in [38571].

Props frank-klein.
Fixes #44496.


git-svn-id: https://develop.svn.wordpress.org/trunk@44327 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-19 07:12:46 +00:00
Drew Jaynes
a261700dab Docs: Fix the syntax for a parameter notation and separately add a missing return notation for two POMO_Reader methods.
Props subrataemfluence.
Fixes #44422.


git-svn-id: https://develop.svn.wordpress.org/trunk@44326 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-19 07:05:44 +00:00
Boone Gorges
8728999a21 Ensure that taxonomy name passed to get_term() filters is non-empty.
Since [34997], the `$taxonomy` parameter of `get_term()` has been
optional. This created cases where the `$taxonomy` parameter, used
to concatenate names for some filters and passed as a parameter to
others, would be empty. This changeset ensures that it's never
empty by falling back on the `taxonomy` of the located term.

Props dlh.
Fixes #45698.

git-svn-id: https://develop.svn.wordpress.org/trunk@44325 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-19 03:47:59 +00:00
Jonathan Desrosiers
f9cfc6fc7d Docs: Correct inline documentation versions.
[43050] updated the Cron API to return values indicating success or failure when called.

At the time, these changes were slated for 5.0, but have since been moved to the 5.1 release. This updates the inline documentation to reflect that.

Fixes #21072.

git-svn-id: https://develop.svn.wordpress.org/trunk@44324 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-19 03:40:18 +00:00
laurelfulford
aa2d16fd33 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 Twenty Eleven have also been updated.

Fixes #45681.



git-svn-id: https://develop.svn.wordpress.org/trunk@44322 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-19 02:35:03 +00:00
Boone Gorges
46bebf7dfb Update @since tag on taxonomy hooks to be introduced in 5.1.0.
The hooks were added in [43558] but pulled from the 4.9.x and 5.0.x series.

Fixes #44733.

git-svn-id: https://develop.svn.wordpress.org/trunk@44321 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-19 02:05:41 +00:00
Jeremy Felt
4042ab08ca Build: Update images following [43684].
`grunt-contrib-imagemin` was updated, which included some changes to image minification. Those changes are now applies.

Merges [43785] from the 5.0 branch to trunk.

Props netweb.
See #45080.


git-svn-id: https://develop.svn.wordpress.org/trunk@44320 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-19 00:33:59 +00:00
Sergey Biryukov
1adfde0503 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.
Merges [44287] to trunk.
Fixes #45637.

git-svn-id: https://develop.svn.wordpress.org/trunk@44319 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-19 00:26:52 +00:00
Sergey Biryukov
7f9e87054f 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.

Props dimadin.
Merges [44288] to trunk.
See #45528.

git-svn-id: https://develop.svn.wordpress.org/trunk@44318 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-19 00:17:25 +00:00
Sergey Biryukov
72405a0eba 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.
Merges [44284] to trunk.
Fixes #45668.

git-svn-id: https://develop.svn.wordpress.org/trunk@44317 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-19 00:14:00 +00:00
Sergey Biryukov
3d780791a3 I18N: Introduce load_script_translations() as a wrapper for loading and filtering translation data for JavaScript files.
* 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.
Merges [44232] to trunk.
Fixes #45425.

git-svn-id: https://develop.svn.wordpress.org/trunk@44316 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-18 23:41:35 +00:00
Jonathan Desrosiers
556e442814 Block Editor: Remove a deprecated notice being generated by the meta box compat functions.
Props pento.

Merges [44248] into trunk.

Fixes #45456.

git-svn-id: https://develop.svn.wordpress.org/trunk@44315 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-18 23:31:54 +00:00
Jonathan Desrosiers
3c836e3181 Script Loader: Pass the suffix to package style handles to ensure correct file names for minified RTL stylesheets.
Props ocean90.

Merges [44231] into trunk.

See #45547.

git-svn-id: https://develop.svn.wordpress.org/trunk@44314 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-18 23:24:07 +00:00