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
207da4064a
Be more specific about which themes we want to jshint. props jorbin. fixes #27308 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27446 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-06 23:41:18 +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
58dc8ab25c
i18n tools: Have makepot search for the main file of the plugin.
...
props Otto42.
fixes #25665 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27399 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-04 21:06:48 +00:00