Commit Graph

27707 Commits

Author SHA1 Message Date
Boone Gorges
6df24465f4 Introduce orderby=include support for get_terms().
Props wpsmith.
Fixes #23261.

git-svn-id: https://develop.svn.wordpress.org/trunk@30052 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-28 18:12:30 +00:00
Lance Willett
8a1bb7bba9 Twenty Fifteen: minor CSS fixes. See #30133.
git-svn-id: https://develop.svn.wordpress.org/trunk@30051 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-28 17:17:10 +00:00
Peter Westwood
4214aa3862 Ignore any local WP Cli config files.
Fixes #30134 props danielbachhuber


git-svn-id: https://develop.svn.wordpress.org/trunk@30050 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-28 17:01:22 +00:00
Lance Willett
aa5c470fa8 Twenty Fifteen: minor CSS spacing fix. See #30133.
git-svn-id: https://develop.svn.wordpress.org/trunk@30049 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-28 16:44:44 +00:00
Lance Willett
61fb72e3c5 Twenty Fifteen: minor code style for variable within array notation. See #30133.
git-svn-id: https://develop.svn.wordpress.org/trunk@30048 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-28 16:39:14 +00:00
Lance Willett
48a504cc50 Twenty Fifteen: pinking shears. See #30133.
git-svn-id: https://develop.svn.wordpress.org/trunk@30047 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-28 16:29:39 +00:00
Lance Willett
df9b834c39 Twenty Fifteen: consistent line endings and SVN properties on all files. See #30133.
git-svn-id: https://develop.svn.wordpress.org/trunk@30046 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-28 16:28:41 +00:00
Lance Willett
0ba2f26de9 Twenty Fifteen: spacing and code style cleanup. See #30133.
git-svn-id: https://develop.svn.wordpress.org/trunk@30045 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-28 16:26:16 +00:00
Lance Willett
01cd41c3af Twenty Fifteen: escape variable in HTML attribute output in customer header. See #30133.
git-svn-id: https://develop.svn.wordpress.org/trunk@30044 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-28 16:24:27 +00:00
Lance Willett
377400ef8f Twenty Fifteen: squeeze a few more bytes from screenshot PNG file. See #30133.
git-svn-id: https://develop.svn.wordpress.org/trunk@30043 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-28 16:22:57 +00:00
Boone Gorges
c6de5dfec5 Allow 'slug' param of get_terms() to accept an array.
Props jfarthing84, dlh.
Fixes #23636.

git-svn-id: https://develop.svn.wordpress.org/trunk@30042 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-28 14:56:33 +00:00
Sergey Biryukov
6cbc9e03e1 When using 'show_in_menu' as a default value for 'show_in_admin_bar' in register_post_type(), cast to boolean instead of requiring a strict match.
props ipm-frommen.
fixes #30092.

git-svn-id: https://develop.svn.wordpress.org/trunk@30041 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-27 13:07:38 +00:00
Sergey Biryukov
a32ed9e1ea Remove one-time loop and redundant isset() checks in do_meta_boxes().
See [30022] for do_accordion_sections().

props ipm-frommen.
fixes #30093.

git-svn-id: https://develop.svn.wordpress.org/trunk@30040 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-27 12:57:24 +00:00
Sergey Biryukov
2672e35d43 Add 'comment_reply_link_args' filter for get_comment_reply_link() arguments.
props joedolson, aaroncampbell, DrewAPicture.
fixes #10569.

git-svn-id: https://develop.svn.wordpress.org/trunk@30039 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-27 11:44:40 +00:00
Sergey Biryukov
bb5aedf3d9 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@30038 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-27 11:25:31 +00:00
Sergey Biryukov
6c69eec02d Make sure the validator list on Credits screen floats correctly with longer names.
props kosvrouvas.
fixes #30066.

git-svn-id: https://develop.svn.wordpress.org/trunk@30037 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-27 02:32:23 +00:00
Sergey Biryukov
b1c3d5eccc Don't add 'sticky' class in get_post_class() if 'ignore_sticky_posts' query var is set.
props jakub.tyrcha, johneckman.
fixes #18035.

git-svn-id: https://develop.svn.wordpress.org/trunk@30036 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-27 02:15:35 +00:00
Sergey Biryukov
cd89f18427 Update expected results in wp_link_pages() unit tests after [30030].
see #24940.

git-svn-id: https://develop.svn.wordpress.org/trunk@30035 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-27 01:58:17 +00:00
Drew Jaynes (DrewAPicture)
aae8ddf48f 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@30034 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-26 23:55:16 +00:00
John Blackbourn
bc1168e953 Rename _wp_password_hint() to _wp_get_password_hint() to bring it inline with core terminology. Fixes #21243.
git-svn-id: https://develop.svn.wordpress.org/trunk@30033 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-26 23:29:11 +00:00
Mark Jaquith
48325023e2 Cast class names to an array to avoid a potential warning.
props briandichiara
fixes #29743

git-svn-id: https://develop.svn.wordpress.org/trunk@30032 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-26 23:18:03 +00:00
Boone Gorges
ae0ae95be6 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@30031 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-26 22:56:36 +00:00
John Blackbourn
b92307f58d In wp_link_pages(), only output link separators between actual pagination links. Fixes #24940. Props obenland.
git-svn-id: https://develop.svn.wordpress.org/trunk@30030 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-26 22:40:07 +00:00
Jeremy Felt
42773dc11b 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


git-svn-id: https://develop.svn.wordpress.org/trunk@30029 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-26 22:09:46 +00:00
John Blackbourn
5567318f63 Introduce an edit_form_before_permalink action which gets fired after the title field but before the permalink fields. Fixes #29691. Props captaintheme
git-svn-id: https://develop.svn.wordpress.org/trunk@30028 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-26 21:48:38 +00:00
John Blackbourn
e6483ffab5 Add labels to the Personal Options input fields on the user profile editing screen. Fixes #30101. Props Ankit K Gupta
git-svn-id: https://develop.svn.wordpress.org/trunk@30027 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-26 21:28:50 +00:00
Boone Gorges
4482d000ba Fix 'count' in WP_Comment_Query when using 'meta_query'.
Props heshiming, desaiuditd.
Fixes #23369.

git-svn-id: https://develop.svn.wordpress.org/trunk@30026 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-26 16:45:37 +00:00
Ian Stewart
c429ba1bdd 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.



git-svn-id: https://develop.svn.wordpress.org/trunk@30025 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-26 15:03:45 +00:00
Sergey Biryukov
79a5303f68 Fix JSHint errors introduced in [30014].
props adamsilverstein.
see #29572.

git-svn-id: https://develop.svn.wordpress.org/trunk@30024 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-26 12:05:58 +00:00
Sergey Biryukov
f1c05021aa Twenty Fifteen: Add Foursquare icon support to the social link menu.
props iamtakashi.
fixes #30100.

git-svn-id: https://develop.svn.wordpress.org/trunk@30023 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-26 10:44:28 +00:00
Sergey Biryukov
36ee6ba8be Remove one-time loop and redundant isset() checks.
props ipm-frommen.
fixes #30093.

git-svn-id: https://develop.svn.wordpress.org/trunk@30022 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-25 16:33:45 +00:00
Sergey Biryukov
8e3a90887e Fix a copy/paste issue in Custom_Image_Header::get_header_dimensions() introduced in [27497].
props ipm-frommen.
fixes #30095.

git-svn-id: https://develop.svn.wordpress.org/trunk@30021 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-25 15:55:37 +00:00
Sergey Biryukov
f9101c1de9 Users screen in network admin:
* Remove unused $key variables.
* Rename $val to $user_id for clarity.

props ipm-frommen.
fixes #30096.

git-svn-id: https://develop.svn.wordpress.org/trunk@30020 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-25 13:51:36 +00:00
Drew Jaynes (DrewAPicture)
3168f799c9 Fix the $location parameter type in the unregister_nav_menu() DocBlock.
`$location` is a string, not an array.

Props ipm-frommen.
Fixes #30098.


git-svn-id: https://develop.svn.wordpress.org/trunk@30019 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-25 13:42:57 +00:00
Drew Jaynes (DrewAPicture)
c61e074530 Fix an invalid type for the $section parameter in the do_settings_fields() DocBlock.
Props ipm-frommen.
See #30098.


git-svn-id: https://develop.svn.wordpress.org/trunk@30018 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-25 13:37:59 +00:00
Boone Gorges
1345fdbe22 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@30017 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-24 19:51:01 +00:00
Boone Gorges
1fe9707760 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@30016 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-24 19:50:53 +00:00
John Blackbourn
d033be1f9d 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.
git-svn-id: https://develop.svn.wordpress.org/trunk@30015 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-24 17:07:53 +00:00
John Blackbourn
37a3642183 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
git-svn-id: https://develop.svn.wordpress.org/trunk@30014 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-24 16:31:54 +00:00
Ian Stewart
805f230e99 Twenty Fifteen: valid HTML for accessible child page menu expanding and collapsing -- now with even better accessiblity.
Props afercia, davidakennedy, iamtakashi, fixes #30083.



git-svn-id: https://develop.svn.wordpress.org/trunk@30013 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-24 15:14:02 +00:00
Ian Stewart
81639b9dd7 Twenty Fifteen: correct list indentation in older IE versions.
Props iamtakashi, fixes #30074.



git-svn-id: https://develop.svn.wordpress.org/trunk@30012 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-24 15:04:48 +00:00
Ian Stewart
342f782ea0 Twenty Fifteen: darken up the post navigation with thumbnail for better a11y.
Props davidakennedy, fixes #30069.


git-svn-id: https://develop.svn.wordpress.org/trunk@30011 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-24 14:58:40 +00:00
Ian Stewart
e67582c911 Twenty Fifteen: removing Skype from the list of social links is easier than adding skype to $allowed_protocols.
Props iamtakashi, fixes #30059.



git-svn-id: https://develop.svn.wordpress.org/trunk@30010 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-24 14:54:12 +00:00
Ian Stewart
c9f6dd15f1 Twenty Fifteen: Use a p for the site description for a better experience when using a screenreader.
Props rianrietveld, fixes #30057, see #30065.


git-svn-id: https://develop.svn.wordpress.org/trunk@30009 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-24 14:50:49 +00:00
Boone Gorges
b450eb023f Improve unit tests for WP_User_Query include param.
git-svn-id: https://develop.svn.wordpress.org/trunk@30008 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-24 12:18:44 +00:00
Jeremy Felt
5015f3ed4e 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


git-svn-id: https://develop.svn.wordpress.org/trunk@30007 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-24 05:30:14 +00:00
Jeremy Felt
98a37894d6 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


git-svn-id: https://develop.svn.wordpress.org/trunk@30006 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-24 04:50:57 +00:00
Jeremy Felt
c7ad092b1d 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


git-svn-id: https://develop.svn.wordpress.org/trunk@30005 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-24 04:48:31 +00:00
Boone Gorges
382871ad9d 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@30004 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-24 02:50:24 +00:00
Boone Gorges
ce810ba5b3 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@30003 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-24 02:33:46 +00:00