Mark Jaquith
79fbaf2e4c
Fix a sometimes notice in wpmu_current_site()
...
props johnjamesjacoby. see #27003 .
Built from https://develop.svn.wordpress.org/trunk@27275
git-svn-id: http://core.svn.wordpress.org/trunk@27131 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-25 20:53:13 +00:00
Andrew Nacin
2d8e1ca5b0
Add exclude and include to wp_list_authors().
...
props patricknami.
fixes #9902 .
Built from https://develop.svn.wordpress.org/trunk@27274
git-svn-id: http://core.svn.wordpress.org/trunk@27130 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-25 20:11:13 +00:00
Andrew Nacin
ffb64a7503
Keep redirect_to when hitting the log out AYS.
...
props mitchoyoshitaka for initial patch.
fixes #17398 .
Built from https://develop.svn.wordpress.org/trunk@27272
git-svn-id: http://core.svn.wordpress.org/trunk@27128 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-25 20:02:14 +00:00
Andrew Nacin
1cb9788f1b
Update the Masonry JavaScript library to version 3.
...
The new script handle is 'masonry'. The old 'jquery-masonry' handle is the official shiv that sits on top of the v3 library. While v3 no longer depends on jQuery, a theme or plugin may have bee
n implicitly loading jQuery though Masonry, rather than additionally declaring it as a dependency for themselves. Thus, the shiv is separate.
Themes should switch to 'masonry' and declare jQuery as a dependency on their own if they need it. Upgrade guide: http://masonry.desandro.com/appendix.html#upgrading-from-v2 . imagesLoaded remai
ns included with Masonry here.
props shelob9.
fixes #25351 .
Built from https://develop.svn.wordpress.org/trunk@27271
git-svn-id: http://core.svn.wordpress.org/trunk@27127 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-25 19:53:15 +00:00
Andrew Ozz
65fac9e55a
Set wpActiveEditor to the id of the first instance on init, props kovshenin, fixes #27210 .
...
Built from https://develop.svn.wordpress.org/trunk@27270
git-svn-id: http://core.svn.wordpress.org/trunk@27126 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-25 19:31:14 +00:00
Scott Taylor
c4cd842c29
Make sure data.meta
always exists when rendering tracklists. Use $theme_width
when rendering media tag in playlist template instead of recalculating.
...
Props helen.
Built from https://develop.svn.wordpress.org/trunk@27269
git-svn-id: http://core.svn.wordpress.org/trunk@27125 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-25 19:30:14 +00:00
Andrew Nacin
74f2a32f52
Fixed mixed spaces and tabs. Also remove trailing comma. see #26631 .
...
Built from https://develop.svn.wordpress.org/trunk@27266
git-svn-id: http://core.svn.wordpress.org/trunk@27123 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-25 17:32:14 +00:00
Andrew Nacin
6dcd5cc69e
Fix undefined variable. see #16686 .
...
Built from https://develop.svn.wordpress.org/trunk@27265
git-svn-id: http://core.svn.wordpress.org/trunk@27122 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-25 17:29:13 +00:00
Drew Jaynes
cb8951b0b3
Remove all @package
and @subpackage
PHPDoc tags not at the file- or class-levels in core.
...
See #27200 .
Built from https://develop.svn.wordpress.org/trunk@27262
git-svn-id: http://core.svn.wordpress.org/trunk@27119 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-25 17:14:14 +00:00
Andrew Nacin
c102fd5a9d
Make the user arguments for get_edit_profile_url() and get_dashboard_url() optional, defaulting to the current user.
...
props garyc40.
fixes #16686 .
Built from https://develop.svn.wordpress.org/trunk@27260
git-svn-id: http://core.svn.wordpress.org/trunk@27117 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-25 17:08:13 +00:00
Andrew Nacin
237941babc
Allow current_time() to accept a date format string, adding to 'timestamp' and 'mysql'.
...
props danielbachhuber.
fixes #21653 .
Built from https://develop.svn.wordpress.org/trunk@27259
git-svn-id: http://core.svn.wordpress.org/trunk@27116 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-25 17:01:13 +00:00
Andrew Nacin
7387504854
Allow user_id to be an array of IDs in WP_Comment_Query.
...
props mordauk.
fixes #27064 .
Built from https://develop.svn.wordpress.org/trunk@27258
git-svn-id: http://core.svn.wordpress.org/trunk@27115 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-25 16:35:13 +00:00
Andrew Nacin
c51ce41c59
Use mysqli for WordPress development versions, regardless of PHP version, to increase testing footprint.
...
Allow the lack of ext/mysql to pass wp_check_php_mysql_versions().
see #21663 .
Built from https://develop.svn.wordpress.org/trunk@27257
git-svn-id: http://core.svn.wordpress.org/trunk@27114 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-25 15:53:13 +00:00
Sergey Biryukov
19be701a86
Consistently return a WP_Error object in case of an error in wp_update_nav_menu_item().
...
props bootsz, ocean90.
fixes #21652 .
Built from https://develop.svn.wordpress.org/trunk@27251
git-svn-id: http://core.svn.wordpress.org/trunk@27108 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-25 00:51:13 +00:00
Andrew Nacin
768db95280
Use ext/mysqli in PHP 5.5 or greater. Expect minor explosions.
...
props aaroncampbell, pento.
see #21663 .
Built from https://develop.svn.wordpress.org/trunk@27250
git-svn-id: http://core.svn.wordpress.org/trunk@27107 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-25 00:40:13 +00:00
Andrew Nacin
1b9dda7d75
Declare $wpdb->base_prefix.
...
props DavidAnderson.
fixes #16762 .
Built from https://develop.svn.wordpress.org/trunk@27249
git-svn-id: http://core.svn.wordpress.org/trunk@27106 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-25 00:30:13 +00:00
Scott Taylor
d5c0574c94
Get the proper image size for an item's thumb in playlist JSON.
...
See #26631 .
Built from https://develop.svn.wordpress.org/trunk@27245
git-svn-id: http://core.svn.wordpress.org/trunk@27102 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-24 21:10:12 +00:00
Scott Taylor
d393e38624
Supply mime-type instead of extension for an item's type
property in playlist JSON.
...
See #26631 .
Built from https://develop.svn.wordpress.org/trunk@27244
git-svn-id: http://core.svn.wordpress.org/trunk@27101 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-24 21:05:16 +00:00
Scott Taylor
4b66e01e6d
Remove a few unnecessary jQuery selectors added in [27239]. Playlists don't exist in some older contexts that galleries do.
...
See #26631 .
Built from https://develop.svn.wordpress.org/trunk@27243
git-svn-id: http://core.svn.wordpress.org/trunk@27100 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-24 20:49:14 +00:00
Scott Taylor
c0379aaafc
Load default settings state when creating a new playlist in the media modal. Add a few missing inline @this
annotations in media-editor.js
.
...
See #26631 .
Built from https://develop.svn.wordpress.org/trunk@27242
git-svn-id: http://core.svn.wordpress.org/trunk@27099 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-24 20:26:14 +00:00
Drew Jaynes
700ba14371
Spacing fixes for code introduced in [27239].
...
See #26631
Built from https://develop.svn.wordpress.org/trunk@27241
git-svn-id: http://core.svn.wordpress.org/trunk@27098 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-24 19:50:15 +00:00
Drew Jaynes
de43247d4c
Inline documentation improvements for wp_get_playlist()
.
...
* Adds a missing `@param` description in the PHPDoc.
* Adds hook documentation for the `post_playlist` filter.
* Other comment cleanup.
Built from https://develop.svn.wordpress.org/trunk@27240
git-svn-id: http://core.svn.wordpress.org/trunk@27097 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-24 19:42:13 +00:00
Scott Taylor
943f295d2e
Add core support for Playlists and Video Playlists.
...
* Playlists operate like galleries in the admin.
* Provide default UI and JS support in themes using MediaElement and Backbone.
* The shortcodes are clickable, editable, and configurable using the media modal.
* Playlists support images for each item, whether or not the current theme supports images for `attachment:audio` and `attachment:video`
* Playlists respond to `$content_width` and resize videos accordingly.
* All playlist data is included inline, using a script tag with `type="application/json"`, allowing anyone to unenqueue the WP playlist JS and roll their own.
* Playlist styles are minimal and work out of the box in the last 5 default themes. They inherit and adapt to the current theme's font styles, and their rules are easily overrideable.
See #26631 .
Built from https://develop.svn.wordpress.org/trunk@27239
git-svn-id: http://core.svn.wordpress.org/trunk@27096 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-24 18:08:16 +00:00
Scott Taylor
5d15ed5202
Access class directly instead of using this
in the shortcodeAttrs
method of any factory-generated wp.media.collection
.
...
Fixes #27183 .
Built from https://develop.svn.wordpress.org/trunk@27238
git-svn-id: http://core.svn.wordpress.org/trunk@27095 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-24 13:01:14 +00:00
Dominik Schilling
c9a27f3927
Build: Update version of grunt-autoprefixer devDependency.
...
The update includes a new version of Autoprefixer which now supports the `ms-touch-action` prop for IE10.
Run `grunt autoprefixer:core` to re-add the missing props in media-view.css.
Built from https://develop.svn.wordpress.org/trunk@27236
git-svn-id: http://core.svn.wordpress.org/trunk@27093 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-23 10:30:19 +00:00
Drew Jaynes
8ec1503e15
Correct PHPDoc return description for get_boundary_post()
.
...
Props ericlewis.
Fixes #22950 .
Built from https://develop.svn.wordpress.org/trunk@27235
git-svn-id: http://core.svn.wordpress.org/trunk@27092 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-22 22:28:13 +00:00
Andrew Nacin
98bf662bb9
Bump.
...
Built from https://develop.svn.wordpress.org/trunk@27234
git-svn-id: http://core.svn.wordpress.org/trunk@27091 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-22 19:36:15 +00:00
Dominik Schilling
4dd8be2568
Update Backbone to version 1.1.2.
...
props gcorne.
fixes #27182 .
Built from https://develop.svn.wordpress.org/trunk@27233
git-svn-id: http://core.svn.wordpress.org/trunk@27090 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-22 15:42:14 +00:00
Sergey Biryukov
b1cf2bea46
Revert [27228], as it doesn't work with SCRIPT_DEBUG off.
...
see #27175 .
Built from https://develop.svn.wordpress.org/trunk@27232
git-svn-id: http://core.svn.wordpress.org/trunk@27089 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-22 01:59:15 +00:00
Sergey Biryukov
46fc082824
Correct @return value for get_the_date().
...
props TobiasBg.
fixes #27181 .
Built from https://develop.svn.wordpress.org/trunk@27231
git-svn-id: http://core.svn.wordpress.org/trunk@27088 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-21 22:49:13 +00:00
Sergey Biryukov
68f4f9d5ba
Remove unnecessary assignment and concatenation from the_date() and get_the_date().
...
props juliobox.
fixes #27181 .
Built from https://develop.svn.wordpress.org/trunk@27230
git-svn-id: http://core.svn.wordpress.org/trunk@27087 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-21 22:38:13 +00:00
Andrew Nacin
4e78f02a05
Make sure color schemes are registered when WP_Styles is initialized early.
...
fixes #27175 . see #26669 .
Built from https://develop.svn.wordpress.org/trunk@27228
git-svn-id: http://core.svn.wordpress.org/trunk@27085 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-21 21:09:15 +00:00
Andrew Nacin
9cc9b023b4
Remove unused variable.
...
props ericlewis.
fixes #27176 .
Built from https://develop.svn.wordpress.org/trunk@27227
git-svn-id: http://core.svn.wordpress.org/trunk@27084 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-21 20:52:13 +00:00
Andrew Nacin
9e3201f130
Allow any vimeo.com subdomain for embeds.
...
props danielbachhuber.
fixes #24170 .
Built from https://develop.svn.wordpress.org/trunk@27225
git-svn-id: http://core.svn.wordpress.org/trunk@27082 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-21 19:32:13 +00:00
Sergey Biryukov
45838c805c
Remove unused code from WP_Widget::update_callback().
...
props OriginalEXE.
fixes #24733 .
Built from https://develop.svn.wordpress.org/trunk@27224
git-svn-id: http://core.svn.wordpress.org/trunk@27081 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-21 18:51:13 +00:00
Drew Jaynes
de2bd0bf44
Fix reversed return logic in the wp_nav_menu()
phpdoc.
...
See #27163 .
Built from https://develop.svn.wordpress.org/trunk@27223
git-svn-id: http://core.svn.wordpress.org/trunk@27080 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-21 18:34:14 +00:00
Drew Jaynes
44696a60dc
Convert docs for wp_nav_menu()
arguments to a hash notation.
...
Fixes #27163 .
Built from https://develop.svn.wordpress.org/trunk@27222
git-svn-id: http://core.svn.wordpress.org/trunk@27079 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-21 18:32:15 +00:00
Andrew Nacin
635e50d9a1
Remove theme support for 'menus' in unregister_nav_menu() when there are no more menus.
...
props kovshenin.
fixes #26900 .
Built from https://develop.svn.wordpress.org/trunk@27220
git-svn-id: http://core.svn.wordpress.org/trunk@27077 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-21 18:14:14 +00:00
Sergey Biryukov
bb9114f554
Add boolean return values to require_if_theme_supports().
...
props jeffsebring, DrewAPicture.
fixes #26716 .
Built from https://develop.svn.wordpress.org/trunk@27217
git-svn-id: http://core.svn.wordpress.org/trunk@27074 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-20 22:11:14 +00:00
Scott Taylor
f319feb524
Register wp.media.controller.GalleryEdit
and wp.media.controller.GalleryAdd
using the new wp.media.controller.Collection*
abstraction code.
...
See #26631 .
Built from https://develop.svn.wordpress.org/trunk@27215
git-svn-id: http://core.svn.wordpress.org/trunk@27072 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-20 18:34:12 +00:00
Scott Taylor
4193c7f6c3
In media-views.js
, add wp.media.controller.CollectionAdd
and wp.media.controller.CollectionEdit
to provide an abstraction for Add and Edit screens in the media modal for collection-type things.
...
There are currently no instances of this. Those will be forthcoming.
See #26631 .
Built from https://develop.svn.wordpress.org/trunk@27214
git-svn-id: http://core.svn.wordpress.org/trunk@27071 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-20 18:25:14 +00:00
Scott Taylor
911442cdab
Replace the current wp.media.gallery
instance in media-editor.js
with one that leverages wp.media.collection
.
...
See #26631 .
Built from https://develop.svn.wordpress.org/trunk@27213
git-svn-id: http://core.svn.wordpress.org/trunk@27070 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-20 18:13:14 +00:00
Scott Taylor
08b1c1b0f5
Add an abstraction of the gallery code in media-editor.js
called wp.media.collection
. This will be the basis for parsing [gallery]
-like shortcodes in the media editor (thing playlists, collections of PDFs, etc).
...
There are currently no instances of this. Those will be forthcoming.
See #26631 .
Built from https://develop.svn.wordpress.org/trunk@27212
git-svn-id: http://core.svn.wordpress.org/trunk@27069 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-20 18:07:12 +00:00
Drew Jaynes
d8a52d7523
Remove now-unnecessary vanity spacing of various hooks in wp-includes/query.php.
...
See #25514 .
Built from https://develop.svn.wordpress.org/trunk@27211
git-svn-id: http://core.svn.wordpress.org/trunk@27068 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-20 17:59:13 +00:00
Drew Jaynes
9f9d3f8b8a
Inline documentation hooks in wp-includes/query.php.
...
Covers documentation for the various remaining query hooks, notably including but not limited to:
* `parse_query`
* `parse_tax_query`
* `pre_get_posts`
* `posts_results`
* `the_posts`
* `found_posts`
* `the_post`
Props dougwollison, DrewAPicture.
See #25514 .
Built from https://develop.svn.wordpress.org/trunk@27210
git-svn-id: http://core.svn.wordpress.org/trunk@27067 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-20 17:54:13 +00:00
Scott Taylor
7ff83d46aa
Allow pseudo post types attachment:audio
and attachment:video
to get the media modal on Edit Media when they support featured images.
...
Introduces `post_supports_thumbnails( $post )` and `theme_supports_thumbnails( $post )` to cut down on duplicated code everytime this needs to be checked. There will be more cases forthcoming.
See #26631 .
Built from https://develop.svn.wordpress.org/trunk@27209
git-svn-id: http://core.svn.wordpress.org/trunk@27066 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-20 17:50:13 +00:00
Drew Jaynes
0469b382a3
Inline documentation for various SQL clause hooks in wp-includes/query.php.
...
Covers documentation for SQL clause hooks related to comment feeds, including:
* `comment_feed_join`
* `comment_feed_where`
* `comment_feed_groupby`
* `comment_feed_orderby`
* `comment_feed_limits`
Props dougwollison, DrewAPicture.
See #25514 .
Built from https://develop.svn.wordpress.org/trunk@27208
git-svn-id: http://core.svn.wordpress.org/trunk@27065 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-20 17:46:13 +00:00
Drew Jaynes
6060a66451
Inline documentation for various SQL clause hooks in wp-includes/query.php.
...
Covers documentation for SQL clause hooks specified for use by caching plugins, including:
* `posts_selection`
* `posts_where_request`
* `posts_groupby_request`
* `posts_join_request`
* `posts_orderby_request`
* `posts_distinct_request`
* `posts_fields_request`
* `post_limits_request`
* `posts_clauses_request`
Props dougwollison, DrewAPicture.
See #25514 .
Built from https://develop.svn.wordpress.org/trunk@27207
git-svn-id: http://core.svn.wordpress.org/trunk@27064 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-20 17:41:12 +00:00
Drew Jaynes
742c77fc6f
Inline documentation for various SQL clause hooks in wp-includes/query.php.
...
Covers documentation for general SQL clause hooks, including:
* `posts_where`
* `posts_join`
* `posts_where_paged`
* `posts_groupby`
* `posts_join_paged`
* `posts_orderby`
* `posts_distinct`
* `post_limits`
* `posts_fields`
* `posts_clauses`
Props dougwollison, DrewAPicture.
See #25514 .
Built from https://develop.svn.wordpress.org/trunk@27206
git-svn-id: http://core.svn.wordpress.org/trunk@27063 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-20 17:34:14 +00:00
Andrew Nacin
495c652e44
Remove accidental change in [27203]. see #20729 .
...
Built from https://develop.svn.wordpress.org/trunk@27204
git-svn-id: http://core.svn.wordpress.org/trunk@27061 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-20 07:00:13 +00:00
Andrew Nacin
0c47e9b732
Simplify how admin color schemes are enqueued.
...
Removes a piece of [27111].
fixes #20729 .
Built from https://develop.svn.wordpress.org/trunk@27203
git-svn-id: http://core.svn.wordpress.org/trunk@27060 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-20 06:59:13 +00:00
Drew Jaynes
17248058f3
Fixes for hooks documentation wp-includes/nav-menu-template.php.
...
See #26869 , #25229 and [25410].
Built from https://develop.svn.wordpress.org/trunk@27201
git-svn-id: http://core.svn.wordpress.org/trunk@27058 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-20 05:08:13 +00:00
Helen Hou-Sandí
060cc19157
Make login styles standalone. see #12506 .
...
Built from https://develop.svn.wordpress.org/trunk@27199
git-svn-id: http://core.svn.wordpress.org/trunk@27056 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-20 03:24:14 +00:00
Andrew Ozz
9c77339681
TinyMCE: revert style for the blocks drop-down in the toolbar, limit the styles imported for the same drop-down, make the menu highlight color grey. Part props avryl, see #26952
...
Built from https://develop.svn.wordpress.org/trunk@27193
git-svn-id: http://core.svn.wordpress.org/trunk@27052 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-19 03:51:15 +00:00
Sergey Biryukov
ab8847316c
Correct return values for update_metadata() and related functions.
...
fixes #21864 .
Built from https://develop.svn.wordpress.org/trunk@27191
git-svn-id: http://core.svn.wordpress.org/trunk@27050 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-18 21:36:14 +00:00
Andrew Ozz
d7db798635
TinyMCE: style the modals to match WordPress admin (first-run). Fix couple of IE problems in tiny_mce_popup.js. Props avryl, see #26952 , see #24067
...
Built from https://develop.svn.wordpress.org/trunk@27190
git-svn-id: http://core.svn.wordpress.org/trunk@27049 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-18 06:32:14 +00:00
Scott Taylor
03d54a0ac7
Remove code from a previous patch. See [27188].
...
Built from https://develop.svn.wordpress.org/trunk@27189
git-svn-id: http://core.svn.wordpress.org/trunk@27048 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-17 22:46:13 +00:00
Scott Taylor
ca4045ce76
Use selected()
where appropriate in touch_time()
, page_template_dropdown()
, and parent_dropdown()
. Also, add proper docs.
...
Props meloniq, DrewAPicture.
Fixes #25889 .
Built from https://develop.svn.wordpress.org/trunk@27188
git-svn-id: http://core.svn.wordpress.org/trunk@27047 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-17 22:27:15 +00:00
Scott Taylor
c1dbe9ab77
Remove extraneous type-casting in wp_get_object_terms()
.
...
Props OriginalEXE.
Fixes #27133 .
Built from https://develop.svn.wordpress.org/trunk@27186
git-svn-id: http://core.svn.wordpress.org/trunk@27046 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-17 21:56:12 +00:00
Scott Taylor
55b4eee4c2
Make WP_User_Query::prepare_query()
public by allowing it to be passed an array of args. Previously, if the WP_User_Query
constructor was not passed args, the object was basically unusable. Adds unit tests, all other tests pass.
...
Props scribu, for the initial patch.
Fixes #21119 .
Built from https://develop.svn.wordpress.org/trunk@27185
git-svn-id: http://core.svn.wordpress.org/trunk@27045 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-17 21:41:12 +00:00
Scott Taylor
14fba3c926
wp_get_post_revisions()
should have a default orderby
of date ID
to tie-break rapidly added revisions - namely, when unit tests are run. There is a test that occasionally fails when running all tests, and always fails when running phpunit tests/phpunit/tests/post/revisions.php
. This fixes that.
...
Fixes #26042 .
Built from https://develop.svn.wordpress.org/trunk@27184
git-svn-id: http://core.svn.wordpress.org/trunk@27044 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-17 21:23:12 +00:00
Andrew Ozz
1bce8d5b7e
TinyMCE: wrap the toolbars buttons on narrow screens, props mikemanger, fixes #26882
...
Built from https://develop.svn.wordpress.org/trunk@27182
git-svn-id: http://core.svn.wordpress.org/trunk@27043 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-17 02:13:13 +00:00
Andrew Nacin
53c2618e7e
Rename the old media.css file, used for the pre-3.5 media library. Clean up script-loader CSS registrations.
...
see #26669 .
Built from https://develop.svn.wordpress.org/trunk@27181
git-svn-id: http://core.svn.wordpress.org/trunk@27042 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-16 00:36:14 +00:00
Andrew Ozz
4aeae869dd
TinyMCE: when clicking on a character in the Charmap modal, don't close it if the Crtl key is pressed. Makes it possible to insert several special chars in a row. See #27107 .
...
Built from https://develop.svn.wordpress.org/trunk@27179
git-svn-id: http://core.svn.wordpress.org/trunk@27041 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-14 19:20:13 +00:00
Andrew Nacin
eae1d5641d
Multisite: Add get_network_by_path() and wp_get_network() to begin cleanup of multisite load.
...
Tries to get network detection under control by simplifying wpmu_current_site(). It now also pops off each subdomain to find a more general match. Adds unit tests for get_network_by_path() and a new network factory for unit tests.
Much of this is likely to change in 3.9 as more of ms-load.php and ms-settings.php gets hacked to bits.
props jeremyfelt.
see #27003 .
Built from https://develop.svn.wordpress.org/trunk@27178
git-svn-id: http://core.svn.wordpress.org/trunk@27040 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-13 23:07:14 +00:00
Andrew Ozz
f2f6d60624
TinyMCE: add support for audio and video shortcodes without closing, fix jshint warning, see #27016 .
...
Built from https://develop.svn.wordpress.org/trunk@27177
git-svn-id: http://core.svn.wordpress.org/trunk@27039 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-13 20:13:13 +00:00
Andrew Nacin
11c3695c77
Dev/build tools: Use grunt-autoprefixer for CSS vendor prefixes.
...
We'll be using it for two distinct tasks:
* Core CSS files will keep prefixes. `grunt autoprefixer:core` will update files directly in src/ as a pre-commit step, rather than doing it on build.
* Color CSS files will receive prefixes when they are built.
This commit:
* Adds prefixes we were missing to core CSS.
* Removes prefixes that we no longer need from core CSS.
* Removes all prefixes from colors CSS.
props ocean90.
fixes #27078 .
Built from https://develop.svn.wordpress.org/trunk@27174
git-svn-id: http://core.svn.wordpress.org/trunk@27038 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-13 08:30:17 +00:00
Andrew Nacin
fae539978e
Optimize 69 images (of 127) using the new Grunt task. (See [27172].)
...
fixes #25169 .
Built from https://develop.svn.wordpress.org/trunk@27173
git-svn-id: http://core.svn.wordpress.org/trunk@27037 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-13 08:03:14 +00:00
Andrew Nacin
ca4a29c002
Update media-views and wp.Backbone.View for Backbone 1.1.
...
* Collection set/add/remove/reset methods now return models, not `this`, so they can no longer be chained.
* Options passed to Backbone.View's constructor are no longer attached automatically. wp.Backbone.View now does this automatically.
See [27170] for Backbone 1.1 itself.
props gcorne.
fixes #26799 .
Built from https://develop.svn.wordpress.org/trunk@27171
git-svn-id: http://core.svn.wordpress.org/trunk@27036 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-13 07:36:13 +00:00
Andrew Nacin
07adb0640f
Update Backbone from 1.0 to 1.1.
...
Also update Underscore to 1.6. Includes the development versions of both, which are not included in the build.
Here is Backbone's changelog:
* Made the return values of Collection’s `set`, `add`, `remove`, and `reset` more useful. Instead of returning `this`, they now return the changed (added, removed or updated) model or list of
models. (This means they can no longer be chained.)
* Backbone Views no longer automatically attach options passed to the constructor as `this.options` and Backbone Models no longer attach `url` and `urlRoot` options, but you can do it yourself if you prefer. (But if you extend `wp.Backbone.View`, options will be attached for you.)
* All `"invalid"` events now pass consistent arguments. First the model in question, then the error object, then options.
* You are no longer permitted to change the id of your model during `parse`. Use `idAttribute` instead.
* On the other hand, `parse` is now an excellent place to extract and vivify incoming nested JSON into associated submodels.
See [27171] (next commit) for changes made to WordPress to be compatible with Backbone 1.1.
props gcorne, georgestephanis.
see #26799 .
Built from https://develop.svn.wordpress.org/trunk@27170
git-svn-id: http://core.svn.wordpress.org/trunk@27035 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-13 07:34:13 +00:00
Andrew Ozz
a6b4307422
TinyMCE: add image based placeholders for audio and video shortcodes. Props wonderboymusic, see #27016 .
...
Built from https://develop.svn.wordpress.org/trunk@27169
git-svn-id: http://core.svn.wordpress.org/trunk@27034 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-13 05:10:11 +00:00
Scott Taylor
95243d2106
Don't iterate over $wp_query->posts
in update_post_thumbnail_cache()
if it is empty. Adds unit tests.
...
Props SergeyBiryukov, for the original patch.
Fixes #26321 .
Built from https://develop.svn.wordpress.org/trunk@27166
git-svn-id: http://core.svn.wordpress.org/trunk@27032 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-12 04:49:15 +00:00
Andrew Ozz
20fe8f026e
TinyMCE: fix styling in the Charmap modal so the click targets are as large as the table cells. Remove the "Close" button and close the modal after inserting the special char. Fixes #27107 .
...
Built from https://develop.svn.wordpress.org/trunk@27165
git-svn-id: http://core.svn.wordpress.org/trunk@27031 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-11 23:33:14 +00:00
Dominik Schilling
5d0f6bd98a
Use jQuery.prop('checked') instead of jQuery.attr('checked'), which is deprecated.
...
Built from https://develop.svn.wordpress.org/trunk@27164
git-svn-id: http://core.svn.wordpress.org/trunk@27030 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-11 21:13:14 +00:00
Scott Taylor
5a43c3324d
Partially revert [27101], [27102], [27141], and [27142]. Those commits introduced new functions to sync up cache invalidation events. The current commit alters existing internals.
...
"The cache invalidation with static was introduced in r9102 with version 2.7. Multisite wasn't in core back then, so something like switch_to_blog() wasn't a concern, but now it breaks if you switch the blog in between calls to clean_term_cache."
This solution is simpler. All unit tests pass. Removes unnecessary tests linked to removed functions.
Props kovshenin.
Fixes #14485 , #22526 .
Built from https://develop.svn.wordpress.org/trunk@27163
git-svn-id: http://core.svn.wordpress.org/trunk@27029 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-11 16:50:13 +00:00
Scott Taylor
2efcdcf297
Rather than removing the 3rd argument in WP_Object_Cache::delete()
, mark it as $deprecated
.
...
See [27064].
Props SergeyBiryukov.
Fixes #22478 .
Built from https://develop.svn.wordpress.org/trunk@27162
git-svn-id: http://core.svn.wordpress.org/trunk@27028 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-11 16:41:12 +00:00
Scott Taylor
f307aa1eb8
In remove_user_from_blog()
, avoid a potentially expensive IN
query before invalidating the reassigned post and link caches.
...
Props kovshenin.
Fixes #25545 . (Again.)
Built from https://develop.svn.wordpress.org/trunk@27161
git-svn-id: http://core.svn.wordpress.org/trunk@27027 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-11 16:28:13 +00:00
Andrew Ozz
0f360e10a3
Bump the TinyMCE version, see #24409 .
...
Built from https://develop.svn.wordpress.org/trunk@27160
git-svn-id: http://core.svn.wordpress.org/trunk@27026 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-11 01:08:13 +00:00
Andrew Ozz
c908c8f708
Edit image in TinyMCE:
...
- Add a "toolbar" at the top of the image with two buttons: Edit and Delete.
- Don't open the edit modal on second click on the image. Makes the "edit" button somewhat pointless and can sometimes trigger after resizing the image.
- When the image has caption: attempt to prevent IE11 from making the caption element resizable and wrapping it in thick border.
- When the caret is inside a caption next to the image, pressing Enter will create a new <p> tag above the caption.
- Hide the image toolbar on drag, cut, align.
Props gcorne, see #24409 .
Built from https://develop.svn.wordpress.org/trunk@27159
git-svn-id: http://core.svn.wordpress.org/trunk@27025 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-10 23:48:12 +00:00
Andrew Nacin
5f0981788d
Detect and handle symlinking of plugins in plugin_basename().
...
props rmccue, MikeSchinkel, jdgrimes.
see #16953 .
Built from https://develop.svn.wordpress.org/trunk@27158
git-svn-id: http://core.svn.wordpress.org/trunk@27024 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-10 23:00:15 +00:00
Drew Jaynes
c8665c5973
Fix a typo in the PHPDoc for comment_author_email_link()
.
...
See #27083 .
Built from https://develop.svn.wordpress.org/trunk@27157
git-svn-id: http://core.svn.wordpress.org/trunk@27023 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-10 04:07:12 +00:00
Drew Jaynes
8eb2d3610b
Inline documentation cleanup in wp-includes/comment-template.php.
...
This cleanup follows [25567] and brings the docs in-line with standards that at the time had not yet been finalized.
These changes include
* Moving in-line `@see` tags to their own lines
* Using docs-specific variables in hook docs
* Fixing line-wrapping throughout
* Typos and punctuation
* Converting hash notation values to variables per the standard
Fixes #27083 . See #20495 .
Built from https://develop.svn.wordpress.org/trunk@27156
git-svn-id: http://core.svn.wordpress.org/trunk@27022 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-10 03:20:12 +00:00
Andrew Ozz
eba12cfaf4
Remove unused arg from wp_auth_check(), see #27081 .
...
Built from https://develop.svn.wordpress.org/trunk@27154
git-svn-id: http://core.svn.wordpress.org/trunk@27021 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-09 22:34:11 +00:00
Andrew Nacin
60cc98b86d
Run wp_auth_check on every heartbeat tick.
...
wp_heartbeat_received only runs when data is sent. We want to always pass this data back, though.
fixes #27081 .
Built from https://develop.svn.wordpress.org/trunk@27153
git-svn-id: http://core.svn.wordpress.org/trunk@27020 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-09 22:28:12 +00:00
Scott Taylor
c2adc15b45
Collect the post and link ids that will be reassigned before running the update in remove_user_from_blog()
. Use array_walk()
instead of array_map()
when invalidating the caches for the collected ids.
...
Props kovshenin.
Fixes #25545 .
Built from https://develop.svn.wordpress.org/trunk@27152
git-svn-id: http://core.svn.wordpress.org/trunk@27019 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-09 21:47:12 +00:00
Dominik Schilling
31d1f909a4
Nav Menu: Remove post/page items from the Nav Menu when the post/page is deleted.
...
This was broken through a change in [25163]. `_menu_item_object` in wp_get_associated_nav_menu_items() is not relevant for post types.
Adds unit tests.
props UmeshSingla for initial patch.
fixes #26795 .
Built from https://develop.svn.wordpress.org/trunk@27150
git-svn-id: http://core.svn.wordpress.org/trunk@27017 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-09 21:37:11 +00:00
Drew Jaynes
db605f4767
Improve inline documentation for wp_new_user_notification()
.
...
Props antorome for the initial patch.
Fixes #26703 .
Built from https://develop.svn.wordpress.org/trunk@27149
git-svn-id: http://core.svn.wordpress.org/trunk@27016 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-09 21:07:12 +00:00
Drew Jaynes
cb3c7997c7
Improve inline documenation for get_the_time()
and `get_post_time().
...
Props ruud@joyo for the initial patch.
Fixes #26682 .
Built from https://develop.svn.wordpress.org/trunk@27148
git-svn-id: http://core.svn.wordpress.org/trunk@27015 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-09 21:03:13 +00:00
Drew Jaynes
aa8b462a95
Fixes for hooks documentation in wp-includes/wp-db.php.
...
See #26869 , #25229 and [25284].
Built from https://develop.svn.wordpress.org/trunk@27147
git-svn-id: http://core.svn.wordpress.org/trunk@27014 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-09 20:51:13 +00:00
Andrew Ozz
025ea220c5
Remove a stray </div> from the Edit Image template, was breaking it in IE < 9. Props gcorne, see #24409
...
Built from https://develop.svn.wordpress.org/trunk@27143
git-svn-id: http://core.svn.wordpress.org/trunk@27010 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-09 18:45:11 +00:00
Scott Taylor
6a626ab231
Reuse the terms
cache group for taxonomy cache invalidation.
...
See #22526 , #14485 , [27101], [27102].
Built from https://develop.svn.wordpress.org/trunk@27142
git-svn-id: http://core.svn.wordpress.org/trunk@27009 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-09 17:42:11 +00:00
Drew Jaynes
f481bcd2db
Improve inline documentation for several 'last_changed'-related functions introduced in [27101] and [27102].
...
Functions include:
* `get_taxonomy_last_changed()`
* `set_taxonomy_last_changed()`
* `post_taxonomy_is_fresh()`
* `taxonomy_hierarchy_is_fresh()`
Fixes #22526 , #14485 .
Built from https://develop.svn.wordpress.org/trunk@27141
git-svn-id: http://core.svn.wordpress.org/trunk@27008 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-09 02:02:12 +00:00
Andrew Nacin
65f4497766
has_image_size()'s parameter should be required. see [27139], see #26951 .
...
Built from https://develop.svn.wordpress.org/trunk@27140
git-svn-id: http://core.svn.wordpress.org/trunk@27007 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-08 23:53:12 +00:00
Drew Jaynes
127907a85b
Inline documentation tweaks for has_image_size()
and remove_image_size()
.
...
See #26951 .
Built from https://develop.svn.wordpress.org/trunk@27139
git-svn-id: http://core.svn.wordpress.org/trunk@27006 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-08 22:55:11 +00:00
Drew Jaynes
8c9f7965af
Inline documentation for the wp_insert_attachment_data
filter hook, added in [27130].
...
Fixes #20547 .
Built from https://develop.svn.wordpress.org/trunk@27138
git-svn-id: http://core.svn.wordpress.org/trunk@27005 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-08 22:47:12 +00:00
Sergey Biryukov
7e969d706e
Fix validation issue in get_the_password_form() caused by wpautop().
...
props andykeith.
fixes #27071 .
Built from https://develop.svn.wordpress.org/trunk@27134
git-svn-id: http://core.svn.wordpress.org/trunk@27001 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-08 13:23:13 +00:00
Andrew Nacin
d152663319
Add meetup.com oEmbed support. see #23171 .
...
Built from https://develop.svn.wordpress.org/trunk@27133
git-svn-id: http://core.svn.wordpress.org/trunk@27000 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-08 01:14:11 +00:00
Andrew Nacin
6adabc6e4d
Various JSHint fixes. see #26446 .
...
Built from https://develop.svn.wordpress.org/trunk@27131
git-svn-id: http://core.svn.wordpress.org/trunk@26998 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-08 00:52:12 +00:00
Scott Taylor
cbc1b90633
Add a filter wp_insert_attachment_data
in wp_insert_attachment()
. This is similar to the wp_insert_post_data
filter in wp_insert_post()
.
...
Fixes #20547 .
Built from https://develop.svn.wordpress.org/trunk@27130
git-svn-id: http://core.svn.wordpress.org/trunk@26997 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-08 00:44:13 +00:00
Andrew Nacin
53867f3081
Add remove_image_size() and tests for it and has_image_size(), added in [27128].
...
props mordauk, markoheijnen.
fixes #26768 . see #26951 .
Built from https://develop.svn.wordpress.org/trunk@27129
git-svn-id: http://core.svn.wordpress.org/trunk@26996 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-08 00:41:13 +00:00