Andrew Nacin
2133c89e8f
Remove select and input from wpautop()'s HTML blocks list.
...
props rachelbaker, DH-Shredder.
fixes #22230 .
Built from https://develop.svn.wordpress.org/trunk@27761
git-svn-id: http://core.svn.wordpress.org/trunk@27598 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-27 00:01:15 +00:00
Scott Taylor
d4e46e3f8d
Fix double avatars and JS errors when spamming/trashing comments.
...
Props avryl, SergeyBiryukov.
Fixes #27329 .
Built from https://develop.svn.wordpress.org/trunk@27759
git-svn-id: http://core.svn.wordpress.org/trunk@27596 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-26 23:14:15 +00:00
Andrew Nacin
bb129b90f0
Add an .html4-captions class to the editor when HTML5 captions are not supported, for theme use.
...
see #26642 .
Built from https://develop.svn.wordpress.org/trunk@27758
git-svn-id: http://core.svn.wordpress.org/trunk@27595 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-26 23:13:15 +00:00
Andrew Nacin
ed993e4c5c
Properly render the image details modal when the image references an invalid attachment.
...
props gcorne.
fixes #27537 .
Built from https://develop.svn.wordpress.org/trunk@27756
git-svn-id: http://core.svn.wordpress.org/trunk@27593 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-26 22:56:14 +00:00
Scott Taylor
f947924b0a
In wp_list_pages()
, add the current_page_item
class where applicable when used with a custom post type.
...
Adds a unit test.
Props nacin.
Fixes #17590 .
Built from https://develop.svn.wordpress.org/trunk@27755
git-svn-id: http://core.svn.wordpress.org/trunk@27592 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-26 22:47:14 +00:00
Andrew Nacin
9669fc94ef
Fix excluded_terms passed to get_adjacent_posts_rel_link().
...
props adelval.
fixes #22406 .
Built from https://develop.svn.wordpress.org/trunk@27754
git-svn-id: http://core.svn.wordpress.org/trunk@27591 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-26 22:32:15 +00:00
Dominik Schilling
a2eb248e0b
Widget Customizer: First pass for inline docs.
...
props DrewAPicture.
see #27534 .
Built from https://develop.svn.wordpress.org/trunk@27753
git-svn-id: http://core.svn.wordpress.org/trunk@27590 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-26 22:29:15 +00:00
Helen Hou-Sandí
5f062ee60c
Post lock dialog should not appear above the auth check login prompt.
...
props lkwdwrd. fixes #27263 .
Built from https://develop.svn.wordpress.org/trunk@27752
git-svn-id: http://core.svn.wordpress.org/trunk@27589 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-26 22:24:14 +00:00
Scott Taylor
76ac10ba11
Don't display the "Show Artist Name in Tracklist" input in settings for Video Playlists.
...
See #27535 .
Built from https://develop.svn.wordpress.org/trunk@27751
git-svn-id: http://core.svn.wordpress.org/trunk@27588 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-26 22:12:16 +00:00
Scott Taylor
b6f768bd30
jshint
fixes for [27734].
...
Built from https://develop.svn.wordpress.org/trunk@27750
git-svn-id: http://core.svn.wordpress.org/trunk@27587 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-26 21:41:15 +00:00
Andrew Nacin
52cc239578
Revert [27166].
...
We should not be accounting for improper assignment of WP_Query properties.
fixes #26321 .
Built from https://develop.svn.wordpress.org/trunk@27746
git-svn-id: http://core.svn.wordpress.org/trunk@27583 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-26 18:43:14 +00:00
Andrew Nacin
bf5447f435
WP_Theme: Return false from the display() method when get() fails.
...
Fixes a potential warning on the themes page when the active theme is deleted.
fixes #26873 .
Built from https://develop.svn.wordpress.org/trunk@27745
git-svn-id: http://core.svn.wordpress.org/trunk@27582 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-26 18:22:13 +00:00
Scott Taylor
0c34f4f136
Make the CSS selector for current playlist item <img>
more specific so the width is properly constrained.
...
Hide the `<audio>` element in the playlist to prevent a flicker when loading - MEjs hides the audio element anyway.
See #27525 .
Built from https://develop.svn.wordpress.org/trunk@27742
git-svn-id: http://core.svn.wordpress.org/trunk@27579 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-26 16:51:16 +00:00
Andrew Nacin
fbbc31f3c5
Inline documentation for hooks in wp-includes/kses.php.
...
props siobhyb, DrewAPicture.
fixes #25800 .
Built from https://develop.svn.wordpress.org/trunk@27739
git-svn-id: http://core.svn.wordpress.org/trunk@27576 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-26 14:57:15 +00:00
Andrew Nacin
f5999e5d50
WP class: Remove duplication of the post_type query var, also specified as a public QV.
...
props prettyboymp.
fixes #23862 .
Built from https://develop.svn.wordpress.org/trunk@27738
git-svn-id: http://core.svn.wordpress.org/trunk@27575 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-26 14:45:16 +00:00
Scott Taylor
3171da9986
Pass the default mime-type icon as the image for a track when a featured image is not selected for an item in a playlist. Image display in general can be toggled on/off in the modal via Playlist Settings.
...
Fixes #27525 .
Built from https://develop.svn.wordpress.org/trunk@27735
git-svn-id: http://core.svn.wordpress.org/trunk@27572 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-26 12:45:15 +00:00
Scott Taylor
b1316b9392
Always localize mediaelement
when passing settings to the page via JSON. wp-mediaelement
only gets triggered for audio and video shortcodes, playlists need the path passed to the page as well, as they don't enqueue wp-mediaelement
.
...
See #27509 .
Built from https://develop.svn.wordpress.org/trunk@27734
git-svn-id: http://core.svn.wordpress.org/trunk@27571 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-26 12:15:15 +00:00
Scott Taylor
eddc48def7
Don't make mce-view
a dependency for media-audiovideo
. Make media-audiovideo
and wp-playlist
dependencies for mce-view
and only enqueue mce-view
in the admin in wp_enqueue_media()
. MCE views don't need to be included when media is loaded on the front end.
...
Fixes #27509 .
Built from https://develop.svn.wordpress.org/trunk@27733
git-svn-id: http://core.svn.wordpress.org/trunk@27570 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-26 12:11:14 +00:00
Drew Jaynes
7037289a98
Inline documentation for hooks in wp-includes/script-loader.php.
...
Fixes #27520 .
Built from https://develop.svn.wordpress.org/trunk@27732
git-svn-id: http://core.svn.wordpress.org/trunk@27569 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-26 05:52:15 +00:00
Drew Jaynes
e58c1d08e7
Inline documentation for hooks in wp-includes/class.wp-scripts.php.
...
Props kpdesign for a wording switcheroo.
Fixes #27518 .
Built from https://develop.svn.wordpress.org/trunk@27731
git-svn-id: http://core.svn.wordpress.org/trunk@27568 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-26 05:48:14 +00:00
Drew Jaynes
c2ebd66843
Inline documentation for hooks in wp-includes/class-wp-xmlrpc-server.php.
...
Props kpdesign and DrewAPicture.
Fixes #27506 .
Built from https://develop.svn.wordpress.org/trunk@27730
git-svn-id: http://core.svn.wordpress.org/trunk@27567 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-26 05:44:16 +00:00
Andrew Ozz
c66f166956
TinyMCE: fix the More and Next Page tags behavior:
...
- Append them inside top level <p> tags.
- If the caret is not in a top level <p>, create new paragraph after the current top level tag.
- Do not change placement when edited in the Text editor.
See #27378
Built from https://develop.svn.wordpress.org/trunk@27729
git-svn-id: http://core.svn.wordpress.org/trunk@27566 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-26 02:08:15 +00:00
Helen Hou-Sandí
aee8de682b
Ensure buttons don't get overly tall in responsive views when a browser (oh, Firefox) enforces a line-height on buttons. props azaozz. fixes #27409 .
...
Built from https://develop.svn.wordpress.org/trunk@27727
git-svn-id: http://core.svn.wordpress.org/trunk@27564 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-25 21:23:14 +00:00
Helen Hou-Sandí
52d2920891
Use Dashicon-style images for mime type icons. Actually moving to Dashicons via the font can be explored later, but has theme/plugin implications and requires too many changes to make it for 3.9. props melchoyce for the icons. fixes #26650 .
...
Built from https://develop.svn.wordpress.org/trunk@27726
git-svn-id: http://core.svn.wordpress.org/trunk@27563 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-25 21:10:15 +00:00
Andrew Nacin
c095ad4500
Multisite: Lowercase REQUEST_URI when matching paths.
...
props markjaquith, jeremyfelt.
fixes #26403 .
Built from https://develop.svn.wordpress.org/trunk@27724
git-svn-id: http://core.svn.wordpress.org/trunk@27561 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-25 21:05:14 +00:00
Drew Jaynes
a10a55cf87
Fix a typo in the deleted_{$meta_type}_meta
hook description.
...
Props aliso.
Fixes #25826 .
Built from https://develop.svn.wordpress.org/trunk@27723
git-svn-id: http://core.svn.wordpress.org/trunk@27560 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-25 20:34:15 +00:00
Andrew Nacin
5e526b9a94
Use dashicons in header images in the customizer.
...
props mcsf.
see #21785 .
Built from https://develop.svn.wordpress.org/trunk@27722
git-svn-id: http://core.svn.wordpress.org/trunk@27559 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-25 19:51:15 +00:00
Scott Taylor
c38cf4f912
Popular tags' edit links should respect the current post type. Adds unit test.
...
Props mordauk, fahmiadib.
Fixes #25566 .
Built from https://develop.svn.wordpress.org/trunk@27720
git-svn-id: http://core.svn.wordpress.org/trunk@27558 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-25 18:40:15 +00:00
Andrew Nacin
d63fbed03d
Transients: Allow a non-expiring transient to be updated with an expiry.
...
props shahpranaf, sandyr.
fixes #22807 .
Built from https://develop.svn.wordpress.org/trunk@27719
git-svn-id: http://core.svn.wordpress.org/trunk@27557 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-25 18:23:14 +00:00
Andrew Nacin
5a873ec0c6
Ensure the $path is trailing-slashed in domain_exists().
...
props ejdanderson, ericmann.
fixes #18209 .
Built from https://develop.svn.wordpress.org/trunk@27717
git-svn-id: http://core.svn.wordpress.org/trunk@27556 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-25 17:32:16 +00:00
Andrew Nacin
57baf9ad8e
Theme compat: Move <head profile> to <link>.
...
props spmlucas.
fixes #24523 .
Built from https://develop.svn.wordpress.org/trunk@27716
git-svn-id: http://core.svn.wordpress.org/trunk@27555 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-25 17:22:15 +00:00
Andrew Nacin
ebae822737
3.9-beta2-27714
...
Built from https://develop.svn.wordpress.org/trunk@27714
git-svn-id: http://core.svn.wordpress.org/trunk@27553 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-25 16:49:16 +00:00
Andrew Nacin
07f8c619bd
Back compat for overriding window.autosave.
...
props azaozz.
fixes #25272 .
Built from https://develop.svn.wordpress.org/trunk@27713
git-svn-id: http://core.svn.wordpress.org/trunk@27552 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-25 16:47:15 +00:00
Andrew Nacin
7d3b9ccb22
Encode spaces in get_template_directory_uri() and get_stylesheet_directory_uri().
...
props SergeyBiryukov.
fixes #21969 .
Built from https://develop.svn.wordpress.org/trunk@27710
git-svn-id: http://core.svn.wordpress.org/trunk@27549 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-25 13:07:14 +00:00
Andrew Nacin
134ab31b5d
Gracefully fail in wp_generate_tag_cloud() when emptiness is returned from the tag_cloud_sort filter.
...
props SergeyBiryukov.
fixes #27413 .
Built from https://develop.svn.wordpress.org/trunk@27709
git-svn-id: http://core.svn.wordpress.org/trunk@27548 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-25 13:00:15 +00:00
Andrew Nacin
bc6f50d09a
Clarify the return value of wp_generate_tag_cloud().
...
props SergeyBiryukov, DrewAPicture.
fixes #27487 .
Built from https://develop.svn.wordpress.org/trunk@27708
git-svn-id: http://core.svn.wordpress.org/trunk@27547 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-25 12:56:14 +00:00
Andrew Nacin
f9fd129f28
Allow XML attributes with colons to be read by kses.
...
The attribute would still need to be whitelisted to get through the filters.
props jorbin.
fixes #17847 .
Built from https://develop.svn.wordpress.org/trunk@27707
git-svn-id: http://core.svn.wordpress.org/trunk@27546 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-25 12:53:16 +00:00
Dominik Schilling
6dd40a18d4
Update Dashicons.
...
* Includes new Media icons, see #26650 .
* Includes icons for clipboard, megaphone, schedule, tickets, nametag, universal-access, microphone and <3.
* Includes icon for randomize, see #21785 .
* Updates Google+ icon, fixes #26851 .
props melchoyce, empireoflight.
see #26936 .
Built from https://develop.svn.wordpress.org/trunk@27705
git-svn-id: http://core.svn.wordpress.org/trunk@27544 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-25 12:05:16 +00:00
Andrew Nacin
d0605ea62b
Custom backgrounds: Always cause a preview in the customizer.
...
Omitted from [27703].
props obenland.
see #22030 .
Built from https://develop.svn.wordpress.org/trunk@27704
git-svn-id: http://core.svn.wordpress.org/trunk@27543 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-25 12:00:14 +00:00
Andrew Nacin
a1c08b7660
Custom backgrounds: Do not print the default background color when it has been saved to the DB.
...
props obenland.
fixes #22030 .
Built from https://develop.svn.wordpress.org/trunk@27703
git-svn-id: http://core.svn.wordpress.org/trunk@27542 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-25 11:53:14 +00:00
Dominik Schilling
ea6c9a5515
Widget Customizer: Improve widget highlighting.
...
* Prefix box-shadow in inject_preview_css()
* Remove border-radius in inject_preview_css()
* Prevent hidden box-shadows in Customizer
see #27358 .
Built from https://develop.svn.wordpress.org/trunk@27702
git-svn-id: http://core.svn.wordpress.org/trunk@27541 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-25 11:48:14 +00:00
Drew Jaynes
513d8702f6
Inline documentation for hooks in wp-includes/nav-menu.php.
...
Props dustyf, kpdesign.
Fixes #27367 .
Built from https://develop.svn.wordpress.org/trunk@27700
git-svn-id: http://core.svn.wordpress.org/trunk@27539 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-25 09:04:14 +00:00
Drew Jaynes
eb35f65746
Inline documentation for hooks in wp-includes/revision.php.
...
Props adamsilverstein, DrewAPicture.
Fixes #26979 .
Built from https://develop.svn.wordpress.org/trunk@27699
git-svn-id: http://core.svn.wordpress.org/trunk@27538 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-25 09:00:14 +00:00
Drew Jaynes
97958a3c16
Inline documentation for hooks in wp-includes/meta.php.
...
Props raamdev and kpdesign.
Fixes #25826 .
Built from https://develop.svn.wordpress.org/trunk@27698
git-svn-id: http://core.svn.wordpress.org/trunk@27537 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-25 08:56:14 +00:00
Drew Jaynes
e6d9f04bcc
Inline documentation for hooks in wp-includes/default-widgets.php.
...
Props janw.oostendorp and kpdesign.
Fixes #25638 .
Built from https://develop.svn.wordpress.org/trunk@27697
git-svn-id: http://core.svn.wordpress.org/trunk@27536 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-25 08:53:14 +00:00
Drew Jaynes
7dc9b02577
Correct misleading verbiage in 'print' hook docs.
...
Standardizes 'print' hook docs on the concept that hooks are fired when scripts and styles are printed.
Props ericlewis for the initial patch.
Fixes #26924 .
Built from https://develop.svn.wordpress.org/trunk@27695
git-svn-id: http://core.svn.wordpress.org/trunk@27534 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-25 08:05:15 +00:00
Andrew Ozz
a3d08715ab
TinyMCE: bring back removal of the size-* class when the user soft-resizes an image, see #24409
...
Built from https://develop.svn.wordpress.org/trunk@27694
git-svn-id: http://core.svn.wordpress.org/trunk@27533 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-25 00:16:14 +00:00
Scott Taylor
d85ac5b841
Let us pass jshint:core
.
...
Built from https://develop.svn.wordpress.org/trunk@27693
git-svn-id: http://core.svn.wordpress.org/trunk@27532 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-24 23:02:13 +00:00
Andrew Nacin
5eef57ec0e
Use the current post's post type when determining post adjacency.
...
props ethitter.
fixes #26937 .
Built from https://develop.svn.wordpress.org/trunk@27692
git-svn-id: http://core.svn.wordpress.org/trunk@27531 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-24 21:30:14 +00:00
Andrew Nacin
3ffc6dd559
RSS widgets: Omit the title attribute when the summary is shown.
...
Trim the title attribute to ensure whitespace isn't rendered.
props SergeyBiryukov.
fixes #26520 . see #26552 .
Built from https://develop.svn.wordpress.org/trunk@27691
git-svn-id: http://core.svn.wordpress.org/trunk@27530 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-24 21:08:15 +00:00
Scott Taylor
0115ba2f30
When using meta_query
in a WP_Query
, passing NOT EXISTS
or ''
to compare
should not require value
to be set. The resulting SQL should then produce the appropriate OR
clause for existence of non-existence after passing the query to the $key_only_queries
stack internally.
...
Adds unit tests.
Props chrisguitarguy, for the original patch.
Fixes #23268 .
Built from https://develop.svn.wordpress.org/trunk@27689
git-svn-id: http://core.svn.wordpress.org/trunk@27528 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-24 19:57:15 +00:00
Andrew Nacin
b933f954e3
Customizer header images: Fix randomizing headers.
...
props mcsf.
see #21785 .
Built from https://develop.svn.wordpress.org/trunk@27688
git-svn-id: http://core.svn.wordpress.org/trunk@27527 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-24 19:16:14 +00:00
Andrew Nacin
c4aab42b4b
Media manager: Avoid a blank modal when an invalid image size class is set on the image.
...
props gcorne.
fixes #24409 .
Built from https://develop.svn.wordpress.org/trunk@27687
git-svn-id: http://core.svn.wordpress.org/trunk@27526 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-24 19:01:15 +00:00
Scott Taylor
a6b9d323c6
When using WP_Query's "fields" => "ids"
(or "fields" => "id=>parent"
), the returned values should be an array of integers, not array of integers represented by strings.
...
Adds unit tests. All other unit tests pass.
Props danielbachhuber.
Fixes #27252 .
Built from https://develop.svn.wordpress.org/trunk@27686
git-svn-id: http://core.svn.wordpress.org/trunk@27525 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-24 18:55:16 +00:00
Scott Taylor
540c14079b
Revert [27184] until WP_Query
is patched to apply order
to each space-delimited orderby
value properly.
...
See #26042 .
Built from https://develop.svn.wordpress.org/trunk@27683
git-svn-id: http://core.svn.wordpress.org/trunk@27524 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-24 14:46:16 +00:00
Scott Taylor
8bc15ab4fc
Do not use the alternative if/elseif/else syntax in prepend_attachment()
introduced in [27622], as per kovshenin.
...
Fixes #27243 .
Built from https://develop.svn.wordpress.org/trunk@27682
git-svn-id: http://core.svn.wordpress.org/trunk@27523 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-24 14:39:14 +00:00
Sergey Biryukov
f20dbd9c68
Fix typo in a comment. see #25663 .
...
Built from https://develop.svn.wordpress.org/trunk@27681
git-svn-id: http://core.svn.wordpress.org/trunk@27522 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-24 09:09:14 +00:00
Drew Jaynes
0e215d93cd
Inline documentation for hooks in wp-includes/post-template.php.
...
Props Toru and kpdesign.
Fixes #25621 .
Built from https://develop.svn.wordpress.org/trunk@27676
git-svn-id: http://core.svn.wordpress.org/trunk@27519 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-24 03:37:16 +00:00
Drew Jaynes
8efd225e4d
Inline documentation for hooks in wp-admin/includes/file.php.
...
Fixes #27429 .
Built from https://develop.svn.wordpress.org/trunk@27672
git-svn-id: http://core.svn.wordpress.org/trunk@27515 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-24 02:45:15 +00:00
Andrew Nacin
60676ee282
Introduce HTML5 caption support.
...
When a theme supports HTML5 captions via add_theme_support( 'html5', 'caption' ), figure and figcaption will be used instead of div and p.
There's a bonus. But first, some history: Captions were introduced with an inline style set for the container. This remains, as it is there to force captions to wrap. But this inline style included an extra 10 pixels, which have vexxed theme developers for years. While these pixels were designed to ensure padding around floated images, modern themes handle this with grace. The additional pixels thus feel encumbering.
As the new HTML5 gallery support avoids outputting default gallery styles (again, irking theme developers for years; see #26697 ), the new HTML5 caption support will also ditch these 10 pixels of unwanted hand-holding.
The 10 pixels are also removed entirely in the visual editor (and more styles may also disappear here; see #26642 ), giving themes the power necessary to match the frontend styles.
The filter img_caption_shortcode_width added in 3.7 to work around this madness (see #14380 ) is skipped entirely when the theme supports HTML5 captions.
props obenland, azaozz.
see #26642 . also fixes #9066 .
Built from https://develop.svn.wordpress.org/trunk@27668
git-svn-id: http://core.svn.wordpress.org/trunk@27511 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-24 02:05:14 +00:00
Drew Jaynes
3f494e00a3
Inline documentation for hooks in wp-includes/category-template.php.
...
Props kpdesign for the cleanup.
Fixes #27432 .
Built from https://develop.svn.wordpress.org/trunk@27666
git-svn-id: http://core.svn.wordpress.org/trunk@27509 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-24 01:35:15 +00:00
Andrew Nacin
64f7d4168f
Use wp_cache_add() instead of wp_cache_set() when we don't want an unconditional set.
...
props jeremyfelt.
see #27003 .
Built from https://develop.svn.wordpress.org/trunk@27665
git-svn-id: http://core.svn.wordpress.org/trunk@27508 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-24 01:03:14 +00:00
Andrew Nacin
e14237a109
Multisite load: Cache the main site lookup query.
...
props jeremyfelt.
see #27003 .
Built from https://develop.svn.wordpress.org/trunk@27664
git-svn-id: http://core.svn.wordpress.org/trunk@27507 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-24 01:01:15 +00:00
Andrew Nacin
1bacefa353
Introduce a ms_site_not_found filter to replace NOBLOGREDIRECT.
...
Move some processing down below the point where we bail if there's no site. Add more documentation.
props jeremyfelt.
fixes #21143 , see #27003 .
Built from https://develop.svn.wordpress.org/trunk@27663
git-svn-id: http://core.svn.wordpress.org/trunk@27506 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-24 00:14:15 +00:00
Andrew Ozz
69b74a75cd
Plupload: switch to urlstream upload method when the 'flash' runtime is used in non IE browsers. This ensures cookies are sent but limits the maximum file size that flash can handle.
...
By default only IE9 and older use flash so this change is mostly for completeness. It would affect only the (extremely rare) cases where a plugin disables the html5 runtime.
Built from https://develop.svn.wordpress.org/trunk@27662
git-svn-id: http://core.svn.wordpress.org/trunk@27505 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-23 23:45:19 +00:00
Andrew Ozz
33faa15a11
TinyMCE:
...
- Fix PressThis styling when the popup is resized.
- Don't force loading of the media JS.
- Add the 'image' plugin as fallback when no media button(s).
- Add back the link icon tooltip/menu item string for translation.
See #24067 , see #24409
Built from https://develop.svn.wordpress.org/trunk@27660
git-svn-id: http://core.svn.wordpress.org/trunk@27503 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-23 07:10:14 +00:00
Scott Taylor
16f93f3952
When inserting a video shortcode into the editor, set the poster
attribute automatically if the video has a featured image attached to it.
...
See #27460 .
Built from https://develop.svn.wordpress.org/trunk@27659
git-svn-id: http://core.svn.wordpress.org/trunk@27502 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-23 03:36:15 +00:00
Scott Taylor
86f4061b26
When an HTML5 fallback button is pressed in the Audio or Video Details state, filter the library by that specific mime-type when the Add Audio|Video Source is activated.
...
See #27389 .
Built from https://develop.svn.wordpress.org/trunk@27658
git-svn-id: http://core.svn.wordpress.org/trunk@27501 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-23 03:16:14 +00:00
Scott Taylor
38d1fb971f
Turn on thumbnail support for attachment:audio
and attachment:video
. Change conditionals to check for theme OR post type support when determining whether to turn on the Featured Image UI pieces in the admin.
...
Fixes #27460 .
Built from https://develop.svn.wordpress.org/trunk@27657
git-svn-id: http://core.svn.wordpress.org/trunk@27500 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-23 02:35:14 +00:00
Andrew Ozz
960b8f86ef
Move the styling of drag/drop on the editor uploading to media-views.css, see #27465
...
Built from https://develop.svn.wordpress.org/trunk@27656
git-svn-id: http://core.svn.wordpress.org/trunk@27499 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-23 01:42:15 +00:00
Scott Taylor
410646fc52
General code cleanup and improving video sizing in the admin:
...
* Abstract the setting of a primary button and its callback in `wp.media.view.MediaFrame.MediaDetails`
* Account for the existence or non-existence of `$content_width` in the TinyMCE views for video
* Make sure video models always have dimensions, even if they are the defaults
* For browsers that are not Firefox, don't use a timeout when setting the `MediaElementPlayer` instance in TinyMCE views
See #27320 .
Built from https://develop.svn.wordpress.org/trunk@27655
git-svn-id: http://core.svn.wordpress.org/trunk@27498 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-22 23:26:17 +00:00
Dominik Schilling
21158f33f7
Widget Customizer: Fix 'WidgetCustomizerPreview' is undefined error in IE8/9.
...
* Move `WidgetCustomizerPreview` to `wp.customize.WidgetCustomizerPreview`
* Move `WidgetCustomizerPreview_exports` to export_preview_data()
* Use `_wpWidgetCustomizerPreviewSettings` to transfer settings to `wp.customize.WidgetCustomizerPreview`
see #27485 .
Built from https://develop.svn.wordpress.org/trunk@27653
git-svn-id: http://core.svn.wordpress.org/trunk@27496 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-22 21:04:15 +00:00
Dominik Schilling
9b0ec406d1
Widget Customizer: Improve error handling. First pass.
...
* Replace Widget_Customizer_Exception with WP_Error
* Call Previewer.cheatin() to show the cheating message if a user can't change widgets
* Call Previewer.login() to show the login form if a user is logged out
* Show a generic error message on failures
see #27419 .
Built from https://develop.svn.wordpress.org/trunk@27652
git-svn-id: http://core.svn.wordpress.org/trunk@27495 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-22 20:55:18 +00:00
Dominik Schilling
04cb00c9e1
Customizer: Use the _.now()
function from Undescore.js for the current timestamp. Date.now()
isn't supported in IE8.
...
fixes #27477 .
Built from https://develop.svn.wordpress.org/trunk@27651
git-svn-id: http://core.svn.wordpress.org/trunk@27494 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-22 10:54:14 +00:00
Sergey Biryukov
18a26bf513
Fix a copy/paste error in WP_Date_Query parameter description.
...
props jdgrimes.
fixes #27472 .
Built from https://develop.svn.wordpress.org/trunk@27648
git-svn-id: http://core.svn.wordpress.org/trunk@27491 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-21 17:53:16 +00:00
Andrew Nacin
aef7cdd59a
Merge two strings. see #27320 , #27453 .
...
Built from https://develop.svn.wordpress.org/trunk@27645
git-svn-id: http://core.svn.wordpress.org/trunk@27488 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-21 00:19:16 +00:00
Scott Taylor
4ad3972f74
Fixes for jshint
...
Built from https://develop.svn.wordpress.org/trunk@27643
git-svn-id: http://core.svn.wordpress.org/trunk@27486 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-20 22:27:15 +00:00
Scott Taylor
00924f6275
Add JSDoc blocks to media-audiovideo.js
.
...
See #27016 .
Built from https://develop.svn.wordpress.org/trunk@27642
git-svn-id: http://core.svn.wordpress.org/trunk@27485 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-20 22:23:15 +00:00
Scott Taylor
615dd5331b
Unifying media controls and supporting playlists in the editor:
...
* Support a `caption` attribute for audio and video shortcodes
* In `wp.media.audio|video`, rename `update` to `shortcode` to allow these models to share the same mixins as `wp.media.collection` subclasses
* When sending an audio or video shortcode to the editor, create a default caption if the user hasn't entered one. This currently only displays in the editor, not on the front end. Captions aren't tied to a specific attachment here because external sources are supported.
* In the `wp.mce.media` mixin, in the `edit` method, read `attr` instead of `data` when attempting to parse the encoded shortcode. `data` does not automatically update when the attribute changes. This was a blessing to debug.
* Add `wp.mce.media.PlaylistView` to support playlist views in TinyMCE
* Expose `WPPlaylistView` to global scope and suppress auto-parsing of playlist nodes when in the admin. Allow `WPPlaylistView` to be passed `metadata` on creation instead of requiring a JSON blob to be parsed.
* Remove all of the playlist logic from the `wpgallery` TinyMCE plugin.
* In `wp_prepare_attachment_for_js()` return more data for audio/video so that playlists can have parity in the admin/front end.
See #27320 .
Built from https://develop.svn.wordpress.org/trunk@27640
git-svn-id: http://core.svn.wordpress.org/trunk@27483 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-20 13:33:14 +00:00
Andrew Nacin
17eec3fbd6
3.9-beta2
...
Built from https://develop.svn.wordpress.org/trunk@27639
git-svn-id: http://core.svn.wordpress.org/trunk@27482 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-20 04:43:15 +00:00
Andrew Nacin
413207be6d
Fix various issues with WP_Adjacent_Post:
...
* Performance / number of queries.
* Incorrect results caused by sticky posts.
* Back compat for filters, which had used "WHERE" while WP_Query does not; and fixing table references.
props ethitter.
fixes #26937 .
Built from https://develop.svn.wordpress.org/trunk@27635
git-svn-id: http://core.svn.wordpress.org/trunk@27478 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-20 02:59:15 +00:00
Andrew Nacin
2061a3aa5f
Return a bool from wp_using_ext_object_cache(), never a null.
...
see #26937 .
Built from https://develop.svn.wordpress.org/trunk@27634
git-svn-id: http://core.svn.wordpress.org/trunk@27477 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-20 02:55:14 +00:00
Andrew Nacin
f75e5a023c
WP_Query: allow split_the_query = false to avoid a split.
...
see #26937 .
Built from https://develop.svn.wordpress.org/trunk@27633
git-svn-id: http://core.svn.wordpress.org/trunk@27476 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-20 02:54:15 +00:00
Andrew Ozz
e05fa407bf
wpView: select/deselect views when moving the caret with the arrow keys, don't move the caret after deselect(), props gcorne, see #26959
...
Built from https://develop.svn.wordpress.org/trunk@27632
git-svn-id: http://core.svn.wordpress.org/trunk@27475 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-20 02:48:14 +00:00
Scott Taylor
bcb54794ff
Move wp.media.view.MediaDetails
to media-audiovideo.js
. This should have moved over with the rest.
...
See [27608].
Built from https://develop.svn.wordpress.org/trunk@27631
git-svn-id: http://core.svn.wordpress.org/trunk@27474 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-20 02:45:15 +00:00
Helen Hou-Sandí
6a1f7ca4fe
Add the version string to wp-content.css to avoid tenacious caching woes. see #27320 .
...
Built from https://develop.svn.wordpress.org/trunk@27629
git-svn-id: http://core.svn.wordpress.org/trunk@27472 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-20 01:08:13 +00:00
Helen Hou-Sandí
bef7f9e75e
Further unify and refine media and view control styling. see #27320 .
...
Built from https://develop.svn.wordpress.org/trunk@27628
git-svn-id: http://core.svn.wordpress.org/trunk@27471 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-20 00:48:15 +00:00
Andrew Nacin
30fd56b3dc
Only enqueue the image editor in the media modal in the admin.
...
props gcorne.
see #21811 .
Built from https://develop.svn.wordpress.org/trunk@27625
git-svn-id: http://core.svn.wordpress.org/trunk@27468 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-19 21:16:14 +00:00
Scott Taylor
b836d650bd
On attachment pages for audio and video, display players. Currently, only a link is displayed. Add minimal CSS rules for compatibility with 2011, 2012, and 2013 themes.
...
In `prepend_attachment`, add logic to support attachment types that are not `image`.
In `get_post_class()`, don't add the `has-post-thumbnail` class for attachment pages.
Fixes #27243 .
Built from https://develop.svn.wordpress.org/trunk@27622
git-svn-id: http://core.svn.wordpress.org/trunk@27465 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-19 19:00:14 +00:00
Helen Hou-Sandí
7ede169d47
Ensure the media library spinner hides when displaying a cached result set. props kovshenin. see #24859 .
...
Built from https://develop.svn.wordpress.org/trunk@27621
git-svn-id: http://core.svn.wordpress.org/trunk@27464 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-19 18:27:15 +00:00
Andrew Nacin
deb8779af5
More translation cleanups.
...
Affects widgets (see #27112 ), custom headers (see #21785 ), theme installer (see #27055 , reverts [27614]), and some media stuff. Untranslates some complicated strings that need additional study.
see #27453 .
Built from https://develop.svn.wordpress.org/trunk@27620
git-svn-id: http://core.svn.wordpress.org/trunk@27463 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-19 08:18:14 +00:00
Scott Taylor
8a50510c0a
JSHint fix for [27608].
...
Built from https://develop.svn.wordpress.org/trunk@27619
git-svn-id: http://core.svn.wordpress.org/trunk@27462 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-19 07:24:16 +00:00
Andrew Nacin
de8f6c7350
TinyMCE strings: Merge, remove, reorganize, restore, clarify.
...
see #27453 , #24067 .
Built from https://develop.svn.wordpress.org/trunk@27618
git-svn-id: http://core.svn.wordpress.org/trunk@27461 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-19 07:18:13 +00:00
Scott Taylor
0f55595472
In sanitize_file_name()
, replace a UTF-8-encoded Unicode representation of a non-breaking space (\u00a0
/ \xc2\xa
) with an old-fashioned space:
.
...
Fixes #27281 .
Built from https://develop.svn.wordpress.org/trunk@27617
git-svn-id: http://core.svn.wordpress.org/trunk@27460 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-19 07:16:15 +00:00
Scott Taylor
d21ba271cc
Bump the version for TinyMCE's stylesheet.
...
See [27615].
Built from https://develop.svn.wordpress.org/trunk@27616
git-svn-id: http://core.svn.wordpress.org/trunk@27459 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-19 07:03:14 +00:00
Scott Taylor
7ad4205f70
Add MCE views for audio and video shortcodes. When the shortcode does not contain a source that supports native playback, just show the filename.
...
* Remove the audio/video shortcode parsing from the `wpgallery` plugin.
* Make `mce-view` a dependency of `media-audiovideo`
* Introduce `wp.mce.video`, `wp.mce.audio`, `wp.mce.media`, and `wp.mce.media.View`
* Rename `wp.media.audio|video.shortcode()` to `wp.media.audio|video.update()` since it is called on Update and returns a `wp.shortcode` object now.
* In `wp.mce.View.render()`, fire a `ready` event when the placeholder is being parsed and pass the current node to the event handler.
See #27389 , #27437 .
Built from https://develop.svn.wordpress.org/trunk@27615
git-svn-id: http://core.svn.wordpress.org/trunk@27458 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-19 07:02:15 +00:00
Scott Taylor
a17dd704c4
Create a new file, media-audiovideo.js
, to house all of the audio and video JS code in core.
...
UX Changes:
* Don't add a menu item for "Add Audio|Video Source"
* In the Audio|Video Details modal, add buttons and some suggestive text for adding alternate playback sources
* Don't show "Create Audio|Video Playlist" menu items until the user has uploaded audio or video files
See #27437 .
Built from https://develop.svn.wordpress.org/trunk@27608
git-svn-id: http://core.svn.wordpress.org/trunk@27451 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-19 05:31:15 +00:00
Andrew Ozz
ee6d178f15
TinyMCE: update to 4.0.20, see #24067
...
Built from https://develop.svn.wordpress.org/trunk@27603
git-svn-id: http://core.svn.wordpress.org/trunk@27446 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-19 04:46:15 +00:00
Andrew Ozz
4428dc3b7c
TinyMCE show/hide toolbar row: fix the value for getUserSetting('hidetb')
: 0 == hidden, 1 == visible, see #24067
...
Built from https://develop.svn.wordpress.org/trunk@27602
git-svn-id: http://core.svn.wordpress.org/trunk@27445 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-19 02:30:15 +00:00
Andrew Ozz
c2a5748582
wpView: don't overlap floated elements, see #26959
...
Built from https://develop.svn.wordpress.org/trunk@27601
git-svn-id: http://core.svn.wordpress.org/trunk@27444 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-19 01:16:15 +00:00