Scott Taylor
ef6af221d7
When rendering Underscore templates for Audio/Video details, use 2 new PHP functions to render the markup for audio and video tags: wp_underscore_audio_template()
and wp_underscore_video_template()
.
...
Future JS templates can follow the convention of expecting `data` to be passed to them containing a `model` property.
See #27389 .
Built from https://develop.svn.wordpress.org/trunk@27533
git-svn-id: http://core.svn.wordpress.org/trunk@27376 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-14 12:20:15 +00:00
Andrew Ozz
93ec80e732
Modals: darken all overlays, update all box-shadows and headings, correct thickbox styling, make the link modal narrower and bring back the animation (css transition). Props avryl, see #26952
...
Built from https://develop.svn.wordpress.org/trunk@27532
git-svn-id: http://core.svn.wordpress.org/trunk@27375 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-14 05:55:16 +00:00
Andrew Ozz
1ebf6bc9ee
Drag/drop upload: don't trigger on "local" dragging, hide the overlay on click. Props kovshenin, fixes #19845
...
Built from https://develop.svn.wordpress.org/trunk@27531
git-svn-id: http://core.svn.wordpress.org/trunk@27374 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-14 00:42:14 +00:00
Scott Taylor
b4569b69dc
Revert [27528] until Flash in Firefox behaves :(
...
See #27389 .
Built from https://develop.svn.wordpress.org/trunk@27530
git-svn-id: http://core.svn.wordpress.org/trunk@27373 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-13 23:39:16 +00:00
Scott Taylor
0b7ea83dea
Version bump for TinyMCE stylesheet.
...
See #27389 , [27528].
Built from https://develop.svn.wordpress.org/trunk@27529
git-svn-id: http://core.svn.wordpress.org/trunk@27372 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-13 23:16:14 +00:00
Scott Taylor
ba84f57083
Add MCE Views for audio and video. Please clear your browser cache so that you get the latest TinyMCE stylesheet.
...
* Move TinyMCE shortcode handling from `wpgallery` plugin to `mce-view.js`
* Force `preload="none"` when rendering media in the editor to ensure fast loading (I realize this sounds illogical)
* Move audio and video tag builder logic in `media-template.php` into PHP funcs that can be reused by any code passing `data.model` to an Underscore template
* Pause all players when moving between editor tabs and when moving from the editor to editing in the media modal.
* Rename `wp.media.audio|video.shortcode()` to the more appropriate `wp.media.audio|video.update()` that now returns a `wp.shortcode` object instead of a string.
* Add necessary MediaElement css files to `$mce_css`
* In `wp.mce.View.render()`, support multiple instances of the same shortcode
* When rendering `wp.mce.View`s, fire a ready event that passes the current MCE View root element as context
See #27389 .
Built from https://develop.svn.wordpress.org/trunk@27528
git-svn-id: http://core.svn.wordpress.org/trunk@27371 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-13 23:10:14 +00:00
John Blackbourn
184dc2bc33
figcaption
should not be treated as a block-level element by wpautop()
. See #25646 . Props oso96_2000.
...
Built from https://develop.svn.wordpress.org/trunk@27527
git-svn-id: http://core.svn.wordpress.org/trunk@27370 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-13 21:51:16 +00:00
John Blackbourn
74bfbfaec2
Remove Qik from the oEmbed provider list as it's shutting down. Fixes #27302 . Props JustinSainton.
...
Built from https://develop.svn.wordpress.org/trunk@27526
git-svn-id: http://core.svn.wordpress.org/trunk@27369 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-13 21:28:14 +00:00
Dominik Schilling
f48e3f5719
Widget Customizer: Move style/script registration to script loader. Update Gruntfile.js.
...
fixes #27356 .
Built from https://develop.svn.wordpress.org/trunk@27525
git-svn-id: http://core.svn.wordpress.org/trunk@27368 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-13 19:41:14 +00:00
Dominik Schilling
f46a085f7c
Widget Customizer: Use ?wp_customize=on.
...
Let _wp_customize_include() handle customizer initialisation.
Sets also the priority for the Add Widget and Reorder buttons and removes debug cruft.
props westonruter.
fixes #27291 .
Built from https://develop.svn.wordpress.org/trunk@27524
git-svn-id: http://core.svn.wordpress.org/trunk@27367 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-13 18:38:14 +00:00
John Blackbourn
3ec5d81f97
Improve paginate_links()
performance by not calling number_format_i18n()
unnecessarily. Fixes #25735 with tests. Props johnpbloch.
...
Built from https://develop.svn.wordpress.org/trunk@27523
git-svn-id: http://core.svn.wordpress.org/trunk@27366 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-13 17:39:15 +00:00
Scott Taylor
cd2e279d65
Avoid a notice in get_the_category_by_ID()
when is_wp_error( $term )
is false but $term->name
is not set. Clarify the @return
value of get_category()
and get_tag()
which return the same possible types as get_term()
, which they wrap.
...
Props ericmann, SergeyBiryukov.
Fixes #25429 .
Built from https://develop.svn.wordpress.org/trunk@27521
git-svn-id: http://core.svn.wordpress.org/trunk@27364 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-13 04:04:15 +00:00
Scott Taylor
a945b2738f
Add a class property to wp.media.view.MediaDetails
called instances
that is incremented every time the class is invoked. This mimics what happens in the shortcodes: the sources receive an incremented cache-buster so that the browser won't ignore the file when preload="metadata"
is set.
...
See #26779 .
Built from https://develop.svn.wordpress.org/trunk@27520
git-svn-id: http://core.svn.wordpress.org/trunk@27363 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-13 03:55:15 +00:00
Scott Taylor
be70cf26fe
Account for preload="metadata"
in audio and video shortcodes when multiple versions of the same <source>
appear on the page by appending a query arg to "cache-bust" passed sources. The query arg is used to make the sources "unique." They will still be cached by the browser and won't bust the cache on every request.
...
Fixes #26779 .
Built from https://develop.svn.wordpress.org/trunk@27519
git-svn-id: http://core.svn.wordpress.org/trunk@27362 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-13 03:42:14 +00:00
Scott Taylor
8705921741
In wp.media.view.AttachmentFilters
, when creating its inner HTML content, pass filter.text
via .html( str )
instead of .text( str )
to allow more formatting options.
...
Props tlovett1.
Fixes #25010 .
Built from https://develop.svn.wordpress.org/trunk@27518
git-svn-id: http://core.svn.wordpress.org/trunk@27361 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-13 03:19:15 +00:00
Helen Hou-Sandí
326f49688f
Ensure the correct model is selected when editing an image from gallery mode. props gcorne. fixes #27363 .
...
Built from https://develop.svn.wordpress.org/trunk@27517
git-svn-id: http://core.svn.wordpress.org/trunk@27360 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-12 22:05:15 +00:00
Helen Hou-Sandí
9aafd2294d
Smooth out some display and race condition issues with the media modal loading spinner. props kadamwhite, gcorne. see #24859 .
...
Built from https://develop.svn.wordpress.org/trunk@27516
git-svn-id: http://core.svn.wordpress.org/trunk@27359 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-12 21:07:14 +00:00
Andrew Nacin
20948e27e8
Revert [27203], restore JIT color scheme stylesheets. Restores [27111].
...
fixes #27175 . see #20729 .
Built from https://develop.svn.wordpress.org/trunk@27515
git-svn-id: http://core.svn.wordpress.org/trunk@27358 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-12 16:12:15 +00:00
Sergey Biryukov
8343fabff6
Avoid a notice in trackback_rdf() if user agent is not set.
...
props joostdevalk.
fixes #27374 .
Built from https://develop.svn.wordpress.org/trunk@27514
git-svn-id: http://core.svn.wordpress.org/trunk@27357 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-12 12:54:15 +00:00
Andrew Ozz
2a7918390b
TinyMCE modals: re-enable the Close button in charmap, fix arrows in listboxes, add and position dashicons to the menu (when visible), see #26952
...
Built from https://develop.svn.wordpress.org/trunk@27513
git-svn-id: http://core.svn.wordpress.org/trunk@27356 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-12 08:19:14 +00:00
Scott Taylor
48e05e607c
Change string "Create Playlist" to "Create Audio Playlist." Open new tickets for individual issues.
...
Fixes #26631 .
Built from https://develop.svn.wordpress.org/trunk@27512
git-svn-id: http://core.svn.wordpress.org/trunk@27355 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-12 04:40:16 +00:00
Scott Taylor
db1badfcab
In WP_Query::get_queried_object()
, account for pre_get_posts
by checking for tag
when tag_id
isn't present. Tags still need to be rolled up into tax_query
. Add a unit test confirming expected query vars during and after pre_get_posts
.
...
Props mattonomics for a patch.
See #27362 .
Built from https://develop.svn.wordpress.org/trunk@27511
git-svn-id: http://core.svn.wordpress.org/trunk@27354 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-12 04:08:18 +00:00
Andrew Ozz
d1008b2dfe
wpLink: bring back the Cancel link, improve responsive styles, see #26952
...
Built from https://develop.svn.wordpress.org/trunk@27510
git-svn-id: http://core.svn.wordpress.org/trunk@27353 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-12 03:07:15 +00:00
Sergey Biryukov
c099c5a031
Avoid a warning in wpdb::db_connect(). before_needle parameter of strstr() was added in PHP 5.3.
...
props klihelp, pento.
fixes #27277 .
Built from https://develop.svn.wordpress.org/trunk@27503
git-svn-id: http://core.svn.wordpress.org/trunk@27346 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-11 19:27:15 +00:00
Andrew Nacin
fe260c6a15
Assign correct variable.
...
props nendeb55.
fixes #27351 . see #14424 , [27373].
Built from https://develop.svn.wordpress.org/trunk@27501
git-svn-id: http://core.svn.wordpress.org/trunk@27344 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-11 13:24:14 +00:00
Andrew Nacin
40a11b9ed8
A nice round commit number for a beta 1.
...
Built from https://develop.svn.wordpress.org/trunk@27500
git-svn-id: http://core.svn.wordpress.org/trunk@27342 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-11 07:54:14 +00:00
Andrew Nacin
9aca2a65f8
Bring the theme browsing experience from 3.8 to the theme installer. First pass.
...
props matveb with assists from me and gcorne.
see #27055 .
Built from https://develop.svn.wordpress.org/trunk@27499
git-svn-id: http://core.svn.wordpress.org/trunk@27341 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-11 07:47:15 +00:00
Andrew Nacin
69ccc8b53d
JS linting for [27497].
...
see #21785 .
Built from https://develop.svn.wordpress.org/trunk@27498
git-svn-id: http://core.svn.wordpress.org/trunk@27340 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-11 04:20:14 +00:00
Andrew Nacin
a589d9d757
Add header image uploads with cropping to the customizer.
...
props mcsf, ehg, gcorne.
see #21785 .
Built from https://develop.svn.wordpress.org/trunk@27497
git-svn-id: http://core.svn.wordpress.org/trunk@27339 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-11 04:13:16 +00:00
Andrew Ozz
45bc43515c
wpLink: better structural and responsive styles, see #26952
...
Built from https://develop.svn.wordpress.org/trunk@27496
git-svn-id: http://core.svn.wordpress.org/trunk@27338 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-11 03:36:14 +00:00
Andrew Ozz
36d0458c78
wpLink: set max-height to 500px (like before) and vertically center the modal (except in IE8), see #26952
...
Built from https://develop.svn.wordpress.org/trunk@27495
git-svn-id: http://core.svn.wordpress.org/trunk@27337 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-11 02:36:14 +00:00
Andrew Ozz
05e23f7506
wpLink: stop using UI dialog, restyle the modal, add better responsive behaviour.
...
Fix UI dialog styling to match the rest of the admin styling.
Props avryl, see #26952
Built from https://develop.svn.wordpress.org/trunk@27494
git-svn-id: http://core.svn.wordpress.org/trunk@27336 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-11 00:04:14 +00:00
Scott Taylor
d56f4a30b9
A string was missing its translation wrapper in the Underscore template for video details.
...
Props Jayjdk.
See #27016 .
Built from https://develop.svn.wordpress.org/trunk@27490
git-svn-id: http://core.svn.wordpress.org/trunk@27334 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-10 00:19:15 +00:00
Scott Taylor
394feb8f91
Add a class, wp-playlist-playing
, to the currently loaded track when tracks are displayed. Add some subtle styles for light and dark playlist themes.
...
See #27321 .
Built from https://develop.svn.wordpress.org/trunk@27489
git-svn-id: http://core.svn.wordpress.org/trunk@27333 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-10 00:15:14 +00:00
Scott Taylor
d2c0cdc5de
Add a filter and document it: playlist_styles
. Allows users to roll their own playlist themes.
...
Props DrewAPicture for the docs.
See #26631 .
Built from https://develop.svn.wordpress.org/trunk@27488
git-svn-id: http://core.svn.wordpress.org/trunk@27332 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-09 23:37:15 +00:00
Scott Taylor
634fac6e2c
Update the UI styles for Playlist Settings.
...
Props melchoyce for the design.
See #26631 .
Built from https://develop.svn.wordpress.org/trunk@27487
git-svn-id: http://core.svn.wordpress.org/trunk@27331 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-09 23:19:15 +00:00
Scott Taylor
6c3e050724
Playlists:
...
* Add an action, `wp_playlist_scripts`, where a user can turn off all default script and style loading for playlists and roll their own.
* Move the script and style loading for playlists to a function, `wp_playlist_scripts( $type )`, that hooks into `wp_playlist_scripts`.
* Make the `<noscript>` playlist output an `<ol>`, instead of a list of links with no surrounding markup.
See #26631 .
Built from https://develop.svn.wordpress.org/trunk@27486
git-svn-id: http://core.svn.wordpress.org/trunk@27330 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-09 22:45:14 +00:00
Andrew Nacin
acba3131d7
Allow for custom authentication handlers for all requests.
...
Turn the logic used by wp_get_current_user() into a determine_current_user filter.
props rmccue.
fixes #26706 .
Built from https://develop.svn.wordpress.org/trunk@27484
git-svn-id: http://core.svn.wordpress.org/trunk@27328 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-09 15:23:15 +00:00
Scott Taylor
f078f3e10e
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 .
Built from https://develop.svn.wordpress.org/trunk@27481
git-svn-id: http://core.svn.wordpress.org/trunk@27325 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-09 10:32:15 +00:00
Scott Taylor
8e2e99fd0c
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 .
Built from https://develop.svn.wordpress.org/trunk@27480
git-svn-id: http://core.svn.wordpress.org/trunk@27324 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-09 06:24:15 +00:00
Scott Taylor
90da8aab4a
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 .
Built from https://develop.svn.wordpress.org/trunk@27479
git-svn-id: http://core.svn.wordpress.org/trunk@27323 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-09 06:05:14 +00:00
Scott Taylor
f7af18e1d6
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 .
Built from https://develop.svn.wordpress.org/trunk@27478
git-svn-id: http://core.svn.wordpress.org/trunk@27322 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-09 05:25:15 +00:00
Scott Taylor
f0863476f5
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 .
Built from https://develop.svn.wordpress.org/trunk@27477
git-svn-id: http://core.svn.wordpress.org/trunk@27321 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-09 01:06:14 +00:00
Scott Taylor
dc00fc7e7f
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 .
Built from https://develop.svn.wordpress.org/trunk@27476
git-svn-id: http://core.svn.wordpress.org/trunk@27320 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-09 01:01:14 +00:00
Andrew Nacin
755018876c
Add context to an internal HTTP API hook.
...
props kovshenin.
fixes #27021 .
Built from https://develop.svn.wordpress.org/trunk@27475
git-svn-id: http://core.svn.wordpress.org/trunk@27319 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-08 21:54:15 +00:00
Drew Jaynes
da19fc531c
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 .
Built from https://develop.svn.wordpress.org/trunk@27473
git-svn-id: http://core.svn.wordpress.org/trunk@27318 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-08 19:32:16 +00:00
Andrew Nacin
fabb6d4898
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 .
Built from https://develop.svn.wordpress.org/trunk@27472
git-svn-id: http://core.svn.wordpress.org/trunk@27317 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-08 06:14:15 +00:00
Andrew Nacin
a4a88aeceb
I am having a bad day. see #13265 .
...
Built from https://develop.svn.wordpress.org/trunk@27471
git-svn-id: http://core.svn.wordpress.org/trunk@27316 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-08 04:20:14 +00:00
Andrew Nacin
17ccbc86c9
Rename the new page_templates filter to theme_page_templates, and pass it a post object for proper context.
...
see #13265 .
Built from https://develop.svn.wordpress.org/trunk@27470
git-svn-id: http://core.svn.wordpress.org/trunk@27315 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-08 04:19:16 +00:00
Andrew Nacin
833c8e5419
Widgets dashicons update.
...
props melchoyce, michael-arestad, empireoflight.
see #26936 .
Built from https://develop.svn.wordpress.org/trunk@27468
git-svn-id: http://core.svn.wordpress.org/trunk@27313 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-08 03:38:16 +00:00
Andrew Ozz
c3212baa4d
Limit the drag/drop upload only to newer browsers (IE10+), add a fullscreen dropzone in DFW mode, props kovshenin, see #19845
...
Built from https://develop.svn.wordpress.org/trunk@27464
git-svn-id: http://core.svn.wordpress.org/trunk@27309 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-08 01:35:15 +00:00
Andrew Ozz
a8a20f4bb7
Set minimum z-index for the TinyMCE modals and adjust the z-index in DFW, see #26952
...
Built from https://develop.svn.wordpress.org/trunk@27460
git-svn-id: http://core.svn.wordpress.org/trunk@27305 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-08 00:41:16 +00:00
Scott Taylor
c353fa41a2
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 .
Built from https://develop.svn.wordpress.org/trunk@27458
git-svn-id: http://core.svn.wordpress.org/trunk@27304 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-07 19:29:16 +00:00
Scott Taylor
3556e565b3
get_term_children()
returns an array of IDs, not objects. The docs have been updated to reflect this.
...
Fixes #27312 .
Built from https://develop.svn.wordpress.org/trunk@27457
git-svn-id: http://core.svn.wordpress.org/trunk@27303 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-07 19:16:15 +00:00
Scott Taylor
c92f58a6d5
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 .
Built from https://develop.svn.wordpress.org/trunk@27456
git-svn-id: http://core.svn.wordpress.org/trunk@27302 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-07 18:59:14 +00:00
Scott Taylor
bc968895cc
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 .
Built from https://develop.svn.wordpress.org/trunk@27455
git-svn-id: http://core.svn.wordpress.org/trunk@27301 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-07 18:33:15 +00:00
Scott Taylor
818bf7c6af
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 .
Built from https://develop.svn.wordpress.org/trunk@27454
git-svn-id: http://core.svn.wordpress.org/trunk@27300 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-07 16:42:14 +00:00
Scott Taylor
3b212f7e0f
JSHint addendum to [27450].
...
See #27016 .
Built from https://develop.svn.wordpress.org/trunk@27453
git-svn-id: http://core.svn.wordpress.org/trunk@27299 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-07 08:44:15 +00:00
Scott Taylor
7f15998947
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 .
Built from https://develop.svn.wordpress.org/trunk@27452
git-svn-id: http://core.svn.wordpress.org/trunk@27298 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-07 08:32:14 +00:00
Andrew Ozz
88a47ecd06
TinyMCE editimage: show the toolbar on mouseup
to avoid accidental clicks on the buttons, fixes #24409
...
Built from https://develop.svn.wordpress.org/trunk@27451
git-svn-id: http://core.svn.wordpress.org/trunk@27297 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-07 06:34:14 +00:00
Scott Taylor
52fdb09e2d
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 .
Built from https://develop.svn.wordpress.org/trunk@27450
git-svn-id: http://core.svn.wordpress.org/trunk@27296 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-07 05:52:14 +00:00
Andrew Ozz
2b697a3d84
TinyMCE: add Ctrl+K, the "de-facto standard" shortcut to open wpLink, fixes #27305
...
Built from https://develop.svn.wordpress.org/trunk@27449
git-svn-id: http://core.svn.wordpress.org/trunk@27295 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-07 03:09:14 +00:00
Scott Taylor
d3d1014d33
Remove the box-shadow from the separator in the right sidebar of the media modal.
...
Props avryl.
Fixes #27217 .
Built from https://develop.svn.wordpress.org/trunk@27448
git-svn-id: http://core.svn.wordpress.org/trunk@27294 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-07 02:46:14 +00:00
Andrew Ozz
6f1668c43d
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
Built from https://develop.svn.wordpress.org/trunk@27447
git-svn-id: http://core.svn.wordpress.org/trunk@27293 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-07 02:02:13 +00:00
Helen Hou-Sandí
4bb7e03548
At long last, a first pass at bringing the image editor into the media modal. props gcorne, DH-Shredder, tomauger. see #21811 .
...
Built from https://develop.svn.wordpress.org/trunk@27445
git-svn-id: http://core.svn.wordpress.org/trunk@27292 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-06 22:55:14 +00:00
Scott Taylor
023b419727
Call the correct remove()
method on the MEjs instance when exiting the media modal.
...
See #27016 .
Built from https://develop.svn.wordpress.org/trunk@27443
git-svn-id: http://core.svn.wordpress.org/trunk@27290 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-06 20:13:15 +00:00
Scott Taylor
eda85e17ca
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 .
Built from https://develop.svn.wordpress.org/trunk@27440
git-svn-id: http://core.svn.wordpress.org/trunk@27287 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-06 19:06:16 +00:00
Andrew Nacin
4fb0aa5ecb
In get_site_by_path(), avoid passing $paths through prepare(). If a path contains a %, we end up with problems. see #27003 .
...
Built from https://develop.svn.wordpress.org/trunk@27439
git-svn-id: http://core.svn.wordpress.org/trunk@27286 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-06 18:18:15 +00:00
Scott Taylor
ba27ced46b
Add a loading indicator to the Media Library.
...
Props kadamwhite, gcorne, kovshenin.
Fixes #24859 .
Built from https://develop.svn.wordpress.org/trunk@27438
git-svn-id: http://core.svn.wordpress.org/trunk@27285 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-06 17:46:15 +00:00
Scott Taylor
01c0b48822
Make widget customizer code pass JSHint.
...
Fixes #27298 .
Built from https://develop.svn.wordpress.org/trunk@27436
git-svn-id: http://core.svn.wordpress.org/trunk@27283 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-06 16:45:15 +00:00
Scott Taylor
bc9838f86f
We shall pledge to run jshint
before committing.
...
Props nacin for the nudge.
Built from https://develop.svn.wordpress.org/trunk@27435
git-svn-id: http://core.svn.wordpress.org/trunk@27282 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-06 16:06:14 +00:00
John Blackbourn
944c629ace
Use wp_get_attachment_url()
instead of the GUID when getting header image URLs. Fixes #27222 . Props Kopepasah.
...
Built from https://develop.svn.wordpress.org/trunk@27434
git-svn-id: http://core.svn.wordpress.org/trunk@27281 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-06 15:55:15 +00:00
Drew Jaynes
c5279336c7
Inline documentation for hooks in wp-includes/class-wp-customize-manager.php.
...
Props kpdesign for the typo fix.
Fixes #27296 .
Built from https://develop.svn.wordpress.org/trunk@27433
git-svn-id: http://core.svn.wordpress.org/trunk@27280 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-06 14:11:15 +00:00
Drew Jaynes
5ac55b9b1a
Inline documentation for hooks in wp-includes/class-wp-customize-setting.php.
...
Props kpdesign for the cleanup.
Fixes #27295
Built from https://develop.svn.wordpress.org/trunk@27432
git-svn-id: http://core.svn.wordpress.org/trunk@27279 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-06 14:04:13 +00:00
Drew Jaynes
277d715d9e
Inline documentation for hooks in wp-includes/class-wp-customize-control.php.
...
Fixes #27294 .
Built from https://develop.svn.wordpress.org/trunk@27431
git-svn-id: http://core.svn.wordpress.org/trunk@27278 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-06 13:51:14 +00:00
Andrew Nacin
cc56dde10c
Add has-post-thumbnail as a post class.
...
props danielbachhuber, frank-klein.
fixes #18804 .
Built from https://develop.svn.wordpress.org/trunk@27429
git-svn-id: http://core.svn.wordpress.org/trunk@27276 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-06 06:06:14 +00:00
Andrew Ozz
f0bfa77a4a
TinyMCE: add the <hr> plugin and button, see #27159
...
Built from https://develop.svn.wordpress.org/trunk@27428
git-svn-id: http://core.svn.wordpress.org/trunk@27275 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-06 00:54:14 +00:00
Andrew Ozz
79441fc1c1
TinyMCE: remove border-radius and padding from placeholder images, props avryl, see #27106
...
Built from https://develop.svn.wordpress.org/trunk@27427
git-svn-id: http://core.svn.wordpress.org/trunk@27274 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-06 00:29:15 +00:00
Andrew Ozz
62d68cc992
TinyMCE: when parsing [caption] and the width attribute is missing, recreate it from the image tag width, fixes #23103
...
Built from https://develop.svn.wordpress.org/trunk@27426
git-svn-id: http://core.svn.wordpress.org/trunk@27273 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-06 00:13:14 +00:00
John Blackbourn
8d7f96c459
Deprecate format_to_post()
and remove its filter. Fixes #25526 . Props simonwheatley
...
Built from https://develop.svn.wordpress.org/trunk@27424
git-svn-id: http://core.svn.wordpress.org/trunk@27271 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-05 22:48:15 +00:00
John Blackbourn
3a0a98205c
Allow get_page_by_path()
and get_page_by_title()
to accept an array of post types. Fixes #24763 . Props zbtirrell.
...
Built from https://develop.svn.wordpress.org/trunk@27423
git-svn-id: http://core.svn.wordpress.org/trunk@27270 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-05 22:26:15 +00:00
John Blackbourn
adc2a2c872
Update the list of HTTP status code descriptions. Fixes #16914 . Props sirzooro and hakre for the original patches.
...
Built from https://develop.svn.wordpress.org/trunk@27422
git-svn-id: http://core.svn.wordpress.org/trunk@27269 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-05 22:01:16 +00:00
Scott Taylor
f15e1bc1db
Ensure that all a/v attribute names have a leading space when the tags are dynamically-generated via Underscore templates.
...
See #27016 .
Built from https://develop.svn.wordpress.org/trunk@27421
git-svn-id: http://core.svn.wordpress.org/trunk@27268 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-05 21:46:14 +00:00
Scott Taylor
9aa05f8681
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 .
Built from https://develop.svn.wordpress.org/trunk@27420
git-svn-id: http://core.svn.wordpress.org/trunk@27267 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-05 21:37:13 +00:00
Andrew Nacin
e853a9cc57
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 .
Built from https://develop.svn.wordpress.org/trunk@27419
git-svn-id: http://core.svn.wordpress.org/trunk@27266 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-05 20:41:14 +00:00
Dominik Schilling
d23cd0aa50
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 .
Built from https://develop.svn.wordpress.org/trunk@27418
git-svn-id: http://core.svn.wordpress.org/trunk@27265 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-05 20:04:14 +00:00
Dominik Schilling
e7169137a7
Remove trailing whitespace in dashicons.css.
...
Built from https://develop.svn.wordpress.org/trunk@27417
git-svn-id: http://core.svn.wordpress.org/trunk@27264 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-05 19:28:15 +00:00
Scott Taylor
09d8606428
Add some missing JSDoc blocks to media-related code.
...
See #27016 .
Built from https://develop.svn.wordpress.org/trunk@27415
git-svn-id: http://core.svn.wordpress.org/trunk@27262 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-05 18:37:15 +00:00
Scott Taylor
0ccc1d52ac
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 .
Built from https://develop.svn.wordpress.org/trunk@27414
git-svn-id: http://core.svn.wordpress.org/trunk@27261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-05 18:32:14 +00:00
John Blackbourn
79d274f2f6
Add context and a missing period to widget descriptions. Fixes #26668 . Props pavelevap, Hanni
...
Built from https://develop.svn.wordpress.org/trunk@27412
git-svn-id: http://core.svn.wordpress.org/trunk@27259 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-05 17:26:17 +00:00
Scott Taylor
ff8844deae
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 .
Built from https://develop.svn.wordpress.org/trunk@27411
git-svn-id: http://core.svn.wordpress.org/trunk@27258 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-05 15:06:14 +00:00
Andrew Nacin
e9b64fb76d
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 .
Built from https://develop.svn.wordpress.org/trunk@27409
git-svn-id: http://core.svn.wordpress.org/trunk@27256 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-05 07:24:14 +00:00
Andrew Ozz
6074dfa272
Update mce-view.js and the wpview
TinyMCE plugin, and use them to show gallery previews in the Visual editor, props gcorne, see #26959
...
Built from https://develop.svn.wordpress.org/trunk@27408
git-svn-id: http://core.svn.wordpress.org/trunk@27255 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-05 07:01:14 +00:00
Andrew Nacin
0e9ef2491c
Deprecate get_current_site_name(). see #27003 .
...
Built from https://develop.svn.wordpress.org/trunk@27407
git-svn-id: http://core.svn.wordpress.org/trunk@27254 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-05 06:39:21 +00:00
Andrew Nacin
5dc0a56f26
Multisite load: Properly call wp_cache_set().
...
props gradyetc.
see #27003 .
Built from https://develop.svn.wordpress.org/trunk@27406
git-svn-id: http://core.svn.wordpress.org/trunk@27253 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-05 06:27:14 +00:00
Helen Hou-Sandí
886a8e9549
Add a class
attribute to the caption shortcode to allow for additional classes on the caption container. props rhyswynne, mcadwell. fixes #25295 .
...
Built from https://develop.svn.wordpress.org/trunk@27404
git-svn-id: http://core.svn.wordpress.org/trunk@27251 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-05 04:54:15 +00:00
Andrew Ozz
7121bb490d
Restyles the modal for attaching media to posts, take II (also some autoprefixer and imagemin). Props avryl, see #26952 .
...
Built from https://develop.svn.wordpress.org/trunk@27403
git-svn-id: http://core.svn.wordpress.org/trunk@27250 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-05 03:54:15 +00:00
Andrew Nacin
affd41046b
In set_theme_mod() account for when there is no old value.
...
fixes #14721 . see [27393].
Built from https://develop.svn.wordpress.org/trunk@27402
git-svn-id: http://core.svn.wordpress.org/trunk@27249 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-05 01:13:14 +00:00
Sergey Biryukov
3533e3575f
Use esc_attr_e() instead of _e() for attribute values.
...
props DJPaul.
fixes #27274 .
Built from https://develop.svn.wordpress.org/trunk@27400
git-svn-id: http://core.svn.wordpress.org/trunk@27247 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-04 21:10:15 +00:00
Andrew Nacin
f31ac162f5
Update the Customizer API inline docs.
...
props ericlewis.
fixes #27065 .
Built from https://develop.svn.wordpress.org/trunk@27398
git-svn-id: http://core.svn.wordpress.org/trunk@27246 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-04 20:21:14 +00:00
Andrew Nacin
0422c70fdb
Rename maybe_regenerate_attachment_metadata() to wp_maybe_generate_attachment_metadata(), to match wp_generate_attachment_metadata().
...
fixes #26825 .
Built from https://develop.svn.wordpress.org/trunk@27397
git-svn-id: http://core.svn.wordpress.org/trunk@27245 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-04 20:07:14 +00:00
Andrew Nacin
978e394248
Do not output default gallery styles if the theme has opted into HTML5 galleries.
...
fixes #27045 . see #26697 .
Built from https://develop.svn.wordpress.org/trunk@27396
git-svn-id: http://core.svn.wordpress.org/trunk@27244 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-04 18:53:13 +00:00
Andrew Nacin
1ff0aebf20
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 .
Built from https://develop.svn.wordpress.org/trunk@27395
git-svn-id: http://core.svn.wordpress.org/trunk@27243 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-04 07:45:14 +00:00
Andrew Nacin
5468377d3e
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 .
Built from https://develop.svn.wordpress.org/trunk@27394
git-svn-id: http://core.svn.wordpress.org/trunk@27242 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-04 07:11:13 +00:00
Andrew Nacin
4c7c24ecbf
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 .
Built from https://develop.svn.wordpress.org/trunk@27393
git-svn-id: http://core.svn.wordpress.org/trunk@27241 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-04 07:02:13 +00:00
Andrew Ozz
2ccc89edfd
DFW: revert adding the 'image' button, images are edited in the media modal. See #24067 .
...
Built from https://develop.svn.wordpress.org/trunk@27391
git-svn-id: http://core.svn.wordpress.org/trunk@27239 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-04 04:08:14 +00:00
Andrew Nacin
c67c9565f1
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 .
Built from https://develop.svn.wordpress.org/trunk@27390
git-svn-id: http://core.svn.wordpress.org/trunk@27238 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-04 03:09:15 +00:00
Andrew Nacin
3028e6e7fb
Add jquery.masonry.min.js. fixes #25351 .
...
Built from https://develop.svn.wordpress.org/trunk@27389
git-svn-id: http://core.svn.wordpress.org/trunk@27237 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-04 02:20:14 +00:00
Andrew Nacin
5fd175300c
Allow the role attribute in kses for all elements.
...
props mikecorkum.
fixes #24098 .
Built from https://develop.svn.wordpress.org/trunk@27388
git-svn-id: http://core.svn.wordpress.org/trunk@27236 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-04 02:11:16 +00:00
Andrew Ozz
5525f32fd8
TinyMCE: update to 4.0.18, see #24067
...
Built from https://develop.svn.wordpress.org/trunk@27387
git-svn-id: http://core.svn.wordpress.org/trunk@27235 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-04 01:57:15 +00:00
Helen Hou-Sandí
675a350ff9
Add the ability to short-circuit wp_nav_menu() via the pre_wp_nav_menu
hook. props kasparsd, DrewAPicture, Rarst. fixes #23627 .
...
Built from https://develop.svn.wordpress.org/trunk@27386
git-svn-id: http://core.svn.wordpress.org/trunk@27234 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-03 20:43:15 +00:00
Andrew Nacin
8ab673281d
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 .
Built from https://develop.svn.wordpress.org/trunk@27385
git-svn-id: http://core.svn.wordpress.org/trunk@27233 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-03 20:25:14 +00:00
Andrew Nacin
0523624d31
Doc fixes for wp_get_network().
...
props TobiasBg.
see #27003 .
Built from https://develop.svn.wordpress.org/trunk@27381
git-svn-id: http://core.svn.wordpress.org/trunk@27230 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-03 18:56:14 +00:00
Andrew Nacin
f1bcaeb35f
Let get_the_date() accept a post object.
...
props tanner-m, adamsilverstein, bigdawggi.
fixes #13771 .
Built from https://develop.svn.wordpress.org/trunk@27380
git-svn-id: http://core.svn.wordpress.org/trunk@27229 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-03 18:00:14 +00:00
Andrew Nacin
70d23fc559
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 .
Built from https://develop.svn.wordpress.org/trunk@27378
git-svn-id: http://core.svn.wordpress.org/trunk@27227 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-03 17:44:16 +00:00
Andrew Nacin
291b1a8f83
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 .
Built from https://develop.svn.wordpress.org/trunk@27377
git-svn-id: http://core.svn.wordpress.org/trunk@27226 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-03 17:36:13 +00:00
Andrew Nacin
cfc20a5f64
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 .
Built from https://develop.svn.wordpress.org/trunk@27376
git-svn-id: http://core.svn.wordpress.org/trunk@27225 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-03 17:29:15 +00:00
Mark Jaquith
fb56a9942b
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
Built from https://develop.svn.wordpress.org/trunk@27373
git-svn-id: http://core.svn.wordpress.org/trunk@27222 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-03 16:21:16 +00:00
Andrew Nacin
420afb81de
TinyMCE: Propagate the dragover event outside the editor so drag-and-drop uploads can catch it.
...
props kovshenin.
see #19845 .
Built from https://develop.svn.wordpress.org/trunk@27372
git-svn-id: http://core.svn.wordpress.org/trunk@27221 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-03 15:54:21 +00:00
Drew Jaynes
d2014cfce3
Convert argument array documentation to the hash-notation style for WP_Admin_Bar::add_node()
and WP_Admin_Bar::add_group()
.
...
Fixes #27258 .
Built from https://develop.svn.wordpress.org/trunk@27370
git-svn-id: http://core.svn.wordpress.org/trunk@27220 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-03 06:11:13 +00:00
Andrew Nacin
0c16c0477b
Reference https://wordpress.org rather than http://wordpress.org in strings, links, comments, etc.
...
props Ipstenu, markjaquith.
see #27115 .
Built from https://develop.svn.wordpress.org/trunk@27369
git-svn-id: http://core.svn.wordpress.org/trunk@27219 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-03 02:34:27 +00:00
Andrew Ozz
cab6362f2b
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
...
Built from https://develop.svn.wordpress.org/trunk@27368
git-svn-id: http://core.svn.wordpress.org/trunk@27218 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-03 02:34:14 +00:00
Andrew Nacin
83a0b00489
Accept rel attributes in the toolbar's add_node() method.
...
props stephcook22.
fixes #27234 .
Built from https://develop.svn.wordpress.org/trunk@27367
git-svn-id: http://core.svn.wordpress.org/trunk@27217 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-03 02:14:13 +00:00
Andrew Ozz
bc7ea33113
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 .
...
Built from https://develop.svn.wordpress.org/trunk@27366
git-svn-id: http://core.svn.wordpress.org/trunk@27216 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-03 01:15:13 +00:00
Drew Jaynes
af8c5df4d0
Inline documentation for hooks in wp-includes/option.php.
...
Props siobhyb for the initial patch. Props DrewAPicture, kpdesign.
Fixes #25905 .
Built from https://develop.svn.wordpress.org/trunk@27365
git-svn-id: http://core.svn.wordpress.org/trunk@27215 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-02 23:35:13 +00:00
Andrew Ozz
ce7191d2f9
Editor: look at the class of the wrapper element instead of getUserSetting('editor')
to determine the default editor, fixes #27257
...
Built from https://develop.svn.wordpress.org/trunk@27364
git-svn-id: http://core.svn.wordpress.org/trunk@27214 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-02 23:26:13 +00:00
Scott Taylor
cbe89d6710
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 .
Built from https://develop.svn.wordpress.org/trunk@27363
git-svn-id: http://core.svn.wordpress.org/trunk@27213 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-02 23:13:14 +00:00
Scott Taylor
c0a9ee8452
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.
Built from https://develop.svn.wordpress.org/trunk@27362
git-svn-id: http://core.svn.wordpress.org/trunk@27212 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-02 23:11:14 +00:00
Scott Taylor
330f27f095
Add some braces for jshint
in media-views.js
.
...
See #26631 .
Props gcorne.
Built from https://develop.svn.wordpress.org/trunk@27361
git-svn-id: http://core.svn.wordpress.org/trunk@27211 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-02 23:07:15 +00:00
Sergey Biryukov
8fa00f68e7
Display empty-titled pages properly in Walker_PageDropdown, like we do in Walker_Page.
...
fixes #27218 .
Built from https://develop.svn.wordpress.org/trunk@27360
git-svn-id: http://core.svn.wordpress.org/trunk@27210 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-02 22:34:13 +00:00
Andrew Nacin
ffc4ca7b01
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 .
Built from https://develop.svn.wordpress.org/trunk@27359
git-svn-id: http://core.svn.wordpress.org/trunk@27209 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-02 22:25:14 +00:00
Sergey Biryukov
4da1691fd5
Additional clarification for wp_authenticate_cookie() parameters.
...
fixes #26148 .
Built from https://develop.svn.wordpress.org/trunk@27354
git-svn-id: http://core.svn.wordpress.org/trunk@27205 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-02 19:51:14 +00:00
Drew Jaynes
266aa6d9d2
Inline documentation improvements for wp-includes/user.php.
...
Props morganestes, SergeyBiryukov.
Fixes #26148 .
Built from https://develop.svn.wordpress.org/trunk@27353
git-svn-id: http://core.svn.wordpress.org/trunk@27204 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-02 19:40:14 +00:00
Sergey Biryukov
f01dc328c5
Remove extra comma. props jorbin. see #19845 .
...
Built from https://develop.svn.wordpress.org/trunk@27352
git-svn-id: http://core.svn.wordpress.org/trunk@27203 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-02 19:01:13 +00:00
Sergey Biryukov
2e288a108c
Remove redundant add_filter() call. see [24848]. fixes #27255 .
...
Built from https://develop.svn.wordpress.org/trunk@27351
git-svn-id: http://core.svn.wordpress.org/trunk@27202 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-02 18:21:14 +00:00
Sergey Biryukov
45ac85f67f
Default value for $credentials parameter in wp_signon() should be an array, not a string.
...
props tivnet.
fixes #27130 .
Built from https://develop.svn.wordpress.org/trunk@27350
git-svn-id: http://core.svn.wordpress.org/trunk@27201 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-02 18:05:14 +00:00
Drew Jaynes
ac1701b7cc
Fix the return description for switch_to_blog()
to reflect that it always returns true.
...
Props jeremyfelt.
Fixes #25328 .
Built from https://develop.svn.wordpress.org/trunk@27347
git-svn-id: http://core.svn.wordpress.org/trunk@27199 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-02 04:41:15 +00:00
Drew Jaynes
9b3c090d71
Fix a typo in the author_rewrite_rules
hook doc.
...
Props kpdesign.
See #26095 .
Built from https://develop.svn.wordpress.org/trunk@27346
git-svn-id: http://core.svn.wordpress.org/trunk@27198 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-02 02:50:14 +00:00
Andrew Ozz
cd0552a810
TinyMCE: remove box-shadow from the "more" and "nextpage" placeholder images, props avryl, see #24067
...
Built from https://develop.svn.wordpress.org/trunk@27345
git-svn-id: http://core.svn.wordpress.org/trunk@27197 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-01 22:36:14 +00:00
Andrew Nacin
580b05ae5d
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 .
Built from https://develop.svn.wordpress.org/trunk@27344
git-svn-id: http://core.svn.wordpress.org/trunk@27196 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-01 21:45:15 +00:00
Andrew Nacin
482856e2e1
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 .
Built from https://develop.svn.wordpress.org/trunk@27343
git-svn-id: http://core.svn.wordpress.org/trunk@27195 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-01 21:34:17 +00:00
Drew Jaynes
df8be5ee43
Inline documentation for hooks in wp-includes/rewrite.php.
...
Props mboynes for the initial patch.
Fixes #26095 .
Built from https://develop.svn.wordpress.org/trunk@27341
git-svn-id: http://core.svn.wordpress.org/trunk@27193 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-01 09:31:15 +00:00
Andrew Ozz
8d670f0862
Plupload: remove the (old) plupload.silverlight.xap, remove the "executable" prop from Moxie.xap, see #25663
...
Built from https://develop.svn.wordpress.org/trunk@27340
git-svn-id: http://core.svn.wordpress.org/trunk@27192 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-01 07:37:13 +00:00
Drew Jaynes
c01c33a6aa
Inline documentation fixes for timer_stop()
.
...
See #26874 .
Built from https://develop.svn.wordpress.org/trunk@27335
git-svn-id: http://core.svn.wordpress.org/trunk@27187 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-01 02:42:14 +00:00
John Blackbourn
be967880e2
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 .
...
Built from https://develop.svn.wordpress.org/trunk@27334
git-svn-id: http://core.svn.wordpress.org/trunk@27186 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-28 23:29:14 +00:00
John Blackbourn
9166734ff5
Enable previews for all pages of multi-page posts. Fixes #17157 . Props solarissmoke, chrisscott
...
Built from https://develop.svn.wordpress.org/trunk@27333
git-svn-id: http://core.svn.wordpress.org/trunk@27185 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-28 23:08:13 +00:00
John Blackbourn
50c240d4d0
Correct the inline docs for timer_stop()
. Fixes #26874 . Props jackreichert
...
Built from https://develop.svn.wordpress.org/trunk@27332
git-svn-id: http://core.svn.wordpress.org/trunk@27184 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-28 22:18:14 +00:00
John Blackbourn
412ea898c0
Add some missing number i18n in Walker_Category
and Walker_CategoryDropdown
. Fixes #22745 .
...
Built from https://develop.svn.wordpress.org/trunk@27329
git-svn-id: http://core.svn.wordpress.org/trunk@27181 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-28 21:48:13 +00:00
Scott Taylor
e92770ba93
* 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 .
Built from https://develop.svn.wordpress.org/trunk@27328
git-svn-id: http://core.svn.wordpress.org/trunk@27180 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-28 21:28:14 +00:00
John Blackbourn
2739d652ef
Allow rewrite endpoints to specify a query variable name. Fixes #20905 .
...
Built from https://develop.svn.wordpress.org/trunk@27327
git-svn-id: http://core.svn.wordpress.org/trunk@27179 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-28 20:55:14 +00:00
Scott Taylor
3dc901a92a
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 .
Built from https://develop.svn.wordpress.org/trunk@27322
git-svn-id: http://core.svn.wordpress.org/trunk@27174 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-27 23:04:13 +00:00
Scott Taylor
2ea01e110b
Restore / re-tools some docs after [27313].
...
See #26631 .
Built from https://develop.svn.wordpress.org/trunk@27321
git-svn-id: http://core.svn.wordpress.org/trunk@27173 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-27 21:51:14 +00:00
Scott Taylor
db1a8785b5
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 .
Built from https://develop.svn.wordpress.org/trunk@27320
git-svn-id: http://core.svn.wordpress.org/trunk@27172 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-27 21:38:17 +00:00
Andrew Ozz
21b74a037d
Remove debugging cruft, see #25663
...
Built from https://develop.svn.wordpress.org/trunk@27318
git-svn-id: http://core.svn.wordpress.org/trunk@27170 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-27 20:15:16 +00:00
Scott Taylor
cf1d899cc8
In media-editor.js
, use _.isUndefined()
when available.
...
See #26631 .
Built from https://develop.svn.wordpress.org/trunk@27317
git-svn-id: http://core.svn.wordpress.org/trunk@27169 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-27 20:11:14 +00:00
Andrew Ozz
d896fa2487
Upgrade Plupload to 2.1.1, props kovshenin, see #25663
...
Built from https://develop.svn.wordpress.org/trunk@27316
git-svn-id: http://core.svn.wordpress.org/trunk@27168 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-27 20:01:16 +00:00
Scott Taylor
baeecbe763
This comment was pasted and does not apply to specified code block.
...
See #26631 .
Built from https://develop.svn.wordpress.org/trunk@27315
git-svn-id: http://core.svn.wordpress.org/trunk@27167 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-27 19:51:14 +00:00
Scott Taylor
45e748e57e
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 .
Built from https://develop.svn.wordpress.org/trunk@27313
git-svn-id: http://core.svn.wordpress.org/trunk@27166 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-27 19:22:14 +00:00
Scott Taylor
f931929905
In the tracklist for playlist, fall back to title
if there is no caption
.
...
Props bassgang.
See #26631 .
Built from https://develop.svn.wordpress.org/trunk@27312
git-svn-id: http://core.svn.wordpress.org/trunk@27165 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-27 15:22:13 +00:00
Scott Taylor
7d57ca6c2c
Add some security hardening to passed playlist attributes.
...
Props xknown.
See #26631 .
Built from https://develop.svn.wordpress.org/trunk@27311
git-svn-id: http://core.svn.wordpress.org/trunk@27164 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-27 15:20:14 +00:00
Scott Taylor
abebb1fde2
Correct a misspelled property name in a media-views.js
annotation.
...
Props kovshenin.
See #26870 .
Built from https://develop.svn.wordpress.org/trunk@27309
git-svn-id: http://core.svn.wordpress.org/trunk@27162 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-27 03:07:14 +00:00
Scott Taylor
8a4ef32f7a
Populate playlist setting values with their default value if they don't exist while parsing shortcode attributes.
...
Props kovshenin.
See #26631 .
Built from https://develop.svn.wordpress.org/trunk@27308
git-svn-id: http://core.svn.wordpress.org/trunk@27161 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-27 02:55:13 +00:00
Dion Hulse
d55eb3901c
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
Built from https://develop.svn.wordpress.org/trunk@27307
git-svn-id: http://core.svn.wordpress.org/trunk@27160 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-27 02:33:14 +00:00
Andrew Nacin
1d06679518
Add a $default argument to get_query_var() and WP_Query::get(). fixes #16471 .
...
Built from https://develop.svn.wordpress.org/trunk@27304
git-svn-id: http://core.svn.wordpress.org/trunk@27157 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-26 23:58:14 +00:00
Andrew Nacin
edb9364df1
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 .
Built from https://develop.svn.wordpress.org/trunk@27303
git-svn-id: http://core.svn.wordpress.org/trunk@27156 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-26 22:27:15 +00:00
Andrew Nacin
e8819fc636
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 .
Built from https://develop.svn.wordpress.org/trunk@27302
git-svn-id: http://core.svn.wordpress.org/trunk@27155 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-26 22:20:31 +00:00
Andrew Nacin
d24a109288
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 .
Built from https://develop.svn.wordpress.org/trunk@27300
git-svn-id: http://core.svn.wordpress.org/trunk@27153 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-26 22:05:13 +00:00
Andrew Nacin
044ab93430
Add a filter to remove or rename page templates for a theme. This does not yet handle adding page templates. see #13265 .
...
Built from https://develop.svn.wordpress.org/trunk@27297
git-svn-id: http://core.svn.wordpress.org/trunk@27152 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-26 20:31:15 +00:00
Andrew Nacin
e41374d13d
Set the taxonomy property in the WP_Adjacent_Post class. fixes #26937 .
...
Built from https://develop.svn.wordpress.org/trunk@27296
git-svn-id: http://core.svn.wordpress.org/trunk@27151 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-26 18:46:14 +00:00
Andrew Nacin
076077383d
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 .
Built from https://develop.svn.wordpress.org/trunk@27294
git-svn-id: http://core.svn.wordpress.org/trunk@27150 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-26 18:44:14 +00:00
Drew Jaynes
22b4567550
Document the $taxonomy
property in WP_Adjacent_Post
.
...
See #26937 .
Built from https://develop.svn.wordpress.org/trunk@27293
git-svn-id: http://core.svn.wordpress.org/trunk@27149 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-26 18:21:13 +00:00
Drew Jaynes
c78763a761
Remove now-moot vanity spacing for WP_Adjacent_Post
property definitions.
...
See #26937 .
Built from https://develop.svn.wordpress.org/trunk@27292
git-svn-id: http://core.svn.wordpress.org/trunk@27148 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-26 18:18:14 +00:00
Drew Jaynes
cf4131f7ad
Add inline documentation for properties and other inline docs fixes for WP_Adjacent_Post
.
...
See #26937 .
Built from https://develop.svn.wordpress.org/trunk@27291
git-svn-id: http://core.svn.wordpress.org/trunk@27147 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-26 18:16:14 +00:00
Mark Jaquith
d30ab62e44
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.
Built from https://develop.svn.wordpress.org/trunk@27290
git-svn-id: http://core.svn.wordpress.org/trunk@27146 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-26 18:12:13 +00:00
Andrew Nacin
c4545fbbf4
Remove unnecessary quotes from urls in CSS.
...
props TobiasBg.
fixes #22476 .
Built from https://develop.svn.wordpress.org/trunk@27289
git-svn-id: http://core.svn.wordpress.org/trunk@27145 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-26 17:23:13 +00:00
Andrew Nacin
69bfee0aae
One more change. see #26937 .
...
Built from https://develop.svn.wordpress.org/trunk@27288
git-svn-id: http://core.svn.wordpress.org/trunk@27144 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-26 17:18:13 +00:00
Andrew Nacin
a0dab307b7
We shall call it WP_Adjacent_Post instead. see #26937 .
...
Built from https://develop.svn.wordpress.org/trunk@27287
git-svn-id: http://core.svn.wordpress.org/trunk@27143 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-26 17:17:13 +00:00
Andrew Nacin
5154c27f82
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 .
Built from https://develop.svn.wordpress.org/trunk@27286
git-svn-id: http://core.svn.wordpress.org/trunk@27142 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-26 17:12:14 +00:00
Andrew Nacin
56550b7c96
Make get_adjacent_post() wrap a new WP_Get_Adjacent_Post object that uses WP_Query.
...
Built from https://develop.svn.wordpress.org/trunk@27285
git-svn-id: http://core.svn.wordpress.org/trunk@27141 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-26 17:10:13 +00:00
Andrew Nacin
ad8c3f0f02
Use placeholders in strings in wp_sprintf_l() to ensure spaces are not lost in translation.
...
props andy.
fixes #26651 .
Built from https://develop.svn.wordpress.org/trunk@27284
git-svn-id: http://core.svn.wordpress.org/trunk@27140 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-26 16:50:15 +00:00
Andrew Nacin
1699153d26
Pass the comment object to the get_comment_date and get_comment_time.
...
props SergeyBiryukov.
fixes #19849 .
Built from https://develop.svn.wordpress.org/trunk@27283
git-svn-id: http://core.svn.wordpress.org/trunk@27139 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-26 16:41:14 +00:00
Andrew Nacin
6b4cf7e36e
Ensure disabled secondary buttons do not change background on hover or active.
...
props helen.
fixes #26785 .
Built from https://develop.svn.wordpress.org/trunk@27282
git-svn-id: http://core.svn.wordpress.org/trunk@27138 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-26 08:07:15 +00:00
Andrew Nacin
13e868ac55
Decrement update count bubbles as plugins/themes are updated, live.
...
props gcorne, mitchoyoshitaka.
fixes #17703 .
Built from https://develop.svn.wordpress.org/trunk@27280
git-svn-id: http://core.svn.wordpress.org/trunk@27136 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-26 06:55:14 +00:00
Andrew Nacin
4d9bf200d7
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 .
Built from https://develop.svn.wordpress.org/trunk@27279
git-svn-id: http://core.svn.wordpress.org/trunk@27135 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-26 04:54:14 +00:00
Andrew Nacin
cb52ddbf08
Add a constant to disable mysqli for testing purposes. see #21663 .
...
Built from https://develop.svn.wordpress.org/trunk@27278
git-svn-id: http://core.svn.wordpress.org/trunk@27134 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-26 04:20:14 +00:00
Andrew Nacin
4c9e7f81e1
wpdb: set dbh to null when the mysqli connection fails. see #21663 .
...
Built from https://develop.svn.wordpress.org/trunk@27277
git-svn-id: http://core.svn.wordpress.org/trunk@27133 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-26 04:15:18 +00:00
Andrew Ozz
511f12f793
When closing the various "edit" media modals, remove the related views elements from the DOM. Props gcorne, fixes #27204 .
...
Built from https://develop.svn.wordpress.org/trunk@27276
git-svn-id: http://core.svn.wordpress.org/trunk@27132 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-25 21:03:15 +00:00
Mark Jaquith
79fbaf2e4c
Fix a sometimes notice in wpmu_current_site()
...
props johnjamesjacoby. see #27003 .
Built from https://develop.svn.wordpress.org/trunk@27275
git-svn-id: http://core.svn.wordpress.org/trunk@27131 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-25 20:53:13 +00:00
Andrew Nacin
2d8e1ca5b0
Add exclude and include to wp_list_authors().
...
props patricknami.
fixes #9902 .
Built from https://develop.svn.wordpress.org/trunk@27274
git-svn-id: http://core.svn.wordpress.org/trunk@27130 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-25 20:11:13 +00:00
Andrew Nacin
ffb64a7503
Keep redirect_to when hitting the log out AYS.
...
props mitchoyoshitaka for initial patch.
fixes #17398 .
Built from https://develop.svn.wordpress.org/trunk@27272
git-svn-id: http://core.svn.wordpress.org/trunk@27128 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-25 20:02:14 +00:00
Andrew Nacin
1cb9788f1b
Update the Masonry JavaScript library to version 3.
...
The new script handle is 'masonry'. The old 'jquery-masonry' handle is the official shiv that sits on top of the v3 library. While v3 no longer depends on jQuery, a theme or plugin may have bee
n implicitly loading jQuery though Masonry, rather than additionally declaring it as a dependency for themselves. Thus, the shiv is separate.
Themes should switch to 'masonry' and declare jQuery as a dependency on their own if they need it. Upgrade guide: http://masonry.desandro.com/appendix.html#upgrading-from-v2 . imagesLoaded remai
ns included with Masonry here.
props shelob9.
fixes #25351 .
Built from https://develop.svn.wordpress.org/trunk@27271
git-svn-id: http://core.svn.wordpress.org/trunk@27127 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-25 19:53:15 +00:00
Andrew Ozz
65fac9e55a
Set wpActiveEditor to the id of the first instance on init, props kovshenin, fixes #27210 .
...
Built from https://develop.svn.wordpress.org/trunk@27270
git-svn-id: http://core.svn.wordpress.org/trunk@27126 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-25 19:31:14 +00:00
Scott Taylor
c4cd842c29
Make sure data.meta
always exists when rendering tracklists. Use $theme_width
when rendering media tag in playlist template instead of recalculating.
...
Props helen.
Built from https://develop.svn.wordpress.org/trunk@27269
git-svn-id: http://core.svn.wordpress.org/trunk@27125 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-25 19:30:14 +00:00
Andrew Nacin
74f2a32f52
Fixed mixed spaces and tabs. Also remove trailing comma. see #26631 .
...
Built from https://develop.svn.wordpress.org/trunk@27266
git-svn-id: http://core.svn.wordpress.org/trunk@27123 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-25 17:32:14 +00:00
Andrew Nacin
6dcd5cc69e
Fix undefined variable. see #16686 .
...
Built from https://develop.svn.wordpress.org/trunk@27265
git-svn-id: http://core.svn.wordpress.org/trunk@27122 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-25 17:29:13 +00:00
Drew Jaynes
cb8951b0b3
Remove all @package
and @subpackage
PHPDoc tags not at the file- or class-levels in core.
...
See #27200 .
Built from https://develop.svn.wordpress.org/trunk@27262
git-svn-id: http://core.svn.wordpress.org/trunk@27119 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-25 17:14:14 +00:00
Andrew Nacin
c102fd5a9d
Make the user arguments for get_edit_profile_url() and get_dashboard_url() optional, defaulting to the current user.
...
props garyc40.
fixes #16686 .
Built from https://develop.svn.wordpress.org/trunk@27260
git-svn-id: http://core.svn.wordpress.org/trunk@27117 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-25 17:08:13 +00:00
Andrew Nacin
237941babc
Allow current_time() to accept a date format string, adding to 'timestamp' and 'mysql'.
...
props danielbachhuber.
fixes #21653 .
Built from https://develop.svn.wordpress.org/trunk@27259
git-svn-id: http://core.svn.wordpress.org/trunk@27116 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-25 17:01:13 +00:00
Andrew Nacin
7387504854
Allow user_id to be an array of IDs in WP_Comment_Query.
...
props mordauk.
fixes #27064 .
Built from https://develop.svn.wordpress.org/trunk@27258
git-svn-id: http://core.svn.wordpress.org/trunk@27115 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-25 16:35:13 +00:00
Andrew Nacin
c51ce41c59
Use mysqli for WordPress development versions, regardless of PHP version, to increase testing footprint.
...
Allow the lack of ext/mysql to pass wp_check_php_mysql_versions().
see #21663 .
Built from https://develop.svn.wordpress.org/trunk@27257
git-svn-id: http://core.svn.wordpress.org/trunk@27114 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-25 15:53:13 +00:00