Commit Graph

2378 Commits

Author SHA1 Message Date
Andrew Nacin
e4bb7b0e8c Editor: Show 'View Post' for any post the author can read.
This expands it to private posts and matches the logic in the toolbar.

props mordauk, SergeyBiryukov.
fixes #27059.


git-svn-id: https://develop.svn.wordpress.org/trunk@27483 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-09 13:52:08 +00:00
Dominik Schilling (ocean90)
292f70aba3 Admin Menu: Set default value of $icon_url in add_menu_page() to dashicons-admin-generic, fixes #26630.
git-svn-id: https://develop.svn.wordpress.org/trunk@27482 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-09 11:12:35 +00:00
Scott Taylor
d39e5ecafd Video editing in the media modal:
* Add a state: `Add Subititles`
* Add `text/vtt` to the list of allowed mime-types, files end in `.vtt`. `.srt` files are served as `text/plain`.
* The content body of a video shortcode should be used for adding `<track>` elements only. This happens dynamically in the modal. If added by hand, they can still be parsed and managed.

See #27016.



git-svn-id: https://develop.svn.wordpress.org/trunk@27481 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-09 10:31:36 +00:00
Scott Taylor
29e2d9f66a Since audio and video shortcodes don't point at actual attachments, don't persist the library's selection. Move the media instructions in the block that scrolls.
See #27016.



git-svn-id: https://develop.svn.wordpress.org/trunk@27480 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-09 06:23:18 +00:00
Scott Taylor
7361703264 Add wp.media.view.MediaFrame.MediaDetails, which wp.media.view.MediaFrame.AudioDetails and media.view.MediaFrame.VideoDetails extend. The subclasses subsequently only need to set createStates() and bindHandlers(), as well as any missing toolbar views.
See #27016.



git-svn-id: https://develop.svn.wordpress.org/trunk@27479 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-09 06:04:29 +00:00
Scott Taylor
3c8d2a99f2 Audio/Video shortcodes in the media modal:
* Make a generic model, `wp.media.model.PostMedia`, which replaces `wp.media.model.PostAudio` and `wp.media.model.PostVideo`
* Make a generic library, `wp.media.controller.MediaLibrary`, which replaces `wp.media.controller.ReplaceVideo` and `wp.media.controller.ReplaceAudio`
* `wp.media.controller.MediaLibrary` is used to create new states that want to load a library filtered by type, making it incredibly simple to add states to frames. See `wp.media.view.MediaFrame.VideoDetails` and `wp.media.view.MediaFrame.AudioDetails`.

UX changes:

* Add the ability to manage HTML5 fallbacks - add additional `<source>`s or remove specific `<source>`s
* In the Video Details state, add the ability to select a poster image

See #27016.



git-svn-id: https://develop.svn.wordpress.org/trunk@27478 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-09 05:24:10 +00:00
Scott Taylor
8064f5dbc4 In wp.media.model.PostAudio and wp.media.model.PostVideo, use Underscore's unset method when clearing out properties when the attachment changes.
See #27016.



git-svn-id: https://develop.svn.wordpress.org/trunk@27477 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-09 01:05:48 +00:00
Scott Taylor
67512aa18a Audio/Video shortcodes in the media modal:
* Add `embedMimes` to `_wpMediaViewsL10n`
* Use `escape` instead of `interpolate` when setting attributes in Underscore templates
* When creating the `<audio>` and `<video>` tags dynamically, set inner `<source>` nodes instead of the `src` attribute and properly set the mime-type per source as the `type` attribute. This is also drastically reduces the amount of code used to generate the tags.

See #27016.



git-svn-id: https://develop.svn.wordpress.org/trunk@27476 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-09 01:00:53 +00:00
Andrew Nacin
f6d9b60cd0 Add context to an internal HTTP API hook.
props kovshenin.
fixes #27021.


git-svn-id: https://develop.svn.wordpress.org/trunk@27475 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-08 21:53:51 +00:00
Drew Jaynes
5fde82be76 Better standardize parameter value types in PHPDocs where both a post ID or WP_Post would be acceptable.
Covers cases where previously only `int` or `int|object` types were notated.

Props coffee2code for the original patch.
See #20495.


git-svn-id: https://develop.svn.wordpress.org/trunk@27473 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-08 19:31:51 +00:00
Andrew Nacin
f225973b62 Allow $crop in add_image_size() to receive crop anchors (top, left, right, bottom, center).
This also applies to set_post_thumbnail_size() and image_resize_dimensions().

props bradt, wonderboymusic, DH-Shredder.
fixes #19393.


git-svn-id: https://develop.svn.wordpress.org/trunk@27472 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-08 06:13:27 +00:00
Andrew Nacin
ab7960e009 I am having a bad day. see #13265.
git-svn-id: https://develop.svn.wordpress.org/trunk@27471 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-08 04:19:24 +00:00
Andrew Nacin
928a972fb5 Rename the new page_templates filter to theme_page_templates, and pass it a post object for proper context.
see #13265.


git-svn-id: https://develop.svn.wordpress.org/trunk@27470 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-08 04:18:30 +00:00
Andrew Nacin
4cf6fc1a99 Use SSL when linking to WordPress.org. see #27115.
git-svn-id: https://develop.svn.wordpress.org/trunk@27469 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-08 04:13:28 +00:00
Andrew Nacin
89241aee8d Widgets dashicons update.
props melchoyce, michael-arestad, empireoflight.
see #26936.


git-svn-id: https://develop.svn.wordpress.org/trunk@27468 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-08 03:37:10 +00:00
Andrew Nacin
5d48091e5d Remove lame debugging. see #23057.
git-svn-id: https://develop.svn.wordpress.org/trunk@27467 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-08 03:15:49 +00:00
Andrew Nacin
750fe42507 Normalize $reassign in wp_delete_user() to ensure the hooks receive consistent values.
fixes #23057.


git-svn-id: https://develop.svn.wordpress.org/trunk@27466 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-08 03:15:06 +00:00
Sergey Biryukov
ccebc9746a Use correct function name. see [27374].
props lpointet.
see #14424.

git-svn-id: https://develop.svn.wordpress.org/trunk@27465 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-08 02:44:58 +00:00
Andrew Ozz
53c76ed168 Limit the drag/drop upload only to newer browsers (IE10+), add a fullscreen dropzone in DFW mode, props kovshenin, see #19845
git-svn-id: https://develop.svn.wordpress.org/trunk@27464 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-08 01:34:04 +00:00
Sergey Biryukov
28b34b3811 Fix docblock formatting in [27462]. see #23057.
git-svn-id: https://develop.svn.wordpress.org/trunk@27463 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-08 01:25:28 +00:00
Sergey Biryukov
e925502c25 Pass $reassign parameter to 'delete_user' and 'deleted_user' actions.
props genkisan.
fixes #23057.

git-svn-id: https://develop.svn.wordpress.org/trunk@27462 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-08 01:22:51 +00:00
Andrew Ozz
65ac1e6f2d Adjust .find-box-inside responsive style, props avryl, see #26952
git-svn-id: https://develop.svn.wordpress.org/trunk@27461 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-08 00:46:03 +00:00
azaozz
c88f6ba1e9 Set minimum z-index for the TinyMCE modals and adjust the z-index in DFW, see #26952
git-svn-id: https://develop.svn.wordpress.org/trunk@27460 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-08 00:40:03 +00:00
Scott Taylor
3010c5aa20 In get_terms(), leverage get_term_children() over _get_term_children() when making sure to show empty terms that have children in a hierarchical taxonomy while avoiding duplicates.
Adds unit test for `child_of` param. Adjusts unit tests for `get_terms()`.

See [27108] and [27125].
Props SergeyBiryukov.
Fixes #27123.



git-svn-id: https://develop.svn.wordpress.org/trunk@27458 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-07 19:29:01 +00:00
Scott Taylor
666cd37087 get_term_children() returns an array of IDs, not objects. The docs have been updated to reflect this.
Fixes #27312.



git-svn-id: https://develop.svn.wordpress.org/trunk@27457 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-07 19:15:11 +00:00
Scott Taylor
dfc11a170b On second thought, allow posts_per_rss to be set in pre_get_posts to override the posts_per_rss option. There are backwards compatibility concerns otherwise.
Props nacin.
Partially reverts [27455]. Updates the unit test. See #25380.



git-svn-id: https://develop.svn.wordpress.org/trunk@27456 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-07 18:58:33 +00:00
Scott Taylor
65932f71fd When setting posts_per_page in WP_Query::get_posts(), check for is_feed() in the same place where posts_per_page is set when it is not already set. Previously, when is_feed() was true, posts_per_page would be arbitrarily overwritten. This fix allows posts_per_page to be set during pre_get_posts when is_feed() is true and not be overwritten.
Adds unit test.

Props wokamoto.
Fixes #25380.



git-svn-id: https://develop.svn.wordpress.org/trunk@27455 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-07 18:32:40 +00:00
Scott Taylor
a8bc73c543 When MEDIA_TRASH is true, show the proper context in the attachment-details sidebar. Without this fix, it always showed "Delete Permanently."
Props toszcze.
Fixes #26783.



git-svn-id: https://develop.svn.wordpress.org/trunk@27454 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-07 16:41:49 +00:00
Scott Taylor
69cf45e4dd JSHint addendum to [27450].
See #27016.



git-svn-id: https://develop.svn.wordpress.org/trunk@27453 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-07 08:43:54 +00:00
Scott Taylor
0143c2d90a Videos in the media modal:
* Support rendering of chromeless YouTube when a video shortcode's `src` is a YouTube URL. 
* Don't instantiate an instance of `MediaElementPlayer` until after the view has been attached to the DOM and the view's `ready` event has fired.
* Don't set `poster` for videos when its value is empty. Much like `src` in the `img` tag - when empty, it will assume and load the current window's URL.
* When removing a player instance, don't call the `pause` method if the playback is not native.

See #27016.



git-svn-id: https://develop.svn.wordpress.org/trunk@27452 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-07 08:31:57 +00:00
Andrew Ozz
5e5caca113 TinyMCE editimage: show the toolbar on mouseup to avoid accidental clicks on the buttons, fixes #24409
git-svn-id: https://develop.svn.wordpress.org/trunk@27451 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-07 06:33:06 +00:00
Scott Taylor
43a8fb1bd2 Support the autoplay attribute, even when the plugin type for a MediaElement instance is Flash. In the media modal, wp.media.view.VideoDetails and wp.media.view.AudioDetails now extend a unified wp.media.view.MediaDetails class which contains all of the player creation and destruction logic. The remove() method mimics the mejs.MediaElementPlayer.remove() method, but does not re-add the audio/video tag to the DOM. The MEjs method is especially problematic when the tag has autoplay="true" and the view has been detached but not destroyed.
Fixes #25077.
See #27016.



git-svn-id: https://develop.svn.wordpress.org/trunk@27450 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-07 05:51:25 +00:00
Andrew Ozz
5a13b572cb TinyMCE: add Ctrl+K, the "de-facto standard" shortcut to open wpLink, fixes #27305
git-svn-id: https://develop.svn.wordpress.org/trunk@27449 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-07 03:09:00 +00:00
Scott Taylor
142b5208fa Remove the box-shadow from the separator in the right sidebar of the media modal.
Props avryl.
Fixes #27217. 



git-svn-id: https://develop.svn.wordpress.org/trunk@27448 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-07 02:45:18 +00:00
Andrew Ozz
bb00c66c6a TinyMCE:
- Restore the "link" button state to disabled by default and enabled when text or image is selected.
- Remove the (recently added) default `link` plugin, not needed for `wpLink`.
See #27309

git-svn-id: https://develop.svn.wordpress.org/trunk@27447 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-07 02:01:07 +00:00
Helen Hou-Sandi
55e1b4c982 At long last, a first pass at bringing the image editor into the media modal. props gcorne, DH-Shredder, tomauger. see #21811.
git-svn-id: https://develop.svn.wordpress.org/trunk@27445 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-06 22:54:32 +00:00
Dominik Schilling (ocean90)
95b13bb758 Add missing Dashicons classes to Network Admin menu, see #26630.
git-svn-id: https://develop.svn.wordpress.org/trunk@27444 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-06 22:51:53 +00:00
Scott Taylor
ad3f6ef9d9 Call the correct remove() method on the MEjs instance when exiting the media modal.
See #27016.



git-svn-id: https://develop.svn.wordpress.org/trunk@27443 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-06 20:12:39 +00:00
Andrew Nacin
b727bef3f3 Twenty Fourteen: Add a .button class.
props celloexpressions.
fixes #27075.


git-svn-id: https://develop.svn.wordpress.org/trunk@27442 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-06 19:53:42 +00:00
Andrew Nacin
4bbd5ef1d6 maybe_regenerate_attachment_metadata() is now wp_maybe_generate_attachment_metadata().
props kovshenin.
fixes #26825.


git-svn-id: https://develop.svn.wordpress.org/trunk@27441 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-06 19:33:32 +00:00
Scott Taylor
e1773d3a18 Cleanup audio/video shortcodes in the media modal:
* On the controller's `update`, `replace`, and `close` events, call `detach()` on the frame
* Cleanup the HTML ouput of the Underscore templates.
* Move some logic from the Underscore template to the `VideoDetails` view class.

See #27016.



git-svn-id: https://develop.svn.wordpress.org/trunk@27440 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-06 19:05:11 +00:00
Andrew Nacin
ff3c96208a In get_site_by_path(), avoid passing $paths through prepare(). If a path contains a %, we end up with problems. see #27003.
git-svn-id: https://develop.svn.wordpress.org/trunk@27439 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-06 18:17:32 +00:00
Scott Taylor
15533d1d1f Add a loading indicator to the Media Library.
Props kadamwhite, gcorne, kovshenin.
Fixes #24859.



git-svn-id: https://develop.svn.wordpress.org/trunk@27438 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-06 17:45:26 +00:00
Dominik Schilling (ocean90)
00b00312b3 Revisions: Restore [24929] which was reverted in [26072].
props avryl.
fixes #27267.

git-svn-id: https://develop.svn.wordpress.org/trunk@27437 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-06 16:49:08 +00:00
Scott Taylor
2862cb85d8 Make widget customizer code pass JSHint.
Fixes #27298.



git-svn-id: https://develop.svn.wordpress.org/trunk@27436 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-06 16:44:56 +00:00
Scott Taylor
99e98b3e93 We shall pledge to run jshint before committing.
Props nacin for the nudge.



git-svn-id: https://develop.svn.wordpress.org/trunk@27435 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-06 16:05:48 +00:00
John Blackbourn
745f24b2d4 Use wp_get_attachment_url() instead of the GUID when getting header image URLs. Fixes #27222. Props Kopepasah.
git-svn-id: https://develop.svn.wordpress.org/trunk@27434 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-06 15:54:17 +00:00
Drew Jaynes
5a3f52fe39 Inline documentation for hooks in wp-includes/class-wp-customize-manager.php.
Props kpdesign for the typo fix.
Fixes #27296.


git-svn-id: https://develop.svn.wordpress.org/trunk@27433 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-06 14:10:04 +00:00
Drew Jaynes
ce4ed49390 Inline documentation for hooks in wp-includes/class-wp-customize-setting.php.
Props kpdesign for the cleanup.
Fixes #27295


git-svn-id: https://develop.svn.wordpress.org/trunk@27432 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-06 14:03:23 +00:00
Drew Jaynes
6ec45726ac Inline documentation for hooks in wp-includes/class-wp-customize-control.php.
Fixes #27294.


git-svn-id: https://develop.svn.wordpress.org/trunk@27431 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-06 13:50:32 +00:00
Drew Jaynes
d9c9ea73ec Inline documentation for hooks in wp-admin/includes/class-wp-theme-install-list-table.php.
Props kpdesign for the cleanup.
Fixes #27293.


git-svn-id: https://develop.svn.wordpress.org/trunk@27430 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-06 13:43:59 +00:00
Andrew Nacin
1937332add Add has-post-thumbnail as a post class.
props danielbachhuber, frank-klein.
fixes #18804.


git-svn-id: https://develop.svn.wordpress.org/trunk@27429 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-06 06:05:58 +00:00
Andrew Ozz
0074157b8d TinyMCE: add the <hr> plugin and button, see #27159
git-svn-id: https://develop.svn.wordpress.org/trunk@27428 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-06 00:53:40 +00:00
Andrew Ozz
3efb4694ab TinyMCE: remove border-radius and padding from placeholder images, props avryl, see #27106
git-svn-id: https://develop.svn.wordpress.org/trunk@27427 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-06 00:28:57 +00:00
Andrew Ozz
e3b214f047 TinyMCE: when parsing [caption] and the width attribute is missing, recreate it from the image tag width, fixes #23103
git-svn-id: https://develop.svn.wordpress.org/trunk@27426 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-06 00:12:08 +00:00
Dominik Schilling (ocean90)
1de1f27249 Admin Menu: Use .dashicons-before as default $img_class.
props kovshenin for noticing and testing.
see #26630.

git-svn-id: https://develop.svn.wordpress.org/trunk@27425 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-05 23:21:11 +00:00
John Blackbourn
19ac705e60 Deprecate format_to_post() and remove its filter. Fixes #25526. Props simonwheatley
git-svn-id: https://develop.svn.wordpress.org/trunk@27424 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-05 22:47:02 +00:00
John Blackbourn
54ea3a0cfd Allow get_page_by_path() and get_page_by_title() to accept an array of post types. Fixes #24763. Props zbtirrell.
git-svn-id: https://develop.svn.wordpress.org/trunk@27423 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-05 22:25:31 +00:00
John Blackbourn
f00a18712f Update the list of HTTP status code descriptions. Fixes #16914. Props sirzooro and hakre for the original patches.
git-svn-id: https://develop.svn.wordpress.org/trunk@27422 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-05 22:00:29 +00:00
Scott Taylor
7a6744a93c Ensure that all a/v attribute names have a leading space when the tags are dynamically-generated via Underscore templates.
See #27016.



git-svn-id: https://develop.svn.wordpress.org/trunk@27421 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-05 21:45:13 +00:00
Scott Taylor
5efb7cde7e Add a timestamp to the urls passed to <audio> and <video> in the modal to ensure that cached view instances aren't referenced by MEjs. Pause the player when closing the controller's modal.
See #27016, #26779.



git-svn-id: https://develop.svn.wordpress.org/trunk@27420 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-05 21:36:32 +00:00
Andrew Nacin
f12d7bb35c Add widget management to the customizer.
This brings in the Widget Customizer plugin: https://wordpress.org/plugins/widget-customizer/.

props westonruter, shaunandrews, michael-arestad, johnregan3, akeda, topher1kenobe, topquarky, bobbravo2, ricardocorreia. And for good measure, props westonruter.
see #27112.


git-svn-id: https://develop.svn.wordpress.org/trunk@27419 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-05 20:40:36 +00:00
Dominik Schilling (ocean90)
8f1a77a070 Introduce a .dashicons-before CSS class.
If you want to use a Dashicon before an element you can use the class because it will not change the elements content styling. With that you don't need to copy the entire `.dashicons` styling to your :before styling anymore.
To demonstrate this change, Admin Menu now uses Dashicons classes directly.

And it fixes a glitch in IE.

fixes #26630.

git-svn-id: https://develop.svn.wordpress.org/trunk@27418 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-05 20:03:33 +00:00
Dominik Schilling (ocean90)
dd59bb2a62 Remove trailing whitespace in dashicons.css.
git-svn-id: https://develop.svn.wordpress.org/trunk@27417 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-05 19:27:04 +00:00
Helen Hou-Sandi
640cc81949 Indicate that the user deletion process affects all content attributed to a given user, not just posts. props seanchayes. fixes #26709.
git-svn-id: https://develop.svn.wordpress.org/trunk@27416 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-05 19:19:52 +00:00
Scott Taylor
51748da25a Add some missing JSDoc blocks to media-related code.
See #27016.



git-svn-id: https://develop.svn.wordpress.org/trunk@27415 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-05 18:36:30 +00:00
Scott Taylor
a571b2fab0 Audio doesn't have the same quirks as video in the media modal. We don't have to aggressively destroy the mejs instance.
See #27016.



git-svn-id: https://develop.svn.wordpress.org/trunk@27414 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-05 18:31:07 +00:00
John Blackbourn
153f807893 Fix bulk activation of network-only plugins. Fixes #26487. Props dd32.
git-svn-id: https://develop.svn.wordpress.org/trunk@27413 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-05 18:25:20 +00:00
John Blackbourn
164b860c93 Add context and a missing period to widget descriptions. Fixes #26668. Props pavelevap, Hanni
git-svn-id: https://develop.svn.wordpress.org/trunk@27412 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-05 17:25:11 +00:00
Scott Taylor
0c8f553115 Add TinyMCE placeholders for audio and video shortcodes.
* Add `wp.media.mixin`.
* Add `wp.media.audio` and `wp.media.video`.
* Add `wp.media.model.PostAudio` and `wp.media.model.PostVideo`
* Add `wp.media.controller.AudioDetails` and `wp.media.controller.VideoDetails`.
* Add `wp.media.controller.ReplaceAudio` and `wp.media.controller.ReplaceVideo`.
* Add `wp.media.view.MediaFrame.AudioDetails` and `wp.media.view.MediaFrame.VideoDetails`.
* Add `wp.media.view.AudioDetails` and `wp.media.view.VideoDetails`.
* Update the `wpgallery` TinyMCE plugin.
* Display audio and video players in the media modal when shortcode is clicked.
* Provide a UI to edit shortcode attributes in the media modal.
* Provide a UI to replace the `src` media file in an `audio` or `video` shortcode.

See #27016.



git-svn-id: https://develop.svn.wordpress.org/trunk@27411 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-05 15:06:00 +00:00
Dominik Schilling (ocean90)
8bf3827b8e Admin Menu: Center menu images vertically, see #26630.
git-svn-id: https://develop.svn.wordpress.org/trunk@27410 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-05 12:58:27 +00:00
Andrew Nacin
9cd1ad24de Introduce get_the_permalink() as an alias for get_permalink().
This better aligns it with other the_* and get_the_* function pairs.

props ericmann.
fixes #24164.


git-svn-id: https://develop.svn.wordpress.org/trunk@27409 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-05 07:23:22 +00:00
Andrew Ozz
57ac5b6015 Update mce-view.js and the wpview TinyMCE plugin, and use them to show gallery previews in the Visual editor, props gcorne, see #26959
git-svn-id: https://develop.svn.wordpress.org/trunk@27408 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-05 07:00:18 +00:00
Andrew Nacin
bceb10680b Deprecate get_current_site_name(). see #27003.
git-svn-id: https://develop.svn.wordpress.org/trunk@27407 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-05 06:38:23 +00:00
Andrew Nacin
99e617f006 Multisite load: Properly call wp_cache_set().
props gradyetc.
see #27003.


git-svn-id: https://develop.svn.wordpress.org/trunk@27406 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-05 06:26:30 +00:00
Andrew Nacin
a14b999605 Always convert auto-drafts to drafts in edit_draft() and _wp_translate_postdata().
This regressed due to refactoring in [26995]. This commit fixes Quick Draft.

see #25272.


git-svn-id: https://develop.svn.wordpress.org/trunk@27405 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-05 06:25:31 +00:00
Helen Hou-Sandi
83b61e9400 Add a class attribute to the caption shortcode to allow for additional classes on the caption container. props rhyswynne, mcadwell. fixes #25295.
git-svn-id: https://develop.svn.wordpress.org/trunk@27404 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-05 04:53:33 +00:00
Andrew Ozz
6beddbe7de Restyles the modal for attaching media to posts, take II (also some autoprefixer and imagemin). Props avryl, see #26952.
git-svn-id: https://develop.svn.wordpress.org/trunk@27403 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-05 03:53:19 +00:00
Andrew Nacin
6afe83e3ca In set_theme_mod() account for when there is no old value.
fixes #14721. see [27393].


git-svn-id: https://develop.svn.wordpress.org/trunk@27402 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-05 01:12:39 +00:00
Andrew Ozz
ce69c629ff Restyles the modal for attaching media to posts, props avryl, see #26952
git-svn-id: https://develop.svn.wordpress.org/trunk@27401 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-04 23:10:35 +00:00
Sergey Biryukov
d87cac2093 Use esc_attr_e() instead of _e() for attribute values.
props DJPaul.
fixes #27274.

git-svn-id: https://develop.svn.wordpress.org/trunk@27400 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-04 21:09:32 +00:00
Andrew Nacin
a206152c10 Update the Customizer API inline docs.
props ericlewis.
fixes #27065.


git-svn-id: https://develop.svn.wordpress.org/trunk@27398 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-04 20:20:28 +00:00
Andrew Nacin
73a077d32b Rename maybe_regenerate_attachment_metadata() to wp_maybe_generate_attachment_metadata(), to match wp_generate_attachment_metadata().
fixes #26825.


git-svn-id: https://develop.svn.wordpress.org/trunk@27397 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-04 20:06:14 +00:00
Andrew Nacin
f0b330e994 Do not output default gallery styles if the theme has opted into HTML5 galleries.
fixes #27045. see #26697.


git-svn-id: https://develop.svn.wordpress.org/trunk@27396 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-04 18:52:34 +00:00
Andrew Nacin
ed43f002b8 Add has_password and post_password query variables to WP_Query.
* has_password true means posts with passwords, false means posts without.
 * post_password can query for posts with a particular password.

props wonderboymusic, robmiller.
fixes #20308.


git-svn-id: https://develop.svn.wordpress.org/trunk@27395 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-04 07:44:28 +00:00
Andrew Nacin
c2dd5d4a75 Bail early from shortcode functions if no delimiter is present.
This is a significant performance improvement for processing content without shortcodes, and only the slightest hit when content contains shortcodes (which must then undergo processing anyway). Performance results on the ticket.

props TobiasBg.
fixes #23855.


git-svn-id: https://develop.svn.wordpress.org/trunk@27394 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-04 07:10:46 +00:00
Andrew Nacin
3d45eff577 Add a pre_set_theme_mod_$name filter to set_theme_mod().
This is modeled after pre_update_option_$option in update_option() and pre_set_transient_$transient in set_transient().

props obenland.
fixes #14721.


git-svn-id: https://develop.svn.wordpress.org/trunk@27393 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-04 07:01:45 +00:00
Andrew Nacin
28a29842c6 Convert the post lock icon to a dashicon.
props melchoyce, DH-Shredder.
fixes #26796.


git-svn-id: https://develop.svn.wordpress.org/trunk@27392 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-04 06:52:14 +00:00
Andrew Ozz
f0c491968a DFW: revert adding the 'image' button, images are edited in the media modal. See #24067.
git-svn-id: https://develop.svn.wordpress.org/trunk@27391 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-04 04:07:31 +00:00
Andrew Nacin
5edec1d792 Don't default to current user for capability checks when dealing with a post without an author (post_author = 0).
Undoes [12053]. While it risks breakage, this is a far safer and saner default for these situations.

props danielbachhuber.
fixes #27020.


git-svn-id: https://develop.svn.wordpress.org/trunk@27390 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-04 03:08:54 +00:00
Andrew Nacin
1329d5ebc0 Add jquery.masonry.min.js. fixes #25351.
git-svn-id: https://develop.svn.wordpress.org/trunk@27389 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-04 02:19:41 +00:00
Andrew Nacin
83ee32a35c Allow the role attribute in kses for all elements.
props mikecorkum.
fixes #24098.


git-svn-id: https://develop.svn.wordpress.org/trunk@27388 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-04 02:10:25 +00:00
Andrew Ozz
e5bed6707f TinyMCE: update to 4.0.18, see #24067
git-svn-id: https://develop.svn.wordpress.org/trunk@27387 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-04 01:56:57 +00:00
Helen Hou-Sandi
4c10cb2ec5 Add the ability to short-circuit wp_nav_menu() via the pre_wp_nav_menu hook. props kasparsd, DrewAPicture, Rarst. fixes #23627.
git-svn-id: https://develop.svn.wordpress.org/trunk@27386 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 20:42:21 +00:00
Andrew Nacin
eef62a9d0d Update PHPMailer to 5.2.7 from 5.2.4.
Includes two trivial modifications for WordPress:
 * Doesn't use the autoloader, so the check to enforce the autoloader from the constructor is removed.
 * Requires class-smtp.php for backwards compatibility with direct (non-wp_mail()) uses of PHPMailer, as the autoloader isn't used.

props bpetty.
fixes #25560.


git-svn-id: https://develop.svn.wordpress.org/trunk@27385 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 20:24:31 +00:00
Dominik Schilling (ocean90)
ff567294f6 "At a Glance" widget: Move get_avatar() line out of if-block.
This allows you to show avatars for custom comment types via the `get_avatar_comment_types` filter.

props zodiac1978.
fixes #26944.

git-svn-id: https://develop.svn.wordpress.org/trunk@27384 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 20:13:29 +00:00
Andrew Nacin
034abb8710 Revisions: Add 'Return to post editor' link.
props adamsilverstein, jenmylo.
fixes #24682.


git-svn-id: https://develop.svn.wordpress.org/trunk@27383 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 19:49:03 +00:00
Andrew Nacin
aeb0957aea Doc fixes for wp_get_network().
props TobiasBg.
see #27003.


git-svn-id: https://develop.svn.wordpress.org/trunk@27381 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 18:55:08 +00:00
Andrew Nacin
260b7f08ca Let get_the_date() accept a post object.
props tanner-m, adamsilverstein, bigdawggi.
fixes #13771.


git-svn-id: https://develop.svn.wordpress.org/trunk@27380 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 17:59:11 +00:00
Drew Jaynes
1b41eea7c7 Generalize the hook documentation for the set-screen-option filter.
The filter covers more than [items]_per_page screen options.

Fixes #26186.


git-svn-id: https://develop.svn.wordpress.org/trunk@27379 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 17:50:33 +00:00
Andrew Nacin
c920b4f36e Support multiple editor instances when drag-and-drop-uploading onto them.
Also reduces z-index to below the toolbar, and adds a comment.

props kovshenin.
see #19845.


git-svn-id: https://develop.svn.wordpress.org/trunk@27378 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 17:43:33 +00:00
Andrew Nacin
79143bfed1 Make OBJECT a case sensitive constant, for HHVM compatibility and general sanity.
Support `object` explicitly, and other forms using a fallback in wpdb.

fixes #27231.


git-svn-id: https://develop.svn.wordpress.org/trunk@27377 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 17:35:12 +00:00
Andrew Nacin
8b532c17d2 Accept nooped plurals in wp_generate_tag_cloud() / wp_tag_cloud().
Renders topic_count_text_callback more or less obsolete. It can still be used, but passing a plural is easier.

fixes #27262. see #7989, #14424.


git-svn-id: https://develop.svn.wordpress.org/trunk@27376 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 17:28:07 +00:00
Drew Jaynes
f65484cabf Inline documentation for hooks in wp-admin/includes/misc.php.
Props JoshuaAbenazer.
Fixes #26186


git-svn-id: https://develop.svn.wordpress.org/trunk@27375 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 17:19:31 +00:00
Andrew Nacin
0aae0ca1e6 Slight renaming in our callback in [27373]. see #14424.
git-svn-id: https://develop.svn.wordpress.org/trunk@27374 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 17:08:26 +00:00
Mark Jaquith
7937358328 Eliminate some of our last remaining create_function() instances
* Moved some into private function callbacks
* Eliminated some that weren't necessary anymore

props obenland, markjaquith, nacin. fixes #14424

git-svn-id: https://develop.svn.wordpress.org/trunk@27373 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 16:20:12 +00:00
Andrew Nacin
e5e40644b7 TinyMCE: Propagate the dragover event outside the editor so drag-and-drop uploads can catch it.
props kovshenin.
see #19845.


git-svn-id: https://develop.svn.wordpress.org/trunk@27372 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 15:53:52 +00:00
Drew Jaynes
cc6836dc55 Convert argument array documentation to the hash-notation style for WP_Admin_Bar::add_node() and WP_Admin_Bar::add_group().
Fixes #27258.


git-svn-id: https://develop.svn.wordpress.org/trunk@27370 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 06:10:22 +00:00
Andrew Nacin
f3a23fb43f Reference https://wordpress.org rather than http://wordpress.org in strings, links, comments, etc.
props Ipstenu, markjaquith.
see #27115.


git-svn-id: https://develop.svn.wordpress.org/trunk@27369 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 02:33:24 +00:00
Andrew Ozz
957beec4de Editor: throttle scrolling of the main window when the editor is active and is being scrolled with the mouse wheel or a trackpad, see #27013
git-svn-id: https://develop.svn.wordpress.org/trunk@27368 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 02:33:22 +00:00
Andrew Nacin
1a91bee772 Accept rel attributes in the toolbar's add_node() method.
props stephcook22.
fixes #27234.


git-svn-id: https://develop.svn.wordpress.org/trunk@27367 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 02:13:07 +00:00
Andrew Ozz
e1028cfc7b Editor: when TinyMCE is used, add autocomplete="off" to the textarea to prevent problems with missing <p> tags when the user reloads the page or uses Go Back/Go Forward buttons, and when editing the same post from two different windows. The autocomplete can be removed with the the_editor filter. Part props xsonic, fixes #27251.
git-svn-id: https://develop.svn.wordpress.org/trunk@27366 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 01:14:27 +00:00
Drew Jaynes
a05f04683e Inline documentation for hooks in wp-includes/option.php.
Props siobhyb for the initial patch. Props DrewAPicture, kpdesign.
Fixes #25905.


git-svn-id: https://develop.svn.wordpress.org/trunk@27365 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-02 23:34:08 +00:00
Andrew Ozz
8cae5c7ab7 Editor: look at the class of the wrapper element instead of getUserSetting('editor') to determine the default editor, fixes #27257
git-svn-id: https://develop.svn.wordpress.org/trunk@27364 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-02 23:25:25 +00:00
Scott Taylor
cfd319d576 Adjust the priority of the separator in the Edit Playlist and Edit Video Playlist menus to match the structure of the Edit Gallery menu.
Props gcorne.
See #26631.



git-svn-id: https://develop.svn.wordpress.org/trunk@27363 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-02 23:12:36 +00:00
Scott Taylor
1f0dad18d4 Make CollectionEdit and CollectionAdd less dynamically quirky. Rename some instance properties for disambiguation. Pass some properties from options when creating instances in wp.media.view.MediaFrame.Post.
See #26631.
Props gcorne.



git-svn-id: https://develop.svn.wordpress.org/trunk@27362 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-02 23:10:47 +00:00
Scott Taylor
9629e97d38 Add some braces for jshint in media-views.js.
See #26631.
Props gcorne.



git-svn-id: https://develop.svn.wordpress.org/trunk@27361 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-02 23:06:12 +00:00
Sergey Biryukov
9c9aa55274 Display empty-titled pages properly in Walker_PageDropdown, like we do in Walker_Page.
fixes #27218.

git-svn-id: https://develop.svn.wordpress.org/trunk@27360 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-02 22:33:25 +00:00
Andrew Nacin
6869d203d0 Introduce get_site_by_path() and further rewrite the site detection process for multisite.
This is the first big step to supporting arbitrary domains and paths. In this new approach, sites are detected first where possible, then the network is inferred. Allows filtering for arbitrary path segments, smooths out some weirdness, and removes various restrictions. A sunrise plugin could do much of its work by adding filters, if those are even needed.

see #27003.


git-svn-id: https://develop.svn.wordpress.org/trunk@27359 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-02 22:24:50 +00:00
Drew Jaynes
94c6c6a213 Inline documentation for hooks in wp-admin/includes/image-edit.php.
Props theorboman. Props kpdesign for the cleanup.
Fixes #26149.


git-svn-id: https://develop.svn.wordpress.org/trunk@27357 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-02 20:55:10 +00:00
Drew Jaynes
4346d63207 Inline documentation for hooks in wp-admin/includes/class-wp-plugins-list-table.php.
Props nicolealleyinteractivecom, kpdesign.
Fixes #26957.


git-svn-id: https://develop.svn.wordpress.org/trunk@27356 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-02 20:47:31 +00:00
Drew Jaynes
90033f46bc Tweak inline documentation for hooks in wp-admin/includes/class-wp-users-list-table.php.
Props kpdesign.
Fixes #26203.


git-svn-id: https://develop.svn.wordpress.org/trunk@27355 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-02 20:31:15 +00:00
Sergey Biryukov
235faf6363 Additional clarification for wp_authenticate_cookie() parameters.
fixes #26148.

git-svn-id: https://develop.svn.wordpress.org/trunk@27354 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-02 19:50:29 +00:00
Drew Jaynes
f204ca5932 Inline documentation improvements for wp-includes/user.php.
Props morganestes, SergeyBiryukov.
Fixes #26148.


git-svn-id: https://develop.svn.wordpress.org/trunk@27353 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-02 19:39:38 +00:00
Sergey Biryukov
a98f93e186 Remove extra comma. props jorbin. see #19845.
git-svn-id: https://develop.svn.wordpress.org/trunk@27352 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-02 19:00:50 +00:00
Sergey Biryukov
8cc1d4e7ae Remove redundant add_filter() call. see [24848]. fixes #27255.
git-svn-id: https://develop.svn.wordpress.org/trunk@27351 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-02 18:20:06 +00:00
Sergey Biryukov
3299e358d2 Default value for $credentials parameter in wp_signon() should be an array, not a string.
props tivnet.
fixes #27130.

git-svn-id: https://develop.svn.wordpress.org/trunk@27350 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-02 18:04:07 +00:00
Sergey Biryukov
8ac662c73b Display site deletion confirmation as a regular admin page.
props jeremyfelt.
fixes #27223.

git-svn-id: https://develop.svn.wordpress.org/trunk@27348 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-02 08:38:47 +00:00
DrewAPicture
bfce74bcb1 Fix the return description for switch_to_blog() to reflect that it always returns true.
Props jeremyfelt.
Fixes #25328.


git-svn-id: https://develop.svn.wordpress.org/trunk@27347 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-02 04:40:02 +00:00
Drew Jaynes
3c5db72715 Fix a typo in the author_rewrite_rules hook doc.
Props kpdesign.
See #26095.


git-svn-id: https://develop.svn.wordpress.org/trunk@27346 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-02 02:49:21 +00:00
Andrew Ozz
0a1afaf38d TinyMCE: remove box-shadow from the "more" and "nextpage" placeholder images, props avryl, see #24067
git-svn-id: https://develop.svn.wordpress.org/trunk@27345 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-01 22:35:42 +00:00
Andrew Nacin
8a617607a7 Strip backslashes, not just forward slashes, from untrailingslashit().
trailingslashit() will now remove any forward or backslashes from the end of a string before appending a forward slash.

props knutsp, willmot.
fixes #22267.


git-svn-id: https://develop.svn.wordpress.org/trunk@27344 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-01 21:44:43 +00:00
Andrew Nacin
2b03ef73ae Add the ability to drag and drop files directly onto the editor.
The file will then begin to upload and the media manager will open.

props kovshenin.
see #19845.


git-svn-id: https://develop.svn.wordpress.org/trunk@27343 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-01 21:33:36 +00:00
Drew Jaynes
34cdf7f7e1 Inline documentation for hooks in wp-admin/includes/class-wp-users-list-table.php.
Props leewillis77.
Fixes #26203.


git-svn-id: https://develop.svn.wordpress.org/trunk@27342 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-01 14:59:53 +00:00
Drew Jaynes
ac57fea48a Inline documentation for hooks in wp-includes/rewrite.php.
Props mboynes for the initial patch.
Fixes #26095.


git-svn-id: https://develop.svn.wordpress.org/trunk@27341 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-01 09:30:55 +00:00
Andrew Ozz
7c98b86d65 Plupload: remove the (old) plupload.silverlight.xap, remove the "executable" prop from Moxie.xap, see #25663
git-svn-id: https://develop.svn.wordpress.org/trunk@27340 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-01 07:36:42 +00:00
Dion Hulse
db9eb328e3 Upgrader: Remove more debug from r27336. See #25860
git-svn-id: https://develop.svn.wordpress.org/trunk@27339 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-01 06:05:02 +00:00
Dion Hulse
e98848a3c6 Upgrader: Remove some debug from r27336. See #25860
git-svn-id: https://develop.svn.wordpress.org/trunk@27338 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-01 06:03:55 +00:00
Dion Hulse
18364c9625 Upgrader: Remove two stray spaces. See #25860
git-svn-id: https://develop.svn.wordpress.org/trunk@27337 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-01 06:01:28 +00:00
Dion Hulse
14b4579d98 Upgrader: Copy wp-includes/version.php over last, to avoid an installation failing with the new version.php in place. Fixes #25860
git-svn-id: https://develop.svn.wordpress.org/trunk@27336 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-01 06:00:47 +00:00
Drew Jaynes
1276f69288 Inline documentation fixes for timer_stop().
See #26874.


git-svn-id: https://develop.svn.wordpress.org/trunk@27335 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-01 02:41:45 +00:00
John Blackbourn
54a8eff27a Pass along preview query args only if they are already present. Avoids sloppily appending a preview nonce when there should not be one. See #17157.
git-svn-id: https://develop.svn.wordpress.org/trunk@27334 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-28 23:28:44 +00:00
John Blackbourn
85079f08b7 Enable previews for all pages of multi-page posts. Fixes #17157. Props solarissmoke, chrisscott
git-svn-id: https://develop.svn.wordpress.org/trunk@27333 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-28 23:07:59 +00:00
John Blackbourn
fdfbca6ca6 Correct the inline docs for timer_stop(). Fixes #26874. Props jackreichert
git-svn-id: https://develop.svn.wordpress.org/trunk@27332 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-28 22:17:06 +00:00
Scott Taylor
f60a3a1255 In TwentyTwelve and TwentyThirteen, don't print the featurd image when viewing an attachment.
See #27243.



git-svn-id: https://develop.svn.wordpress.org/trunk@27331 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-28 22:08:55 +00:00
Scott Taylor
0b139765c1 in TwentyFourteen: don't add the has-post-thumbnail class or print the featured image when viewing an attachment.
See #27243.



git-svn-id: https://develop.svn.wordpress.org/trunk@27330 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-28 21:56:23 +00:00
John Blackbourn
6def67ad04 Add some missing number i18n in Walker_Category and Walker_CategoryDropdown. Fixes #22745.
git-svn-id: https://develop.svn.wordpress.org/trunk@27329 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-28 21:47:53 +00:00
Scott Taylor
07f14d6434 * Videos should always render at the same aspect ratio.
* Don't force a pseudo-mime-type for `.m4v` files
* Uniformly adapt to `$content_width` when setting video dimensions on the front end
* Add the `height` attribute to the initial `<video>` in the video playlist JS template
* Add some defensive/responsive CSS for a/v on the Edit Media page

See #27243.



git-svn-id: https://develop.svn.wordpress.org/trunk@27328 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-28 21:27:40 +00:00
John Blackbourn
c76c9738b7 Allow rewrite endpoints to specify a query variable name. Fixes #20905.
git-svn-id: https://develop.svn.wordpress.org/trunk@27327 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-28 20:54:05 +00:00
John Blackbourn
6950f1bcd6 Don't filter out network-only plugins from the Plugins screen if they're individually active on the current site. Add some code comments for clarity. Props mordauk
git-svn-id: https://develop.svn.wordpress.org/trunk@27326 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-28 20:21:52 +00:00
Sergey Biryukov
ecbe4f0909 Use a consistent format for translator comments.
props GaryJ.
fixes #27228.

git-svn-id: https://develop.svn.wordpress.org/trunk@27325 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-28 08:08:50 +00:00
Sergey Biryukov
ef8de539b9 Remove temporary hooks added in [26865].
fixes #26661.

git-svn-id: https://develop.svn.wordpress.org/trunk@27324 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-28 00:44:38 +00:00
Sergey Biryukov
612b605c80 Avoid an undefined index notice in wp_doc_link_parse().
props pross for initial patch.
fixes #27214.

git-svn-id: https://develop.svn.wordpress.org/trunk@27323 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-27 23:15:29 +00:00
Scott Taylor
8402d9c745 Rather than extending media.controller.CollectionAdd 3 times, make it a constructor that dynamically extends media.controller.Library and use instances of it instead.
See #26631.



git-svn-id: https://develop.svn.wordpress.org/trunk@27322 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-27 23:03:02 +00:00
Scott Taylor
01fb070621 Restore / re-tools some docs after [27313].
See #26631.



git-svn-id: https://develop.svn.wordpress.org/trunk@27321 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-27 21:50:40 +00:00
Scott Taylor
6736936a43 Some playlist cleanup:
* Check properties against the `window` object when using `_.isUndefined()` on globals
* Fix a typo for `$safe_type` introduced in [27311]

See #26631.



git-svn-id: https://develop.svn.wordpress.org/trunk@27320 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-27 21:37:36 +00:00
Sergey Biryukov
a53fab8750 Avoid an undefined index notice in wp_handle_upload().
props tivnet.
fixes #27225.

git-svn-id: https://develop.svn.wordpress.org/trunk@27319 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-27 21:15:31 +00:00
Andrew Ozz
2dd4f585aa Remove debugging cruft, see #25663
git-svn-id: https://develop.svn.wordpress.org/trunk@27318 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-27 20:14:35 +00:00
Scott Taylor
a8c8ed3b94 In media-editor.js, use _.isUndefined() when available.
See #26631.



git-svn-id: https://develop.svn.wordpress.org/trunk@27317 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-27 20:10:32 +00:00
Andrew Ozz
11586e8ebe Upgrade Plupload to 2.1.1, props kovshenin, see #25663
git-svn-id: https://develop.svn.wordpress.org/trunk@27316 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-27 20:00:55 +00:00
Scott Taylor
84a00ad5f1 This comment was pasted and does not apply to specified code block.
See #26631.



git-svn-id: https://develop.svn.wordpress.org/trunk@27315 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-27 19:50:53 +00:00
Scott Taylor
7092b31e2f wp.media.collection should be its own civilized instantiable class, not a wrapper/factory. The class shall contain no reference to specific instances, and shall not try to grab static properties of itself. self, meet this.
See #26631.



git-svn-id: https://develop.svn.wordpress.org/trunk@27313 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-27 19:21:04 +00:00
Scott Taylor
1a78a56e98 In the tracklist for playlist, fall back to title if there is no caption.
Props bassgang.
See #26631.



git-svn-id: https://develop.svn.wordpress.org/trunk@27312 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-27 15:21:37 +00:00
Scott Taylor
ad0751a29c Add some security hardening to passed playlist attributes.
Props xknown.
See #26631.



git-svn-id: https://develop.svn.wordpress.org/trunk@27311 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-27 15:19:53 +00:00
Sergey Biryukov
9bcb738064 Use wp_dropdown_roles() in wp-admin/network/site-users.php.
props jeremyfelt.
fixes #27215.

git-svn-id: https://develop.svn.wordpress.org/trunk@27310 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-27 10:21:13 +00:00
Scott Taylor
d43fcdb10b Correct a misspelled property name in a media-views.js annotation.
Props kovshenin.
See #26870.



git-svn-id: https://develop.svn.wordpress.org/trunk@27309 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-27 03:06:37 +00:00
Scott Taylor
1481b6a07c Populate playlist setting values with their default value if they don't exist while parsing shortcode attributes.
Props kovshenin.
See #26631.



git-svn-id: https://develop.svn.wordpress.org/trunk@27308 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-27 02:54:58 +00:00
Dion Hulse
6cc978fed7 WP_HTTP: Update the Root Certificate bundle used for SSL communication by WP_HTTP.
This file has been generated from the latest mozilla release NSS.
Fixes #27017


git-svn-id: https://develop.svn.wordpress.org/trunk@27307 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-27 02:32:57 +00:00
Andrew Nacin
c1c57d5bcc Themes screen: Clicking back through history should properly close the overlay.
props gcorne.
fixes #27198.


git-svn-id: https://develop.svn.wordpress.org/trunk@27306 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-27 00:17:38 +00:00
Andrew Nacin
3d8a61bc79 Unslash in the time-format and date-format ajax endpoints.
props GregLone.
fixes #27216.


git-svn-id: https://develop.svn.wordpress.org/trunk@27305 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-27 00:04:45 +00:00
Andrew Nacin
88f1b6e7ec Add a $default argument to get_query_var() and WP_Query::get(). fixes #16471.
git-svn-id: https://develop.svn.wordpress.org/trunk@27304 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-26 23:57:10 +00:00
Andrew Nacin
56c79f659c Move comment-reply.js to the footer.
While it can function before the page is loaded, it works by moving the comment form, which is usually toward the bottom of the page. Please report any contraindications on the ticket.

props obenland.
fixes #12641.


git-svn-id: https://develop.svn.wordpress.org/trunk@27303 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-26 22:26:10 +00:00
Andrew Nacin
f45fa1f0a3 Introduce HTML5 gallery support.
When a theme supports HTML5 galleries via add_theme_support( 'html5', 'gallery' ), figure and figcaption will be used instead of definition list markup.

props obenland.
fixes #26697.


git-svn-id: https://develop.svn.wordpress.org/trunk@27302 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-26 22:19:11 +00:00
Drew Jaynes
6dee77ab95 Improve inline documentation for WP_Users_List_Table.
Props leewillis77 for the initial patch.
Fixes #26564.


git-svn-id: https://develop.svn.wordpress.org/trunk@27301 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-26 22:19:10 +00:00
Andrew Nacin
6a35efe1e5 Revert [27115] and let cache backends handle the stripping of spaces in cache keys as necessary.
microtime() returns greater precision than microtime(true).

see #27000, #23448, #26903, #14485.


git-svn-id: https://develop.svn.wordpress.org/trunk@27300 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-26 22:04:52 +00:00
Andrew Nacin
f17d43e620 Add a filter to remove or rename page templates for a theme. This does not yet handle adding page templates. see #13265.
git-svn-id: https://develop.svn.wordpress.org/trunk@27297 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-26 20:31:00 +00:00
Andrew Nacin
de824fade1 Set the taxonomy property in the WP_Adjacent_Post class. fixes #26937.
git-svn-id: https://develop.svn.wordpress.org/trunk@27296 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-26 18:45:39 +00:00
Andrew Nacin
68c8b9cf0f Introduce doing_filter() and doing_action() to identify hooks in progress.
did_action() returns true the moment a hook is initially run, leaving you no way to tell if the hook is still in progress. Hooks can be nested and this checks the entire stack, versus current_filter() which only identifies the final hook in the stack. This commit also introduces current_action() for parity.

To tell if a hook has completed, one can use did_action() and ! doing_action() together.

The functions do not require an argument. In that situation, they indicate whether the stack is empty.

props ericmann for the initial unit tests.
fixes #14994.


git-svn-id: https://develop.svn.wordpress.org/trunk@27294 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-26 18:43:59 +00:00
Drew Jaynes
139dedb474 Document the $taxonomy property in WP_Adjacent_Post.
See #26937.


git-svn-id: https://develop.svn.wordpress.org/trunk@27293 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-26 18:20:44 +00:00
Drew Jaynes
73e5f71859 Remove now-moot vanity spacing for WP_Adjacent_Post property definitions.
See #26937.


git-svn-id: https://develop.svn.wordpress.org/trunk@27292 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-26 18:17:36 +00:00
Drew Jaynes
4a381ab393 Add inline documentation for properties and other inline docs fixes for WP_Adjacent_Post.
See #26937.


git-svn-id: https://develop.svn.wordpress.org/trunk@27291 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-26 18:15:03 +00:00
Mark Jaquith
1d91296b3b Return 404 when querying author's posts who is not a member and has no posts on the site
fixes #20601. props yoavf, nacin, SergeyBiryukov, wonderboymusic, markjaquith.

git-svn-id: https://develop.svn.wordpress.org/trunk@27290 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-26 18:11:36 +00:00
Andrew Nacin
724ca13549 Remove unnecessary quotes from urls in CSS.
props TobiasBg.
fixes #22476.


git-svn-id: https://develop.svn.wordpress.org/trunk@27289 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-26 17:22:18 +00:00
Andrew Nacin
36b9bab81b One more change. see #26937.
git-svn-id: https://develop.svn.wordpress.org/trunk@27288 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-26 17:17:27 +00:00
Andrew Nacin
ee8715af6a We shall call it WP_Adjacent_Post instead. see #26937.
git-svn-id: https://develop.svn.wordpress.org/trunk@27287 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-26 17:16:47 +00:00
Andrew Nacin
34f1504cd9 Make get_adjacent_post() wrap a new WP_Get_Adjacent_Post object that uses WP_Query.
See [27285] for the actual commit, which misfired.

props ethitter!
fixes #26937.


git-svn-id: https://develop.svn.wordpress.org/trunk@27286 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-26 17:11:19 +00:00
Andrew Nacin
1d8d862e97 Make get_adjacent_post() wrap a new WP_Get_Adjacent_Post object that uses WP_Query.
git-svn-id: https://develop.svn.wordpress.org/trunk@27285 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-26 17:09:54 +00:00
Andrew Nacin
2652ddf3d5 Use placeholders in strings in wp_sprintf_l() to ensure spaces are not lost in translation.
props andy.
fixes #26651.


git-svn-id: https://develop.svn.wordpress.org/trunk@27284 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-26 16:49:24 +00:00
nacin
fb317e3d70 Pass the comment object to the get_comment_date and get_comment_time.
props SergeyBiryukov.
fixes #19849.


git-svn-id: https://develop.svn.wordpress.org/trunk@27283 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-26 16:40:03 +00:00
Andrew Nacin
6dde834d22 Ensure disabled secondary buttons do not change background on hover or active.
props helen.
fixes #26785.


git-svn-id: https://develop.svn.wordpress.org/trunk@27282 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-26 08:06:33 +00:00
Andrew Nacin
0fe3ffaf59 Remove title attributes on the fly when [27280] makes them incorrect. see #17703.
git-svn-id: https://develop.svn.wordpress.org/trunk@27281 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-26 07:36:05 +00:00
Andrew Nacin
9ddf03c0bb Decrement update count bubbles as plugins/themes are updated, live.
props gcorne, mitchoyoshitaka.
fixes #17703.


git-svn-id: https://develop.svn.wordpress.org/trunk@27280 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-26 06:54:26 +00:00
Andrew Nacin
544b73ec4c When failing to reconnect to a server that has gone away, simply fail the query once we've passed template_redirect, rather than wp_die().
props pento.
see #5932.


git-svn-id: https://develop.svn.wordpress.org/trunk@27279 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-26 04:53:21 +00:00
Andrew Nacin
73ad0a310a Add a constant to disable mysqli for testing purposes. see #21663.
git-svn-id: https://develop.svn.wordpress.org/trunk@27278 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-26 04:19:45 +00:00
Andrew Nacin
b84ed60fa9 wpdb: set dbh to null when the mysqli connection fails. see #21663.
git-svn-id: https://develop.svn.wordpress.org/trunk@27277 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-26 04:14:54 +00:00
Andrew Ozz
5e8787d0de When closing the various "edit" media modals, remove the related views elements from the DOM. Props gcorne, fixes #27204.
git-svn-id: https://develop.svn.wordpress.org/trunk@27276 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-25 21:02:22 +00:00
Mark Jaquith
46ee6fbc51 Fix a sometimes notice in wpmu_current_site()
props johnjamesjacoby. see #27003.

git-svn-id: https://develop.svn.wordpress.org/trunk@27275 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-25 20:52:05 +00:00
Andrew Nacin
c5206e3d41 Add exclude and include to wp_list_authors().
props patricknami.
fixes #9902.


git-svn-id: https://develop.svn.wordpress.org/trunk@27274 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-25 20:10:34 +00:00
Andrew Nacin
ee39026c2d Remove unused routing code in revisions.
props adamsilverstein.
fixes #26565.


git-svn-id: https://develop.svn.wordpress.org/trunk@27273 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-25 20:06:04 +00:00
Andrew Nacin
ef8c2d0020 Keep redirect_to when hitting the log out AYS.
props mitchoyoshitaka for initial patch.
fixes #17398.


git-svn-id: https://develop.svn.wordpress.org/trunk@27272 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-25 20:01:36 +00:00
Andrew Nacin
f14ef59818 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@27271 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-25 19:52:57 +00:00
Andrew Ozz
58fe64750d Set wpActiveEditor to the id of the first instance on init, props kovshenin, fixes #27210.
git-svn-id: https://develop.svn.wordpress.org/trunk@27270 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-25 19:30:46 +00:00
Scott Taylor
7a21b05378 Make sure data.meta always exists when rendering tracklists. Use $theme_width when rendering media tag in playlist template instead of recalculating.
Props helen.



git-svn-id: https://develop.svn.wordpress.org/trunk@27269 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-25 19:29:49 +00:00
Mark Jaquith
43e78ac29a Improve pushState, replaceState and routing for Themes page
* Uses `pushState()` generally
* Uses `replaceState()` when updating a search query (so no history cruft from typing)

fixes #27198. props gcorne, adamsilverstein.

git-svn-id: https://develop.svn.wordpress.org/trunk@27268 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-25 19:21:58 +00:00
Andrew Nacin
1e078dd1e4 Fixed mixed spaces and tabs. Also remove trailing comma. see #26631.
git-svn-id: https://develop.svn.wordpress.org/trunk@27266 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-25 17:31:19 +00:00
Andrew Nacin
7b944c03a6 Fix undefined variable. see #16686.
git-svn-id: https://develop.svn.wordpress.org/trunk@27265 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-25 17:28:54 +00:00
Andrew Nacin
449e436ca1 Clarify return values for get_preferred_from_update_core() and get_core_updates().
props SergeyBiryukov.
fixes #20251.


git-svn-id: https://develop.svn.wordpress.org/trunk@27264 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-25 17:19:22 +00:00
Andrew Nacin
db2203acbd Update the HTML5 Shiv across the default themes to 3.7.0.
props rickalee.
fixes #26491.


git-svn-id: https://develop.svn.wordpress.org/trunk@27263 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-25 17:17:30 +00:00
Drew Jaynes
647f80595d Remove all @package and @subpackage PHPDoc tags not at the file- or class-levels in core.
See #27200.


git-svn-id: https://develop.svn.wordpress.org/trunk@27262 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-25 17:13:08 +00:00
Andrew Nacin
9bdaa48e3e Remove _relocate_children(), which has had no purpose for some time.
props SergeyBiryukov, scribu.
fixes #19367.


git-svn-id: https://develop.svn.wordpress.org/trunk@27261 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-25 17:09:09 +00:00
Andrew Nacin
7d18f3b34c Make the user arguments for get_edit_profile_url() and get_dashboard_url() optional, defaulting to the current user.
props garyc40.
fixes #16686.


git-svn-id: https://develop.svn.wordpress.org/trunk@27260 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-25 17:07:22 +00:00
Andrew Nacin
1916576840 Allow current_time() to accept a date format string, adding to 'timestamp' and 'mysql'.
props danielbachhuber.
fixes #21653.


git-svn-id: https://develop.svn.wordpress.org/trunk@27259 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-25 17:00:36 +00:00
Andrew Nacin
a407ae2363 Allow user_id to be an array of IDs in WP_Comment_Query.
props mordauk.
fixes #27064.


git-svn-id: https://develop.svn.wordpress.org/trunk@27258 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-25 16:34:25 +00:00
Andrew Nacin
19d7d1dd09 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@27257 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-25 15:52:48 +00:00
Drew Jaynes
2aa5387801 Inline documentation for hooks in wp-admin/includes/screen.php.
Props enej, kpdesign.
Fixes #26821.


git-svn-id: https://develop.svn.wordpress.org/trunk@27256 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-25 10:04:46 +00:00
Drew Jaynes
f36f14899d Inline documentation for hooks in wp-admin/includes/class-wp-posts-list-table.php.
Props nicolealleyinteractivecom, kpdesign.
Fixes #26397.


git-svn-id: https://develop.svn.wordpress.org/trunk@27255 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-25 06:11:32 +00:00
Helen Hou-Sandi
e7f406b955 Fix the tags input in small viewports and make it a more reasonable size. props SergeyBiryukov. fixes #27082.
git-svn-id: https://develop.svn.wordpress.org/trunk@27254 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-25 05:24:56 +00:00
Sergey Biryukov
ef9c73e792 Force UTF-8 in load-styles.php, like we do in load-scripts.php.
props iamfriendly, mjbanks.
fixes #25012.

git-svn-id: https://develop.svn.wordpress.org/trunk@27253 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-25 01:27:57 +00:00
Sergey Biryukov
48bed22306 Prevent large images in comments from overflowing the meta box.
props mattheu.
fixes #26643.

git-svn-id: https://develop.svn.wordpress.org/trunk@27252 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-25 01:21:05 +00:00
Sergey Biryukov
5b8000ebce Consistently return a WP_Error object in case of an error in wp_update_nav_menu_item().
props bootsz, ocean90.
fixes #21652.

git-svn-id: https://develop.svn.wordpress.org/trunk@27251 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-25 00:50:36 +00:00
Andrew Nacin
f8af178264 Use ext/mysqli in PHP 5.5 or greater. Expect minor explosions.
props aaroncampbell, pento.
see #21663.


git-svn-id: https://develop.svn.wordpress.org/trunk@27250 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-25 00:39:28 +00:00
Andrew Nacin
c61accb146 Declare $wpdb->base_prefix.
props DavidAnderson.
fixes #16762.


git-svn-id: https://develop.svn.wordpress.org/trunk@27249 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-25 00:29:01 +00:00
Sergey Biryukov
b197472a5c Fix thickbox positioning if toolbar is not present.
fixes #26745.

git-svn-id: https://develop.svn.wordpress.org/trunk@27248 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-25 00:25:58 +00:00
Sergey Biryukov
fc2230e12a Fix theme preview URL for themes loaded via AJAX on Install Themes screen.
props ocean90.
fixes #27128.

git-svn-id: https://develop.svn.wordpress.org/trunk@27247 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-25 00:00:48 +00:00
Sergey Biryukov
d885ca8e31 Add Oxford comma to password hint.
props trepmal.
fixes #26457.

git-svn-id: https://develop.svn.wordpress.org/trunk@27246 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-24 23:30:52 +00:00
Scott Taylor
a99056fd24 Get the proper image size for an item's thumb in playlist JSON.
See #26631.



git-svn-id: https://develop.svn.wordpress.org/trunk@27245 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-24 21:09:14 +00:00
Scott Taylor
e46f8428fd Supply mime-type instead of extension for an item's type property in playlist JSON.
See #26631.



git-svn-id: https://develop.svn.wordpress.org/trunk@27244 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-24 21:05:00 +00:00
wonderboymusic
29725ce426 Remove a few unnecessary jQuery selectors added in [27239]. Playlists don't exist in some older contexts that galleries do.
See #26631.



git-svn-id: https://develop.svn.wordpress.org/trunk@27243 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-24 20:48:02 +00:00
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