Boone Gorges
9f551a4630
Don't match partial roles in `WP_User_Query`.
...
Because 'role=ocean90' shouldn't match 'role=bocean901'.
Props bocean901, ocean90.
Fixes #22212 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35101 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-13 01:31:53 +00:00
Scott Taylor
d936110f7c
Widgets: when getting settings, and none exist, set them to empty to avoid extraneous database queries on subsequent requests.
...
Adds unit tests.
Props kovshenin, MikeHansenMe, dlh.
Fixes #26876 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35100 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-13 01:12:12 +00:00
Scott Taylor
32b604de00
Color Picker: when opening and closing, toggle a `wp-picker-active` class on the wrapper.
...
Props norcross.
Fixes #29471 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35099 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-13 01:07:21 +00:00
Drew Jaynes
681d100fd6
Feeds: Simplify logic for checking if the `do_feed_{$feed}` action is hooked to any callbacks.
...
See [35097] for where the aforementioned hook was renamed to actually be dynamic, thus rendering creation of the extra `$hook` variable moot.
See #34264 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35098 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-13 01:06:26 +00:00
Drew Jaynes
1246590769
Feeds: Adjust the `do_feed_{$feed}` hook name to actually be dynamic, rather than pre-storing the tag name in a variable and referencing that.
...
Props johnbillion.
Fixes #34264 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35097 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-13 01:02:47 +00:00
Sergey Biryukov
6aa28b5bd3
Format the number of comments in `wp-includes/embed-template.php` for the locale.
...
Props johnbillion.
Fixes #34276 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35096 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-13 01:01:53 +00:00
Scott Taylor
380d27331e
XML-RPC: Add a filter, `xmlrpc_memory_limit`, to allow the value of `$xmlrpc_memory_limit` to be increased.
...
Props ankit.gade.
Fixes #29957 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35095 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-13 01:00:04 +00:00
Drew Jaynes
44a4978535
Plugins: Introduce the `delete_plugin` transactional hook, which fires immediately after a plugin deletion attempt occurs.
...
Props Veraxus for the initial patch.
Fixes #26904 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35094 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-13 00:56:32 +00:00
Drew Jaynes
3f756da63a
Login: Pass the username and `WP_User` object to the `retrieve_password_title` filter.
...
Adding these parameters creates parity with the `retrieve_password_message` filter, used for modifying the message body of the same password reset email.
Props sudar.
Fixes #34252 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35093 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-13 00:50:28 +00:00
Sergey Biryukov
34a716709c
In `number_format_i18n()`, check if `$wp_locale` is set before using it.
...
Props pauldewouters.
Fixes #31553 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35092 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-13 00:29:18 +00:00
Sergey Biryukov
e85d9f1312
Correct the `post_date` format in `WP_Date_Query` tests.
...
It should be `'Y-m-d H:i:s'` in order to match the regex in `get_gmt_from_date()` if `'timezone_string'` option is not set.
Props pbearne.
Fixes #34277 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35091 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 23:39:50 +00:00
John Blackbourn
91583fe499
Add missing `@since` params and update the docs for `site_icon_url()` and `has_site_icon()`.
...
See #32246
git-svn-id: https://develop.svn.wordpress.org/trunk@35090 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 23:27:18 +00:00
John Blackbourn
d32c6cfbc9
Remove another unnecessary `function_exists()` call.
...
See [35087]
See #32522
git-svn-id: https://develop.svn.wordpress.org/trunk@35089 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 23:19:43 +00:00
Drew Jaynes
33d083e263
Version bump.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@35088 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 22:58:22 +00:00
John Blackbourn
4d8c6f6e08
Remove an unnecessary `function_exists()` call which was included in the oEmbed feature plugin for compatibility with WordPress < 4.3.
...
See #32522
git-svn-id: https://develop.svn.wordpress.org/trunk@35087 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 22:53:28 +00:00
John Blackbourn
2eaae4739b
Correct two escaping functions used in `wp-includes/embed-template.php`.
...
See #32522
git-svn-id: https://develop.svn.wordpress.org/trunk@35086 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 22:51:32 +00:00
John Blackbourn
da6090d9f7
Add missing `@since` docs for the filters in `wp-includes/embed-template.php`
...
See #32522 , #32246
git-svn-id: https://develop.svn.wordpress.org/trunk@35085 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 22:50:34 +00:00
John Blackbourn
d04e6dc919
Correct the `@since` doc for `WP_Query::is_embed()`.
...
See #32522
git-svn-id: https://develop.svn.wordpress.org/trunk@35084 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 22:12:42 +00:00
Scott Taylor
743d22415f
oEmbed: add fallback icons (not used yet) for older browsers.
...
Props melchoyce.
See #34204 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35083 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 21:16:10 +00:00
John Blackbourn
f5d2e0dd61
Add `$transient` as a parameter to the `set_transient_{transient}` action.
...
Props SergeyBiryukov
Fixes #34269
git-svn-id: https://develop.svn.wordpress.org/trunk@35082 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 21:01:24 +00:00
Scott Taylor
e05891a7ec
Media: avoid "divide by zero" in `wp_get_attachment_image_srcset_array()`.
...
Fixes #34238 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35081 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 20:59:12 +00:00
Drew Jaynes
6e6d9f9830
Docs: Specify the default image size in the `$size` parameter description for the `image_send_to_editor` hook.
...
See #34257 . See #32246 . See [35058].
git-svn-id: https://develop.svn.wordpress.org/trunk@35080 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 17:17:19 +00:00
Drew Jaynes
dd7b3a62fd
Docs: Normalize spacing in the DocBlock for `get_image_send_to_editor()` following [35056].
...
See #34257 . See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35079 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 17:15:16 +00:00
Drew Jaynes
6ca6c6fc1c
Docs: The `$size` parameter for the `get_image_tag` hook also accepts an array.
...
See #34257 . See [35038].
git-svn-id: https://develop.svn.wordpress.org/trunk@35078 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 17:10:59 +00:00
Drew Jaynes
03481541aa
Docs: The `$size` parameter for the `get_image_tag_class` hook also accepts an array.
...
See #34257 . See [35037].
git-svn-id: https://develop.svn.wordpress.org/trunk@35077 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 17:08:39 +00:00
Drew Jaynes
2f5be3afcf
Docs: Adjust documentation for the `$size` parameter in `the_post_thumbnail_url()` to clarify the required order of width and height values when passing an array.
...
Fixes #34257 . Whew!
git-svn-id: https://develop.svn.wordpress.org/trunk@35076 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 16:59:48 +00:00
Drew Jaynes
663d71de0d
Docs: The `post_thumbnail_size` hook can also accept an array (already supported).
...
See #34257 . See [35069].
git-svn-id: https://develop.svn.wordpress.org/trunk@35075 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 16:56:54 +00:00
Drew Jaynes
38141969f2
Docs: The `$size` parameters in the `begin_fetch_post_thumbnail_html` and `end_fetch_post_thumbnail_html` hooks can also accept an array (already supported).
...
See #34257 . See #32246 . See [35070] and [35071].
git-svn-id: https://develop.svn.wordpress.org/trunk@35074 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 16:55:08 +00:00
Drew Jaynes
581723a924
Docs: Normalize spacing in the `post_thumbnail_html` hook doc following [35072].
...
See #34257 . See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35073 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 16:52:15 +00:00
Drew Jaynes
a92ba46df9
Docs: Adjust documentation for the `$size` parameter in the `post_thumbnail_html` hook doc to clarify the required order of width and height values when an array is passed.
...
Also adds the `array` type to the parameter documentation (already supported).
See #34257 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35072 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 16:51:15 +00:00
Drew Jaynes
ecf49d9f10
Docs: Adjust documentation for the `$size` parameter in the `end_fetch_post_thumbnail_html` hook doc to clarify the required order of width and height values when an array is passed.
...
See #34257 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35071 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 16:49:14 +00:00
Drew Jaynes
73cfcece73
Docs: Adjust documentation for the `$size` parameter in the `begin_fetch_post_thumbnail_html` hook doc to clarify the required order of width and height values when an array is passed.
...
See #34257 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35070 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 16:48:26 +00:00
Drew Jaynes
e918b66538
Docs: Adjust documentation for the `$size` parameter in the `post_thumbnail_size` hook doc to clarify the required order of width and height values when an array is passed.
...
See #34257 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35069 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 16:47:22 +00:00
Drew Jaynes
debd363cd7
Docs: Adjust documentation for the `$size` parameter in `get_the_post_thumbnail()` to clarify the required order of width and height values when passing an array.
...
See #34257 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35068 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 16:46:15 +00:00
Drew Jaynes
5f5bcfb15a
Docs: Adjust documentation for the `$size` parameter in `the_post_thumbnail()` to clarify the required order of width and height values when passing an array.
...
See #34257 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35067 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 16:45:18 +00:00
Drew Jaynes
b0093711e4
Docs: Normalize spacing in the `wp_get_attachment_link` hook doc following [35065].
...
See #34257 . See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35066 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 16:43:19 +00:00
Drew Jaynes
e73fbb948c
Docs: Adjust documentation for the `$size` parameter in the `wp_get_attachment_link` hook doc to clarify the required order of width and height values when an array is passed.
...
Also adds the `array` type to the parameter documentation (already supported).
See #34257 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35065 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 16:41:54 +00:00
Drew Jaynes
6e4fdc4cbf
Docs: Improve documentation for `get_site_icon_url()`, introduced in [32994].
...
Adds a missing `@since` version, fixes optional parameter syntax, adds default values, and fixes the return description.
See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35064 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 16:37:13 +00:00
Drew Jaynes
6cfda71af7
Docs: Re-clarify the `$sizes[ $size ]` section of the hash notations for `WP_Image_Editor_GD::multi_resize()` and `WP_Image_Editor_Imagick::multi_resize()` as not fully-optional.
...
The `$width` value is optional if `$height` is specified, and vice versa. The `$crop` value is always optional and defaults to false.
Props dh-shredder.
See #32246 . See [35061] and [35062].
git-svn-id: https://develop.svn.wordpress.org/trunk@35063 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 16:33:30 +00:00
Drew Jaynes
f66e753d46
Docs: Fix hash notation syntax for the `$sizes[ $size ]` section in the DocBlock for `WP_Image_Editor_Imagick::multi_resize()`.
...
See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35062 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 16:26:22 +00:00
Drew Jaynes
9575f53d50
Docs: Fix hash notation syntax for the `$sizes[ $size ]` section in the DocBlock for `WP_Image_Editor_GD::multi_resize()`.
...
See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35061 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 16:25:24 +00:00
Drew Jaynes
8749c5fa18
Docs: Adjust documentation for the `$size` parameter in the `admin_post_thumbnail_size` hook doc to clarify the required order of width and height values when an array is passed.
...
See #34257 . See #28512 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35060 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 16:21:57 +00:00
Drew Jaynes
6db985862a
Docs: Normalize spacing in the `image_send_to_editor` hook doc following [35058].
...
See #34257 . See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35059 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 16:18:32 +00:00
Drew Jaynes
59db8cfe93
Docs: Adjust documentation for the `$size` parameter in the `image_send_to_editor` hook doc to clarify the required order of width and height values when an array is passed.
...
Also adds the `array` type to the parameter documentation (already supported).
See #34257 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35058 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 16:16:35 +00:00
Drew Jaynes
f948ce0902
Docs: Fix the syntax for marking parameters optional and add defaults in the DocBlock for `wp_get_attachment_link()`.
...
See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35057 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 16:14:03 +00:00
Drew Jaynes
25c0710f4c
Docs: Fix syntax and properly mark optional parameters as such in the DocBlock for `get_image_send_to_editor()`.
...
Also fixes the return description, and adds the `$size` default value, missed in [35055].
See #34257 . See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35056 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 16:10:44 +00:00
Drew Jaynes
4d967258f2
Docs: Adjust documentation for the `$size` parameter in `get_image_send_to_editor()` to clarify the required order of width and height values when passing an array.
...
Also adds the `array` type to the parameter documentation (already supported).
See #34257 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35055 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 16:07:25 +00:00
Drew Jaynes
0cf4a5e121
Docs: Adjust the order of 'width' and 'height' (for consistency) for the `$crop` parameter documentation in `image_make_intermediate_size()`.
...
Props jaspermdegroot.
See #34257 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35054 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 16:05:30 +00:00
Drew Jaynes
6eb8c85678
Docs: Adjust the order of 'width' and 'height' (for consistency) for the `$crop` parameter documentation in `image_resize_dimensions()`.
...
Also similarly adjusts the `$crop` parameter description in the corresponding `image_resize_dimensions` hook doc.
Props jaspermdegroot.
See #34257 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35053 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 16:01:10 +00:00
Drew Jaynes
4d2fa13bf5
Docs: Adjust the order of 'width' and 'height' (for consistency) for the `$crop` parameter documentation in `set_post_thumbnail_size()`.
...
Props jaspermdegroot.
See #34257 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35052 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 15:59:11 +00:00