Permalink
Commits on Nov 18, 2016
  1. 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
    joehoyle committed Nov 18, 2016
  2. 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
    helen committed Nov 18, 2016
  3. REST API: Add test case for `users/me` endpoint that the `context` pa…

    …ram 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
    rachelbaker committed Nov 18, 2016
  4. REST API: Remove the `karma` property and query parameter from the Co…

    …mments 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
    rachelbaker committed Nov 18, 2016
  5. Twenty Seventeen: Ensure the use of proper image size for custom head…

    …er 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
    davidakennedy committed Nov 18, 2016
  6. REST API: On comment create, return an error if the `type` property i…

    …s 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
    rachelbaker committed Nov 18, 2016
  7. REST API: Allow `parent` property to be explicitly set to `0` when cr…

    …eating 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
    rachelbaker committed Nov 18, 2016
  8. 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
    rachelbaker committed Nov 18, 2016
  9. 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
    rachelbaker committed Nov 18, 2016
  10. 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
    helen committed Nov 18, 2016
  11. Customize: Remove obsolete edit shortcut style rules from Twenty Seve…

    …nteen.
    
    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
    westonruter committed Nov 18, 2016
Commits on Nov 17, 2016
  1. 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
    iseulde committed Nov 17, 2016
  2. 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
    peterwilsoncc committed Nov 17, 2016
  3. 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
    iseulde committed Nov 17, 2016
  4. 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
    SergeyBiryukov committed Nov 17, 2016
  5. Taxonomy: Prevent `wp_list_categories()` from producing not well-nest…

    …ed 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
    SergeyBiryukov committed Nov 17, 2016
  6. 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
    joemcgill committed Nov 17, 2016
  7. Text Changes: Merge some duplicate strings with the same meaning in e…

    …rror 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
    SergeyBiryukov committed Nov 17, 2016
  8. 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
    afercia committed Nov 17, 2016
  9. 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
    westonruter committed Nov 17, 2016
  10. 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
    pento committed Nov 17, 2016
  11. 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
    boonebgorges committed Nov 17, 2016
Commits on Nov 16, 2016
  1. 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
    joemcgill committed Nov 16, 2016
  2. 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
    joemcgill committed Nov 16, 2016
  3. 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
    westonruter committed Nov 16, 2016
  4. Customize: Prevent edit shortcut buttons from being inserted into con…

    …tainer 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
    westonruter committed Nov 16, 2016
  5. 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
    ocean90 committed Nov 16, 2016
  6. Customize: Allow URL for Codex link in Additional CSS section to be t…

    …ranslated.
    
    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
    westonruter committed Nov 16, 2016
  7. REST API: After [39252] and [39264], uppercase some more 'ID' referen…

    …ces 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
    SergeyBiryukov committed Nov 16, 2016
  8. Tests: Use `assertEquals()`' native functionality for delta compariso…

    …n 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
    SergeyBiryukov committed Nov 16, 2016
  9. 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
    SergeyBiryukov committed Nov 16, 2016
  10. 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
    helen committed Nov 16, 2016
  11. 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
    helen committed Nov 16, 2016
  12. 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
    helen committed Nov 16, 2016