Commit Graph

27936 Commits

Author SHA1 Message Date
Sergey Biryukov
0c2c7ad204 Add 'comment_reply_link_args' filter for get_comment_reply_link() arguments.
props joedolson, aaroncampbell, DrewAPicture.
fixes #10569.
Built from https://develop.svn.wordpress.org/trunk@30039


git-svn-id: http://core.svn.wordpress.org/trunk@30039 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-27 11:45:18 +00:00
Sergey Biryukov
ed4a827365 Don't display Standard post format twice in the meta box if the theme unnecessarily mentions it in the add_theme_support() call.
props ptahdunbar, nacin, pushplaybang, obenland.
fixes #16555.
Built from https://develop.svn.wordpress.org/trunk@30038


git-svn-id: http://core.svn.wordpress.org/trunk@30038 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-27 11:26:18 +00:00
Sergey Biryukov
9f379e6b6c Make sure the validator list on Credits screen floats correctly with longer names.
props kosvrouvas.
fixes #30066.
Built from https://develop.svn.wordpress.org/trunk@30037


git-svn-id: http://core.svn.wordpress.org/trunk@30037 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-27 02:33:18 +00:00
Sergey Biryukov
16bbe9b57b Don't add 'sticky' class in get_post_class() if 'ignore_sticky_posts' query var is set.
props jakub.tyrcha, johneckman.
fixes #18035.
Built from https://develop.svn.wordpress.org/trunk@30036


git-svn-id: http://core.svn.wordpress.org/trunk@30036 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-27 02:16:20 +00:00
Sergey Biryukov
0f1ddbad22 Update expected results in wp_link_pages() unit tests after [30030].
see #24940.
Built from https://develop.svn.wordpress.org/trunk@30035


git-svn-id: http://core.svn.wordpress.org/trunk@30035 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-27 01:59:18 +00:00
Drew Jaynes
f5cc9ba1be Add a missing asterisk in the DocBlock for write_post().
Also removes several `@uses` tags, which are no longer leveraged as part of the inline documentation standard.

Props tareq1988.
Fixes #30118.

Built from https://develop.svn.wordpress.org/trunk@30034


git-svn-id: http://core.svn.wordpress.org/trunk@30034 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-26 23:56:18 +00:00
John Blackbourn
b1ba80de87 Rename _wp_password_hint() to _wp_get_password_hint() to bring it inline with core terminology. Fixes #21243.
Built from https://develop.svn.wordpress.org/trunk@30033


git-svn-id: http://core.svn.wordpress.org/trunk@30033 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-26 23:30:18 +00:00
Mark Jaquith
11471d6415 Cast class names to an array to avoid a potential warning.
props briandichiara
fixes #29743
Built from https://develop.svn.wordpress.org/trunk@30032


git-svn-id: http://core.svn.wordpress.org/trunk@30032 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-26 23:19:19 +00:00
Boone Gorges
61115c51f7 Improve WP_Tax_Query param sanitization for empty strings.
When an empty string is passed as one of the clauses in the `$tax_query`
parameter, it should be discarded rather than parsed as a first-order clause.

Props tmtrademark.
Fixes #30117.
Built from https://develop.svn.wordpress.org/trunk@30031


git-svn-id: http://core.svn.wordpress.org/trunk@30031 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-26 22:57:18 +00:00
John Blackbourn
524097970a In wp_link_pages(), only output link separators between actual pagination links. Fixes #24940. Props obenland.
Built from https://develop.svn.wordpress.org/trunk@30030


git-svn-id: http://core.svn.wordpress.org/trunk@30030 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-26 22:41:18 +00:00
Jeremy Felt
aa469e2623 Optimize site query when performing network database upgrades
We only use `blog_id` from the query, so we don't need a wildcard.

props marcosf
Fixes #30097

Built from https://develop.svn.wordpress.org/trunk@30029


git-svn-id: http://core.svn.wordpress.org/trunk@30029 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-26 22:10:19 +00:00
John Blackbourn
1c9bc93735 Introduce an edit_form_before_permalink action which gets fired after the title field but before the permalink fields. Fixes #29691. Props captaintheme
Built from https://develop.svn.wordpress.org/trunk@30028


git-svn-id: http://core.svn.wordpress.org/trunk@30028 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-26 21:49:18 +00:00
John Blackbourn
f74f20ab7f Add labels to the Personal Options input fields on the user profile editing screen. Fixes #30101. Props Ankit K Gupta
Built from https://develop.svn.wordpress.org/trunk@30027


git-svn-id: http://core.svn.wordpress.org/trunk@30027 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-26 21:29:19 +00:00
Boone Gorges
3179629853 Fix 'count' in WP_Comment_Query when using 'meta_query'.
Props heshiming, desaiuditd.
Fixes #23369.
Built from https://develop.svn.wordpress.org/trunk@30026


git-svn-id: http://core.svn.wordpress.org/trunk@30026 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-26 16:46:19 +00:00
Ian Stewart
a8f8a655f2 Twenty Fifteen: If the sidebar is taller than the viewport scroll it with the content, if it's shorter keep it fixed.
Props mattwiebe, iamtakashi, avryl, fixes #29979.


Built from https://develop.svn.wordpress.org/trunk@30025


git-svn-id: http://core.svn.wordpress.org/trunk@30025 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-26 15:04:21 +00:00
Sergey Biryukov
ef00815a3a Fix JSHint errors introduced in [30014].
props adamsilverstein.
see #29572.
Built from https://develop.svn.wordpress.org/trunk@30024


git-svn-id: http://core.svn.wordpress.org/trunk@30024 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-26 12:06:19 +00:00
Sergey Biryukov
220213a3f9 Twenty Fifteen: Add Foursquare icon support to the social link menu.
props iamtakashi.
fixes #30100.
Built from https://develop.svn.wordpress.org/trunk@30023


git-svn-id: http://core.svn.wordpress.org/trunk@30023 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-26 10:45:18 +00:00
Sergey Biryukov
1bd594f033 Remove one-time loop and redundant isset() checks.
props ipm-frommen.
fixes #30093.
Built from https://develop.svn.wordpress.org/trunk@30022


git-svn-id: http://core.svn.wordpress.org/trunk@30022 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-25 16:34:18 +00:00
Sergey Biryukov
d4f1296098 Fix a copy/paste issue in Custom_Image_Header::get_header_dimensions() introduced in [27497].
props ipm-frommen.
fixes #30095.
Built from https://develop.svn.wordpress.org/trunk@30021


git-svn-id: http://core.svn.wordpress.org/trunk@30021 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-25 15:56:19 +00:00
Sergey Biryukov
4cedf4a2a2 Users screen in network admin:
* Remove unused $key variables.
* Rename $val to $user_id for clarity.

props ipm-frommen.
fixes #30096.
Built from https://develop.svn.wordpress.org/trunk@30020


git-svn-id: http://core.svn.wordpress.org/trunk@30020 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-25 13:52:19 +00:00
Drew Jaynes
96fb9e36a2 Fix the $location parameter type in the unregister_nav_menu() DocBlock.
`$location` is a string, not an array.

Props ipm-frommen.
Fixes #30098.

Built from https://develop.svn.wordpress.org/trunk@30019


git-svn-id: http://core.svn.wordpress.org/trunk@30019 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-25 13:43:18 +00:00
Drew Jaynes
3ad681b2ef Fix an invalid type for the $section parameter in the do_settings_fields() DocBlock.
Props ipm-frommen.
See #30098.

Built from https://develop.svn.wordpress.org/trunk@30018


git-svn-id: http://core.svn.wordpress.org/trunk@30018 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-25 13:38:23 +00:00
Boone Gorges
fb89a4c762 Streamline WP_User_Query unit tests.
* Don't create user during setUp(), as it's not used in every test.
* Create fewer users in `get_all` and `orderby` tests.

See #30017.
Built from https://develop.svn.wordpress.org/trunk@30017


git-svn-id: http://core.svn.wordpress.org/trunk@30017 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-24 19:51:38 +00:00
Boone Gorges
be4bc9a7e1 Accept 'orderby=include' in WP_User_Query.
This lets the results of a user query be sorted manually by the value of the
'include' param.

Props jipmoors.
Fixes #30064.
Built from https://develop.svn.wordpress.org/trunk@30016


git-svn-id: http://core.svn.wordpress.org/trunk@30016 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-24 19:51:21 +00:00
John Blackbourn
823cfebeca Remove padding from the comment notification emails which is from a bygone fixed-width font era. Prevents alignment issues in email clients which use vairable width fonts for plain text emails. Fixes #16721. Props DrewAPicture.
Built from https://develop.svn.wordpress.org/trunk@30015


git-svn-id: http://core.svn.wordpress.org/trunk@30015 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-24 17:08:18 +00:00
John Blackbourn
905b6a9d67 Add the ability for a customizer control to render its controls via a JavaScript template. Switches the default color picker control to a JavaScript template. See #29572. Props celloexpressions
Built from https://develop.svn.wordpress.org/trunk@30014


git-svn-id: http://core.svn.wordpress.org/trunk@30014 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-24 16:32:18 +00:00
Ian Stewart
3ec1c95062 Twenty Fifteen: valid HTML for accessible child page menu expanding and collapsing -- now with even better accessiblity.
Props afercia, davidakennedy, iamtakashi, fixes #30083.


Built from https://develop.svn.wordpress.org/trunk@30013


git-svn-id: http://core.svn.wordpress.org/trunk@30013 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-24 15:15:20 +00:00
Ian Stewart
ea264c07b2 Twenty Fifteen: correct list indentation in older IE versions.
Props iamtakashi, fixes #30074.


Built from https://develop.svn.wordpress.org/trunk@30012


git-svn-id: http://core.svn.wordpress.org/trunk@30012 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-24 15:05:19 +00:00
Ian Stewart
164f786627 Twenty Fifteen: darken up the post navigation with thumbnail for better a11y.
Props davidakennedy, fixes #30069.

Built from https://develop.svn.wordpress.org/trunk@30011


git-svn-id: http://core.svn.wordpress.org/trunk@30011 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-24 14:59:19 +00:00
Ian Stewart
a031e94d8c Twenty Fifteen: removing Skype from the list of social links is easier than adding skype to $allowed_protocols.
Props iamtakashi, fixes #30059.


Built from https://develop.svn.wordpress.org/trunk@30010


git-svn-id: http://core.svn.wordpress.org/trunk@30010 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-24 14:55:18 +00:00
Ian Stewart
fdbd6b439b Twenty Fifteen: Use a p for the site description for a better experience when using a screenreader.
Props rianrietveld, fixes #30057, see #30065.

Built from https://develop.svn.wordpress.org/trunk@30009


git-svn-id: http://core.svn.wordpress.org/trunk@30009 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-24 14:51:19 +00:00
Boone Gorges
4e43b1ef56 Improve unit tests for WP_User_Query include param.
Built from https://develop.svn.wordpress.org/trunk@30008


git-svn-id: http://core.svn.wordpress.org/trunk@30008 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-24 12:19:18 +00:00
Jeremy Felt
16c1fc686a Improve tests for get_blog_id_from_url()
Expand tests to cover additional cache and lookup scenarios. Explicitly test the reaction of `get_blog_id_from_url()` when `$drop = false` is passed to `wpmu_delete_blog()`. See #30080

Fixes #30088

Built from https://develop.svn.wordpress.org/trunk@30007


git-svn-id: http://core.svn.wordpress.org/trunk@30007 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-24 05:31:19 +00:00
Jeremy Felt
e815da555f Begin cleanup of ms-sites group unit tests
* Split `test_create_and_delete_blog()` into two tests.
* Clean up number of sites created during tests.
* Remove test_getters(), move get_blog_address_by_name() test to `test_created_site_details()`

See #30080

Built from https://develop.svn.wordpress.org/trunk@30006


git-svn-id: http://core.svn.wordpress.org/trunk@30006 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-24 04:51:18 +00:00
Jeremy Felt
fd149bb220 Deprecate admin_created_user_subject()
When `admin_created_user_subjec()` was merged from MU, the accompanying filter was left behind. As it has never been used by WordPress core, and is not an otherwise useful function, it can be deprecated.

Fixes #29915

Built from https://develop.svn.wordpress.org/trunk@30005


git-svn-id: http://core.svn.wordpress.org/trunk@30005 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-24 04:49:20 +00:00
Boone Gorges
40ec420689 Allow ORDER BY in WP_Comment_Query::query() to be disabled.
Disable ORDER BY by passing boolean false, an empty array, or the string
'none' to the 'orderby parameter. This mirrors the behavior of `WP_Query`.

Props psycleuk.
Fixes #29902.
Built from https://develop.svn.wordpress.org/trunk@30004


git-svn-id: http://core.svn.wordpress.org/trunk@30004 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-24 02:51:19 +00:00
Boone Gorges
f780d0d09b Add unit tests for WP_Comment_Query 'orderby' param.
For better testability, the SQL string generated in `WP_Comment_Query::get_posts()`
is now stored as a 'request' property on the object.

See #29902.
Built from https://develop.svn.wordpress.org/trunk@30003


git-svn-id: http://core.svn.wordpress.org/trunk@30003 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-24 02:34:18 +00:00
Andrew Ozz
8681dc786c Editor: use <button> instead of <a> for the Visual/Text buttons, make them focusable. Props afercia, fixes #27553
Built from https://develop.svn.wordpress.org/trunk@30002


git-svn-id: http://core.svn.wordpress.org/trunk@30002 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-24 01:21:18 +00:00
Boone Gorges
34f3c6faf2 Set current user to 0 after each unit test.
This prevents $current_user, $userdata, and other user-related globals from
being polluted if a previous test does not properly reset the current user.

Props nacin, mnelson4.
Fixes #29712.
Built from https://develop.svn.wordpress.org/trunk@30001


git-svn-id: http://core.svn.wordpress.org/trunk@30001 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-24 00:59:18 +00:00
Andrew Nacin
1df979dea5 4.1-alpha-30000 (!)
Built from https://develop.svn.wordpress.org/trunk@30000


git-svn-id: http://core.svn.wordpress.org/trunk@30000 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-23 23:32:19 +00:00
Andrew Nacin
23bcdc8089 4.1-alpha-29999
Built from https://develop.svn.wordpress.org/trunk@29999


git-svn-id: http://core.svn.wordpress.org/trunk@29999 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-23 23:27:20 +00:00
Andrew Nacin
49729f6e35 4.1-alpha-29998. (Bumping to permanently sync the revision number with https://develop.svn.wordpress.org.)
git-svn-id: http://core.svn.wordpress.org/trunk@29998 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-23 21:01:40 +00:00
Andrew Nacin
d6f37c2f9b 4.1-alpha-29997. (Bumping to permanently sync the revision number with https://develop.svn.wordpress.org.)
git-svn-id: http://core.svn.wordpress.org/trunk@29997 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-23 21:01:39 +00:00
Andrew Nacin
d134bb7f42 4.1-alpha-29996. (Bumping to permanently sync the revision number with https://develop.svn.wordpress.org.)
git-svn-id: http://core.svn.wordpress.org/trunk@29996 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-23 21:01:38 +00:00
Andrew Nacin
a9c72f0ccf 4.1-alpha-29995. (Bumping to permanently sync the revision number with https://develop.svn.wordpress.org.)
git-svn-id: http://core.svn.wordpress.org/trunk@29995 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-23 21:01:37 +00:00
Andrew Nacin
dc259efd77 4.1-alpha-29994. (Bumping to permanently sync the revision number with https://develop.svn.wordpress.org.)
git-svn-id: http://core.svn.wordpress.org/trunk@29994 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-23 21:01:36 +00:00
Andrew Nacin
661676d57d 4.1-alpha-29993. (Bumping to permanently sync the revision number with https://develop.svn.wordpress.org.)
git-svn-id: http://core.svn.wordpress.org/trunk@29993 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-23 21:01:35 +00:00
Andrew Nacin
f76901b8b1 4.1-alpha-29992. (Bumping to permanently sync the revision number with https://develop.svn.wordpress.org.)
git-svn-id: http://core.svn.wordpress.org/trunk@29992 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-23 21:01:34 +00:00
Andrew Nacin
be954c2ac9 4.1-alpha-29991. (Bumping to permanently sync the revision number with https://develop.svn.wordpress.org.)
git-svn-id: http://core.svn.wordpress.org/trunk@29991 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-23 21:01:33 +00:00
Andrew Nacin
4520bfd83a 4.1-alpha-29990. (Bumping to permanently sync the revision number with https://develop.svn.wordpress.org.)
git-svn-id: http://core.svn.wordpress.org/trunk@29990 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-23 21:01:32 +00:00