Commit Graph

39165 Commits

Author SHA1 Message Date
Andrea Fercia cf8c68fe38 Accessibility: Remove unnecessary fieldset and legend elements from the User Profile page.
Also fixes a CSS margin issue in the mobile view.

Props punit5658.
Fixes #46093.


git-svn-id: https://develop.svn.wordpress.org/trunk@44756 602fd350-edb4-49c9-b593-d223f7449a82
2019-02-20 19:02:12 +00:00
Boone Gorges bd3ee1781f Taxonomy: Remove `@ignore` annotation on `_get_term_hierarchy()`.
Originally introduced in [32453], the `@ignore` annotation caused the
function to be improperly ignored by the Code Reference parser.

The `@access private` annotation is the correct way to mark a
function for internal use only.

Props coffee2code.
Fixes #45997.

git-svn-id: https://develop.svn.wordpress.org/trunk@44755 602fd350-edb4-49c9-b593-d223f7449a82
2019-02-19 20:23:11 +00:00
Gary Pendergast 9179db7c66 Admin: Update the About page design to match mockups.
This commit also moves the images to s.w.org, removes the old "Gutenberg has been deactivated" warning, as well as removing some old JS from About pages of years gone past.

Props melchoyce, ryelle, paaljoachim, karmatosed, pento.
Fixes #46161.



git-svn-id: https://develop.svn.wordpress.org/trunk@44749 602fd350-edb4-49c9-b593-d223f7449a82
2019-02-19 01:56:43 +00:00
Peter Wilson fc2a8f0e11 Comments: Fix backward compatibility regressions in comment reply JavaScript.
Adds a `MutationObserver` to `comment-reply.js` to allow for lazy-loaded comments to continue working without the need to re-initialize the comment form.

Props Pento.
Fixes #46260.



git-svn-id: https://develop.svn.wordpress.org/trunk@44748 602fd350-edb4-49c9-b593-d223f7449a82
2019-02-18 04:26:09 +00:00
pento a774b5a6a7 Accessibility: Fix a regression in the old media modal pagination links.
[43019] improved the table pagination link styling, but introduced a regression in the old media dialog.

Props afercia, joneiseman.
Fixes #41858.



git-svn-id: https://develop.svn.wordpress.org/trunk@44747 602fd350-edb4-49c9-b593-d223f7449a82
2019-02-17 22:23:02 +00:00
Peter Wilson 6edf515661 Trunk is now 5.2-alpha.
Update package.json missed in [44742].



git-svn-id: https://develop.svn.wordpress.org/trunk@44746 602fd350-edb4-49c9-b593-d223f7449a82
2019-02-14 00:53:41 +00:00
Peter Wilson 41e264fe55 Build: Fix formatting issues introduced in [44740].
See #46218.



git-svn-id: https://develop.svn.wordpress.org/trunk@44744 602fd350-edb4-49c9-b593-d223f7449a82
2019-02-14 00:41:15 +00:00
Peter Wilson d6e047346e Trunk is now 5.2-alpha.
git-svn-id: https://develop.svn.wordpress.org/trunk@44742 602fd350-edb4-49c9-b593-d223f7449a82
2019-02-14 00:12:13 +00:00
Peter Wilson 3ec3100195 Build: Remove source map from `jquery.form.min.js`.
Minimize jquery.form.js as part of build process to remove the source map reference. 

Modify source map tests to include all JavaScript files rather than testing Backbone and jQuery only.

Props pento.
Fixes #46218.



git-svn-id: https://develop.svn.wordpress.org/trunk@44740 602fd350-edb4-49c9-b593-d223f7449a82
2019-02-14 00:06:39 +00:00
laurelfulford e7e42efe18 Twenty Nineteen: Update the quote block styles.
Update the theme's quote block border styles, so they will work better with the updated styles for the quote block, coming in Gutenberg 5.2.

Props @kjellr.
Fixes #46239.



git-svn-id: https://develop.svn.wordpress.org/trunk@44739 602fd350-edb4-49c9-b593-d223f7449a82
2019-02-13 18:39:59 +00:00
Dominik Schilling (ocean90) 41d644ca52 Upgrade/Install: Update character count for the `$table_prefix` config line after [43650] and [42343].
Fixes #46220.

git-svn-id: https://develop.svn.wordpress.org/trunk@44738 602fd350-edb4-49c9-b593-d223f7449a82
2019-02-12 16:51:12 +00:00
Gary Pendergast 83275aab4c Post WordPress 5.1 RC1 version bump.
git-svn-id: https://develop.svn.wordpress.org/trunk@44737 602fd350-edb4-49c9-b593-d223f7449a82
2019-02-08 02:22:08 +00:00
Gary Pendergast 508846a721 WordPress 5.1 RC1.
git-svn-id: https://develop.svn.wordpress.org/trunk@44736 602fd350-edb4-49c9-b593-d223f7449a82
2019-02-08 02:13:42 +00:00
Peter Wilson 4b1885c836 Admin: Improve logic of PHP version check on about page.
Props noisysocks, peterwilsoncc.
See #46161.



git-svn-id: https://develop.svn.wordpress.org/trunk@44735 602fd350-edb4-49c9-b593-d223f7449a82
2019-02-08 01:52:17 +00:00
Gary Pendergast 985958f870 Admin: Fix code formatting issues in the About page.
See #46161.



git-svn-id: https://develop.svn.wordpress.org/trunk@44734 602fd350-edb4-49c9-b593-d223f7449a82
2019-02-08 01:27:39 +00:00
Gary Pendergast ab1bf7b3da Admin: Initial version of the WordPress 5.1 About page.
This includes the final strings, the design will continue to iterate.

Props mcsf, noisysocks, melchoyce, azaozz, afragen, JeffPaul, peterwilsoncc, andreamiddleton.
See #46161.



git-svn-id: https://develop.svn.wordpress.org/trunk@44733 602fd350-edb4-49c9-b593-d223f7449a82
2019-02-08 01:24:57 +00:00
Peter Wilson ef74cf5c56 Install/upgrade: Remove Gutenberg plugin deactivation from upgrade process.
The Gutenberg plugin will not be deactivated on sites upgrading to WordPress 5.1. This deprecates the `upgrade_500_was_gutenberg_active` option and the `upgrade_500()` function as they are no longer required.

Props peterwilsoncc.
Fixes #46029.



git-svn-id: https://develop.svn.wordpress.org/trunk@44732 602fd350-edb4-49c9-b593-d223f7449a82
2019-02-08 00:15:54 +00:00
Gary Pendergast d2f41560d3 Formatting: Loosen the type checking in `_sanitize_text_fields()`.
[44618] added strict type checking to `_sanitize_text_fields()`, which has caused some compat issues with plugins.

We can loosen the type checking to only reject objects and arrays, and cast other types to string.

Props Nick_theGeek, pento.
Fixes #41450.



git-svn-id: https://develop.svn.wordpress.org/trunk@44731 602fd350-edb4-49c9-b593-d223f7449a82
2019-02-07 23:34:22 +00:00
laurelfulford 2a49b5c469 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.1.

The POT files for Twenty Eleven and Twenty Ten have also been updated.

Fixes #46070.



git-svn-id: https://develop.svn.wordpress.org/trunk@44730 602fd350-edb4-49c9-b593-d223f7449a82
2019-02-07 23:22:04 +00:00
Riad Benguella 98bee9bf08 Block Editor: Update WordPress Packages to solve PHP 5.2.2 parser incompatibility.
Updated:

 - @wordpress/block-library@2.2.16
 - @wordpress/block-serialization-default-parser@2.0.5
 - @wordpress/blocks@6.0.7
 - @wordpress/edit-post@3.1.11
 - @wordpress/editor@9.0.11
 - @wordpress/format-library@1.2.14

Props pento.
Fixes #46200.


git-svn-id: https://develop.svn.wordpress.org/trunk@44729 602fd350-edb4-49c9-b593-d223f7449a82
2019-02-07 09:01:10 +00:00
Gary Pendergast 107453024f Build: Update `package.json` dependencies to match Gutenberg.
Props wpscholar, azaozz, gziolo.
Fixes #46039.



git-svn-id: https://develop.svn.wordpress.org/trunk@44728 602fd350-edb4-49c9-b593-d223f7449a82
2019-02-07 06:26:48 +00:00
Gary Pendergast 6b2c62eee2 Multisite: After creating a new blog, ensure the blog cache is correctly cleaned up.
Props david.binda, spacedmonkey.
Fixes #46125.



git-svn-id: https://develop.svn.wordpress.org/trunk@44727 602fd350-edb4-49c9-b593-d223f7449a82
2019-02-07 06:03:32 +00:00
Gary Pendergast 17a022e3d0 Admin: Re-add some validation from [44048] that was accidentally removed in [44165].
Props david.binda.
See #45037.



git-svn-id: https://develop.svn.wordpress.org/trunk@44726 602fd350-edb4-49c9-b593-d223f7449a82
2019-02-07 04:11:23 +00:00
Jonathan Desrosiers 666d713c1b Themes: Revert returning the value of `locate_template()` in functions that call it.
Because the names of the `get_header()`, `get_footer()`, `get_sidebar()`, and `get_template_part()` functions indicate that a value is returned, some plugins and themes already have `echo get_template_part()` in their codebase. Adding a return value to these functions using the approach in [44678] will cause the two unintended side effects of unexpected content being sent to the browser, and accidental path disclosure.

Reverts [44678].

Props davidbinda.
See #40969.

git-svn-id: https://develop.svn.wordpress.org/trunk@44725 602fd350-edb4-49c9-b593-d223f7449a82
2019-02-06 18:36:49 +00:00
Andrew Ozz 5f38ce3d98 TinyMCE: fix color of highlighted drop-down menu items in Classic Block.
Fixes #46164.

git-svn-id: https://develop.svn.wordpress.org/trunk@44724 602fd350-edb4-49c9-b593-d223f7449a82
2019-02-05 17:46:25 +00:00
Sergey Biryukov 3e19129dc9 Build/Test Tools: Display a message about currently supported PHPUnit branch to avoid fatal errors on later versions.
See #46149.

git-svn-id: https://develop.svn.wordpress.org/trunk@44723 602fd350-edb4-49c9-b593-d223f7449a82
2019-02-03 22:40:56 +00:00
peterwilsoncc 56f305790a Administration: Save column visibility on small screens.
Modifies the jQuery selector for determining hidden columns to ensure they are detected when the expanded columns details are closed.

Adds high-specificity selectors specifically for setting screen options in the comments and plugins lists.

Props afercia.
Fixes #46005. 



git-svn-id: https://develop.svn.wordpress.org/trunk@44722 602fd350-edb4-49c9-b593-d223f7449a82
2019-02-01 02:13:02 +00:00
Gary Pendergast ffead81f22 Post WordPress 5.1 Beta 3 version bump.
git-svn-id: https://develop.svn.wordpress.org/trunk@44721 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-31 03:31:59 +00:00
Gary Pendergast 819b2d3caa WordPress 5.1 Beta 3.
git-svn-id: https://develop.svn.wordpress.org/trunk@44720 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-31 03:16:06 +00:00
Sergey Biryukov 4b8e33fbee Build/Test Tools: Move `WP_UnitTestCase_Base::assertPostConditions()` to a more appropriate place.
See #43218.

git-svn-id: https://develop.svn.wordpress.org/trunk@44719 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-30 14:30:42 +00:00
Andrew Ozz 1f809d9ff1 TinyMCE: fix external references in `wpview` and `wpemoji` plugins in the Classic Block instance when running from `/build`.
Fixes #46147.

git-svn-id: https://develop.svn.wordpress.org/trunk@44718 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-30 14:11:01 +00:00
Felix Arntz 0612ea2d38 Bootstrap/Load: Revert fatal error recovery mechanism from 5.1 to polish for 5.2.
Due to the high number of follow-up tickets and associated security concerns, it was decided to reschedule the fatal error recovery feature for WordPress 5.2, in order to address these issues properly. The feature will continue to be developed, with iterations being merged into trunk early in the 5.2 release cycle.

Fixes #46141. See #44458, #45932, #45940, #46038, #46047, #46068.


git-svn-id: https://develop.svn.wordpress.org/trunk@44717 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-30 11:00:30 +00:00
Andrew Ozz a95cec1fe8 TinyMCE: update alternative icon fonts for older browsers after [44713].
See #46094.

git-svn-id: https://develop.svn.wordpress.org/trunk@44716 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-30 10:06:47 +00:00
Sergey Biryukov b9b66b159b Build/Test Tools: Simplify `WP_PHPUnit_Util_Getopt` and update documentation.
Introduced in [918/tests] and updated in [26871], the class is there to make sure that known bugs are not skipped when `phpunit` is called with a `--group` that corresponds to an `@ticket` annotation (such as `phpunit --group 12345`).

Enforcing recognized arguments or correctly formed arguments is not the concern here, so reusing `PHPUnit_Util_Getopt::parseLongOption()` was superfluous.

See #43218.

git-svn-id: https://develop.svn.wordpress.org/trunk@44715 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-30 00:53:52 +00:00
Peter Wilson 99450a446d Customize: Remove `wp_targeted_link_rel` pre-save filter from change-sets.
The pre-save filters added to links in [43732] could invalidate JSON data when saving Customizer change-sets.

This removes the filters when saving and publishing change-sets.

Props peterwilsoncc, nikeo for testing.
See #45292.



git-svn-id: https://develop.svn.wordpress.org/trunk@44714 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-29 21:28:57 +00:00
Ella Van Durpe ca96ccc55c TinyMCE: Update to 4.9.2
https://github.com/tinymce/tinymce-dist/compare/4.8.0...4.9.2

Fixes #46094.



git-svn-id: https://develop.svn.wordpress.org/trunk@44713 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-29 20:18:33 +00:00
Andrea Fercia dce18c1d04 Comments: Restore a removed fieldset legend after [44466].
In the Edit Comment page:
- moves the "Author" `h2` heading out of the form fieldset
- removes an unnecessary `<span>` element
- adds a visually hidden legend element to the fieldset
- uses an existing string "Comment Author"

Fixes #43586.


git-svn-id: https://develop.svn.wordpress.org/trunk@44712 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-29 19:09:22 +00:00
Riad Benguella 23c0dd4eb7 Block Editor: Update WordPress Packages to the latest versions.
Updated Packages:

 - @wordpress/annotations@1.0.8
 - @wordpress/block-library@2.2.15
 - @wordpress/components@7.0.8
 - @wordpress/edit-post@3.1.10
 - @wordpress/editor@9.0.10
 - @wordpress/format-library@1.2.13
 - @wordpress/list-reusable-blocks@1.1.21
 - @wordpress/nux@3.0.9
 - @wordpress/rich-text@3.0.7

Fixes list block indentation and Crowdsignal embed block.

Props iseulde.
Fixes #46137.



git-svn-id: https://develop.svn.wordpress.org/trunk@44711 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-29 18:22:45 +00:00
Gary Pendergast 9efcfbbf3f Tests: Fix the tests for the `c` and `r` formats in `date_i18n()`.
To test the `date_i18n()` output correctly, the tests added in [43434] need to set a non-UTC timezone.

Props Rarst.
Fixes #20973.



git-svn-id: https://develop.svn.wordpress.org/trunk@44710 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-29 01:19:30 +00:00
Dominik Schilling (ocean90) 7497d51b14 Script Loader: Add missing semicolon.
Fixes #46131.

git-svn-id: https://develop.svn.wordpress.org/trunk@44709 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-28 21:58:40 +00:00
Dominik Schilling (ocean90) 6a680c8c03 Privacy: Use `label_count` property of post status for request counts in the list table views.
See #44952.
Fixes #46112.

git-svn-id: https://develop.svn.wordpress.org/trunk@44708 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-28 21:54:48 +00:00
Sergey Biryukov 6e80f7cebf Build/Test Tools: Don't throw an exception for unrecognized options in `WP_PHPUnit_Util_Getopt::parseLongOption()`.
The method is only used for two known options: `group` and `exclude-group`, others should be passed to PHPUnit.

Props johnbillion.
See #43218.

git-svn-id: https://develop.svn.wordpress.org/trunk@44707 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-28 18:49:22 +00:00
Felix Arntz 4254a35ad8 Bootstrap/Load: Fix notice when theme directories are not populated yet.
When a fatal error occurs outside of a regular plugin in a stage where theme directories are not set up yet (for example in a MU plugin), this would previously trigger a notice.

Props johnbillion.
Fixes #46068. See #44458.


git-svn-id: https://develop.svn.wordpress.org/trunk@44706 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-28 17:42:55 +00:00
Sergey Biryukov ad71116f38 Coding Standards: Replace spaced indentation sections of `phpunit.xml.dist`, `multisite.xml`, and `build.xml` with tabs.
Props netweb, desrosj.
See #43218.

git-svn-id: https://develop.svn.wordpress.org/trunk@44705 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-28 17:20:06 +00:00
Sergey Biryukov e4813189c3 Build/Test Tools: Reorder `<file>` and `<exclude>` rules in `multisite.xml` to avoid warnings in PHPUnit 7.2+.
Missed in [44702].

See #43218.

git-svn-id: https://develop.svn.wordpress.org/trunk@44704 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-28 17:19:14 +00:00
Sergey Biryukov 48070a45a9 Build/Test Tools: Correct `WP_Test_REST_Schema_Sanitization::test_type_string()` to check for both `1.1` float and `'1.10'` string explicitly.
Previously, the test only passed due to a bug in PHPUnit 7.1.x and older versions.

Fixes #43218. See #38586.

git-svn-id: https://develop.svn.wordpress.org/trunk@44703 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-28 16:53:14 +00:00
Sergey Biryukov 6d8637097a Build/Test Tools: Reorder `<file>` and `<exclude>` rules in `phpunit.xml.dist` to avoid warnings in PHPUnit 7.2+.
Remove deprecated `logIncompleteSkipped` option that does not exist in PHPUnit 6.0+.

See #43218.

git-svn-id: https://develop.svn.wordpress.org/trunk@44702 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-28 15:54:47 +00:00
Sergey Biryukov 001c6498e8 Build/Test Tools: Add support for PHPUnit 7.x.
* Create an abstract `WP_UnitTestCase_Base` class to share between PHPUnit 7.x and older versions.
* Add a speed-trap loader to determine which `SpeedTrapListener` class needs to be loaded for the current PHPUnit version.
* Remove unnecessary `PHPUnit\Util\Test` and `PHPUnit_Util_Getopt` inheritances.
* Update Travis CI config to use PHPUnit 7.x for PHP 7.1, 7.2, and nightly PHP versions.

Props jipmoors, netweb, desrosj, ayeshrajans, soulseekah, SergeyBiryukov.
See #43218.

git-svn-id: https://develop.svn.wordpress.org/trunk@44701 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-28 14:10:24 +00:00
Dominik Schilling (ocean90) 639f66aade Install/Upgrade: After [44451], update translator comments to include the new placeholder.
See #46111.
Fixes #45574.

git-svn-id: https://develop.svn.wordpress.org/trunk@44700 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-27 14:45:42 +00:00
Dominik Schilling (ocean90) fd5f5ae82e TinyMCE Classic Block: Remove unused variable.
See #46071.

git-svn-id: https://develop.svn.wordpress.org/trunk@44699 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-26 12:58:11 +00:00