Helen Hou-Sandí
234ae480ee
Autoprefixer for [39249].
...
Fixes one errant value and re-aligns some existing prefixed property values so they don't get doubled when precommit/postcss is run again in the future.
props davidakennedy.
see #29158 .
Built from https://develop.svn.wordpress.org/trunk@39301
git-svn-id: http://core.svn.wordpress.org/trunk@39241 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-18 21:06:30 +00:00
David A. Kennedy
b08d9893f6
Twenty Seventeen: Make all Codex links in DocBlocks use HTTPS
...
Props johnpgreen.
Fixes #38854 .
Built from https://develop.svn.wordpress.org/trunk@39300
git-svn-id: http://core.svn.wordpress.org/trunk@39240 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-18 20:49:31 +00:00
Ella Iseulde Van Dorpe
a003a7f1bb
TinyMCE: fix automatic scroll on page load.
...
Set focus when new content is loaded in the editor, but not when it's the initial load.
Fixes #38511 .
Built from https://develop.svn.wordpress.org/trunk@39299
git-svn-id: http://core.svn.wordpress.org/trunk@39239 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-18 20:38:31 +00:00
Joe Hoyle
0c14c16ced
REST API: Clarify parameters when used in error strings.
...
Properties of objects should not be translated, and therefore are pulled out of the translation strings.
Props ocean90, ramiy, danielbachhuber.
Fixes #38822 .
Built from https://develop.svn.wordpress.org/trunk@39298
git-svn-id: http://core.svn.wordpress.org/trunk@39238 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-18 20:20:32 +00:00
David A. Kennedy
aaf3fe71dd
Twenty Seventeen: Adds background-attachment: fixed;
to devices that should support it
...
iOS disables this feature under the hood, but it also distorts the images – unlike other mobile devices that don't support it. So this adds a check for both `background-attachment: fixed` support or whether it’s an iOS device - passing it adds the class `background-fixed` which is used to add the proper styles.
It also lowers the media query so the parallax-like style is present on a wider range of screens since this bug can be better targeted and avoided. In this way, screens that aren't the offending devices aren't punished merely based on screen size.
Props joemcgill, laurelfulford, helen.
Fixes #38395 .
Built from https://develop.svn.wordpress.org/trunk@39297
git-svn-id: http://core.svn.wordpress.org/trunk@39237 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-18 20:11:30 +00:00
Joe Hoyle
a38b863ae4
REST API: Change “ipv4” types to “ip” to support ipv6.
...
Stop presuming IP address are IPv4, instead make the type “ip” to be agnostic of IP version. This fixes requests with ipv6 addresses for comments in core.
Props dd32, schlessera, danielbachhuber.
Fixes #38818 .
Built from https://develop.svn.wordpress.org/trunk@39296
git-svn-id: http://core.svn.wordpress.org/trunk@39236 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-18 19:33:31 +00:00
Joe Hoyle
81c5b03029
REST API: Check read permissions on posts when viewing comments.
...
With a few tests for getting / creating comments to reflect core behaviour.
Props timmyc.
Built from https://develop.svn.wordpress.org/trunk@39295
git-svn-id: http://core.svn.wordpress.org/trunk@39235 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-18 19:07:30 +00:00
Helen Hou-Sandí
bbdf00c95c
Twenty Seventeen: Rename the starter content menus to match the menu area names.
...
Saves strings and is more descriptive.
props davidakennedy.
see #38615 .
Built from https://develop.svn.wordpress.org/trunk@39294
git-svn-id: http://core.svn.wordpress.org/trunk@39234 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-18 19:05:29 +00:00
Rachel Baker
0f4d6f99cc
REST API: Add test case for users/me
endpoint that the context
param defaults to view
.
...
Props danielbachhuber.
See #38842 .
Built from https://develop.svn.wordpress.org/trunk@39293
git-svn-id: http://core.svn.wordpress.org/trunk@39233 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-18 18:59:30 +00:00
Rachel Baker
3f6131c2e6
REST API: Remove the karma
property and query parameter from the Comments endpoints.
...
WordPress has not used the `karma` property internally for the past 8 years. There is no need to expose it in the REST API endpoints. Sites that use `karma` can include it using the `register_rest_field()` function.
Props dd32, danielbachhuber.
Fixes #38821 .
Built from https://develop.svn.wordpress.org/trunk@39292
git-svn-id: http://core.svn.wordpress.org/trunk@39232 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-18 18:53:29 +00:00
David A. Kennedy
7d96057b8b
Twenty Seventeen: Ensure the use of proper image size for custom header image
...
The `sizes` attribute was calculated incorrectly, resulting in the browser downloading the wrong resource. This filters the attribute to correct that.
Before the filter, the `img` contained:
`sizes="(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px"`
And after:
`sizes="100vw"`
Props joemcgill, transl8or.
Fixes #38847 .
Built from https://develop.svn.wordpress.org/trunk@39291
git-svn-id: http://core.svn.wordpress.org/trunk@39231 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-18 18:43:30 +00:00
Rachel Baker
191e085fa3
REST API: On comment create, return an error if the type
property is set to anything other than comment
.
...
Of the default comment_types, only comments are expected to be created via the REST API endpoint. Comments do not have registered types the way that Posts do, so we do not have a method to accurately check permissions for arbitrary comment types.
Props dd32, boonebgorges, rachelbaker.
Fixes #38820 .
Built from https://develop.svn.wordpress.org/trunk@39290
git-svn-id: http://core.svn.wordpress.org/trunk@39230 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-18 18:37:30 +00:00
Rachel Baker
ccb4c7c8b9
REST API: Allow parent
property to be explicitly set to 0
when creating or updating a Post.
...
Props lucasstark, danielbachhuber.
Fixes #38852 .
Built from https://develop.svn.wordpress.org/trunk@39289
git-svn-id: http://core.svn.wordpress.org/trunk@39229 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-18 18:12:31 +00:00
Rachel Baker
735fa34d42
REST API: On comment create, return an error if the post
parameter does not relate to a valid WP_Post object.
...
Return a `WP_Error` object for attempts to create a comment without an empty or invalid `post` ID.
Props dd32, jnylen0, rachelbaker.
Fixes #38816 .
Built from https://develop.svn.wordpress.org/trunk@39288
git-svn-id: http://core.svn.wordpress.org/trunk@39228 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-18 16:56:30 +00:00
Rachel Baker
10bddfac39
REST API: On comment create, fallback to the user_agent
header value.
...
If a user-agent is not explicitly provided in the `author_user_agent` parameter, fallback to the `user_agent` value in the request header.
Props dd32, jnylen0, rachelbaker.
Fixes #38817 .
Built from https://develop.svn.wordpress.org/trunk@39287
git-svn-id: http://core.svn.wordpress.org/trunk@39227 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-18 16:22:33 +00:00
Helen Hou-Sandí
000cd0c68d
Twenty Seventeen: Remove some extraneous function calls.
...
fixes #38848 .
Built from https://develop.svn.wordpress.org/trunk@39286
git-svn-id: http://core.svn.wordpress.org/trunk@39226 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-18 06:36:32 +00:00
Weston Ruter
560e93ec80
Customize: Remove obsolete edit shortcut style rules from Twenty Seventeen.
...
Props celloexpressions.
Fixes #38776 .
Built from https://develop.svn.wordpress.org/trunk@39285
git-svn-id: http://core.svn.wordpress.org/trunk@39225 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-18 05:22:31 +00:00
Ella Iseulde Van Dorpe
32b3a7f772
TinyMCE: remove extra space in tooltip.
...
This prevents wrapping and looks better, even though there seems to be some space between the other control key characters.
See #38063 .
Built from https://develop.svn.wordpress.org/trunk@39284
git-svn-id: http://core.svn.wordpress.org/trunk@39224 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-17 23:59:30 +00:00
Peter Wilson
9bc6aa1570
Taxonomy: Update register_taxonomy
hook to use WP_Taxonomy
object.
...
Casts `WP_Taxonomy` to an array for passing to the `register_taxonomy` hook. This maintains backward compatibility with the processed arguments used prior to WordPress 4.7.
Fixes #38765 .
Built from https://develop.svn.wordpress.org/trunk@39283
git-svn-id: http://core.svn.wordpress.org/trunk@39223 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-17 23:35:32 +00:00
Ella Iseulde Van Dorpe
79b3576650
TinyMCE views: fix Firefox issues.
...
* Set focus before rendering to prevent reload in Firefox.
* Rerender views if they are unloaded.
* Remove timeout added in [29513].
* Fix argument in wp.mce.views.render.
* Empty views on hide. Missed in #36434 .
Props gitlost, azaozz, iseulde.
Fixes #38511 .
Built from https://develop.svn.wordpress.org/trunk@39282
git-svn-id: http://core.svn.wordpress.org/trunk@39222 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-17 20:32:32 +00:00
Sergey Biryukov
2fadd7a895
Docs: Use 3-digit, x.x.x style semantic versioning for @since 4.7.0
entries.
...
See #37770 .
Built from https://develop.svn.wordpress.org/trunk@39281
git-svn-id: http://core.svn.wordpress.org/trunk@39221 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-17 18:28:30 +00:00
Sergey Biryukov
480501c6a8
Taxonomy: Prevent wp_list_categories()
from producing not well-nested output if hide_title_if_empty
is true.
...
Props chesio.
Fixes #38839 . See #33460 .
Built from https://develop.svn.wordpress.org/trunk@39280
git-svn-id: http://core.svn.wordpress.org/trunk@39220 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-17 18:02:30 +00:00
Joe McGill
5e88248a44
Twenty Seventeen: Additional default header image optimizations.
...
This is a follow-up to [39248] that applies a bit more compression to
the default header image in Twenty Seventeen.
Props Presskopp, lukecavanagh.
Fixes #38793 .
Built from https://develop.svn.wordpress.org/trunk@39279
git-svn-id: http://core.svn.wordpress.org/trunk@39219 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-17 17:13:30 +00:00
Sergey Biryukov
acc30b09d7
Text Changes: Merge some duplicate strings with the same meaning in error messages, adjust some other strings for consistency and accuracy.
...
Props ramiy, SergeyBiryukov.
Fixes #38808 .
Built from https://develop.svn.wordpress.org/trunk@39278
git-svn-id: http://core.svn.wordpress.org/trunk@39218 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-17 15:53:33 +00:00
Andrea Fercia
5c86bfd201
Small coding standards cleanup of wp-custom-header.js.
...
Small coding standards cleanup of wp-custom-header.js after [39272].
Built from https://develop.svn.wordpress.org/trunk@39277
git-svn-id: http://core.svn.wordpress.org/trunk@39217 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-17 09:04:31 +00:00
Weston Ruter
2cabe7aef1
Customize: Add unit tests for importing theme starter content.
...
Props welcher, westonruter.
See #38114 , #38533 , #38615 .
Fixes #38540 .
Built from https://develop.svn.wordpress.org/trunk@39276
git-svn-id: http://core.svn.wordpress.org/trunk@39216 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-17 08:18:32 +00:00
Gary Pendergast
7329283f7e
Database: Add support for LIKE
-escaped tables in ::get_table_from_query()
.
...
The `SHOW TABLES LIKE` query can be used to search for tables that match a pattern, `wp\_123\_%`, for example. While this isn't the name of an actual table, the `wp_123_` prefix can be used by database drop-ins to direct the query correctly. This change removes the escaping and `%` modifier, to provide this usable prefix.
Props andy, pento.
Fixes #38751 .
Built from https://develop.svn.wordpress.org/trunk@39275
git-svn-id: http://core.svn.wordpress.org/trunk@39215 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-17 04:21:31 +00:00
Boone Gorges
bd11f7b84a
Comments: Query used to fill comment descendants should reset 'offset' and 'number' params.
...
Descendant queries should not inherit the 'offset' and 'number'
parameters of the parent query, or descendants will be missed.
Previously: [38497].
See #37696 .
Built from https://develop.svn.wordpress.org/trunk@39274
git-svn-id: http://core.svn.wordpress.org/trunk@39214 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-17 03:03:30 +00:00
Joe McGill
72606bed34
Twenty Seventeen: Add styles for custom header video controls.
...
Following [39272], this uses the `header_video_settings` filter to modify
the default video header control markup and adds theme specific styles
for the play/pause button.
Props melchoyce, laurelfulford, joemcgill, davidakennedy, bradyvercher.
Fixes #38697 .
Built from https://develop.svn.wordpress.org/trunk@39273
git-svn-id: http://core.svn.wordpress.org/trunk@39213 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-16 23:38:29 +00:00
Joe McGill
5ef714db18
Themes: Improve a11y and extendability of custom video headers.
...
This adds play/pause controls to video headers, along with voice
assistance, using `wp.a11y.speak`, to make custom video headers more
accessible. To make styling the play/pause button easier for themes,
CSS has been omitted from the default implementation.
This also includes a refactor of the `wp.customHeader` code to introduce
a `BaseHandler` class, which can be extended by plugins and themes to modify
or enhance the default video handlers.
Props davidakennedy, afercia, bradyvercher, joemcgill, adamsilverstein, rianrietveld.
Fixes #38678 .
Built from https://develop.svn.wordpress.org/trunk@39272
git-svn-id: http://core.svn.wordpress.org/trunk@39212 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-16 23:26:31 +00:00
Weston Ruter
c2bc6df69a
Customize: Ensure Close button actually closes customizer (instead of going back) after switching to a different theme inside a customize-loader
iframe.
...
Fixes #38833 .
Built from https://develop.svn.wordpress.org/trunk@39271
git-svn-id: http://core.svn.wordpress.org/trunk@39211 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-16 22:17:29 +00:00
Weston Ruter
4664f80711
Customize: Prevent edit shortcut buttons from being inserted into container elements in the head
or into elements which should not get interactive children.
...
See #27403 , #38672 .
Fixes #38830 .
Built from https://develop.svn.wordpress.org/trunk@39270
git-svn-id: http://core.svn.wordpress.org/trunk@39210 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-16 20:37:30 +00:00
Dominik Schilling
e4a83d2e6f
Users: In edit_user()
fall back to site's locale instead of en_US
for invalid user locales.
...
See #38632 , #29783 .
Fixes #38798 .
Built from https://develop.svn.wordpress.org/trunk@39269
git-svn-id: http://core.svn.wordpress.org/trunk@39209 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-16 20:12:31 +00:00
Weston Ruter
7db38b916a
Customize: Allow URL for Codex link in Additional CSS section to be translated.
...
Props odysseygate, ocean90, westonruter.
See #35395 .
Fixes #38823 .
Built from https://develop.svn.wordpress.org/trunk@39268
git-svn-id: http://core.svn.wordpress.org/trunk@39208 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-16 18:42:32 +00:00
Sergey Biryukov
fd2fd9e3f3
Tests: Add a missing $message
argument for assertEquals()
in [39265].
...
See #23626 .
Built from https://develop.svn.wordpress.org/trunk@39267
git-svn-id: http://core.svn.wordpress.org/trunk@39207 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-16 13:43:31 +00:00
Sergey Biryukov
b92266a72b
REST API: After [39252] and [39264], uppercase some more 'ID' references in translatable strings.
...
See #38791 .
Built from https://develop.svn.wordpress.org/trunk@39266
git-svn-id: http://core.svn.wordpress.org/trunk@39206 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-16 13:28:37 +00:00
Sergey Biryukov
b20d435803
Tests: Use assertEquals()
' native functionality for delta comparison in test_wp_convert_bytes_to_hr()
.
...
See #23626 .
Built from https://develop.svn.wordpress.org/trunk@39265
git-svn-id: http://core.svn.wordpress.org/trunk@39205 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-16 13:15:31 +00:00
Sergey Biryukov
ce74afdae2
REST API: Uppercase 'ID' in endpoint descriptions and error messages for consistency with other strings.
...
See #38791 .
Built from https://develop.svn.wordpress.org/trunk@39264
git-svn-id: http://core.svn.wordpress.org/trunk@39204 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-16 12:18:33 +00:00
Helen Hou-Sandí
2f4988c898
Post-4.7 beta 4 bump.
...
Built from https://develop.svn.wordpress.org/trunk@39263
git-svn-id: http://core.svn.wordpress.org/trunk@39203 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-16 01:54:30 +00:00
Helen Hou-Sandí
19f8905c69
WordPress 4.7 Beta 4.
...
Built from https://develop.svn.wordpress.org/trunk@39262
git-svn-id: http://core.svn.wordpress.org/trunk@39202 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-16 01:35:30 +00:00
Helen Hou-Sandí
2d9ac64c9f
Theme starter content: Add reference IDs for most default widgets.
...
Some widgets that require more configuration are not included, such as RSS and Custom Menu. Tag Cloud is also not included because fresh sites do not have any tags to display.
Also adds a search widget to a Twenty Seventeen footer widget area.
see #38615 .
Built from https://develop.svn.wordpress.org/trunk@39261
git-svn-id: http://core.svn.wordpress.org/trunk@39201 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-16 00:40:32 +00:00
Helen Hou-Sandí
fd761208fc
Theme starter content: Refine the content for pages.
...
see #38615 .
Built from https://develop.svn.wordpress.org/trunk@39260
git-svn-id: http://core.svn.wordpress.org/trunk@39200 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-16 00:29:31 +00:00
Sergey Biryukov
74c9f82ef2
REST API: Unify some more permission error messages.
...
Props ramiy.
Fixes #38803 .
Built from https://develop.svn.wordpress.org/trunk@39259
git-svn-id: http://core.svn.wordpress.org/trunk@39199 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-15 23:36:31 +00:00
Sergey Biryukov
a7af7c89a4
Text Changes: Unify permission error messages in wp-admin/users.php
.
...
Props ramiy.
Fixes #38804 .
Built from https://develop.svn.wordpress.org/trunk@39258
git-svn-id: http://core.svn.wordpress.org/trunk@39198 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-15 22:25:30 +00:00
Sergey Biryukov
07cf16f7ba
REST API: Unify permission error messages.
...
Props ramiy.
Fixes #38803 .
Built from https://develop.svn.wordpress.org/trunk@39257
git-svn-id: http://core.svn.wordpress.org/trunk@39197 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-15 22:23:30 +00:00
Helen Hou-Sandí
d4603ec9b7
Theme starter content: Add more social link items to select from.
...
New: Foursquare, GitHub, LinkedIn, Pinterest, and YouTube. They are also now all alphabetized.
see #38615 .
Built from https://develop.svn.wordpress.org/trunk@39256
git-svn-id: http://core.svn.wordpress.org/trunk@39196 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-15 21:20:31 +00:00
Helen Hou-Sandí
8485582c8a
Theme starter content: Revamp the credits widget into an about widget.
...
The credits widget from the original commit was a nice test to see the date changing, but isn't really very inspirational. Also, implement it in Twenty Seventeen.
see #38615 .
Built from https://develop.svn.wordpress.org/trunk@39255
git-svn-id: http://core.svn.wordpress.org/trunk@39195 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-15 21:08:30 +00:00
Sergey Biryukov
ec0043c279
I18N: Remove <code>
tags from translatable strings in wp-includes/class-wp-customize-manager.php
.
...
Props ramiy.
Fixes #38802 .
Built from https://develop.svn.wordpress.org/trunk@39254
git-svn-id: http://core.svn.wordpress.org/trunk@39194 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-15 20:54:30 +00:00
Sergey Biryukov
a45e419926
Text Changes: Unify permission error message in wp-ajax-response.js
.
...
See #34521 .
Built from https://develop.svn.wordpress.org/trunk@39253
git-svn-id: http://core.svn.wordpress.org/trunk@39193 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-15 20:42:30 +00:00
Sergey Biryukov
9c2ea0b8c7
REST API: Remove two duplicate strings, use the ones we already have.
...
See #38791 .
Built from https://develop.svn.wordpress.org/trunk@39252
git-svn-id: http://core.svn.wordpress.org/trunk@39192 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-15 20:40:29 +00:00