Joe McGill
0df85f5bab
Tests: Replace broken codeispoetry.png file.
...
This also updates the test filename in
`WP_Test_REST_Attachments_Controller::test_create_item_default_filename_title()`
to accurately match the actual file name.
Built from https://develop.svn.wordpress.org/trunk@39848
git-svn-id: http://core.svn.wordpress.org/trunk@39786 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-11 16:25:41 +00:00
Aaron Campbell
daf358983c
REST API: Change which users are shown in the users endpoint.
...
Only show users that have authored a post of a post type that has `show_in_rest` set to true.
Props rachelbaker, jnylen0.
See #38878 .
Built from https://develop.svn.wordpress.org/trunk@39843
git-svn-id: http://core.svn.wordpress.org/trunk@39781 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-11 14:14:42 +00:00
Joe McGill
8eff927823
Media: Improve image filetype checking.
...
This adds a new function `wp_get_image_mime()` which is used by
`wp_check_filetype_and_ext()` to validate image files using
`exif_imagetype()` if available instead of `getimagesize()`.
`getimagesize()` is less performant than `exif_imagetype()` and is
dependent on GD. If `exif_imagetype()` is not available, it falls back to
`getimagesize()` as before.
If `wp_check_filetype_and_ext()` can't validate the filetype, we now return
`false` for ext/MIME values.
See #11946 .
Built from https://develop.svn.wordpress.org/trunk@39831
git-svn-id: http://core.svn.wordpress.org/trunk@39769 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-11 13:08:44 +00:00
Dominik Schilling
c9ea1de144
Updates: Translate plugin data on the Updates screen.
...
Built from https://develop.svn.wordpress.org/trunk@39808
git-svn-id: http://core.svn.wordpress.org/trunk@39746 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-11 10:37:48 +00:00
Dominik Schilling
ce7fb2934d
Themes: Fix markup for theme name fallbacks.
...
Built from https://develop.svn.wordpress.org/trunk@39807
git-svn-id: http://core.svn.wordpress.org/trunk@39745 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-11 10:34:44 +00:00
Jeremy Felt
cea9e2dc62
Multisite: Use `wp_rand()` in signup key creation.
...
Built from https://develop.svn.wordpress.org/trunk@39795
git-svn-id: http://core.svn.wordpress.org/trunk@39733 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-11 05:30:42 +00:00
Jeremy Felt
061e878881
Mail: Disable wp-mail.php when `mailserver_url` is mail.example.com.
...
Built from https://develop.svn.wordpress.org/trunk@39772
git-svn-id: http://core.svn.wordpress.org/trunk@39710 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-11 05:13:43 +00:00
Aaron Campbell
03e5c0314a
Add nonce for widget accessibility mode.
...
Props vortfu.
See #23328 .
Built from https://develop.svn.wordpress.org/trunk@39760
git-svn-id: http://core.svn.wordpress.org/trunk@39698 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-11 01:32:41 +00:00
Dion Hulse
5eb452d15b
Update PHPMailer to 5.2.22.
...
The full list of changes is available here:
https://github.com/PHPMailer/PHPMailer/compare/v5.2.21...v5.2.22
Fixes #37210 for trunk.
Built from https://develop.svn.wordpress.org/trunk@39759
git-svn-id: http://core.svn.wordpress.org/trunk@39697 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-11 01:23:41 +00:00
Sergey Biryukov
3fd9465cc1
Docs: Make `@deprecated` entry for `wp_kses_js_entities()`, deprecated in [38785], consistent with other entries.
...
Props stevenkword, teinertb.
Fixes #39541 .
Built from https://develop.svn.wordpress.org/trunk@39758
git-svn-id: http://core.svn.wordpress.org/trunk@39696 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-10 22:09:42 +00:00
Sergey Biryukov
c07571de67
Docs: Change `@param` type for `$user_object` in `WP_Users_List_Table::single_row()` from `object` to `WP_User` to be more accurate.
...
Props sebastian.pisula.
Fixes #39536 .
Built from https://develop.svn.wordpress.org/trunk@39757
git-svn-id: http://core.svn.wordpress.org/trunk@39695 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-10 12:45:44 +00:00
Sergey Biryukov
9234febe06
Posts, Post Types: Use an existing string for "Invalid post type" error message.
...
Props ramiy.
Fixes #39171 .
Built from https://develop.svn.wordpress.org/trunk@39756
git-svn-id: http://core.svn.wordpress.org/trunk@39694 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-10 02:40:42 +00:00
Sergey Biryukov
fd0564d2bc
Docs: Remove incorrect `@param` tags for `admin_print_footer_scripts-{$hook_suffix}` and `admin_footer-{$hook_suffix}` dynamic actiona.
...
Remove `@global` tags as well as they are not suited to describe a function parameter and are documented in the description of the actions.
Props keesiemeijer.
Fixes #39527 .
Built from https://develop.svn.wordpress.org/trunk@39755
git-svn-id: http://core.svn.wordpress.org/trunk@39693 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-09 14:38:41 +00:00
Sergey Biryukov
fdc2b34124
Docs: Move `install_global_terms()` DocBlock after the `function_exists()` call.
...
Props keesiemeijer.
Fixes #39526 .
Built from https://develop.svn.wordpress.org/trunk@39754
git-svn-id: http://core.svn.wordpress.org/trunk@39692 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-09 14:31:44 +00:00
Sergey Biryukov
14454e3b0b
Docs: Use correct closing tag in `submit_field` description in `comment_form()`.
...
Props truongwp.
Fixes #39508 .
Built from https://develop.svn.wordpress.org/trunk@39753
git-svn-id: http://core.svn.wordpress.org/trunk@39691 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-07 14:51:44 +00:00
Sergey Biryukov
1d05544828
Twenty Seventeen: Expand a changelog entry added in [39742] with the new item name.
...
See #39489 , [39575].
Built from https://develop.svn.wordpress.org/trunk@39752
git-svn-id: http://core.svn.wordpress.org/trunk@39690 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-07 13:12:39 +00:00
Sergey Biryukov
03c6dc1002
Customize: Correct a comment in `get_theme_starter_content()` added in [39561].
...
The item name is `link_home`, not `home_link`.
See #39104 .
Built from https://develop.svn.wordpress.org/trunk@39751
git-svn-id: http://core.svn.wordpress.org/trunk@39689 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-07 13:11:41 +00:00
Tammie Lister
979152be92
Twenty Seventeen: add more details about filter and requires version
...
The required version should be 4.7 and also adds more information to changelog.
Props @ocean90 @Presskopp
Built from https://develop.svn.wordpress.org/trunk@39744
git-svn-id: http://core.svn.wordpress.org/trunk@39684 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-06 22:15:52 +00:00
Tammie Lister
b5908ad8c8
Twenty Seventeen: version bump and update changelog
...
Adds in changelog since last version and all the changes listed in readme.txt.
Bumps version numbers in style.css and readme.txt.
Props @ocean90
Built from https://develop.svn.wordpress.org/trunk@39742
git-svn-id: http://core.svn.wordpress.org/trunk@39682 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-06 22:14:38 +00:00
Sergey Biryukov
d054731b2b
Docs: Add missing `@since` entry for `Walker::unset_children()`.
...
Props chiragpatel.
Fixes #39506 .
Built from https://develop.svn.wordpress.org/trunk@39741
git-svn-id: http://core.svn.wordpress.org/trunk@39681 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-06 22:14:00 +00:00
Sergey Biryukov
6032bd6e32
Docs: Use 3-digit, x.x.x style semantic versioning for `@since` entries in `wp-admin/js/image-edit.js`.
...
See #38748 .
Built from https://develop.svn.wordpress.org/trunk@39740
git-svn-id: http://core.svn.wordpress.org/trunk@39680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-06 22:13:20 +00:00
Sergey Biryukov
e8c65e0df1
Docs: Use 3-digit, x.x.x style semantic versioning for `@since` entries in `wp-admin/js/word-count.js`.
...
See #37718 .
Built from https://develop.svn.wordpress.org/trunk@39739
git-svn-id: http://core.svn.wordpress.org/trunk@39679 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-06 22:12:39 +00:00
Sergey Biryukov
e654c81f10
Docs: Add documentation for `wp-admin/js/editor.js`.
...
Props terwdan, ireneyoast.
Fixes #38933 .
Built from https://develop.svn.wordpress.org/trunk@39738
git-svn-id: http://core.svn.wordpress.org/trunk@39678 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-06 22:11:57 +00:00
Sergey Biryukov
008c1f7e60
Docs: Correct `@access` entries for `WP_Locale::init()` and `WP_Locale::register_globals()`.
...
Props keesiemeijer.
Fixes #39504 .
Built from https://develop.svn.wordpress.org/trunk@39737
git-svn-id: http://core.svn.wordpress.org/trunk@39677 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-06 22:11:16 +00:00
Sergey Biryukov
64675a6a0b
Docs: Add missing `@since` entries for `WP_Theme` class methods.
...
Props keesiemeijer.
Fixes #39503 .
Built from https://develop.svn.wordpress.org/trunk@39736
git-svn-id: http://core.svn.wordpress.org/trunk@39676 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-06 22:10:35 +00:00
Sergey Biryukov
b971410d2f
Docs: Correct `@access` entry for `WP_User::filter` property.
...
Add missing `@since` entries for `WP_User::back_compat_keys` and `WP_User::init()`.
Props keesiemeijer, prosti.
Fixes #39502 , #39278 .
Built from https://develop.svn.wordpress.org/trunk@39735
git-svn-id: http://core.svn.wordpress.org/trunk@39675 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-06 22:09:55 +00:00
Sergey Biryukov
ff749bc66c
Docs: Correct `@access` entries and duplicate hook references in `WP_Customize_Selective_Refresh`.
...
Props keesiemeijer.
Fixes #39501 .
Built from https://develop.svn.wordpress.org/trunk@39734
git-svn-id: http://core.svn.wordpress.org/trunk@39674 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-06 22:09:13 +00:00
Sergey Biryukov
f6cd778c84
Twenty Seventeen: Correct `@param` entries for `twentyseventeen_content_width`, `twentyseventeen_custom_colors_saturation` and `twentyseventeen_social_links_icons` filters.
...
Props Jaydeep Rami, BharatKambariya.
Fixes #39488 .
Built from https://develop.svn.wordpress.org/trunk@39733
git-svn-id: http://core.svn.wordpress.org/trunk@39673 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-06 22:08:33 +00:00
Sergey Biryukov
2f50816f32
Twenty Seventeen: Correct `@param` entry for `twentyseventeen_front_page_sections` filter.
...
Props ketuchetan, priyankabehera155.
Fixes #39488 .
Built from https://develop.svn.wordpress.org/trunk@39732
git-svn-id: http://core.svn.wordpress.org/trunk@39672 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-06 22:07:52 +00:00
Dominik Schilling
2e81d3ed88
Twenty Seventeen: Introduce a theme-specific filter `twentyseventeen_starter_content` for customizing the starter content array.
...
Add some documentation to the default starter content.
Props sanket.parmar, celloexpressions.
Fixes #39109 .
Built from https://develop.svn.wordpress.org/trunk@39720
git-svn-id: http://core.svn.wordpress.org/trunk@39660 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-06 22:02:58 +00:00
Sergey Biryukov
93d4caaccd
Docs: Add missing `@param` tag for `show_post_locked_dialog` filter.
...
Props keesiemeijer.
Fixes #39479 .
Built from https://develop.svn.wordpress.org/trunk@39710
git-svn-id: http://core.svn.wordpress.org/trunk@39650 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-06 21:59:04 +00:00
Sergey Biryukov
6e5d66c10e
Docs: Move `install_network()` DocBlock after the `function_exists()` call.
...
Props keesiemeijer.
Fixes #39478 .
Built from https://develop.svn.wordpress.org/trunk@39709
git-svn-id: http://core.svn.wordpress.org/trunk@39649 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-06 21:58:23 +00:00
Sergey Biryukov
ead8c38f38
Docs: Add variable to `@param` entry for `whitelist_options` filter.
...
Props keesiemeijer.
Fixes #39477 .
Built from https://develop.svn.wordpress.org/trunk@39708
git-svn-id: http://core.svn.wordpress.org/trunk@39648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-06 21:57:42 +00:00
Dion Hulse
9f381dbea6
Customizer: Don't query for postmeta for Custom CSS (for not-current-themes) and Customizer Changeset posts.
...
Props dlh.
Fixes #39194 .
Built from https://develop.svn.wordpress.org/trunk@39692
git-svn-id: http://core.svn.wordpress.org/trunk@39632 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-05 08:12:42 +00:00
Dion Hulse
577a192ebd
Mail: In PHPMailer 5.2.7 the case of the `Send()` method changed to `send()`, update our call for consistency with the library.
...
Props michalzuber.
Fixes #39469 .
Built from https://develop.svn.wordpress.org/trunk@39691
git-svn-id: http://core.svn.wordpress.org/trunk@39631 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-05 08:10:42 +00:00
Dion Hulse
8912d6b134
Updates: Properly define `$filesystemForm` to handle error in modals.
...
Ammends [39657].
See #39057 .
Built from https://develop.svn.wordpress.org/trunk@39689
git-svn-id: http://core.svn.wordpress.org/trunk@39629 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-05 07:24:43 +00:00
Weston Ruter
2ed703ed78
Customize: Ensure `theme_mod`-cache of `custom_css` lookup of `-1` short-circuits a `WP_Query` from being made.
...
Props dlh.
See #35395 .
Fixes #39259 .
Built from https://develop.svn.wordpress.org/trunk@39688
git-svn-id: http://core.svn.wordpress.org/trunk@39628 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-05 07:13:42 +00:00
Dion Hulse
b5dbe61dab
Upgrade: Fix the installation of TwentySeventeen upon upgrade from an early version.
...
This reverts part of [31124] which incorrectly caused `$old_wp_version` to equal the version of WordPress being upgraded to due to global variable access changes.
See #38551 , #30799 .
Fixes #39138 for trunk.
Built from https://develop.svn.wordpress.org/trunk@39687
git-svn-id: http://core.svn.wordpress.org/trunk@39627 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-05 06:13:41 +00:00
Weston Ruter
5468850b10
Customize: Update `customize.php` URL with `changeset_uuid` param the instant a change is made instead of deferring until the changeset update request responds.
...
Props asalce.
Fixes #39227 .
Built from https://develop.svn.wordpress.org/trunk@39686
git-svn-id: http://core.svn.wordpress.org/trunk@39626 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-05 05:18:43 +00:00
Weston Ruter
ea0f8b53f1
Customize: Remove extra left padding in core for site title and widgets in preview.
...
These styles should only be applied by theme stylesheets as needed.
Props sirbrillig.
Reverts parts of [39202] and [39233].
See #38651 .
Fixes #39349 .
Built from https://develop.svn.wordpress.org/trunk@39685
git-svn-id: http://core.svn.wordpress.org/trunk@39625 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-05 04:33:43 +00:00
Ryan McCue
a676166a63
Upgrade/Install: Avoid creating nonce during installation.
...
When installing and using database-saved salts, wp_create_nonce() causes database errors as wp_salt() attempts to insert into the not-yet-created options table. Since authentication isn't available during installation, we can safely skip creating a nonce.
Props nullvariable, pento, dd32.
Fixes #39047 .
Built from https://develop.svn.wordpress.org/trunk@39684
git-svn-id: http://core.svn.wordpress.org/trunk@39624 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-05 04:11:43 +00:00
Ryan McCue
952b6873e7
Feeds: Don't override the Content-Type header inside fetc_feed()
...
SimplePie can set the Content-Type header automatically with the correct charset for convenience, but we already force the charset to match the site's, making it redundant at best. At worst, SimplePie incorrectly overrides the content-type for non-HTML content (such as API requests).
Props dlh, stevenkword.
Fixes #39066 .
Built from https://develop.svn.wordpress.org/trunk@39681
git-svn-id: http://core.svn.wordpress.org/trunk@39621 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-05 03:06:42 +00:00
Adam Silverstein
c8a3496ebe
REST API: Add error handling for fetch error in `buildModelGetter` of wp-api.js.
...
When a call to a model getter method fails, reject the returned deferred object. Enables better handling of fetch errors.
Props westonruter, adamsilverstein.
Fixes #39314 .
Built from https://develop.svn.wordpress.org/trunk@39680
git-svn-id: http://core.svn.wordpress.org/trunk@39620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-05 03:03:42 +00:00
Andrew Ozz
e2166de4b0
Always add `page-template-default` class to the editor body when the template is not specified. This matches the behavior on the front-end.
...
Props timph (for the detailed bug report), azaozz.
Fixes #39368 for trunk.
Built from https://develop.svn.wordpress.org/trunk@39678
git-svn-id: http://core.svn.wordpress.org/trunk@39618 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-05 01:53:43 +00:00
Weston Ruter
ef882e918e
Customize: Prevent removal of underline upon hover/focus for nav menu deletion links.
...
Props monikarao.
Amends [38503].
See #37527 .
Fixes #39444 .
Built from https://develop.svn.wordpress.org/trunk@39677
git-svn-id: http://core.svn.wordpress.org/trunk@39617 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-04 19:13:40 +00:00
Sergey Biryukov
7a83036227
Docs: Correct the DocBlock for `get_header_video_url()`.
...
Props keesiemeijer.
Fixes #39468 .
Built from https://develop.svn.wordpress.org/trunk@39676
git-svn-id: http://core.svn.wordpress.org/trunk@39616 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-04 13:44:43 +00:00
Sergey Biryukov
64bb76d122
Docs: Correct `@since` and `@access` tags for `WP_Term_Query::get_terms()` and `WP_Term_Query::parse_orderby_meta()`.
...
Props keesiemeijer.
Fixes #39467 .
Built from https://develop.svn.wordpress.org/trunk@39675
git-svn-id: http://core.svn.wordpress.org/trunk@39615 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-04 13:39:43 +00:00
Sergey Biryukov
868f642cc1
Docs: Correct `@access` tag for `WP_Customize_Partial::id_data` property.
...
Props keesiemeijer.
Fixes #39464 .
Built from https://develop.svn.wordpress.org/trunk@39674
git-svn-id: http://core.svn.wordpress.org/trunk@39614 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-04 13:36:41 +00:00
Sergey Biryukov
88d2bb035a
Docs: Add missing `@since` and `@access` tags for `WP_Widget_Form_Customize_Control::to_json()` and `::render_content()`.
...
Props keesiemeijer.
Fixes #39463 .
Built from https://develop.svn.wordpress.org/trunk@39673
git-svn-id: http://core.svn.wordpress.org/trunk@39613 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-04 13:34:44 +00:00
Sergey Biryukov
625849cc60
Docs: Add missing `@since` and `@access` tags for `WP_Date_Query::is_first_order_clause()`.
...
Props keesiemeijer.
#39462 .
Built from https://develop.svn.wordpress.org/trunk@39672
git-svn-id: http://core.svn.wordpress.org/trunk@39612 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-04 13:26:43 +00:00