Dominik Schilling
85384297a6
Query: Ensure that queries work correctly with post type names with special characters.
...
Built from https://develop.svn.wordpress.org/trunk@39952
git-svn-id: http://core.svn.wordpress.org/trunk@39889 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-26 13:33:45 +00:00
Weston Ruter
a44f8db73d
Customize: Always enqueue `customize-preview` stylesheet in the customizer preview to style selective refresh and visual edit shortcuts.
...
Enqueues the style along with the `customize-preview` script in the manager instead of via the `widgets` and `nav_menus` components, ensuring that the stylesheet is loaded for users who cannot manage widgets or nav menus.
Props dlh.
See #27403 .
Fixes #39498 .
Built from https://develop.svn.wordpress.org/trunk@39951
git-svn-id: http://core.svn.wordpress.org/trunk@39888 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-26 03:47:41 +00:00
Sergey Biryukov
d10f451770
Docs: Add missing file header to `wp-admin/includes/noop.php`, introduced in [34037].
...
Props carl-alberto.
Fixes #39690 .
Built from https://develop.svn.wordpress.org/trunk@39950
git-svn-id: http://core.svn.wordpress.org/trunk@39887 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-25 23:10:43 +00:00
Peter Wilson
1a18262fd5
Menus: Prevent notice thrown in class-walker-page.php.
...
Calling `Walker_Page::walk()` directly was causing an `Undefined index: item_spacing` notice to be thrown, this adds an `isset()` check to prevent it.
Props bhargavbhandari90.
Fixes #39564 .
Built from https://develop.svn.wordpress.org/trunk@39949
git-svn-id: http://core.svn.wordpress.org/trunk@39886 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-24 23:29:42 +00:00
Felix Arntz
832b16b966
Multisite: Show menu items in `My Sites > Network Admin` admin bar menu based on more precise capability checks.
...
Previously the menu items would all be displayed solely based on the `manage_network` capability. This change provides parity with the network admin menu.
Unit tests for the network admin menu functionality of `wp_admin_bar_my_sites_menu()` have been added.
Props chandrapatel.
Fixes #39082 .
Built from https://develop.svn.wordpress.org/trunk@39948
git-svn-id: http://core.svn.wordpress.org/trunk@39885 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-24 16:29:40 +00:00
Felix Arntz
82dc367cd4
Multisite: Replace `is_super_admin()` with a proper capability check when showing a notice about `WPLANG`.
...
In multisite, the notice is displayed to users that have the `manage_network_options` capability. In non-multisite, the notice is displayed to users with the `manage_options` capability.
Props Dhaval Parekh.
Fixes #39207 . See #37616 .
Built from https://develop.svn.wordpress.org/trunk@39947
git-svn-id: http://core.svn.wordpress.org/trunk@39884 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-24 13:13:41 +00:00
Felix Arntz
34ad21bcfa
Multisite: Remove unnecessary `is_super_admin()` check when adding an existing user to a site.
...
Prior to this change, a super admin user that is added to a site who they are already a member of would still get reinvited.
Props supercoder.
Fixes #39220 . See #37616 .
Built from https://develop.svn.wordpress.org/trunk@39946
git-svn-id: http://core.svn.wordpress.org/trunk@39883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-24 12:03:43 +00:00
Felix Arntz
36fa7f72c0
Multisite: Replace `is_super_admin()` with `manage_network_users` when trying to import new users.
...
Props bhargavbhandari90.
Fixes #39212 . See #37616 .
Built from https://develop.svn.wordpress.org/trunk@39945
git-svn-id: http://core.svn.wordpress.org/trunk@39882 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-24 11:39:40 +00:00
Felix Arntz
ff74a4cb7b
Multisite: Replace `is_super_admin()` with `manage_network` when showing a message to the network administrator in `wp-signup.php`.
...
Props jignesh.nakrani.
Fixes #39209 . See #37616 .
Built from https://develop.svn.wordpress.org/trunk@39944
git-svn-id: http://core.svn.wordpress.org/trunk@39881 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-24 11:08:42 +00:00
Felix Arntz
6fcb0e8b7f
Multisite: Replace `is_super_admin()` with `manage_network_users` when trying to change the role of oneself.
...
Props abhishek kaushik.
Fixes #39204 . See #37616 .
Built from https://develop.svn.wordpress.org/trunk@39943
git-svn-id: http://core.svn.wordpress.org/trunk@39880 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-24 11:04:44 +00:00
Sergey Biryukov
64694c6742
Twenty Seventeen: Improve typography for Simplified Chinese (`zh_CN`).
...
Props ze3kr, Dharm1025.
Fixes #39379 .
Built from https://develop.svn.wordpress.org/trunk@39942
git-svn-id: http://core.svn.wordpress.org/trunk@39879 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-24 07:27:44 +00:00
Sergey Biryukov
ca832f66f3
Text Changes: Add a period to the only `wp_die()` message that didn't have it: "Invalid plugin page".
...
Props Presskopp.
Fixes #39664 .
Built from https://develop.svn.wordpress.org/trunk@39941
git-svn-id: http://core.svn.wordpress.org/trunk@39878 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-22 02:33:42 +00:00
Sergey Biryukov
bf1e6d1226
Docs: After [39939], "locales" should be plural.
...
See #39658 .
Built from https://develop.svn.wordpress.org/trunk@39940
git-svn-id: http://core.svn.wordpress.org/trunk@39877 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-21 17:26:41 +00:00
Sergey Biryukov
bee96601bd
I18N: Add support for Bosnian locale in `remove_accents()`.
...
Applies "letter D with stroke" replacement made in [38646] for Serbian (`sr_RS`) to Bosnian (`bs_BA`) as well.
Props H3llas for the report.
Fixes #39658 .
Built from https://develop.svn.wordpress.org/trunk@39939
git-svn-id: http://core.svn.wordpress.org/trunk@39876 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-21 17:16:43 +00:00
Sergey Biryukov
35d5918a1d
Posts, Post Types: Preserve author filter in list table after entering a page number in paging input.
...
Props sagarprajapati.
Fixes #39523 .
Built from https://develop.svn.wordpress.org/trunk@39938
git-svn-id: http://core.svn.wordpress.org/trunk@39875 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-21 02:22:26 +00:00
Sergey Biryukov
8f0e75db16
Users: Preserve role filter in list table after entering a page number in paging input.
...
Props kailanitish90, sagarprajapati.
Fixes #39435 .
Built from https://develop.svn.wordpress.org/trunk@39937
git-svn-id: http://core.svn.wordpress.org/trunk@39874 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-21 02:21:43 +00:00
Sergey Biryukov
4fbcfe3a8c
Docs: After [38672], update `$type` parameter description for `submit_button()` and `get_submit_button()`.
...
Remove the mention of `secondary` and `delete` classes as core values, add `small` and `large`.
Props afercia.
Fixes #23477 .
Built from https://develop.svn.wordpress.org/trunk@39936
git-svn-id: http://core.svn.wordpress.org/trunk@39873 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-20 20:37:42 +00:00
Felix Arntz
41fc0c0f5a
Multisite: Replace `is_super_admin()` with `manage_network_users` when trying to add an existing user via username.
...
Props dhanendran.
Fixes #39202 . See #37616 .
Built from https://develop.svn.wordpress.org/trunk@39935
git-svn-id: http://core.svn.wordpress.org/trunk@39872 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-20 17:49:41 +00:00
Felix Arntz
c22fea9120
Multisite: Replace `is_super_admin()` with `manage_network_users` when checking for users autocomplete capabilities.
...
Props ashokkumar24.
Fixes #39201 . See #37616 .
Built from https://develop.svn.wordpress.org/trunk@39934
git-svn-id: http://core.svn.wordpress.org/trunk@39871 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-20 17:43:42 +00:00
Felix Arntz
6e5cd6d397
Multisite: Replace `is_super_admin()` with `manage_network_options` in `wp-admin/options.php`.
...
Props sathyapulse.
Fixes #39200 . See #37616 .
Built from https://develop.svn.wordpress.org/trunk@39933
git-svn-id: http://core.svn.wordpress.org/trunk@39870 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-20 17:39:41 +00:00
Felix Arntz
dd23a8f48c
Multisite: Do not check for `is_super_admin()` when trying to set user settings.
...
The checks were introduced in [22256] to prevent user settings to be set for super admins that were not a member of the current site. However the latter should apply to any kind of user, so the `is_super_admin()` check is redundant. Furthermore, removing these checks is necessary for the ongoing effort to get rid of `is_super_admin()` checks in general.
Props chandrapatel for initial patch.
Fixes #39199 . See #37616 .
Built from https://develop.svn.wordpress.org/trunk@39932
git-svn-id: http://core.svn.wordpress.org/trunk@39869 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-20 17:33:41 +00:00
Sergey Biryukov
e9056c039d
REST API: Add `group` and description to `WP_Test_REST_Request_Validation`.
...
Props danielbachhuber.
Fixes #39654 .
Built from https://develop.svn.wordpress.org/trunk@39931
git-svn-id: http://core.svn.wordpress.org/trunk@39868 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-20 17:13:40 +00:00
Felix Arntz
c8de21c0c5
Multisite: Display correct scheme for the main site in `site-info.php`.
...
Props greatislander.
Fixes #39365 .
Built from https://develop.svn.wordpress.org/trunk@39930
git-svn-id: http://core.svn.wordpress.org/trunk@39867 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-20 17:03:41 +00:00
Felix Arntz
8062df694f
Multisite: Correct and improve i18n strings in `wp-signup.php`.
...
The strings addressing the network administrator in `wp-signup.php` were still using the old terminology of blogs and sites. Furthermore concatenation of the strings has been removed to make them i18n-friendly.
Props jignesh.nakrani, SergeyBiryukov.
Fixes #39611 .
Built from https://develop.svn.wordpress.org/trunk@39929
git-svn-id: http://core.svn.wordpress.org/trunk@39866 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-20 16:52:39 +00:00
Adam Silverstein
8d8f5616b7
Menus: trigger an event when menu items are added or removed.
...
Fire a `menu-item-added` event after a menu item is added to the DOM. Fire a `menu-removing-item` event before a menu item is removed from the DOM. Enables hooking into and responding to menu changes.
Props welcher, adamsilverstein.
Fixes #31218 .
Built from https://develop.svn.wordpress.org/trunk@39928
git-svn-id: http://core.svn.wordpress.org/trunk@39865 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-20 16:15:42 +00:00
Sergey Biryukov
0b338e2f58
Customize: Remove redundant context for "Reorder" and "Done" strings in nav menu and widget area controls to ensure consistent translations.
...
Props pavelevap, Presskopp.
Fixes #33747 .
Built from https://develop.svn.wordpress.org/trunk@39927
git-svn-id: http://core.svn.wordpress.org/trunk@39864 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-20 06:00:42 +00:00
Sergey Biryukov
6f8644aeb2
Media: Pass the current attachment object to `display_media_states` filter, for consistency with `display_post_states`.
...
Props pbiron, chriseverson.
Fixes #39628 .
Built from https://develop.svn.wordpress.org/trunk@39926
git-svn-id: http://core.svn.wordpress.org/trunk@39863 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-20 05:20:41 +00:00
Sergey Biryukov
371c072b38
Media: After [36837], check the correct theme modification name for custom logo in `_media_states()`.
...
Props pbiron, mitraval192.
Fixes #39627 .
Built from https://develop.svn.wordpress.org/trunk@39925
git-svn-id: http://core.svn.wordpress.org/trunk@39862 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-19 02:03:41 +00:00
Weston Ruter
3e6c892f89
Customize: Allow custom post types to be used in starter content.
...
Changes `WP_Customize_Nav_Menus::insert_auto_draft_post()` so it can be invoked for a `post_type` that is not registered (yet).
See #38615 , #38114 .
Fixes #39610 .
Built from https://develop.svn.wordpress.org/trunk@39924
git-svn-id: http://core.svn.wordpress.org/trunk@39861 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-19 00:01:46 +00:00
Ryan McCue
1326d9e2c7
REST API: Correctly serve the index with PATH_INFO
...
When hitting the index, untrailingslashit() would make the REST route empty, which would then use the fallback inside WP_REST_Server. This isn't a problem most of the time, but WP_REST_Server contains a fallback to PATH_INFO. Combined with PATH_INFO permalinks, this would give a 404 on the API index, as it attempts to look up a route for "/wp-json/".
Props ccprog.
Fixes #39432 .
Built from https://develop.svn.wordpress.org/trunk@39923
git-svn-id: http://core.svn.wordpress.org/trunk@39860 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-17 05:40:40 +00:00
Ryan McCue
dc133c3f2d
REST API: Allow shortcircuiting rest_pre_insert_comment
...
rest_pre_insert_{post_type} allows returning a WP_Error from the filter to shortcircuit actually creating the object, so it makes sense to do so for comments too.
Props dspilka.
Fixes #39578 .
Built from https://develop.svn.wordpress.org/trunk@39922
git-svn-id: http://core.svn.wordpress.org/trunk@39859 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-17 05:18:41 +00:00
Gary Pendergast
096b09d941
dbDelta: Ignore index subparts when checking for duplicate indices.
...
If index lengths change in table definitions, we don't recreate the index - instead, we throw a database error, as `dbDelta()` tries to create a new index with the same name.
It's better to leave the index as is, MySQL doesn't have an efficient process for resizing indices, and dropping/creating is a slow process which we don't want to trigger automatically.
Fixes #34870 .
Built from https://develop.svn.wordpress.org/trunk@39921
git-svn-id: http://core.svn.wordpress.org/trunk@39858 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-17 04:01:42 +00:00
Sergey Biryukov
3c1ce66767
Users: Introduce `signup_site_meta` and `signup_user_meta` for filtering signup metadata in `wpmu_signup_blog()` and `wpmu_signup_user()`, respectively.
...
Props Mista-Flo.
Fixes #39223 .
Built from https://develop.svn.wordpress.org/trunk@39920
git-svn-id: http://core.svn.wordpress.org/trunk@39857 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-17 03:53:42 +00:00
Sergey Biryukov
4a1108b9f9
Build/Test Tools: Add `assertNotFalse()` method to `WP_UnitTestCase` and use it where appropriate.
...
Props peterwilsoncc.
Fixes #39219 .
Built from https://develop.svn.wordpress.org/trunk@39919
git-svn-id: http://core.svn.wordpress.org/trunk@39856 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-17 03:40:43 +00:00
Sergey Biryukov
6b89d68cc1
Build/Test Tools: Correctly reference function names in `@covers` entries.
...
Props pbearne.
Fixes #39235 .
Built from https://develop.svn.wordpress.org/trunk@39918
git-svn-id: http://core.svn.wordpress.org/trunk@39855 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-17 02:44:43 +00:00
Sergey Biryukov
54001e2756
List Tables: Pass the `$which` parameter to `restrict_manage_posts` filter instance in `WP_Media_List_Table`, missed in [37422].
...
Props wpsmith.
Fixes #38772 .
Built from https://develop.svn.wordpress.org/trunk@39917
git-svn-id: http://core.svn.wordpress.org/trunk@39854 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-17 02:38:42 +00:00
Andrew Ozz
66a39611f6
TinyMCE: strip browser inserted `<u>` and <font>` tags from inside links when copying and pasting in IE and Edge.
...
Fixes #39570 .
Built from https://develop.svn.wordpress.org/trunk@39916
git-svn-id: http://core.svn.wordpress.org/trunk@39853 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-17 01:25:44 +00:00
Gary Pendergast
1071dfb4ec
User Query: Cast `$user_total` as an `int`.
...
The `$user_total` member of `WP_User_Query`, and corresponding `get_total()` method, have always been documented as returning an `int`. `$user_total`, however, is populated by `$wpdb->get_var()`, which returns
a string (containing an integer value). Casting the return value from `get_var()` as an `int` rectifies this discrepency.
Props runciters.
Fixes #39297 .
Built from https://develop.svn.wordpress.org/trunk@39915
git-svn-id: http://core.svn.wordpress.org/trunk@39852 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-16 23:24:45 +00:00
Andrew Ozz
458746f631
Tests: `wpautop()` should not add extra `</p>` before `<figcaption>`.
...
Props pbearne.
See #39307 .
Built from https://develop.svn.wordpress.org/trunk@39914
git-svn-id: http://core.svn.wordpress.org/trunk@39851 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-16 17:57:43 +00:00
James Nylen
fa20ce762a
REST API: Improve test coverage of single user endpoint for public data.
...
Add test coverage for requests of a single user resource for authors of post types registered as:
- public = true, show_in_rest = true: success without auth.
- public = true, show_in_rest = false: fail without auth.
- public = false, show_in_rest = true: success without auth.
- public = false, show_in_rest = false: fail without auth.
See #38878 .
Fixes #39546 .
Built from https://develop.svn.wordpress.org/trunk@39913
git-svn-id: http://core.svn.wordpress.org/trunk@39850 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-16 16:21:43 +00:00
Andrew Ozz
85ee190163
Formatting: fix `wpautop()` to stop adding paragraph tags around `<figcaption>`.
...
Fixes #39307 for trunk.
Built from https://develop.svn.wordpress.org/trunk@39912
git-svn-id: http://core.svn.wordpress.org/trunk@39849 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-16 01:06:40 +00:00
Andrew Ozz
ee3052fdbe
Docs: some improvements/fixes for editor.js.
...
See #38933 .
Built from https://develop.svn.wordpress.org/trunk@39911
git-svn-id: http://core.svn.wordpress.org/trunk@39848 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-16 00:49:41 +00:00
Andrew Ozz
82a8065f70
TinyMCE: ensure the inline toolbar is shown and properly positioned when there are several wpview blocks in the editor and the user selects one after the other.
...
Props gitlost.
Fixes #38849 .
Built from https://develop.svn.wordpress.org/trunk@39910
git-svn-id: http://core.svn.wordpress.org/trunk@39847 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-16 00:22:43 +00:00
Sergey Biryukov
1ba4484186
Twenty Seventeen: Remove duplicate `global $post` declaration in `twentyseventeen_front_page_section()`.
...
Props ixkaito.
Fixes #39590 .
Built from https://develop.svn.wordpress.org/trunk@39909
git-svn-id: http://core.svn.wordpress.org/trunk@39846 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-15 12:50:39 +00:00
Sergey Biryukov
4d546a12cf
I18N: Reference correct placeholder in a translator comment added in [30333].
...
See #30264 .
Built from https://develop.svn.wordpress.org/trunk@39908
git-svn-id: http://core.svn.wordpress.org/trunk@39845 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-15 08:07:43 +00:00
Sergey Biryukov
9ba7ab1cfc
Users: Display the name of user being edited on Edit User screen.
...
Props seanchayes.
Fixes #28182 .
Built from https://develop.svn.wordpress.org/trunk@39907
git-svn-id: http://core.svn.wordpress.org/trunk@39844 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-15 07:14:39 +00:00
Sergey Biryukov
649d554294
Themes: Add a unit test for `get_theme_feature_list()` to make sure that the list of theme features pulled from the WordPress.org API returns the expected data structure.
...
Props iandunn.
Fixes #28121 .
Built from https://develop.svn.wordpress.org/trunk@39906
git-svn-id: http://core.svn.wordpress.org/trunk@39843 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-15 06:50:43 +00:00
Sergey Biryukov
6e3073c1eb
Posts, Post Types: Increase the height of post slug input to prevent certain characters from being cut in Firefox on Windows.
...
Props Ankit K Gupta, Presskopp.
Fixes #28084 .
Built from https://develop.svn.wordpress.org/trunk@39905
git-svn-id: http://core.svn.wordpress.org/trunk@39842 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-15 04:03:43 +00:00
Andrew Ozz
35c91b7c0d
TinyMCE: prevent the inline toolbar from appearing on partially selected wpview nodes. This can happen when HTML is initially loaded in the editor and wpview is the first node, or sometimes on repeatedly pasting the same wpview.
...
Props gitlost.
Fixes #38849 .
Built from https://develop.svn.wordpress.org/trunk@39904
git-svn-id: http://core.svn.wordpress.org/trunk@39841 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-15 03:00:43 +00:00
Andrew Ozz
45f3ee380c
TinyMCE: when inserting a wpview, place the caret after is so the user can continue typing without interruption.
...
Props iseulde.
Fixes #39337 .
Built from https://develop.svn.wordpress.org/trunk@39903
git-svn-id: http://core.svn.wordpress.org/trunk@39840 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-15 02:41:40 +00:00
Andrew Ozz
90f441e1b4
TinyMCE: improve removal of spaces from empty paragraphs when loading HTML in the editor.
...
Fixes #39437 .
Built from https://develop.svn.wordpress.org/trunk@39902
git-svn-id: http://core.svn.wordpress.org/trunk@39839 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-15 02:06:41 +00:00
Sergey Biryukov
82e17902a9
Twenty Seventeen: Correct `@param` entries for `twentyseventeen_custom_colors_css` filter.
...
Props Soean.
Fixes #39575 .
Built from https://develop.svn.wordpress.org/trunk@39901
git-svn-id: http://core.svn.wordpress.org/trunk@39838 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-13 15:03:41 +00:00
Sergey Biryukov
b75023ee1a
Docs: Add missing `@param` type for `wp_cache_get_last_changed()`.
...
Props afzalmultani, Soean.
Fixes #39571 .
Built from https://develop.svn.wordpress.org/trunk@39900
git-svn-id: http://core.svn.wordpress.org/trunk@39837 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-13 14:16:44 +00:00
Sergey Biryukov
d2a6ea340e
REST API: Update unit tests to account for the string changes in [39896].
...
See #39054 .
Built from https://develop.svn.wordpress.org/trunk@39899
git-svn-id: http://core.svn.wordpress.org/trunk@39836 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-13 05:15:42 +00:00
Sergey Biryukov
5d83b14893
Build/Test Tools: After [29858], update `.jsintrc` to use spaces, not tabs.
...
Props netweb.
Fixes #39359 .
Built from https://develop.svn.wordpress.org/trunk@39898
git-svn-id: http://core.svn.wordpress.org/trunk@39835 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-13 04:45:41 +00:00
Sergey Biryukov
2a7400c956
Administration: Improve tab character width in Plugins and Themes editor.
...
Props afercia.
Fixes #38684 .
Built from https://develop.svn.wordpress.org/trunk@39897
git-svn-id: http://core.svn.wordpress.org/trunk@39834 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-13 04:41:41 +00:00
Sergey Biryukov
b3c28838f7
REST API: Improve error messages for number relational validation.
...
Props jblz.
Fixes #39054 .
Built from https://develop.svn.wordpress.org/trunk@39896
git-svn-id: http://core.svn.wordpress.org/trunk@39833 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-13 04:38:40 +00:00
Sergey Biryukov
8603da629f
Taxonomy: Add an explanation for "Parent" dropdown for hierarchical custom taxonomies.
...
Props F J Kaiser, raggedrobins, DrewAPicture, diddledan, SergeyBiryukov.
Fixes #23447 .
Built from https://develop.svn.wordpress.org/trunk@39895
git-svn-id: http://core.svn.wordpress.org/trunk@39832 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-13 04:19:39 +00:00
Sergey Biryukov
139a58b70a
Twenty Seventeen: Remove extra asterisk from a translator comment so the comment could be parsed correctly.
...
Props swissspidy.
See #39116 .
Built from https://develop.svn.wordpress.org/trunk@39894
git-svn-id: http://core.svn.wordpress.org/trunk@39831 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-12 21:37:43 +00:00
Sergey Biryukov
36cb41145e
Docs: In `wp_set_object_terms()`, add a note that passing an empty value as `$terms` argument will remove all related terms.
...
Props barryceelen.
Fixes #36690 .
Built from https://develop.svn.wordpress.org/trunk@39893
git-svn-id: http://core.svn.wordpress.org/trunk@39830 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-12 06:54:42 +00:00
Sergey Biryukov
a1319d63a0
Widgets: In `unregister_sidebar()`, rename the `$name` parameter to `$sidebar_id` for consistency with `is_registered_sidebar()`.
...
Also correct the parameter type in `@param` entry.
Props Soean, tmatsuur.
Fixes #35147 .
Built from https://develop.svn.wordpress.org/trunk@39892
git-svn-id: http://core.svn.wordpress.org/trunk@39829 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-12 06:38:54 +00:00
Sergey Biryukov
11d81ecc7c
Media: Use a consistent error message for file type errors on uploading.
...
Props pavelevap, jackreichert.
Fixes #33242 .
Built from https://develop.svn.wordpress.org/trunk@39891
git-svn-id: http://core.svn.wordpress.org/trunk@39828 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-12 06:29:43 +00:00
Sergey Biryukov
327a11ad65
Docs: Use a consistent description for `$plugin` parameter in various plugin API functions.
...
See #36333 .
Built from https://develop.svn.wordpress.org/trunk@39890
git-svn-id: http://core.svn.wordpress.org/trunk@39827 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-12 06:16:41 +00:00
Sergey Biryukov
a989f0b168
Docs: Improve the DocBlock for `validate_plugin()`.
...
Props theMikeD.
Fixes #36333 .
Built from https://develop.svn.wordpress.org/trunk@39889
git-svn-id: http://core.svn.wordpress.org/trunk@39826 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-12 06:15:42 +00:00
Sergey Biryukov
8b9a3a08bf
Docs: After [37083], change "HEX format" to "3- or 6-digit hexadecimal form" for clarity.
...
Props swissspidy, theMikeD.
Fixes #36336 .
Built from https://develop.svn.wordpress.org/trunk@39888
git-svn-id: http://core.svn.wordpress.org/trunk@39825 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-12 05:56:40 +00:00
Sergey Biryukov
351a3b6d69
Docs: Make `$meta` parameter description in multisite signup and registration functions more consistent.
...
See #38781 .
Built from https://develop.svn.wordpress.org/trunk@39887
git-svn-id: http://core.svn.wordpress.org/trunk@39824 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-12 05:21:41 +00:00
Sergey Biryukov
3f59be8c97
Users: In `wpmu_signup_blog()` and `wpmu_signup_user()`, pass unserialized signup meta data to `after_signup_site` and `after_signup_user` filters introduced in [34112], to match the documented value.
...
Props MaximeCulea.
Fixes #38781 .
Built from https://develop.svn.wordpress.org/trunk@39886
git-svn-id: http://core.svn.wordpress.org/trunk@39823 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-12 04:57:39 +00:00
Sergey Biryukov
a4f106ff9d
I18N: Move "Site Language" setting above "Timezone".
...
This brings all locale-specific site settings closer together and prevents the language setting from being pushed down by unrelated settings added by plugins.
Props johnjamesjacoby.
Fixes #38562 .
Built from https://develop.svn.wordpress.org/trunk@39885
git-svn-id: http://core.svn.wordpress.org/trunk@39822 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-12 04:28:40 +00:00
Sergey Biryukov
32564f9332
Themes: Use curly braces for variables inside strings in `get_page_template() to explicitly specify the end of the variable name.
...
Props kuck1u.
Fixes #38625 .
Built from https://develop.svn.wordpress.org/trunk@39884
git-svn-id: http://core.svn.wordpress.org/trunk@39821 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-12 04:13:42 +00:00
Joe McGill
52897df8cd
Media: Fix exif_imagetype check in wp_get_image_mime
...
This is a follow up to [39831].
Props gitlost.
See #11946 .
Built from https://develop.svn.wordpress.org/trunk@39850
git-svn-id: http://core.svn.wordpress.org/trunk@39787 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-11 16:36:39 +00:00
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