Scott Taylor
5ead62b90c
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27242 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-24 20:25:54 +00:00
Drew Jaynes
2a900a80a1
Spacing fixes for code introduced in [27239].
...
See #26631
git-svn-id: https://develop.svn.wordpress.org/trunk@27241 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-24 19:49:12 +00:00
Drew Jaynes
268b688247
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.
git-svn-id: https://develop.svn.wordpress.org/trunk@27240 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-24 19:41:24 +00:00
Scott Taylor
9ff3e7c214
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27239 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-24 18:07:51 +00:00
Scott Taylor
7b4cc75efb
Access class directly instead of using this
in the shortcodeAttrs
method of any factory-generated wp.media.collection
.
...
Fixes #27183 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27238 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-24 13:00:01 +00:00
Drew Jaynes
dd35bb5d7b
Inline documentation for hooks in wp-admin/includes/template.php.
...
Props shelob9 for the initial patch. Props kpdesign.
Fixes #26089 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27237 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-23 22:43:44 +00:00
Dominik Schilling (ocean90)
1c9c7b99f5
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.
git-svn-id: https://develop.svn.wordpress.org/trunk@27236 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-23 10:29:42 +00:00
Drew Jaynes
7f6661b330
Correct PHPDoc return description for get_boundary_post()
.
...
Props ericlewis.
Fixes #22950 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27235 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-22 22:27:04 +00:00
Andrew Nacin
b750990447
Bump.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27234 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-22 19:35:41 +00:00
Dominik Schilling (ocean90)
fb3d0c02b4
Update Backbone to version 1.1.2.
...
props gcorne.
fixes #27182 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27233 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-22 15:41:50 +00:00
Sergey Biryukov
03f35c2bce
Revert [27228], as it doesn't work with SCRIPT_DEBUG off.
...
see #27175 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27232 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-22 01:58:45 +00:00
Sergey Biryukov
ed6ec6de61
Correct @return value for get_the_date().
...
props TobiasBg.
fixes #27181 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27231 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-21 22:48:38 +00:00
Sergey Biryukov
fdb9451326
Remove unnecessary assignment and concatenation from the_date() and get_the_date().
...
props juliobox.
fixes #27181 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27230 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-21 22:38:00 +00:00
Helen Hou-Sandi
1ab5043e7f
Make nav menu item add tabs and content consistent with similar tabs on the post edit screen. props corvannoorloos for the initial patch. fixes #26757 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27229 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-21 22:10:14 +00:00
Andrew Nacin
2122d00761
Make sure color schemes are registered when WP_Styles is initialized early.
...
fixes #27175 . see #26669 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27228 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-21 21:08:37 +00:00
Andrew Nacin
909fe70f4e
Remove unused variable.
...
props ericlewis.
fixes #27176 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27227 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-21 20:51:23 +00:00
Andrew Nacin
bd71233c81
Embolden some instructions when installing a network.
...
props Ipstenu.
fixes #27057 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27226 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-21 19:32:52 +00:00
Andrew Nacin
5e48d4236a
Allow any vimeo.com subdomain for embeds.
...
props danielbachhuber.
fixes #24170 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27225 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-21 19:32:01 +00:00
Sergey Biryukov
ddb1f3e7ca
Remove unused code from WP_Widget::update_callback().
...
props OriginalEXE.
fixes #24733 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27224 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-21 18:50:08 +00:00
Drew Jaynes
45cbb9148a
Fix reversed return logic in the wp_nav_menu()
phpdoc.
...
See #27163 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27223 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-21 18:33:39 +00:00
Drew Jaynes
2a926fe16b
Convert docs for wp_nav_menu()
arguments to a hash notation.
...
Fixes #27163 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27222 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-21 18:31:27 +00:00
Sergey Biryukov
9d94ec0cad
Use filtered per_page value in WP_Plugin_Install_List_Table and WP_Theme_Install_List_Table.
...
props brasofilo.
fixes #25675 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27221 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-21 18:29:41 +00:00
Andrew Nacin
b74f222d33
Remove theme support for 'menus' in unregister_nav_menu() when there are no more menus.
...
props kovshenin.
fixes #26900 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27220 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-21 18:13:52 +00:00
Andrew Nacin
4cfcdabdd8
Simplify error in validate_file_to_edit().
...
props MattyRob for initial patch.
fixes #25924 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27219 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-21 14:45:06 +00:00
Sergey Biryukov
84c8009c50
Prevent "Add" button in Tags meta box from wrapping to a new line in ru_RU.
...
fixes #26510 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27218 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-20 22:34:44 +00:00
Sergey Biryukov
0ccc5db0dd
Add boolean return values to require_if_theme_supports().
...
props jeffsebring, DrewAPicture.
fixes #26716 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27217 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-20 22:10:32 +00:00
Scott Taylor
52cbf23fe2
Correct a missing conditional in edit-form-advanced.php
.
...
See #26631 , [27209].
Props nacin for noticing.
git-svn-id: https://develop.svn.wordpress.org/trunk@27216 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-20 21:37:57 +00:00
Scott Taylor
2b06a387fe
Register wp.media.controller.GalleryEdit
and wp.media.controller.GalleryAdd
using the new wp.media.controller.Collection*
abstraction code.
...
See #26631 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27215 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-20 18:33:39 +00:00
Scott Taylor
fc5a96502f
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27214 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-20 18:25:01 +00:00
Scott Taylor
6fed18847c
Replace the current wp.media.gallery
instance in media-editor.js
with one that leverages wp.media.collection
.
...
See #26631 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27213 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-20 18:12:05 +00:00
Scott Taylor
863c141ba8
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27212 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-20 18:06:31 +00:00
Drew Jaynes
b85d8ddbd8
Remove now-unnecessary vanity spacing of various hooks in wp-includes/query.php.
...
See #25514 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27211 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-20 17:58:42 +00:00
Drew Jaynes
efd0b5081e
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27210 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-20 17:53:33 +00:00
Scott Taylor
ae603ef26d
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27209 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-20 17:49:30 +00:00
Drew Jaynes
3776fd7d5d
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27208 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-20 17:45:19 +00:00
Drew Jaynes
5f068b8a11
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27207 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-20 17:40:14 +00:00
Drew Jaynes
5fbf05a2cb
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27206 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-20 17:33:16 +00:00
Sergey Biryukov
76ba2667c1
Update $parent_file value in wp-admin/update-core.php.
...
props bcworkz.
fixes #27109 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27205 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-20 16:41:50 +00:00
nacin
4397095aa8
Remove accidental change in [27203]. see #20729 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27204 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-20 06:59:02 +00:00
Andrew Nacin
f176ab98fc
Simplify how admin color schemes are enqueued.
...
Removes a piece of [27111].
fixes #20729 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27203 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-20 06:58:10 +00:00
Drew Jaynes
d3aa609740
Inline documentation for hooks in wp-admin/includes/image.php.
...
Props theorboman, kpdesign.
Fixes #25832 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27202 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-20 06:26:51 +00:00
Drew Jaynes
1b45201476
Fixes for hooks documentation wp-includes/nav-menu-template.php.
...
See #26869 , #25229 and [25410].
git-svn-id: https://develop.svn.wordpress.org/trunk@27201 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-20 05:07:39 +00:00
Helen Hou-Sandi
bc8302d050
Login styles do not depend on common.css. see #12506 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27200 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-20 03:27:54 +00:00
Helen Hou-Sandi
1c5f1cebff
Make login styles standalone. see #12506 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27199 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-20 03:23:49 +00:00
John Blackbourn
a0536406a1
Add screen-reader friendly variations of some short text links in the Publish meta box. Fixes #25459 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27196 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-19 22:43:55 +00:00
Helen Hou-Sandi
c4848bbac4
Once upon a time not long ago,
...
The admin CSS was merged in #18314 .
After a couple years as it stood,
The mess it had become just was no good.
One day we realized Grunt is pretty cool,
And said "we should use this as our build tool!"
Now we can maintain separate files with ease,
Using @import and cssmin meets all our needs.
Welcome to the future of the WordPress stylesheets,
And thanks to Slick Rick for the beats.
props jorbin for the initial patch.
fixes #26669 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27195 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-19 21:42:36 +00:00
Sergey Biryukov
073d970d1f
Use correct variable. props avryl. fixes #27153 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27194 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-19 15:28:17 +00:00
Andrew Ozz
377c5520ea
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
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27193 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-19 03:50:09 +00:00
Sergey Biryukov
47510a2092
Correct @since value. see #26869 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27192 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-18 21:44:14 +00:00
Sergey Biryukov
013a4e3381
Correct return values for update_metadata() and related functions.
...
fixes #21864 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27191 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-18 21:35:07 +00:00
Andrew Ozz
0d52823908
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
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27190 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-18 06:31:30 +00:00
Scott Taylor
6d00fb3fe8
Remove code from a previous patch. See [27188].
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27189 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-17 22:45:52 +00:00
Scott Taylor
1b8da3d0d6
Use selected()
where appropriate in touch_time()
, page_template_dropdown()
, and parent_dropdown()
. Also, add proper docs.
...
Props meloniq, DrewAPicture.
Fixes #25889 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27188 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-17 22:26:14 +00:00
Scott Taylor
664bf1fea2
Remove extraneous type-casting in wp_get_object_terms()
.
...
Props OriginalEXE.
Fixes #27133 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27186 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-17 21:55:41 +00:00
Scott Taylor
7bdca44b97
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27185 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-17 21:40:04 +00:00
Scott Taylor
db1c44bc42
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27184 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-17 21:22:25 +00:00
Andrew Ozz
4283c76461
TinyMCE: wrap the toolbars buttons on narrow screens, props mikemanger, fixes #26882
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27182 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-17 02:12:07 +00:00
Andrew Nacin
6351b0b3a4
Rename the old media.css file, used for the pre-3.5 media library. Clean up script-loader CSS registrations.
...
see #26669 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27181 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-16 00:35:12 +00:00
Andrew Ozz
5a9624b834
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 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27179 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-14 19:19:28 +00:00
Andrew Nacin
31d3af406c
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27178 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-13 23:06:12 +00:00
Andrew Ozz
f6af16cd76
TinyMCE: add support for audio and video shortcodes without closing, fix jshint warning, see #27016 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27177 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-13 20:12:46 +00:00
Andrew Nacin
01b809bf2b
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27174 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-13 08:29:16 +00:00
Andrew Nacin
12b13fe7cf
Optimize 69 images (of 127) using the new Grunt task. (See [27172].)
...
fixes #25169 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27173 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-13 08:02:48 +00:00
Andrew Nacin
110978e2d3
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27171 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-13 07:36:01 +00:00
Andrew Nacin
4e36f55df7
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27170 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-13 07:33:29 +00:00
Andrew Ozz
fcea323396
TinyMCE: add image based placeholders for audio and video shortcodes. Props wonderboymusic, see #27016 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27169 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-13 05:09:04 +00:00
Sergey Biryukov
4db1f2cb20
Merge two similar strings. props pavelevap. fixes #27096 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27167 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-12 10:14:12 +00:00
Scott Taylor
fd8d6cddcd
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27166 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-12 04:48:14 +00:00
Andrew Ozz
94a1bb0485
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 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27165 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-11 23:32:11 +00:00
Dominik Schilling (ocean90)
a03b5033ce
Use jQuery.prop('checked') instead of jQuery.attr('checked'), which is deprecated.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27164 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-11 21:12:04 +00:00
Scott Taylor
2e9d155703
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27163 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-11 16:49:11 +00:00
Scott Taylor
05b87717c8
Rather than removing the 3rd argument in WP_Object_Cache::delete()
, mark it as $deprecated
.
...
See [27064].
Props SergeyBiryukov.
Fixes #22478 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27162 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-11 16:40:30 +00:00
Scott Taylor
4f8d51257c
In remove_user_from_blog()
, avoid a potentially expensive IN
query before invalidating the reassigned post and link caches.
...
Props kovshenin.
Fixes #25545 . (Again.)
git-svn-id: https://develop.svn.wordpress.org/trunk@27161 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-11 16:27:05 +00:00
Andrew Ozz
fb3f9ff8f7
Bump the TinyMCE version, see #24409 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27160 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-11 01:07:22 +00:00
Andrew Ozz
fd19c371d1
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27159 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-10 23:47:34 +00:00
Andrew Nacin
b7be4e98fe
Detect and handle symlinking of plugins in plugin_basename().
...
props rmccue, MikeSchinkel, jdgrimes.
see #16953 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27158 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-10 22:59:40 +00:00
Drew Jaynes
ef099f8082
Fix a typo in the PHPDoc for comment_author_email_link()
.
...
See #27083 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27157 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-10 04:06:36 +00:00
Drew Jaynes
3d67904bc7
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27156 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-10 03:19:13 +00:00
Andrew Ozz
4951bdc964
Remove unused arg from wp_auth_check(), see #27081 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27154 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-09 22:33:56 +00:00
Andrew Nacin
e1f6ab1ea9
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27153 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-09 22:27:57 +00:00
Scott Taylor
3fce77b44d
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27152 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-09 21:46:43 +00:00
Sergey Biryukov
13571cf6b2
Update comment about structure of items in $menu global.
...
props kitchin.
fixes #26635 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27151 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-09 21:42:28 +00:00
Dominik Schilling (ocean90)
586cb2b140
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27150 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-09 21:36:15 +00:00
Drew Jaynes
d670819b03
Improve inline documentation for wp_new_user_notification()
.
...
Props antorome for the initial patch.
Fixes #26703 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27149 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-09 21:07:01 +00:00
Drew Jaynes
eaff87706b
Improve inline documenation for get_the_time()
and `get_post_time().
...
Props ruud@joyo for the initial patch.
Fixes #26682 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27148 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-09 21:02:36 +00:00
Drew Jaynes
b013aaf4c9
Fixes for hooks documentation in wp-includes/wp-db.php.
...
See #26869 , #25229 and [25284].
git-svn-id: https://develop.svn.wordpress.org/trunk@27147 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-09 20:50:42 +00:00
Drew Jaynes
6229ba0bb3
Fixes for hooks documentation on xmlrpc.php.
...
Adds spacing, changes an `@see` to `@link`, adds a docs-specific variable for a parameter.
See #26869 , #25229 and [25281].
git-svn-id: https://develop.svn.wordpress.org/trunk@27146 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-09 20:38:39 +00:00
Drew Jaynes
e4adb8dcfe
Fixes for hooks documentation in wp-admin/admin-footer.php.
...
Adds some new lines, some hook-line spacing, docs-specific variables, and other language tweaks.
See #26869 , #25229 , [25252].
git-svn-id: https://develop.svn.wordpress.org/trunk@27145 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-09 20:28:01 +00:00
Drew Jaynes
1fcb6036ca
Fixes for inline documentation for hooks in wp-comments-post.php.
...
Adds missing `@since` versions, spacing, and language tweaks.
See #26869 , #25229 , [25249].
git-svn-id: https://develop.svn.wordpress.org/trunk@27144 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-09 20:11:34 +00:00
Andrew Ozz
0ae2aa696a
Remove a stray </div> from the Edit Image template, was breaking it in IE < 9. Props gcorne, see #24409
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27143 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-09 18:44:40 +00:00
Scott Taylor
e966a23683
Reuse the terms
cache group for taxonomy cache invalidation.
...
See #22526 , #14485 , [27101], [27102].
git-svn-id: https://develop.svn.wordpress.org/trunk@27142 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-09 17:41:07 +00:00
Drew Jaynes
eb43703bba
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27141 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-09 02:01:28 +00:00
Andrew Nacin
ee280cf8dd
has_image_size()'s parameter should be required. see [27139], see #26951 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27140 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-08 23:52:40 +00:00
Drew Jaynes
c0a7cd58e7
Inline documentation tweaks for has_image_size()
and remove_image_size()
.
...
See #26951 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27139 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-08 22:54:47 +00:00
Drew Jaynes
75c028e042
Inline documentation for the wp_insert_attachment_data
filter hook, added in [27130].
...
Fixes #20547 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27138 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-08 22:46:25 +00:00
Drew Jaynes
aa502ff35a
Fix docs spacing missed in [27136].
...
See #27070 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27137 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-08 22:18:09 +00:00
Drew Jaynes
4993a00e05
Improve inline documentation for submit_button()
.
...
See #27070 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27136 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-08 22:13:18 +00:00
Drew Jaynes
622d3e1338
Clarify submit_button()
$type
parameter docs to mention that the value doubles as the CSS class attribute.
...
See #27070
git-svn-id: https://develop.svn.wordpress.org/trunk@27135 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-08 22:10:19 +00:00
Sergey Biryukov
a3a869fdfd
Fix validation issue in get_the_password_form() caused by wpautop().
...
props andykeith.
fixes #27071 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27134 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-08 13:22:40 +00:00
Andrew Nacin
f3cbc44076
Add meetup.com oEmbed support. see #23171 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27133 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-08 01:13:52 +00:00
Andrew Nacin
3266997d99
Improve parameter documentation of add_meta_box().
...
props philiparthurmoore, DrewAPicture.
fixes #26698 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27132 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-08 00:54:19 +00:00
Andrew Nacin
522670cef2
Various JSHint fixes. see #26446 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27131 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-08 00:51:14 +00:00
Scott Taylor
2238c7fb7f
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27130 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-08 00:43:16 +00:00
Andrew Nacin
baeadcfedc
Add remove_image_size() and tests for it and has_image_size(), added in [27128].
...
props mordauk, markoheijnen.
fixes #26768 . see #26951 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27129 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-08 00:40:15 +00:00
Scott Taylor
d80685a46b
Introduce has_image_size( $name )
, a utility function that helps avoid loading the $_wp_additional_image_sizes
global.
...
Props mordauk.
Fixes #26951 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27128 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-08 00:19:29 +00:00
Scott Taylor
d6cb8c399e
Introduce maybe_regenerate_attachment_metadata( $attachment )
. On the Edit Media screen, call it for Audio and Video files.
...
The functions checks if the item is lacking metadata altogether. If a video or audio file was uploaded prior to 3.6, it does not have any metadata. This tries to fix it. Implements locking via a transient to protect against this running in parallel with another request.
This is the minimum viable product for #26825 , but leaving the ticket open unless this function needs to be called in other places.
See #26825 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27127 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-07 22:40:32 +00:00
Scott Taylor
4b047c21ab
Add some inline docs to media-views.js
and remove some unnecessary comments from a few super
calls.
...
Props gcorne.
See #26870 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27126 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-07 20:20:38 +00:00
Scott Taylor
81679ef453
When a term_id
matches in _get_term_children()
, recurse through its children until there is no more depth in the hierarchy. Since get_terms()
return terms with a count
of 0
when their children are not empty, we must return all children so that get_terms()
can check their count.
...
In [27108], #26903 was fixed, but only because we were using the example in the ticket, leaving out infinite depth for hierarchical taxonomies.
Adds unit tests, including `Tests_Term_getTerms::test_get_terms_seven_levels_deep()`.
Fixes #26903 . Again.
git-svn-id: https://develop.svn.wordpress.org/trunk@27125 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-07 19:53:01 +00:00
Lance Willett
5ddc101010
Twenty Fourteen: fix Ephemera Widget to avoid showing full post content when displayed in single post or page. Restore the global $more
to its original value after the widget output to avoid any issues caused by changing a global variable.
...
Props obenland, mor10, Frank Klein. See #26961 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27124 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-07 18:03:00 +00:00
Lance Willett
2ec5e68249
Twenty Fourteen: pinking shears.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27123 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-07 18:01:20 +00:00
Lance Willett
9ddb14eb97
Twenty Fourteen: translate featured
tag slug used to link to specific tags in Posts editor. See #26526 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27122 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-07 17:46:46 +00:00
Lance Willett
7d23aedf8b
Twenty Fourteen: fix unreachable links when the content area is shorter than the sidebar in smaller viewpoints. Props celloexpressions, see #26782 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27121 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-07 17:42:59 +00:00
Lance Willett
6f9758f69b
Twenty Fourteen: delete the featured_content_ids
transient on theme switch to make sure child themes can override the Featured Content quantity value. Also remove quantity parameter so child themes can change the amount of featured posts with $max_posts
.
...
Props obenland, see #26660 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27120 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-07 17:38:08 +00:00
Sergey Biryukov
5b7c8cf7c1
Use .screen-reader-text class instead of an alt attribute for overlay button labels on Themes screen.
...
props bramd.
fixes #26603 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@27119 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-07 17:32:31 +00:00
Lance Willett
cb8654eade
Twenty Fourteen: make sure featured
tag is hidden on front-end views as expected. Add a check for the tag name in case we're using default values and the default ID of 0
does not match the term id of the featured
tag.
...
Props obenland, fixes #26732 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27118 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-07 17:16:53 +00:00
Lance Willett
dfb4b73fbe
Twenty Fourteen: fix gap above static pages, props SergeyBiryukov. Fixes #26694 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27117 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-07 17:10:04 +00:00
Sergey Biryukov
ab112fecb8
Fix typo in wp_set_auth_cookie() description.
...
props drozdz.
fixes #27046 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27116 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-07 09:46:19 +00:00
Andrew Nacin
4f5608f653
Use a float for last_changed microtime cache values.
...
microtime() by default returns a string with a space, which isn't allowed for keys in some cache backends.
props _jameslee, drozdz.
fixes #27000 . see #23448 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27115 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-07 08:13:37 +00:00
Andrew Nacin
3dbd4f8dcb
Revisions browser: The back button should return to the post you were editing (use replaceState instead of pushState).
...
props adamsilverstein.
fixes #26997 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27114 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-06 23:27:47 +00:00
Andrew Nacin
99c1b7323c
Add imgur to the list of oEmbed providers.
...
props bradparbs.
fixes #21632 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27113 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-06 23:11:21 +00:00
Andrew Nacin
a2c2c3bfba
Network install: When showing the path to wp-config.php make sure our slashes are normalized.
...
props VarunAgw.
fixes #27025 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27112 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-06 22:21:34 +00:00
Andrew Nacin
1304fb3463
Fix the conditional enqueueing/printing of colors stylesheets, without breaking dependencies.
...
fixes #18380 .
see #20729 which should properly fix this.
git-svn-id: https://develop.svn.wordpress.org/trunk@27111 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-06 22:15:25 +00:00
Andrew Ozz
4d7d68b565
Fix scrolling inside the Visual editor on MacOS, add the same functionality to the Text editor, see #27013
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27110 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-06 19:33:13 +00:00
Helen Hou-Sandi
1b160c1c40
Fix some hover/focus styling and specificity issues. see #18380 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27109 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-06 17:56:30 +00:00
Scott Taylor
8dad11bfe2
In get_terms()
, don't set automatically hierarchical
to false
when parent => 0
is passed. The default value for parent
is ''
.
...
In `_get_term_children()`, don't skip a top-level term without first including its children in the returned term list. Ironically, the call to `_get_term_children()` in `get_terms()` has a comment stating `"Make sure we show empty categories that have children."`, but it didn't work if you were retrieving top-level categories only.
All unit tests pass. Added a unit test based on the use case described in this ticket.
Fixes #26903 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27108 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-06 17:44:50 +00:00
Helen Hou-Sandi
c2e018dd0d
Some tweaks to [27106]:
...
* Add more @todo markings and remove one that's been resolved.
* Restore a missing comma in a `.wp-badge` background rule, and add a comment reminding us why it's there.
see #18380 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27107 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-06 07:07:42 +00:00
Helen Hou-Sandi
802baab31a
Merge colors.css into wp-admin.css. Non-default color schemes became overloads rather than swaps in the 3.8 redesign. Benefits include:
...
* No more border-width, border-style, border-color insanity.
* Point releases are much less likely to require extra finagling to avoid rebuilding the color schemes.
* Yours truly has a better overall vision of ~14,000 lines of admin CSS and where we go from here.
1,065 net lines of red, y'all.
props helen, jorbin. fixes #18380 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27106 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-06 06:24:36 +00:00
Andrew Nacin
7ff0442a07
JSHint fixes for media-views and Gruntfile.
...
props gcorne.
fixes #27032 , #27033 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27105 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-06 05:31:22 +00:00
Scott Taylor
50a96f165e
Regenerate the term hierarchy cache ({taxonomy}_children
) when it is out of sync with the passed taxonomy's last_changed
value.
...
Introduces `taxonomy_hierarchy_is_fresh()`, which is only called in `_get_term_hierarchy()`. The taxonomy's `last_changed` value is checked against the value of `wp_cache_get( 'hierarchy_last_changed', $taxonomy )`.
Adds a unit test - `Tests_Term:test_hierachy_invalidation()`.
See [27101], which makes this type of cache invalidation possible.
Fixes #14485 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27102 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-06 01:58:01 +00:00
Scott Taylor
e33ef0c6ac
Add cache invalidation when updating a term, example: create a category, assign it to a post, edit the category. Currently, the post's term cache is not updated. When updating terms in a given taxonomy, invalidate the object term caches linked to that taxonomy.
...
Introduce `get_taxonomy_last_changed()`, `set_taxonomy_last_changed()`, and `post_taxonomy_is_fresh()`.
`post_taxonomy_is_fresh()` is only called in `get_object_term_cache()` - at which point the taxonomy's `last_changed` value is checked against the post's `{$taxonomy}_last_changed` value.
`set_taxonomy_last_changed()` is called whenever directory database queries are made that insert new terms or affect existing terms.
Fixes #22526 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27101 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-06 01:40:05 +00:00
Andrew Ozz
5a3fb502cb
TinyMCE: set the proper caption width when clicking image resize handle on image with caption. Props gcorne, fixes #27009 , see #24067 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27098 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-05 02:06:10 +00:00
wonderboymusic
71947f18d3
When a video shortcode has content in its body, append it as inner HTML in the resulting <video>
.
...
Reverts [27096].
Fixes #26628 .
See #27016 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27097 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-05 01:42:02 +00:00
Andrew Ozz
89b8edf8f1
TinyMCE: don't scroll the main window when scrolling the editor content with a mouse wheel or trackpad and reaching the end. Fixes #27013 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27095 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-05 01:09:42 +00:00
Andrew Ozz
6a0251847b
Consolidate handling of <object>, <audio> and <video> in wpautop() and add unit tests for them. Part props wonderboymusic, see #26864
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27094 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-05 00:45:53 +00:00
Andrew Ozz
b33135c08d
When using wp_editor(), make it easier to specify which editor is shown first, fixes #20822
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27093 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-05 00:33:49 +00:00
Andrew Nacin
6aaad4785a
Autosave: Fix typo in event namespace. props avryl, see #25272 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27092 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-04 16:06:13 +00:00
Andrew Nacin
2f013a3706
Default themes: Use the 'display' filter for get_bloginfo( 'name' ) attached to the wp_title filter.
...
props michelwppi.
fixes #26811 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27091 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-04 13:56:49 +00:00
Drew Jaynes
d88b191c9a
Inline documentation for hooks in wp-admin/includes/class-wp-ms-themes-list-table.php.
...
Also marks two hooks in wp-admin/includes/class-wp-themes-list-table.php as duplicates.
Props ShinichiN, kpdesign, DrewAPicture.
Fixes #25608 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27090 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-04 08:24:13 +00:00
Drew Jaynes
75d5d14049
Inline documentation for hooks in wp-admin/includes/class-wp-terms-list-table.php.
...
Props Ajay, kpdesign.
Fixes #26209 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27089 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-04 07:55:48 +00:00
DrewAPicture
ac4774ddbd
Inline documentation for hooks in wp-admin/network/sites.php.
...
Props NikV, kpdesign.
Fixes #26124 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27088 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-04 07:48:03 +00:00
Scott Taylor
050e4f26e9
Invalidate the post cache for posts associated with a user who has been removed from a blog in remove_user_from_blog()
. Adds a unit test.
...
Props nprasath002 for the initial patch.
Fixes #25545 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27087 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-04 04:12:52 +00:00
Andrew Ozz
840423ea10
Minor cleanup (jshint) of wp-fullscreen.js and /wordpress/plugin.js, see #24067
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27085 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-03 21:30:25 +00:00
Andrew Ozz
5ff41a8635
Add back missing var definition in wplink.js, props TobiasBg, see #24067
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27084 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-03 21:26:39 +00:00
Andrew Ozz
c24e451ae3
TinyMCE: don't replace <i> with <em> and <b> with <strong> and don't remove them when empty, see #24067 , see #23037 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27083 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-03 20:25:08 +00:00
Sergey Biryukov
0d8921de03
Add braces around conditionals. props TobiasBg. fixes #25704 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27082 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-03 20:16:08 +00:00
Scott Taylor
28bab15d16
Properly invalidate the cache for wp_count_posts()
on insert, trash, or when transitioning post_status
inside of _transition_post_status()
. Introduces _count_posts_cache_key()
. Adds unit tests.
...
Props mark8barnes, for bringing this to our attention in an initial patch.
Fixes #21879 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27081 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-03 19:41:40 +00:00
Andrew Ozz
9fd8c54ef9
Consolidate "close on Escape" in the media modal, DFW, wpLink and Thickbox. Props kovshenin, fixes #26854 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27080 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-03 05:30:12 +00:00
Andrew Ozz
33b079b036
Open previews of different posts in different windows/tabs. Prevent confusion when using a former preview window again if the user navigated to edit another post. If the first post is still being edited, clicking Preview there will use the current window to show the preview. Props ippetkov, fixes #20233 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27079 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-02 23:49:05 +00:00
Andrew Ozz
90662a17f4
Editor: add :focus style for the Quicktags buttons, fixes #26932
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27078 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-02 22:37:37 +00:00
Andrew Nacin
8c3ad4e860
Consistently trim and unslash search queries for the users list tables.
...
props aubreypwd.
fixes #26115 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27077 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-02 22:09:19 +00:00