Commit Graph

25317 Commits

Author SHA1 Message Date
Scott Taylor 4a2ffa917c 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.



git-svn-id: https://develop.svn.wordpress.org/trunk@27533 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-14 12:19:40 +00:00
Andrew Ozz 83501070d5 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
git-svn-id: https://develop.svn.wordpress.org/trunk@27532 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-14 05:54:16 +00:00
Andrew Ozz a33829d1d0 Drag/drop upload: don't trigger on "local" dragging, hide the overlay on click. Props kovshenin, fixes #19845
git-svn-id: https://develop.svn.wordpress.org/trunk@27531 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-14 00:41:12 +00:00
Scott Taylor bb02b06ad4 Revert [27528] until Flash in Firefox behaves :(
See #27389.



git-svn-id: https://develop.svn.wordpress.org/trunk@27530 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-13 23:38:14 +00:00
Scott Taylor 163b0e2832 Version bump for TinyMCE stylesheet.
See #27389, [27528].



git-svn-id: https://develop.svn.wordpress.org/trunk@27529 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-13 23:15:04 +00:00
Scott Taylor 1c7d92ba50 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.



git-svn-id: https://develop.svn.wordpress.org/trunk@27528 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-13 23:09:06 +00:00
John Blackbourn 110e19a6a0 `figcaption` should not be treated as a block-level element by `wpautop()`. See #25646. Props oso96_2000.
git-svn-id: https://develop.svn.wordpress.org/trunk@27527 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-13 21:50:17 +00:00
John Blackbourn eaae9961ef Remove Qik from the oEmbed provider list as it's shutting down. Fixes #27302. Props JustinSainton.
git-svn-id: https://develop.svn.wordpress.org/trunk@27526 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-13 21:27:54 +00:00
Dominik Schilling (ocean90) a247452cbb Widget Customizer: Move style/script registration to script loader. Update Gruntfile.js.
fixes #27356.

git-svn-id: https://develop.svn.wordpress.org/trunk@27525 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-13 19:40:15 +00:00
Dominik Schilling (ocean90) 91fbdbbcc4 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@27524 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-13 18:37:24 +00:00
John Blackbourn 22eb8b34ef Improve `paginate_links()` performance by not calling `number_format_i18n()` unnecessarily. Fixes #25735 with tests. Props johnpbloch.
git-svn-id: https://develop.svn.wordpress.org/trunk@27523 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-13 17:38:51 +00:00
Scott Taylor 543bc6404a The Image Editor should apply changes to custom image sizes by checking `$_wp_additional_image_sizes` for `$size` in `wp_save_image()` before arbitrarily going to the options table.
Props Otto42, SergeyBiryukov.
Fixes #19889.



git-svn-id: https://develop.svn.wordpress.org/trunk@27522 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-13 04:17:36 +00:00
Scott Taylor dad0455ef9 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.



git-svn-id: https://develop.svn.wordpress.org/trunk@27521 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-13 04:03:06 +00:00
Scott Taylor dc73f008ce 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.



git-svn-id: https://develop.svn.wordpress.org/trunk@27520 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-13 03:54:38 +00:00
Scott Taylor d018152785 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.



git-svn-id: https://develop.svn.wordpress.org/trunk@27519 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-13 03:41:53 +00:00
Scott Taylor abf794f75c 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.



git-svn-id: https://develop.svn.wordpress.org/trunk@27518 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-13 03:18:42 +00:00
Helen Hou-Sandi 14615cd317 Ensure the correct model is selected when editing an image from gallery mode. props gcorne. fixes #27363.
git-svn-id: https://develop.svn.wordpress.org/trunk@27517 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-12 22:04:56 +00:00
Helen Hou-Sandi 5f936ab3dd Smooth out some display and race condition issues with the media modal loading spinner. props kadamwhite, gcorne. see #24859.
git-svn-id: https://develop.svn.wordpress.org/trunk@27516 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-12 21:06:30 +00:00
Andrew Nacin 395b466fb7 Revert [27203], restore JIT color scheme stylesheets. Restores [27111].
fixes #27175. see #20729.


git-svn-id: https://develop.svn.wordpress.org/trunk@27515 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-12 16:11:38 +00:00
Sergey Biryukov 96b39f3363 Avoid a notice in trackback_rdf() if user agent is not set.
props joostdevalk.
fixes #27374.

git-svn-id: https://develop.svn.wordpress.org/trunk@27514 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-12 12:53:49 +00:00
Andrew Ozz 8fc52817b9 TinyMCE modals: re-enable the Close button in charmap, fix arrows in listboxes, add and position dashicons to the menu (when visible), see #26952
git-svn-id: https://develop.svn.wordpress.org/trunk@27513 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-12 08:18:56 +00:00
Scott Taylor 61bc04deff Change string "Create Playlist" to "Create Audio Playlist." Open new tickets for individual issues.
Fixes #26631. 



git-svn-id: https://develop.svn.wordpress.org/trunk@27512 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-12 04:39:28 +00:00
Scott Taylor 36df368171 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.



git-svn-id: https://develop.svn.wordpress.org/trunk@27511 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-12 04:07:41 +00:00
Andrew Ozz 0336d4c265 wpLink: bring back the Cancel link, improve responsive styles, see #26952
git-svn-id: https://develop.svn.wordpress.org/trunk@27510 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-12 03:06:11 +00:00
Andrew Nacin 3a126c0452 Use correct variable in themes JS, fixes themes.php.
props SergeyBiryukov.
fixes #27360.


git-svn-id: https://develop.svn.wordpress.org/trunk@27509 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-12 00:28:26 +00:00
John Blackbourn f3629139a5 Correct the "View Post" button link when changing a post slug. Fixes #16477. Props aubreypwd.
git-svn-id: https://develop.svn.wordpress.org/trunk@27508 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-11 22:59:03 +00:00
John Blackbourn f45c06c09c Avoid searching HTML tags when searching plugins and themes. Fixes #27136. Props enej.
git-svn-id: https://develop.svn.wordpress.org/trunk@27507 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-11 22:23:51 +00:00
John Blackbourn 961899214e Present a normal admin page when bailing out of the Plugin Editor screen. Fixes #27067. Props SergeyBiryukov.
git-svn-id: https://develop.svn.wordpress.org/trunk@27506 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-11 22:13:05 +00:00
John Blackbourn b7fbb777e9 Add missing hyperlink styles to the login screen. Fixes #27245.
git-svn-id: https://develop.svn.wordpress.org/trunk@27505 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-11 20:50:55 +00:00
Sergey Biryukov 11f58c181f Avoid unintentional overriding of .spinner styles for HiDPI displays.
props mauryaratan for initial patch.
fixes #27269.

git-svn-id: https://develop.svn.wordpress.org/trunk@27504 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-11 19:41:22 +00:00
Sergey Biryukov 28dd458547 Avoid a warning in wpdb::db_connect(). before_needle parameter of strstr() was added in PHP 5.3.
props klihelp, pento.
fixes #27277.

git-svn-id: https://develop.svn.wordpress.org/trunk@27503 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-11 19:26:02 +00:00
Sergey Biryukov 1a769c0e11 Remove duplicate description of WP_List_Table class.
props bravokeyl.
fixes #27346.

git-svn-id: https://develop.svn.wordpress.org/trunk@27502 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-11 16:22:44 +00:00
Andrew Nacin 6aa60cf530 Assign correct variable.
props nendeb55.
fixes #27351. see #14424, [27373].


git-svn-id: https://develop.svn.wordpress.org/trunk@27501 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-11 13:23:14 +00:00
Andrew Nacin 1f5eec43cd A nice round commit number for a beta 1.
git-svn-id: https://develop.svn.wordpress.org/trunk@27500 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-11 07:53:15 +00:00
Andrew Nacin 96176b269d Bring the theme browsing experience from 3.8 to the theme installer. First pass.
props matveb with assists from me and gcorne.
see #27055.


git-svn-id: https://develop.svn.wordpress.org/trunk@27499 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-11 07:46:27 +00:00
Andrew Nacin a9b6b9339f JS linting for [27497].
see #21785.


git-svn-id: https://develop.svn.wordpress.org/trunk@27498 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-11 04:19:25 +00:00
Andrew Nacin 6f2544944f Add header image uploads with cropping to the customizer.
props mcsf, ehg, gcorne.
see #21785.


git-svn-id: https://develop.svn.wordpress.org/trunk@27497 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-11 04:12:17 +00:00
Andrew Ozz a186292eba wpLink: better structural and responsive styles, see #26952
git-svn-id: https://develop.svn.wordpress.org/trunk@27496 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-11 03:35:52 +00:00
Andrew Ozz a927982d0c wpLink: set max-height to 500px (like before) and vertically center the modal (except in IE8), see #26952
git-svn-id: https://develop.svn.wordpress.org/trunk@27495 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-11 02:35:04 +00:00
Andrew Ozz 7812a3fa77 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

git-svn-id: https://develop.svn.wordpress.org/trunk@27494 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-11 00:03:54 +00:00
Andrew Nacin 020ba8e15a Revert [27492]. see #27112.
git-svn-id: https://develop.svn.wordpress.org/trunk@27493 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-10 23:29:49 +00:00
Andrew Nacin f36e40de2c Add widget customizer tests missing from [27419]. see #27112.
git-svn-id: https://develop.svn.wordpress.org/trunk@27492 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-10 23:04:53 +00:00
Drew Jaynes (DrewAPicture) 6308a3c93d Fix docs for the `deactivate_$plugin` and `deactivated_plugin` hooks.
Props wpsmith for the original patch.
Fixes #27189


git-svn-id: https://develop.svn.wordpress.org/trunk@27491 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-10 21:33:54 +00:00
Scott Taylor b005551879 A string was missing its translation wrapper in the Underscore template for video details.
Props Jayjdk.
See #27016.



git-svn-id: https://develop.svn.wordpress.org/trunk@27490 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-10 00:18:12 +00:00
Scott Taylor 7770275918 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.



git-svn-id: https://develop.svn.wordpress.org/trunk@27489 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-10 00:14:42 +00:00
Scott Taylor c2cd0d6215 Add a filter and document it: `playlist_styles`. Allows users to roll their own playlist themes.
Props DrewAPicture for the docs.
See #26631.



git-svn-id: https://develop.svn.wordpress.org/trunk@27488 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-09 23:36:57 +00:00
Scott Taylor 975cf5574a Update the UI styles for Playlist Settings.
Props melchoyce for the design.
See #26631.



git-svn-id: https://develop.svn.wordpress.org/trunk@27487 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-09 23:18:06 +00:00
Scott Taylor c87fc83bf8 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.



git-svn-id: https://develop.svn.wordpress.org/trunk@27486 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-09 22:44:22 +00:00
Andrew Ozz bfbb7ee78a Adjust the height of the header and footer in the Find Posts modal on the Media Library screen, see #26952
git-svn-id: https://develop.svn.wordpress.org/trunk@27485 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-09 22:19:36 +00:00
Andrew Nacin 517de7ea31 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@27484 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-09 15:22:13 +00:00