Boone Gorges
27c8977af9
In wp_list_categories()
, 'current_category' should accept an array of values.
...
This allows the 'current-cat' or 'current-cat-parent' classes to be applied
to more than one item in the list.
Props vilkatis.
Fixes #33565 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33804 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-29 19:45:35 +00:00
Boone Gorges
5b0c402e6f
Simplify the weeks-per-year calculation WP_Date_Query::validate_date_values()
.
...
Props luciole135.
Fixes #30845 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33803 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-29 01:46:53 +00:00
Sergey Biryukov
a47ee912ac
Make a period translatable.
...
props mako09.
fixes #33594 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33802 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-29 01:39:51 +00:00
John Blackbourn
a4808224ff
Bring network admin user searching to parity with single site user searching by wrapping search terms in asterisks. This means that searches don't require an exact match and therefore significantly reduces friction when searching for users on the network admin screens.
...
Fixes #32913
git-svn-id: https://develop.svn.wordpress.org/trunk@33801 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-29 00:18:06 +00:00
Sergey Biryukov
7b9f6f54bf
Twenty Fifteen: Correct license information in readme.txt
.
...
props Otto42.
see #33590 , #31814 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33800 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-28 16:52:32 +00:00
Sergey Biryukov
8fbb450852
Twenty Fourteen: Correct license information in readme.txt
.
...
props Otto42.
see #33590 , #31814 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33799 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-28 16:52:14 +00:00
Sergey Biryukov
f5ee92c336
Twenty Thirteen: Correct license information in readme.txt
.
...
props Otto42.
see #33590 , #31814 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33798 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-28 16:52:01 +00:00
Sergey Biryukov
c64c73af89
Twenty Twelve: Correct license information in readme.txt
.
...
props Otto42.
see #33590 , #31814 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33797 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-28 16:51:46 +00:00
Sergey Biryukov
1b60dc074d
Twenty Eleven: Correct license information in readme.txt
.
...
props Otto42.
see #33590 , #31814 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33796 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-28 16:51:32 +00:00
Sergey Biryukov
6ba3956fd8
Twenty Ten: Correct license information in readme.txt
.
...
props Otto42.
see #33590 , #31814 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33795 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-28 16:51:02 +00:00
Drew Jaynes
002e2a0e4a
Docs: Add a changelog entry to the set_site_transient_$transient
hook doc for the $transient
parameter, added in [33738].
...
Fixes #28402 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33794 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-28 15:40:32 +00:00
Drew Jaynes
3734aa1682
Docs: Add a changelog entry to the pre_set_site_transient_$transient
hook doc for the $transient
parameter, added in [33738].
...
See #28402 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33793 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-28 15:39:11 +00:00
Drew Jaynes
bddb0de4d8
Docs: Add a changelog entry to the site_transient_$transient
hook doc for the $transient
parameter, added in [33738].
...
See #28402 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33792 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-28 15:38:01 +00:00
Drew Jaynes
9a566ea593
Docs: Add a changelog entry to the pre_site_transient_$transient
hook doc for the $transient
parameter, added in [33738].
...
See #28402 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33791 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-28 15:36:49 +00:00
Drew Jaynes
c71531275b
Docs: Add a changelog entry to the pre_update_site_option_$option
hook doc for the $option
parameter, added in [33738].
...
See #28402 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33790 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-28 15:35:35 +00:00
Drew Jaynes
d06525c8a1
Docs: Add a changelog entry to the pre_delete_site_option_$option
hook doc for the $option
parameter, added in [33738].
...
See #28402 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33789 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-28 15:34:26 +00:00
Drew Jaynes
3f8132e89e
Docs: Add a changelog entry to the pre_add_site_option_$option
hook doc for the $option
parameter, added in [33738].
...
See #28402 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33788 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-28 15:33:14 +00:00
Drew Jaynes
9eb92ae5ea
Docs: Add a changelog entry to the site_option_$option
hook doc for the $option
parameter, added in [33738].
...
See #28402 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33787 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-28 15:31:58 +00:00
Drew Jaynes
0d27e9b012
Docs: Add a changelog entry to the default_site_option_$option
hook doc for the $option
parameter, added in [33738].
...
See #28402 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33786 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-28 15:30:44 +00:00
Drew Jaynes
21ed57e09d
Docs: Add a changelog entry to the pre_site_option_$option
hook doc for the $option
parameter, added in [33738].
...
See #28402 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33785 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-28 15:29:26 +00:00
Drew Jaynes
e2c8f3ec0d
Docs: Add a changelog entry to the pre_set_transient_$transient
hook doc for the $transient
parameter, added in [33738].
...
See #28402 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33784 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-28 15:28:06 +00:00
Drew Jaynes
86a49119a2
Docs: Add a changelog entry to the transient_$transient
hook doc for the $transient
parameter, introduced in [33738].
...
See #28402 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33783 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-28 15:26:21 +00:00
Drew Jaynes
8336c88273
Docs: Add a changelog entry to the pre_transient_$transient
hook doc for the $transient
parameter, introduced in [33738].
...
See #28402 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33782 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-28 15:24:49 +00:00
Drew Jaynes
958c835f9a
Docs: Add a changelog entry to the update_option_{$option}
hook doc for the $option
parameter, introduced in [33738].
...
See #28402 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33781 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-28 15:23:14 +00:00
Drew Jaynes
323ca7e1d3
Docs: Add a changelog entry to the pre_update_option_$option
hook doc for the $option
parameter, added in [33738].
...
See #28402 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33780 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-28 15:21:18 +00:00
Drew Jaynes
41370b6e97
Docs: Add a changelog entry to the option_$option
hook doc for the $option
parameter, added in [33738].
...
See #28402 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33779 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-28 15:19:54 +00:00
Drew Jaynes
9973d71384
Docs: Add a changelog entry to the default_option_$option
hook doc for the $option
parameter, added in [33738].
...
See #28402
git-svn-id: https://develop.svn.wordpress.org/trunk@33778 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-28 15:17:33 +00:00
Sergey Biryukov
d5dd61424d
Network Admin: Hide the bulk actions checkbox for super admins.
...
See [25125] for hiding the checkbox for the main site in Sites table.
props bordoni.
fixes #28529 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33777 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-28 03:48:47 +00:00
Sergey Biryukov
28767e1bac
In get_post_type_labels()
, ensure that filtered labels contain all required default values.
...
fixes #33543 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33776 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-28 03:38:26 +00:00
Sergey Biryukov
923498aaa4
Avoid PHP notices in redirect_canonical()
and _wp_menu_item_classes_by_context()
if $_SERVER['HTTP_HOST']
is not set.
...
fixes #32229 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33775 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-28 03:30:55 +00:00
Helen Hou-Sandi
0c19c94561
Drop the hyphen from e-mail and standardize on email.
...
The AP Stylebook changed this in 2011, and we're woefully inconsistent, so let's go with the standard.
props morganestes, voldemortensen, niallkennedy (for patching on the previous AP style).
fixes #26156 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33774 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-28 03:16:02 +00:00
John Blackbourn
d89398f945
Don't change the View Post button permalink in the sample permalink HTML when updating the slug on a published or future post.
...
Fixes #32954
Props boonebgorges, johnbillion
git-svn-id: https://develop.svn.wordpress.org/trunk@33773 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-27 20:56:54 +00:00
Sergey Biryukov
65c07b81c0
Remove wp-includes/comment-functions.php
from the $_old_files
array. See [33750].
...
props rachelbaker.
fixes #33569 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33772 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-27 20:39:58 +00:00
John Blackbourn
f312173db5
Improve the efficiency of is_user_member_of_blog()
by removing its use of get_blogs_of_user()
. Adds additional tests.
...
Fixes #32472
Props BinaryKitten, sammybeats, johnbillion
git-svn-id: https://develop.svn.wordpress.org/trunk@33771 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-27 20:01:37 +00:00
John Blackbourn
0d0a8353f5
Remove error
from the query variables when cleaning up a URL in wp_admin_canonical_url()
.
...
Fixes #32847
git-svn-id: https://develop.svn.wordpress.org/trunk@33770 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-27 17:25:15 +00:00
John Blackbourn
e95ce848f9
Correct the hook docs for the user_profile_update_errors
action.
...
Fixes #33537
Props yamchhetri
git-svn-id: https://develop.svn.wordpress.org/trunk@33769 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-27 17:15:54 +00:00
Drew Jaynes
ffb128a3c6
Docs: Add a changelog entry to the pre_option_$option
hook doc for the $option
parameter, added in [33738].
...
See #28402
git-svn-id: https://develop.svn.wordpress.org/trunk@33768 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-27 16:59:17 +00:00
Boone Gorges
718787cd18
Rename param added to wp_list_categories()
in [33764] to 'hide_title_if_empty'.
...
Props vilkatis, DrewAPicture.
Fixes #33565 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33767 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-27 02:08:31 +00:00
Sergey Biryukov
30eb4853f0
Prevent unintended password change after clicking "Generate Password" and then "Cancel" when editing a user profile.
...
props peterwilsoncc.
fixes #33419 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@33766 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-27 00:10:39 +00:00
Boone Gorges
1f7031e2f8
After [33764], fix docblock formatting for wp_list_categories()
.
...
See #33460 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33765 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-26 19:42:02 +00:00
Boone Gorges
a684d5d19d
Introduce hide_title_if_no_cats
parameter to wp_list_categories()
.
...
When generating a `<ul>` using `wp_list_categories()`, a title `<li>` element
is put at the top of the term list. Current behavior is that this title `<li>`
appears even when no terms are found. The new `hide_title_if_no_cats` param
allows developers to specify that the title should be hidden when the term list
is empty.
Props vilkatis.
Fixes #33460 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33764 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-26 19:41:55 +00:00
Boone Gorges
91a24f5cca
Use proper array documentation formatting for wp_list_categories()
.
...
This changeset also corrects a few parameter descriptions, and adds a few that
were previously missing.
Fixes #33556 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33763 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-26 15:29:35 +00:00
Sergey Biryukov
a69c9ff66f
Make post meta box toggles accessible.
...
props joedolson.
fixes #33544 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33762 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-26 15:22:57 +00:00
Scott Taylor
46d0feea46
Meta: move WP_Meta_Query
into its own file. meta.php
loads the new files, so this is 100% BC if someone is loading meta.php
directly. New files created using svn cp
.
...
Creates:
`class-wp-meta-query.php`
`meta-functions.php`
`meta.php` contains only top-level code. Class file only contains the class. Functions file only contains functions.
See #33413 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33761 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-26 13:01:22 +00:00
Scott Taylor
bb0b507718
Taxonomy: move WP_Tax_Query
into its own file. taxonomy.php
loads the new files, so this is 100% BC if someone is loading taxonomy.php
directly. New files created using svn cp
.
...
Creates:
`class-wp-tax-query.php`
`taxonomy-functions.php`
`taxonomy.php` contains only top-level code. Class file only contains the class. Functions file only contains functions.
See #33413 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33760 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-26 12:48:11 +00:00
Scott Taylor
718c1a8d25
Posts: move WP_Post
into its own file. post.php
loads the new files, so this is 100% BC if someone is loading post.php
directly. New files created using svn cp
.
...
Creates:
`class-wp-post.php`
`post-functions.php`
`post.php` contains only top-level code. Class file only contains the class. Functions file only contains functions.
See #33413 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33759 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-26 12:39:07 +00:00
Drew Jaynes
2fda97b15a
Docs: Add inline-docblocks for the require_once()
calls that now bring in the WP_Widget
and WP_Widget_Factory
classes, as well as general core widgets functionality, as of [33746].
...
See [33746]. See #33413 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33758 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-26 08:00:35 +00:00
Drew Jaynes
fc691e0457
Docs: Add a file header description and @since
version to wp-includes/widget-functions.php, introduced in [33746].
...
Also adds sub-section headers per the inline documentation standards for syntax.
See [33746]. See #33413 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33757 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-26 07:56:30 +00:00
Drew Jaynes
9f61d73c0c
Docs: Add a file header to wp-includes/class-wp-widget-factory.php, created when the WP_Widget_Factory
class was moved to its own file in [33746].
...
It's important for every file in WordPress, regardless of makeup or architecture, to have its own file header, even if the file contains nothing but a class. When parsed, files and classes are mutually exclusive and should be documented with this in mind.
See [33746]. See #33413 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33756 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-26 07:52:05 +00:00
Drew Jaynes
76f5134023
Docs: Add a file header to wp-includes/class-wp-widget.php, created when the WP_Widget
class was moved to its own file in [33746].
...
It's important for every file in WordPress, regardless of makeup or architecture, to have its own file header, even if the file contains nothing but a class. When parsed, files and classes are mutually exclusive and should be documented with this in mind.
See [33746]. See #33413 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33755 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-26 07:44:59 +00:00