Commit Graph

36019 Commits

Author SHA1 Message Date
Dion Hulse
5fa5e22427 Customize: Trim whitespace for URLs supplied for external_header_video to prevent esc_url_raw() from making them invalid.
Props tyxla.
See #38172.
Merges [39560] to the 4.7 branch.
Fixes #39125.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39573 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-12 02:05:22 +00:00
Dion Hulse
2ee02541d5 Customize: Fix ability to shift-click on placeholder/pre-saved nav menu items in preview to focus on corresponding control.
Props westonruter.
Merges [39562] to the 4.7 branch.
Fixes #39102.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39572 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-12 02:03:22 +00:00
Dion Hulse
9431b1e310 Customize: Use selected user language for edit shortcuts in preview instead of site language.
Props ocean90.
Merges [39545] to the 4.7 branch.
Fixes #39009.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39571 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-12 01:58:21 +00:00
Dion Hulse
ce5e63c224 Customize: Fix inability to delete nav menus by preventing preview filters from being added during customize_save admin ajax request.
Also prevent setting `nav_menu_locations[...]` values to `NaN` which gets sent as `null`.

Props westonruter.
See #30937, [38810].
Merges [39558] to the 4.7 branch.
Fixes #39103.



git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39570 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-12 01:56:53 +00:00
Dion Hulse
1a84a32ffd Customize: Prevent scrolling custom_css textarea to top when pressing tab.
Props tyxla, sstoqnov for testing, celloexpressions for testing.
See #38667.
Merges [39557] to the 4.7 branch.
Fixes #39134.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39569 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-12 01:55:02 +00:00
Dion Hulse
cef6896bae Customize: Use esc_url_raw() instead of wp_json_encode() to eliminate extraneous slashes when outputting background image URL in CSS url().
Props tyxla, westonruter.
See #22058.
Merges [39546] to the 4.7 branch.
Fixes #39145.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39568 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-12 01:45:58 +00:00
Dion Hulse
620d169b35 Customize: Prevent single quotes (apostrophes) in custom_css values from unexpectedly causing false positives for unbalanced character validation errors.
Props westonruter.
See #39218, #35395.
Merges [39559] to the 4.7 branch.
Fixes #39198.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39567 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-12 01:44:26 +00:00
Dion Hulse
0087500d9c REST API: Treat any falsy value as false in 'rest_allow_anonymous_comments'.
Extend the check in 'rest_allow_anonymous_comments' to accept any falsy value (previously this was an explicit check for `false`).

One possible failure case is that a plugin developer forgets to include a return value for some code path in their callback for this filter, leading to a value of null which is currently treated like `true`.

Props joehoyle, jnylen0.
Merges [39487] to the 4.7 branch.
Fixes #39010.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39566 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-12 01:39:13 +00:00
Helen Hou-Sandi
eca76c5789 WordPress 4.7 "Vaughan".
It's very sassy.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39524 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-06 18:38:54 +00:00
Helen Hou-Sandi
c882d12068 About page: Update video and REST API reference URLs.
props ocean90, kadamwhite, coffee2code.
see #38616 for the 4.7 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39523 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-06 18:23:50 +00:00
Helen Hou-Sandi
db37244980 Remove 4.7 cruft from $_old_files.
fixes #39113.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39521 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-06 17:17:37 +00:00
Helen Hou-Sandi
4f78d35064 Post-RC3 bump.
git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39519 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-06 07:22:19 +00:00
Helen Hou-Sandi
9ec1bf21ac About page: Bump image versions because CDN caching.
props pento.
see #38616 for the 4.7 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39518 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-06 07:12:55 +00:00
Helen Hou-Sandi
b23d5f2a6b WordPress 4.7 RC3.
git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39516 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-06 06:58:29 +00:00
Joe McGill
e2633109b1 About page: Resposive images and CDN media URLs.
This adds `srcset` and `sizes` to the about page images, including
art direction, via `<picture>` for the lead Twenty Seventeen image.

This also replaces URLs for all images and feature videos to their
CDN locations on s.w.org.

Props helen, pento, joemcgill.
Fixes #38616 for 4.7.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39515 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-06 06:57:25 +00:00
Helen Hou-Sandi
f872b5557e About page: Imagery and beautification.
Still to come: responsive images, optimized videos, and CDN URLs.

merges [39512] to the 4.7 branch.
props melchoyce, helen, ramiabraham.
see #38616.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39513 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-06 04:01:29 +00:00
Weston Ruter
a7bed1e872 Customize: Prevent infinite full refresh from occurring when selective refresh falls back for a nav menu that has items excluded from rendering via filtering.
Merges [39510] onto 4.7 branch.
Fixes #38612 for 4.7.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39511 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-06 02:52:14 +00:00
Dominik Schilling (ocean90)
ea175aae36 Comments: Merge a similar string between comments.php, XML-RPC and the REST API comments controller.
Merge of [39508] to the 4.7 branch.

Props ramiy.
See #39013.

git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39509 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-05 20:17:06 +00:00
Weston Ruter
cee7b15ead Customize: Defer populating post_name for auto-draft posts in customized state until posts are published.
The ultimate `post_name` is stored in postmeta until the post is published. The `get_page_by_path()` function does not exclude `auto-draft` posts. Revert changes to `wp_unique_post_slug()` from [39411] which excluded `auto-draft` posts.

Props westonruter, dlh for testing, helen for testing.
Merges [39506] onto 4.7 branch.
Fixes #39078 for 4.7.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39507 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-05 19:38:16 +00:00
Weston Ruter
8886763a6d Customize: Ensure changeset_uuid query param is removed from the customize.php window's location once a changeset has been published (committed) with starter content.
Props westonruter, dlh for testing.
Merges [39504] onto 4.7 branch.
Fixes #39081 for 4.7.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39505 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-05 16:56:50 +00:00
Weston Ruter
49cb84ba0d Customize: Prevent posts/pages imported via starter content from being dropped when adding post/page stubs via nav menus and the dropdown-pages control.
Props westonruter, dlh for testing.
Merges [39502] onto 4.7 branch.
Fixes #39071 for 4.7.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39503 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-05 16:48:16 +00:00
Andrew Ozz
9d4bdea5c3 TinyMCE: fix the styling of notices generated by the editor UI.
Props: mor10, karmatosed, azaozz.
Fixes #38917 for 4.7.

git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39501 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-05 15:10:01 +00:00
Weston Ruter
fee8b61eb1 Customize: Ensure textarea for Custom CSS displays as code (in LTR) when an RTL language is active.
Merges [39499] onto 4.7 branch.
Fixes #39085 for 4.7.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39500 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-05 13:59:49 +00:00
Dominik Schilling (ocean90)
6facdb3a46 Default Themes: Update version numbers and readme files for 4.7 release
Bump version numbers and update readme files for themes with changes. Also updates description for Twenty Seventeen and removes version number for HTML5 shiv for easier updates in the future.

Merge of [39496] to the 4.7 branch.

Props davidakennedy.
See #38858.

git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39498 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-05 09:35:15 +00:00
Dominik Schilling (ocean90)
c9df76e2ac Twenty Seventeen: Fix CSS specificity problem with CSS feature query for object-fit
Previously, the theme's CSS feature query for `object-fit` overrode styles it shouldn't have on interior pages.

This moves the feature query farther down in the stylesheet so it takes precedence in the cascade in supported browsers, and applies the appropriate selector for the interior pages. In browsers that don't support feature queries or `object-fit`, the fallback styles are still applied. The problem was that the rules had the same specificity, so this way, the cascade takes over properly. The transforms and position changes for fallbacks are still needed in browsers that don't support `object-fit` and feature queries.

Merge of [39495] to the 4.7 branch.

Props peterwilsoncc, davidakennedy.
See #39073.

git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39497 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-05 09:29:41 +00:00
Rachel Baker
ac7222bfe9 Comments: Merge similar strings between comments.php and the REST API comments controller.
Merges [39490] to the 4.7 branch.

Props ramiy.
Fixes #39014 for 4.7.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39491 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-04 20:36:02 +00:00
Rachel Baker
ce0fe0838a REST API: Merge similar date strings in the revisions and comments controllers.
Merges [39488] to the 4.7 branch.

Props ramiy.
Fixes #39016 for 4.7.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39489 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-04 20:26:21 +00:00
Helen Hou-Sandi
8397b5023f Twenty Seventeen: Improve display of video header and header image in modern browsers
The theme uses a hack to help the video header and header image fill the available space. This centers around `max-width: 1000%;`. It causes visual issues (zooming of the header video or image) for all users though.

This fixes that with CSS Features Queries. The hack remains for browsers that don't support Feature Queries  and `object-fit`. Browsers that do support both get a better experience with a more reliable styling of the video and image header container.

Props laurelfulford, peterwilsoncc.

Fixes #39035 for the 4.7 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39485 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-04 19:23:20 +00:00
Helen Hou-Sandi
e27a7eb76e Twenty Seventeen: Add specific font stack for Thai language
Improves legability and design for users viewing the theme with Thai language.

Props imnok, netweb, melchoyce.

Fixes #38937 for the 4.7 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39484 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-04 19:22:38 +00:00
Andrew Nacin
afca2c6cf0 Build/Test Tools: Specify exact node version in package.json.
Enforce it in the tests.

Merges [39478] to the 4.7 branch.

see #35105, #38657.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39480 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-04 17:37:38 +00:00
Weston Ruter
98b7307e75 Customize: Ensure a custom_css post insertion gets an initial post revision.
Merges [39477] onto 4.7 branch.
Props georgestephanis, westonruter.
Fixes #39032 for 4.7.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39479 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-04 17:31:28 +00:00
Helen Hou-Sandi
4a5828fc8f Docs: Update an @since as there will not be a 4.6.2 before 4.7.
props boonebgorges.
fixes #37291 for the 4.7 branch. see [38776].


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39476 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-04 17:16:23 +00:00
Helen Hou-Sandi
ea4e965942 Post-RC2 bump.
git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39474 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-03 06:16:51 +00:00
Helen Hou-Sandi
baa0da9eb8 WordPress 4.7 RC2.
git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39473 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-03 06:04:21 +00:00
Andrew Nacin
3bcc86a908 REST API: Register the admin_email setting in single site only.
Merges [39470] and [39471] to the 4.7 branch.

fixes #38990.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39472 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-03 05:41:52 +00:00
Gary Pendergast
3b3a0f0a68 REST API: Site URL setting should not be present on multisite installations.
The `siteurl` setting is registered and made available to the REST API. On a multisite installation, this setting is not configurable from the General Settings screen, but due to the above it is configurable from the REST API.

Merge of [39468] to the 4.7 branch.

Props peterwilsoncc.
Fixes #39005.



git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39469 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-03 05:17:26 +00:00
Helen Hou-Sandi
313cb29f82 Custom CSS: Change the help link to something better for users.
fixes #39015 for the 4.7 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39467 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-03 05:11:21 +00:00
Gary Pendergast
e67b742256 REST API: Capability check for editing a single term should use the singular form.
As an extra level of sanity checking, the term ID should be cast as an int in `map_meta_cap()`.

Merge of [39464] to the 4.7 branch.

Props johnbillion, nacin, dd32, pento.
See #35614.
Fixes #39012.



git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39465 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-03 05:08:33 +00:00
Gary Pendergast
0970fc22e1 Docs: Add missing REST API-related args to register_post_type() and register_taxonomy().
These functions now accept the `show_in_rest`, `rest_base`, and `rest_controller_class` args.

Merges [39462] to the 4.7 branch.

Props ketuchetan, rahulsprajapati.
Fixes #39023.



git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39463 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-03 04:49:37 +00:00
Gary Pendergast
aed692cddd REST API: Use the correct error message when editing a single term.
Merges [39460] to the 4.7 branch.

Props ramiy, johnbillion.
Fixes #39017.



git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39461 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-03 04:43:21 +00:00
Gary Pendergast
3904937cd6 Load: Re-add class-wp-upgrader-skins.php, class-feed.php, locale.php, and session.php.
Several files were removed during 4.7 that can be loaded externally, so we need to keep them, though their use is now deprecated.

Merges [39449], [39450], [39453], [39455], and [39456] to the 4.7 branch.
Fixes #39027.



git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39459 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-03 04:29:44 +00:00
Gary Pendergast
378d9f8f7c REST API: Merge similar strings in a comments endpoint parameter description.
Merge of [39457] to the 4.7 branch.

Props ramiy.
Fixes #39036.



git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39458 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-03 04:23:17 +00:00
Dion Hulse
ce83066d30 Revert [38677] from the 4.7 branch.
This avoids fatal errors caused with recursive calling of term functions within the `get_terms` filter.

See #21760.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39454 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-03 04:04:05 +00:00
Helen Hou-Sandi
17f7611df2 Twenty Seventeen: Improve ARIA for the nav menu.
The `onResizeARIA()` function was not very useful and buggy.

props afercia.
fixes #39029, #39026 for the 4.7 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39452 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-03 03:43:17 +00:00
Helen Hou-Sandi
87e16e3ce3 Twenty Seventeen: Ensure header text color updates in Customizer preview when cleared
Checks if the text color has been cleared and removes the `style` block if it has been. Uses color styles in theme stylesheet.

Props sstoqnov, davidakennedy.

Fixes #38993 for the 4.7 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39448 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-02 23:02:15 +00:00
Rachel Baker
75ce33e358 REST API: Fix bug where comment author and author email could be an empty string when creating a comment.
If the `require_name_email` option is true, creating a comment with an empty string for the author name or email should not be accepted.  Both values can be an empty string on update.

Merges [39444] into the 4.7 branch.
Props flixos90, hnle, dd32, rachelbaker, jnylen0, ChopinBach, joehoyle, pento.

Fixes #38971 for 4.7.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39446 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-02 22:45:06 +00:00
Helen Hou-Sandi
bcc8cdf112 About page: Add strings for 4.7 and make available for translation.
It doesn't look very pretty; design changes still to come.

merges [39420], [39432], [39433], [39442], [39443] to the 4.7 branch.

props helen, michaelarestad, samuelsidler, jbpaul17, jorbin, nacin, melchoyce, ocean90, ramiy.
see #38616.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39445 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-02 22:43:52 +00:00
Rachel Baker
334635ee5e REST API: Fix handling of some orderby parameters for the Posts controller.
- 'orderby' => 'include' requires an array of post_ids via the include collection param.
- 'orderby' => 'id' and 'orderby' => 'slug' need map the correct WP_Query equivalents. 

Merges [39440] to the 4.7 branch.

Props flixos90, hnle, dd32, rachelbaker, joehoyle, pento.
Fixes #38971 for 4.7.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39441 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-02 22:20:27 +00:00
Jeremy Felt
fde4185ae4 REST API: Disable DELETE requests for users in multisite.
In wp-admin, users are removed from individual sites rather than deleted. A user can only be deleted from the network admin.
Until support for a PUT request that removes a user's site and content associations is available, DELETE requests are disabled to avoid possible issues with lost content.

Merges [34938] onto 4.7 branch.

Props jnylen0, rachelbaker.
Fixes #38962 for 4.7.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39439 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-02 22:15:32 +00:00
Rachel Baker
8fe31dc36a REST API: Return a WP_Error if meta property is not an array.
Fixes bug where a PHP Warning is currently thrown if a client sends a request where `meta` is not an array value.

Merges [39436] onto 4.7 branch.

Props timmydcrawford, jnylen0, rachelbaker, pento.
Fixes #38989 for 4.7.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39437 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-02 22:04:06 +00:00