Drew Jaynes
5e37130fcd
Docs: Add a changelog entry mentioning that the number
argument now supports -1 (all).
...
Also fixes the argument description.
-1 support was added in [35114].
See #28631 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35135 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-13 15:15:30 +00:00
Scott Taylor
eb85b2c11b
Theme Editor: add a filter, wp_theme_editor_filetypes
, to allow more filetypes to be edited via the Theme Editor. Usage of the Theme Editor is strenuously discouraged, but we should allow you to add whatever filetypes (.less
, .scss
) you would like.
...
Props MikeHansenMe, pross.
Fixes #22924 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35134 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-13 14:13:12 +00:00
Scott Taylor
b9e34ce4a2
Theme Installer: fix the theme "Install"/"Installed" button's vertical alignment for HiDPI displays.
...
Props paulwilde.
Fixes #34198 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35133 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-13 13:51:45 +00:00
Sergey Biryukov
c5c5bd31dd
Toolbar: Improve padding of toolbar submenu items on small screens.
...
Props tillkruess.
Fixes #28608 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35132 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-13 07:39:54 +00:00
Sergey Biryukov
b8530e502a
Accessibility: Add back-compat styles for plugins that still use h2
as a main heading in their screens.
...
Props afercia.
Fixes #33559 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35131 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-13 07:16:43 +00:00
Sergey Biryukov
59af284f25
Accessibility: Correct the style for Popular Tags header on Edit Tags screen after [33917].
...
Props afercia.
See #33559 . See #33658 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35130 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-13 07:13:33 +00:00
Sergey Biryukov
4240fe532c
Acessibility: "Add New Category" links on Edit Post screen should not be a header.
...
Props afercia.
Fixes #33557 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35129 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-13 06:59:34 +00:00
Sergey Biryukov
70a4da6f04
Accessibility: bump headings one level up in post meta boxes for a better headings hierarchy.
...
Props afercia, joedolson, wonderboymusic.
See #33557 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35128 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-13 06:56:48 +00:00
Sergey Biryukov
b71dfae98c
Add the CSS changes missed in [35126].
...
Props afercia.
See #34263 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35127 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-13 06:50:29 +00:00
Sergey Biryukov
4a5585e09d
Accessibility: bump headings one level up on Credits screen for a better headings hierarchy.
...
Props afercia.
Fixes #34263 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35126 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-13 06:49:00 +00:00
Scott Taylor
da6e194d93
Admin Bar: fix the alignment of secondary menu item arrows.
...
Props juhise.
Fixes #33836 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35125 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-13 03:53:16 +00:00
Scott Taylor
a6a0045460
Fotmatting: in sanitize_file_name()
, escape %
when uploads contain them, otherwise attachment URLs will unescape the char and break.
...
Adds unit tests.
Props mordauk, simonwheatley, dd32, solarissmoke.
Fixes #16226 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35122 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-13 03:21:13 +00:00
Sergey Biryukov
0f2f946736
Feeds: Remove a confusing comment from add_feed()
, added in [3638].
...
It always overrides the default callback if it's set, regardless of the `in_array()` check.
See #34259 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35121 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-13 03:13:31 +00:00
Boone Gorges
0d28b59c0b
Use a more reliable method for generating get_terms()
cache key.
...
Previously, the cache key included a serialization of `list_terms_exclusions`
callbacks, to ensure that the cache was differentiated properly for different
uses of the `list_terms_exclusions` filter. This strategy was flawed in a
couple of ways: serialization doesn't work equally well for all callable types;
the serialization required reaching into the `$wp_filter` global; serializing
the callback itself didn't properly account for the possibility that the
callback might return different values in different contexts; the cache key
didn't account for other filters that similarly affect the cached values, such
as `terms_clauses`.
We skirt all these issues by concatenating the cache key using the SQL query
string, which will reflect all filters applied earlier in `get_terms()`.
Props boonebgorges, wonderboymusic.
Fixes #21267 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35120 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-13 03:06:27 +00:00
SergeyBiryukov
d5e0f87530
Docs: Describe the $feedname
argument of add_feed()
.
...
Fixes #34259 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35119 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-13 03:00:03 +00:00
Sergey Biryukov
77e2cd9e18
Feeds: Pass the second parameter of "do_feed_{$feed}"
action, feed name, to callbacks added via add_feed()
.
...
The `$feed` parameter was added in [35115].
Props slimndap.
See #34259 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35118 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-13 02:58:21 +00:00
Boone Gorges
f9094e546a
In get_terms()
, don't store WP_Term
objects in cache.
...
Fixes #34282 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35117 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-13 02:57:21 +00:00
Scott Taylor
34cb01e2f1
Users: when passing a WP_User
instance to wp_update_user()
, ensure that the user password is not accidentally double-hashed. This is terrifying.
...
Adds unit tests.
Props tbcorr, salcode.
Fixes #28435 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35116 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-13 02:47:09 +00:00
Sergey Biryukov
4a2184d00c
Feeds: Pass the feed name to do_feed_{$feed}
action.
...
Props johnbillion.
See #34259 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35115 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-13 02:43:30 +00:00
Scott Taylor
4c0b89553a
Users: allow -1
(no limit, use with extreme caution on large sites) as the value for number
in WP_User_Query
- similar to posts_per_page => -1
in WP_Query
.
...
Adds unit tests.
Props mordauk, jesin, nofearinc.
Fixes #28631 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35114 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-13 02:39:05 +00:00
Boone Gorges
ae96d16ed9
Remove dead code from WP_Query::lazyload_term_meta()
.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@35111 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-13 02:35:30 +00:00
Sergey Biryukov
d884c65485
Remove obsolete code from `WP_Users_List_Table::get_sortable_columns().
...
Sorting by post count was disabled in [17024].
Props jdgrimes.
See #15861 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35110 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-13 02:24:12 +00:00
Sergey Biryukov
e654f82ce5
Replace get_bloginfo( 'wpurl' )
with admin_url()
for plugin activation error message.
...
Use `add_query_arg()` instead of constructing the URL manually.
Props johnbillion.
Fixes #34280 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35109 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-13 02:11:30 +00:00
Sergey Biryukov
a326105ade
Replace get_bloginfo( 'wpurl' )
with admin_url()
in plugin editor.
...
Use `add_query_arg()` instead of constructing the URL manually.
Props johnbillion.
See #34280 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35107 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-13 02:04:14 +00:00
Scott Taylor
65c8adc252
Widgets: When using the_widget()
, the $before_widget
argument only receives the widget class if using the default sidebar arguments. Run sprintf
after parsing the args to fix this.
...
Adds unit test.
Props coffee2code.
Fixes #19450 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35106 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-13 01:48:41 +00:00
Sergey Biryukov
c0c0305749
Replace get_bloginfo( 'wpurl' )
with site_url()
in rsd_link()
.
...
Ensure the correct scheme is used for the `application/rsd+xml` link URL.
Props johnbillion.
See #34280 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35105 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-13 01:48:32 +00:00
Drew Jaynes
72c81e01d4
Widgets: Rename the $name
parameter in is_registered_sidebar()
to $sidebar_id
and adjust the accepted types to string|int
as sidebar IDs can be numeric.
...
See #24878 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35104 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-13 01:44:44 +00:00
Scott Taylor
b272dc68b9
Widgets: add a default filter for widget_text
(used by the Text widget), balanceTags
, which respects the option for use_balanceTags
.
...
Props MikeHansenMe.
Fixes #23083 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35103 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-13 01:39:43 +00:00
Scott Taylor
3616fe5939
Widgets: add a function, is_registered_sidebar()
- helps us avoid touching the $wp_registered_sidebars
global.
...
Props GaryJ, wonderboymusic.
Fixes #24878 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35102 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-13 01:32:27 +00:00
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
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
Drew Jaynes
1165053220
Docs: Adjust the order of 'width' and 'height' (for consistency) for the $crop
parameter documentation in add_image_size()
.
...
Props jaspermdegroot.
See #34257 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35051 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 15:58:13 +00:00
Drew Jaynes
9a3fcf9fee
Docs: Adjust documentation for the $size
parameter in wp_get_attachment_link()
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).
Props jaspermdegroot.
See #34257 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35050 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 15:55:12 +00:00
Drew Jaynes
ac9254faf8
Docs: Adjust documentation for the $size
parameter in adjacent_image_link()
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@35049 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 15:52:30 +00:00
Drew Jaynes
e1d1e7a4af
Docs: Adjust documentation for the $size
parameter in next_image_link()
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@35048 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 15:49:52 +00:00
Drew Jaynes
0cebe5df94
Docs: Adjust documentation for the $size
parameter in previous_image_link()
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@35047 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 15:47:50 +00:00
Drew Jaynes
da8c9d6c7e
Docs: Normalize spacing in the $attr
hash notation for gallery_shortcode()
following [35045].
...
See #34257 . See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35046 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 15:45:23 +00:00
Drew Jaynes
447cdf9fc1
Docs: Adjust documentation for the $size
argument in gallery_shortcode
to clarify the required order of width and height values when passing an array.
...
Also adds the `array` type to the argument documentation.
Props jaspermdegroot.
See #34257 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35045 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 15:42:22 +00:00
Drew Jaynes
aeb289ca5f
Docs: Adjust documentation for the $size
parameter in wp_get_attachment_image_url()
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@35044 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 15:38:55 +00:00
Drew Jaynes
0d954c2c0b
Docs: Adjust documentation for the $size
parameter in the wp_get_attachment_image_attributes
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@35043 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 15:37:17 +00:00
Drew Jaynes
4781b9d5d3
Docs: Adjust documentation for the $size
parameter in wp_get_attachment_image()
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@35042 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 15:35:17 +00:00
Drew Jaynes
479532865d
Docs: Adjust documentation for the $size
parameter in the wp_get_attachment_image_src
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@35041 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 15:33:48 +00:00
Drew Jaynes
43c2e54456
Docs: Adjust documentation for the $size
parameter in wp_get_attachment_image_src()
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@35040 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 15:30:24 +00:00
Drew Jaynes
cc1bcb6add
Docs: Adjust documentation for the $size
parameter in image_get_intermediate_size()
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@35039 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 15:28:45 +00:00
Drew Jaynes
bb5c3bff20
Docs: Adjust documentation for the $size
parameter in the get_image_tag
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@35038 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 15:26:44 +00:00
Drew Jaynes
3fc7fea5f8
Docs: Adjust documentation for the $size
parameter in the get_image_tag_class
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@35037 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 15:25:41 +00:00
Drew Jaynes
ac370db0cb
Docs: Adjust documentation for the $size
parameter in get_image_tag()
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@35036 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 15:20:55 +00:00
Drew Jaynes
eae2d93f08
Docs: Adjust documentation for the $size
parameter in the image_downside
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@35035 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 15:19:13 +00:00
Drew Jaynes
259077deb5
Docs: Adjust documentation for the $size
parameter in image_downsize()
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@35034 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 15:17:21 +00:00
Drew Jaynes
bdfb256110
Docs: Adjust documentation for the $size
parameter in image_constrain_size_for_editor()
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@35033 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 15:15:07 +00:00
Boone Gorges
ed4eee668e
Don't cache WP_Term
objects in wp_get_object_cache()
.
...
The data stored in the cache should be raw database query results, not
`WP_Term` objects (which may be modified by plugins, and may contain additional
properties that shouldn't be cached).
If term relationships caches were handled in `wp_get_object_terms()` - where
a database query takes place - it would be straightforward to cache raw data.
See #34239 . Since, in fact, `get_the_terms()` caches the value it gets from
`wp_get_object_terms()`, we need a technique that allows us to get raw data
from a `WP_Term` object. Mirroring `WP_User`, we introduce a `data` property
on term objects, which `get_the_terms()` uses to fetch cacheable term info.
Fixes #34262 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35032 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 15:12:29 +00:00
Boone Gorges
be5065a3ad
Be stricter about sanitizing values coming out of WP_Term
.
...
Data passed into `get_instance()` should be run through `sanitize_term()`
before being used.
See #34262 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35031 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 15:12:22 +00:00
Boone Gorges
d632e2c4c1
After [35028], normalize get_term_field()
doc formatting.
...
Fixes #34245 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35029 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 04:13:31 +00:00
Boone Gorges
8847a58443
Don't require a $taxonomy
to be specified in get_term_field()
.
...
After [34997], the `$taxonomy` parameter of `get_term()` is optional. This
changeset brings `get_term_field()` in line with the new usage.
Adds unit tests for `get_term_field()`.
Props DrewAPicture.
See #34245 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35028 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 04:13:25 +00:00
Drew Jaynes
ff65d77908
Docs: Wrap a couple of hook name references in inline @see
tags in the hook docs for custom_menu_order
and menu_order
.
...
Inline `@see` tags in the context of hooks are parsed as links to hook pages in the Code Reference.
See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35027 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 03:38:11 +00:00
Jeremy Felt
c8019610c8
MS: Reflect falsy values for upload_space_check_disabled
in UI.
...
If the network option for `upload_space_check_disabled` is missing or an empty string, we should reflect how it will be treated elsewhere in the UI.
Props stephenharris.
Fixes #33986 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35026 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-12 00:00:28 +00:00
Jeremy Felt
3ee40d6652
MS: Reject truthy, non-numeric network ids in _network_option()
.
...
A valid `$network_id` or `null`/`false` is expected as the first parameter for `_network_option()`. If something other than that is passed, we immediately return `false` rather than attempting to guess what network was intended.
See #28290 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35025 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-11 23:29:55 +00:00
Jeremy Felt
55122c1538
MS: Adjust _network_option()
parameter order, $network_id
is first.
...
This better aligns with expectations and matches the structure used by `_blog_option()`. The `_site_option()` functions remain as an appropriate method for working with the current network.
See #28290 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35024 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-11 22:43:59 +00:00
Drew Jaynes
16f56f4114
Media: Remove logic for unnecessarily overloading the $content_width
global when passing default dimensions used to display the post thumbnail image in the 'Featured Image' meta box.
...
Updates documentation for the `$size` parameter in `admin_post_thumbnail_size` filter doc.
See #28512 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35023 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-11 17:09:33 +00:00
Drew Jaynes
4d98b99cc3
Media: Introduce the admin_post_thumbnail_size
filter, which enables manipulation of the image size used to display the post thumbnail in the 'Featured Image' meta box.
...
This filter has no effect on the image size used to display post thumbnails on the front-end.
Props dboulet, DrewAPicture.
Fixes #28512 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35022 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-11 16:53:35 +00:00
Drew Jaynes
bf0fa3a570
Docs: Fix some syntactical issues in property DocBlocks for WP_List_Table
.
...
See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35021 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-11 03:33:50 +00:00
Andrew Ozz
9d8c320a38
Fix inconsistency in src/wp-includes/js/media/views/uploader/editor.js.
...
See #34251 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35020 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-11 00:08:48 +00:00
Andrew Ozz
0d6ea366c5
Plupload: update to 2.1.8. Changelog: https://github.com/moxiecode/plupload/releases .
...
Hide the editor uploader overlay on all drop events in the window, not only when dropping on the editor uploader element.
Fixes #34251 , #22403 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35019 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-10 23:49:44 +00:00
Sergey Biryukov
ddec8a1c2b
Customizer: WP_Customize_Cropped_Image_Control
should extend WP_Customize_Image_Control
, since Site Icon can only an image.
...
Props paulwilde.
Fixes #34250 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35018 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-10 23:24:46 +00:00
Jeremy Felt
d5e572f992
MS: Handle the possibility of 0 when checking a user's upload quota.
...
Upload space of 0 is now more possible via r35016 and should be respected rather than modified to a default of 10MB.
Fixes #34037 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35017 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-10 23:17:01 +00:00
Jeremy Felt
d9edf86faf
MS: Allow for a blog_upload_space
setting of 0 to restrict uploads.
...
Previously, an value matching `empty()` would have been bypassed in favor of the default setting for 100MB.
Related #19538 , r19639, r19652, where we saw the bug, fixed the bug, and then unfixed the bug so that it was not a surprise in a point release.
See #34037 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35016 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-10 23:14:11 +00:00
Andrea Fercia
52c2492afb
Accessibility: bump headings one level up on the Appearance > Widgets screen for a better headings hierarchy.
...
Props mrahmadawais, afercia.
Fixes #33659 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35015 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-10 16:33:33 +00:00
Scott Taylor
5e85a8b55a
Admin JS: after [34977], avoid variable names conflicts with e
.
...
Props afercia.
Fixes #18590 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35014 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-10 15:49:56 +00:00
Scott Taylor
c123726ba0
Docs: some @global object
vernaculars should be converted to the actual object type.
...
See #33491 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35013 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-10 15:44:16 +00:00
Scott Taylor
5200642cc5
Users List Table: after [35011], just use wp_roles()
, no global import. #winning
...
See #22959 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35012 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-10 15:35:26 +00:00
Scott Taylor
aa9b423cf4
Users List Table: after [34963], remove unused code/add doc for global import.
...
See #22959 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35011 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-10 15:25:08 +00:00
Scott Taylor
b98303ae58
WP Screen: after [34991], avoid unnecessary nesting levels and remove unused global import.
...
See #33646 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35010 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-10 15:19:54 +00:00
Andrea Fercia
e69aca18dc
Accessibility: bump headings one level up on the Add Plugins screen for a better headings hierarchy.
...
Fixes #33818 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35009 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-10 15:16:04 +00:00
Sergey Biryukov
437bbeead5
Users: Remove redundant error message when password is only entered once.
...
"Please enter the same password in both password fields" should cover all the scenarios.
Props MikeHansenMe, jmayhak, desrosj, gounder.
Fixes #33101 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35008 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-10 13:21:30 +00:00
Weston Ruter
e158ff27de
Customizer: Fix scalability performance problem for previewing multidimensional settings.
...
As the number of multidimensional settings (serialized options and theme mods) increase for a given ID base (e.g. a widget of a certain type), the number of calls to the `multidimensional` methods on `WP_Customize_Setting` increase exponentially, and the time for the preview to refresh grows in time exponentially as well.
To improve performance, this change reduces the number of filters needed to preview the settings off of a multidimensional root from N to 1. This improves performance from `O(n^2)` to `O(n)`, but the linear increase is so low that the performance is essentially `O(1)` in comparison. This is achieved by introducing the concept of an "aggregated multidimensional" setting, where the root value of the multidimensional serialized setting value gets cached in a static array variable shared across all settings.
Also improves performance by only adding preview filters if there is actually a need to do so: there is no need to add a filter if there is an initial value and if there is no posted value for a given setting (if it is not dirty).
Fixes #32103 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35007 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-10 09:05:04 +00:00
Sergey Biryukov
975c16f4b2
Use wp_star_rating()
on Add Themes screen:
...
* It works correctly for RTL
* Requires less CSS styling
* Is visually consistent with plugin ratings
* Is more accessible
Fixes #34080 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35006 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-10 06:50:35 +00:00
Sergey Biryukov
9487469f80
Add echo
parameter for wp_star_rating()
.
...
See #34080 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35005 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-10 06:42:19 +00:00
Drew Jaynes
aacde02ed4
Docs: Fix some minor formatting in the $query_args
parameter description for the `` filter doc.
...
See #8243 . See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35004 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-10 06:38:24 +00:00
Drew Jaynes
a521a4e7f6
Dashboard: Introduce the dashboard_recent_drafts_query_args
filter, making it possible to manipulate the post query arguments used in the 'Recent Drafts' dashboard widget.
...
Props iamfriendly.
Fixes #8243 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35003 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-10 06:32:51 +00:00
Drew Jaynes
48ceecafc7
Template: Pass the $post
parameter to the the_permalink
filter.
...
Props chriscct7.
Fixes #34234 . See #23882 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35002 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-10 05:45:27 +00:00
Drew Jaynes
ed4b0aee3f
Template: Rename the $id
parameters in the_permalink()
, get_the_permalink()
, and get_permalink()
to $post
.
...
In all three cases, the functions can accept a post ID, a `WP_Post` object, or a falsey value, which defaults to the value of the global `$post`. Switching to `$post` in this context allows the parameters to better self-document and removes ambiguity in the code they are subsequently used in.
Props chriscct7 for the initial patch.
See #34234 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35001 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-10 05:40:14 +00:00
Sergey Biryukov
fc9f0b229e
Merge two database update strings for consistency.
...
Props pavelevap.
Fixes #33514 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35000 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-10 05:13:57 +00:00
Boone Gorges
d6748bd2cb
Return WP_Post
objects from wp_get_object_terms()
.
...
A side effect of this change is that terms stored in the cache no longer have
an `object_id` associated with them. Previously, `object_id` had always been
cached when the term cache was populated via `wp_get_object_terms()`, a
strategy that was mostly harmless but still incorrect.
See #14162 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34999 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-10 03:38:41 +00:00
Boone Gorges
797ddb60ba
Return WP_Term
objects from get_terms()
.
...
Props boonebgorges, flixos90, DrewAPicture.
See #14162 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34998 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-10 02:12:40 +00:00
Boone Gorges
134a7af0fc
Introduce WP_Term
.
...
`get_term()` now returns a `WP_Term` object, instead of a `stdClass` object.
Cache support and sanitization filters for individual terms are now more
centralized. For example, `get_term_by()` is able to cast results of its query
to a `WP_Term` object by passing it through `get_term()`.
The `$taxonomy` parameter for `get_term()` is now optional, as terms ought to
be unique to a taxonomy (ie, shared terms no longer exist). In cases where
`get_term()` detects that the term matching the specified term_id is from the
wrong taxonomy, it checks to see if you've requested a shared term, and if so,
it splits the term. This is used only for fallback purposes.
The elimination of shared terms allows the caching strategy for terms to be
simplified. Individual terms are now cached in a single 'terms' bucket.
Props flixos90, boonebgorges, scribu, dipesh.kakadiya.
See #14162 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34997 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-10 01:58:37 +00:00
Jeremy Felt
ecb75a16be
MS: Show an error if a new site slug conflicts with an existing username.
...
Props utkarshpatel, dipesh.kakadiya.
Fixes #33804 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34996 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-10 01:41:43 +00:00
Drew Jaynes
1758d36a88
Template: Make it possible to both ''add'' and ''remove'' items from the page templates list using the theme_page_templates
filter.
...
The `theme_page_templates` hook was originally added in [27297] as `page_templates`, and later renamed in [27470]. Previously, it was only possible to remove or rename page templates via this hook.
Fixes #13265 . Fixes #25879 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34995 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-09 21:50:05 +00:00
Sergey Biryukov
b374a081a9
Remove stray closing tag in wp-admin/themes.php
.
...
Props tfrommen.
Fixes #34237 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34994 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-09 21:16:46 +00:00
Drew Jaynes
f26526264a
Docs: Fix wrapping and syntax for a multi-comment in Walker_Comment::display_element()
.
...
See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34993 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-09 21:02:43 +00:00
Drew Jaynes
0d444dc6f9
Docs: Indent an example comment tree in the DocBlock for Walker_Comment::display_element()
so it can be properly parsed in Markdown for the Code Reference.
...
See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34992 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-09 20:59:57 +00:00
Andrea Fercia
4b5f84295a
Administration: Convert H5 usage in Screen Options to use fieldsets and legends.
...
These H5 (heading level 5) don't allow for a good headings hierarchy and shouldn't be headings in the first place. Each group of options has now its own fieldset and legend.
In `render_screen_options()`, introduce two new "render" methods: `render_meta_boxes_preferences()` and `render_list_table_columns_preferences()` for consistency with already existing render methods and cleaner code.
Props joedolson, afercia.
Fixes #33646 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34991 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-09 18:04:18 +00:00
Helen Hou-Sandi
bb31c1ada8
Notices: Update one more instance of white-on-white.
...
Because the media modal can be used on the front-end, the CSS needs to be added here rather than using the notice classes.
props paulwilde.
fixes #32244 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34990 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-09 17:46:24 +00:00
Boone Gorges
dc2b7c634d
Ensure that WP_Date_Query
accepts a value of 0
for 'hour'.
...
Props jim912.
Fixes #34228 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34989 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-09 16:32:59 +00:00
Sergey Biryukov
eeea5d753a
Fix typo in get_avatar()
and get_avatar_data()
docs.
...
Props johnjamesjacoby.
Fixes #34232 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34988 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-09 15:51:37 +00:00
Drew Jaynes
ccfda7703c
Install: Match existing tonal style in setup-config.php by converting strings containing 'do not' and 'does not' to instead use contractions.
...
The 'do not' is converted to "don't" because "you" is third-person plural, and 'does not' is converted to "doesn't" because `localhost` is third-person singular. While both are "negative" contractions, we often write this way in WordPress to provide a friendlier tone. That's your English grammar lesson for the day.
Props ankit-k-gupta, iamfriendly.
Fixes #30317 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34987 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-09 15:42:33 +00:00
Sergey Biryukov
873dacf4a4
Fix typo in wp_rand()
docs.
...
See #28633 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34986 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-09 05:19:31 +00:00
Sergey Biryukov
724b83ab0e
In do_robots()
, allow crawling for admin-ajax.php
, since it's often used on front-end.
...
Props dmchale, joostdevalk.
Fixes #33156 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34985 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-09 05:15:01 +00:00
Sergey Biryukov
d58bcae1ad
Media: Return early from media_sideload_image()
if $file
didn't match the pattern for images.
...
Props MikeHansenMe, serpent7776.
Fixes #32755 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34984 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-09 04:46:00 +00:00
Sergey Biryukov
90f3849d62
Add $id
parameter to the_permalink()
, for consistency with get_permalink()
.
...
Props johnjamesjacoby, chriscct7.
Fixes #23882 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34982 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-09 04:33:16 +00:00
Dion Hulse
5700c3e060
Use PHP7's random_int()
CSPRNG functionality in wp_rand()
with a fallback to the random_compat
library for PHP 5.x.
...
`random_compat` offers a set of compatible functions for older versions of PHP, filling in the gap by using other PHP extensions when available.
We still include our existing `wp_rand()` functionality as a fallback for when no proper CSPRNG exists on the system.
Take Two, this was previously committed in [34922] but had an issue on PHP 5.2 which sarciszewski has now resolved.
Props sarciszewski
See #28633
git-svn-id: https://develop.svn.wordpress.org/trunk@34981 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-09 04:27:41 +00:00
Sergey Biryukov
fc966fd45d
Dashboard: Display year in Activity widget if the post date year is not the same as the current one.
...
Props GaryJ, chriscct7.
Fixes #26502 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34980 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-09 04:25:23 +00:00
Sergey Biryukov
b39b5b8758
My Sites: Make "Create a New Site" link consistent with other "Add New" links.
...
Props JeffMatson.
Fixes #34179 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34979 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-09 03:49:24 +00:00
Sergey Biryukov
fb6d5f4aba
After [34529], if a compatible termmeta
table is found on database upgrade, convert it to utf8mb4
collation.
...
Props dboulet.
Fixes #34224 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34978 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-09 02:06:15 +00:00