Commit Graph

2756 Commits

Author SHA1 Message Date
Dominik Schilling (ocean90)
3046451bf7 Cleanup [27892].
git-svn-id: https://develop.svn.wordpress.org/trunk@27893 602fd350-edb4-49c9-b593-d223f7449a82
2014-04-01 15:29:34 +00:00
Dominik Schilling (ocean90)
11f6751d51 Widget Customizer: Use postMessage to highlight widgets in preview or sections/controls in Customizer.
fixes #27622.

git-svn-id: https://develop.svn.wordpress.org/trunk@27892 602fd350-edb4-49c9-b593-d223f7449a82
2014-04-01 15:25:56 +00:00
Dominik Schilling (ocean90)
bb7c7e06c0 Widget Customizer: Remove WidgetCustomizer.showFirstSidebarIfRequested().
It's currently unused and needs another iteration.

see #27290.

git-svn-id: https://develop.svn.wordpress.org/trunk@27891 602fd350-edb4-49c9-b593-d223f7449a82
2014-04-01 12:37:43 +00:00
Dominik Schilling (ocean90)
ab5b649243 Revert [27654] for strings.
props westonruter.
fixes #27485.

git-svn-id: https://develop.svn.wordpress.org/trunk@27890 602fd350-edb4-49c9-b593-d223f7449a82
2014-04-01 11:07:59 +00:00
Drew Jaynes (DrewAPicture)
33acf29a46 Clarify PHPDoc return description for media_handle_upload().
Props jdgrimes.
Fixes #27519.


git-svn-id: https://develop.svn.wordpress.org/trunk@27880 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-31 22:32:47 +00:00
Drew Jaynes (DrewAPicture)
1bd14badd5 Clarify inline documentation for the 'html5' case and PHPDoc return in add_theme_support().
Props jond3r.
Fixes #27278.


git-svn-id: https://develop.svn.wordpress.org/trunk@27879 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-31 22:20:01 +00:00
Andrew Nacin
239ac6e830 Forward pingback IP during pingback verification.
props tellyworth, nacin.
fixes #27613.


git-svn-id: https://develop.svn.wordpress.org/trunk@27872 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-31 20:42:41 +00:00
Scott Taylor
9771a5aa78 Re-instantiate the MediaElementPlayer instance when switching mime types in playlists.
Fixes #27608.



git-svn-id: https://develop.svn.wordpress.org/trunk@27871 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-31 15:34:23 +00:00
Drew Jaynes (DrewAPicture)
cfaf65d392 Inline documentation for hooks in wp-includes/widgets.php.
Props eliorivero and Nessworthy for the initial patches. Props kpdesign.
Fixes #27129.


git-svn-id: https://develop.svn.wordpress.org/trunk@27870 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-31 07:29:29 +00:00
Scott Taylor
d8d26a4f79 Cleanup up the display, escaping, and handling of ID3 data for media. Rename wp_get_relevant_id3_keys() to wp_get_attachment_id3_keys().
Props nacin.
See #27574.



git-svn-id: https://develop.svn.wordpress.org/trunk@27869 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-31 05:15:39 +00:00
Scott Taylor
882df9f94a Favor escaping over interpolation in Underscore templates for media. Translate some strings directly instead of passing via JS.
Props nacin.
See #27574.



git-svn-id: https://develop.svn.wordpress.org/trunk@27868 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-31 05:12:29 +00:00
Scott Taylor
bce67739ff Bump the MediaElement version in script-loader.php to 2.14.1.
See [27861].



git-svn-id: https://develop.svn.wordpress.org/trunk@27867 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-30 22:19:30 +00:00
Andrew Nacin
70beef6c31 Use correct formatting function. see [27864], see #27574.
git-svn-id: https://develop.svn.wordpress.org/trunk@27866 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-30 22:11:58 +00:00
Scott Taylor
35306513dc Using percentages for playlist font-sizing was ambitious, but fell prey to editor-style.css in the admin. We have switched to using pixels. The editor styles were also forcing MediaElement players to inherit font-family, which was undesirable. And while we're at it, remove the top and bottom border from the playlist's list of tracks, which adds a dash of lovely to the playlist's default styles.
Props nacin for the addition of `—` in the playlist track list.
Fixes #27600.



git-svn-id: https://develop.svn.wordpress.org/trunk@27865 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-30 22:11:46 +00:00
Andrew Nacin
877ffc087f Cleanups for audio/video metadata, see [27862].
see #27574.


git-svn-id: https://develop.svn.wordpress.org/trunk@27864 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-30 21:07:04 +00:00
Scott Taylor
2846655164 In wp_generate_attachment_metadata(), when an audio or video files contains upload-able image bits in its ID3 tags, only upload it if the image has not already been uploaded. Determine this by checking for a _cover_hash value in post meta that matches the md5 representation of the bits.
This prevents uploading an album of 10 songs and subsequently uploading 10 copies of the same album cover.

Props GregLone for the new filter/filter docs: `'attachment_thumbnail_args'`.
Fixes #27573.
 


git-svn-id: https://develop.svn.wordpress.org/trunk@27863 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-30 20:53:21 +00:00
Scott Taylor
149f36ed35 Metadata for audio and video files:
* Make attachment metadata for audio files editable by providing a metabox on the Edit Media page
* Standardize on using the attachment title everywhere
* Label the Caption and Description fields for audio and video appropriately
* Make the playlist Underscore templates more straightforward

See #27574.



git-svn-id: https://develop.svn.wordpress.org/trunk@27862 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-30 19:27:31 +00:00
Scott Taylor
a9d54abfed MEjs has been fixed upstream: 1a75559c9d
No more infinite loop.

This restores MediaElement to a clean build: `2.14.0`.

Fixes #27582. 
Thanks to jeremyfelt for tracking this down.



git-svn-id: https://develop.svn.wordpress.org/trunk@27861 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-30 17:50:08 +00:00
Dominik Schilling (ocean90)
c0373b288c Widget Customizer: Add a label to widget search.
props SergeyBiryukov.
fixes #27590.

git-svn-id: https://develop.svn.wordpress.org/trunk@27860 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-30 15:46:28 +00:00
Andrew Nacin
2e5586ee19 Only show test cookie warnings on submit as caching/proxies may intercept the test cookie for GET requests.
Introduce a new string for when headers are sent and link them to http://codex.wordpress.org/Cookies (new page).

props SergeyBiryukov.
fixes #27373.


git-svn-id: https://develop.svn.wordpress.org/trunk@27859 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-30 00:40:43 +00:00
Andrew Ozz
02a46f5368 Add class wp-core-ui to DFW and wpLink as it is required by buttons.css. Props avryl, see #27279
git-svn-id: https://develop.svn.wordpress.org/trunk@27858 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-30 00:36:12 +00:00
Andrew Ozz
d6e6560980 Editor:
- Use standard button styles for the Quicktags buttons.
- Better style for the TinyMCE buttons (hover/focus/active/disabled).
- Move the fullscreen (DFW) button to the right.
- Better style for the Visual/Text buttons in DFW.
Props avryl, see #27279

git-svn-id: https://develop.svn.wordpress.org/trunk@27857 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-29 23:57:13 +00:00
Dominik Schilling (ocean90)
d9a2370aab Customizer: Style "Cheatin’ uh?" message like wp_die().
props jackreichert.
fixes #27490

git-svn-id: https://develop.svn.wordpress.org/trunk@27856 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-29 23:18:54 +00:00
Dominik Schilling (ocean90)
64f5807b32 Adjust colors in wp_die() and install.css.
Missed in [26788] and [26837], see #25858.
fixes #27589.

git-svn-id: https://develop.svn.wordpress.org/trunk@27855 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-29 23:05:12 +00:00
Dominik Schilling (ocean90)
9fb6f9557b Widget Customizer: Remove strings from WP_Error returns and go with just IDs.
fixes #27419.


git-svn-id: https://develop.svn.wordpress.org/trunk@27854 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-29 21:43:39 +00:00
Scott Taylor
238459a604 Revert mediaelement-and-player.min.js to a usable build that doesn't cause an infinite loop. Still 2.14.0, minus the offending pull request: a7f67b7180
Reported upstream. `2.14.0` is necessary for playing `m4a` files properly. `2.14.0` with the offending pull request is unusable in Chrome.

See #27582.



git-svn-id: https://develop.svn.wordpress.org/trunk@27853 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-29 21:35:58 +00:00
Helen Hou-Sandi
edee5feaab Restore some CSS rules that are necessary for non-default schemes. see #18380.
git-svn-id: https://develop.svn.wordpress.org/trunk@27852 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-29 17:47:08 +00:00
Andrew Nacin
b29fe2764c Post beta3 version bump.
git-svn-id: https://develop.svn.wordpress.org/trunk@27851 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-29 11:39:25 +00:00
Andrew Nacin
39972a8887 3.9-beta3
git-svn-id: https://develop.svn.wordpress.org/trunk@27850 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-29 11:14:49 +00:00
Andrew Nacin
5f98beb862 Custom Headers: Simplify and consolidate the querying of custom headers for the customizer.
props mcsf.
see #21785.


git-svn-id: https://develop.svn.wordpress.org/trunk@27849 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-29 10:52:17 +00:00
Andrew Nacin
3b11bb9e36 Theme Installer: Avoid race condition during pagination.
props matveb.
see #27055.


git-svn-id: https://develop.svn.wordpress.org/trunk@27845 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-29 09:08:16 +00:00
Andrew Nacin
33f728034d Add braces to wptexturize() after [27839]. see #22692.
git-svn-id: https://develop.svn.wordpress.org/trunk@27844 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-29 08:59:38 +00:00
Andrew Nacin
aff33c3bca Theme Installer: Remove unused variables and undesired commas.
see #27055.


git-svn-id: https://develop.svn.wordpress.org/trunk@27843 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-29 08:52:30 +00:00
Andrew Nacin
1c3f9e542b Restyle the image editor so it looks way less hideous.
props avryl.
see #27544.


git-svn-id: https://develop.svn.wordpress.org/trunk@27842 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-29 08:50:57 +00:00
Andrew Nacin
73677963e3 Media Manager: Hide 'Create Playlist' menu items until the user has uploaded audio or video.
props gcorne.
fixes #27554.


git-svn-id: https://develop.svn.wordpress.org/trunk@27841 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-29 08:01:13 +00:00
Andrew Nacin
548a7d2b26 Fix drag-and-drop upload in distraction-free writing.
props kovshenin.
fixes #27438.


git-svn-id: https://develop.svn.wordpress.org/trunk@27840 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-29 07:53:47 +00:00
Andrew Nacin
f0bd2b8a91 Texturize: Massive performance improvements (~600% faster); better handling of nbsp, double, and weird spaces; 136 new unit tests.
big props miqrogroove.
fixes #22692.


git-svn-id: https://develop.svn.wordpress.org/trunk@27839 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-29 07:15:33 +00:00
Andrew Nacin
18c8198487 Add a value to the password checkbox when creating a new user so the toggle is remembered.
props chriseverson, SergeyBiryukov.
fixes #27006.


git-svn-id: https://develop.svn.wordpress.org/trunk@27838 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-29 06:22:46 +00:00
Andrew Nacin
05ea231402 Avoid infinite recursion in get_term_children() when a term is incorrectly a parent of itself.
props kovshenin.
fixes #27123.


git-svn-id: https://develop.svn.wordpress.org/trunk@27837 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-29 06:07:17 +00:00
Andrew Nacin
0ad35e169b Revert the conversion of adjacent post queries to WP_Query. Explanation on the ticket.
Reverts [27285], [27286], [27287], [27288], [27291], [27292], [27293], [27296], [27633], [27634], [27635], and [27692].

see #26937.


git-svn-id: https://develop.svn.wordpress.org/trunk@27836 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-29 06:02:01 +00:00
Andrew Nacin
9b0101e59d Rewrite: Use same delimiter in url_to_postid() we use in WP::parse_request().
props stevenkword.
fixes #23587. 


git-svn-id: https://develop.svn.wordpress.org/trunk@27835 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-29 05:17:57 +00:00
Andrew Nacin
84cf72160d Use correct column name. See [27152].
props barry.
fixes #25545.


git-svn-id: https://develop.svn.wordpress.org/trunk@27834 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-29 03:38:39 +00:00
Andrew Nacin
d167615ebf Restore the original z-index of the sticky admin menu, as first set in [26442].
The inline comment is now correct again. This z-index was changed in [26701], but those circumstances no longer apply after [27532].

props mordauk.
see #26442, #26952.
fixes #26567.


git-svn-id: https://develop.svn.wordpress.org/trunk@27833 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-29 03:29:43 +00:00
Helen Hou-Sandi
5a41c8a06c Correct cascade issues and remove some unused CSS for the admin menu. see #18380.
git-svn-id: https://develop.svn.wordpress.org/trunk@27832 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-29 02:46:04 +00:00
Andrew Ozz
02d1d894be Fix styling for mce-path (at the bottom of the editor), see #26952
git-svn-id: https://develop.svn.wordpress.org/trunk@27831 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-29 00:18:35 +00:00
Andrew Nacin
363c2b4810 Theme Installer: Caching and paginating of API requests.
props matveb.
see #27055.


git-svn-id: https://develop.svn.wordpress.org/trunk@27830 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-28 21:48:52 +00:00
Scott Taylor
d658762063 Updated 2.14.0 build from the project maintainer.
See #27570.



git-svn-id: https://develop.svn.wordpress.org/trunk@27829 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-28 21:43:58 +00:00
Drew Jaynes (DrewAPicture)
2fc82bee56 Inline documentation for hooks in wp-includes/class-wp-editor.php.
Props kpdesign for some cleanup.
Fixes #27523.


git-svn-id: https://develop.svn.wordpress.org/trunk@27828 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-28 21:32:39 +00:00
Drew Jaynes (DrewAPicture)
d5100269c8 Inline documentation for hooks in wp-includes/taxonomy.php.
Props kpdesign for some minor language tweaks.
Fixes #27505.


git-svn-id: https://develop.svn.wordpress.org/trunk@27827 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-28 21:28:23 +00:00
Drew Jaynes (DrewAPicture)
eb7173d906 Inline documentation for hooks in wp-includes/class.wp-styles.php.
Props lkwdwrd.
Fixes #27445.


git-svn-id: https://develop.svn.wordpress.org/trunk@27826 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-28 21:23:44 +00:00
Drew Jaynes (DrewAPicture)
57f3e4ca3c Inline documentation for hooks in wp-includes/pluggable.php.
Props kpdesign for some cleanup.
Fixes #26888.


git-svn-id: https://develop.svn.wordpress.org/trunk@27825 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-28 21:20:08 +00:00
Dominik Schilling (ocean90)
12ba5b0ff9 Widget Customizer: Remove some specific styles for Widget Visibility from Jetpack.
This hasn't worked well and is now fixed upstream.

props westonruter.
see #27112.


git-svn-id: https://develop.svn.wordpress.org/trunk@27824 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-28 20:43:29 +00:00
Drew Jaynes (DrewAPicture)
a2d810d024 The sidebar_admin_setup hook should only be documented once in wp-admin/widgets.php. All others are duplicates.
See #25374, #25501, #27531.


git-svn-id: https://develop.svn.wordpress.org/trunk@27823 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-28 19:46:26 +00:00
Andrew Nacin
5857c18dd8 Install: Allow an installation to go through with a custom user table with the username 'admin'.
This could be better, but this solves the regression caused by [25115].

fixes #27093, see #24078.


git-svn-id: https://develop.svn.wordpress.org/trunk@27822 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-28 18:59:52 +00:00
Helen Hou-Sandi
49c1734957 Allow the fullscreen editor's content area to also be responsive. props avryl. fixes #27569.
git-svn-id: https://develop.svn.wordpress.org/trunk@27821 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-28 17:37:49 +00:00
Sergey Biryukov
0116e778d9 Widget Customizer: Simplify conditions in setup_widget_addition_previews().
see #27534.

git-svn-id: https://develop.svn.wordpress.org/trunk@27820 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-28 17:08:05 +00:00
Dominik Schilling (ocean90)
814b798b0d Widget Customizer: Simplify nonces.
see #27534.

git-svn-id: https://develop.svn.wordpress.org/trunk@27819 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-28 15:34:17 +00:00
Dominik Schilling (ocean90)
891e6183ee Widget Customizer: Remove UPDATE_WIDGET_AJAX_ACTION and UPDATE_WIDGET_NONCE_POST_KEY constants.
see #27534.

git-svn-id: https://develop.svn.wordpress.org/trunk@27818 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-28 15:01:41 +00:00
Dominik Schilling (ocean90)
66f5f64352 MediaElement.js: Update version for [27811]. see #27570.
git-svn-id: https://develop.svn.wordpress.org/trunk@27817 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-28 14:10:44 +00:00
Dominik Schilling (ocean90)
2d4b606e14 Widget Customizer: Convert static WP_Customize_Widgets class into instantiated class and merge Options_Transaction into WP_Customize_Widgets.
see #27504.
props westonruter.


git-svn-id: https://develop.svn.wordpress.org/trunk@27816 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-28 14:06:10 +00:00
Dominik Schilling (ocean90)
76a167ac5f Introduce pre_update_option filter.
Filter is available in update_option() and allows to filter any option before its value is (maybe) serialized and updated.

see #27504.
props westonruter.


git-svn-id: https://develop.svn.wordpress.org/trunk@27815 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-28 13:56:44 +00:00
Dominik Schilling (ocean90)
cc102fe0ff Widget Customizer: Set hightlight color to blue. Same color as in [27741].
fixes #27358.

git-svn-id: https://develop.svn.wordpress.org/trunk@27814 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-28 13:32:53 +00:00
Scott Taylor
e94f08380e Return the default mime icon for playlist items that don't have a featured image in wp_prepare_attachment_for_js().
See [27640].



git-svn-id: https://develop.svn.wordpress.org/trunk@27813 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-28 12:49:48 +00:00
Scott Taylor
0e188eba96 When creating a new playlist, we don't know from the model what "type" it is right away (there is no longer a video-playlist shortcode) - we need to check the controller's library's prop for type when deciding what settings to display in the modal.
See #27535.



git-svn-id: https://develop.svn.wordpress.org/trunk@27812 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-28 12:36:41 +00:00
Scott Taylor
559cad0fb0 Bump to 2.14.0 - fixes issues related to m4a files.
Fixes #27570.



git-svn-id: https://develop.svn.wordpress.org/trunk@27811 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-28 12:34:05 +00:00
Drew Jaynes (DrewAPicture)
815ccdf8f3 Wow. One more time with the typos.
I can, in fact, spell 'instance'.

See #27566.


git-svn-id: https://develop.svn.wordpress.org/trunk@27810 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-28 05:53:42 +00:00
Drew Jaynes (DrewAPicture)
01e30d23b4 Better description and fixed typo for _WP_Editors::parse_settings().
See [27808]. See #27566.


git-svn-id: https://develop.svn.wordpress.org/trunk@27809 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-28 05:50:12 +00:00
Drew Jaynes (DrewAPicture)
f36a1ab9b5 Convert wp_editor() default arguments documentation to a hash notation in the _WP_Editors::parse_settings() PHPDoc.
See #27566.


git-svn-id: https://develop.svn.wordpress.org/trunk@27808 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-28 05:45:54 +00:00
Drew Jaynes (DrewAPicture)
01ecedbb0d Fix the wp_count_attachments() PHPDoc to reflect that it returns an object, not array.
See #25412.


git-svn-id: https://develop.svn.wordpress.org/trunk@27807 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-28 05:42:49 +00:00
Andrew Ozz
e50f30640e Make DFW usable on touch devices: change the toolbar to two rows and keep it and borders visible. See #26907
git-svn-id: https://develop.svn.wordpress.org/trunk@27806 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-28 04:39:04 +00:00
Helen Hou-Sandi
706b608000 Set baseline colors for the light playlist skin. props kwight. fixes #27562.
git-svn-id: https://develop.svn.wordpress.org/trunk@27805 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-28 03:37:08 +00:00
Helen Hou-Sandi
90d45acbf7 Bring keyboard accessibility to the theme install screen and theme action buttons. props jorbin. see #27521.
git-svn-id: https://develop.svn.wordpress.org/trunk@27804 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-28 03:15:30 +00:00
Andrew Nacin
09d8fe1b09 Shortlinks: Use the home URL for a page on front.
This will result in 'Get Shortlink' hiding by default, as it will match the permalink (also the home URL).

fixes #26871.


git-svn-id: https://develop.svn.wordpress.org/trunk@27802 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-28 02:58:53 +00:00
Andrew Nacin
98ac075d8b Always decode special characters for email subjects.
props tlovett1, jeremyfelt.
fixes #25346.


git-svn-id: https://develop.svn.wordpress.org/trunk@27801 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-28 02:43:04 +00:00
Andrew Nacin
65007189cf Galleries: Avoid doubling up clearing br elements.
props drozdz.
fixes #25537.


git-svn-id: https://develop.svn.wordpress.org/trunk@27800 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-28 02:40:47 +00:00
Andrew Nacin
d686c73525 Pass walker arguments to get_comment_link() so pagination works when wp_list_comments() is used outside the comment template.
props SergeyBiryukov.
fixes #27007.


git-svn-id: https://develop.svn.wordpress.org/trunk@27799 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-28 02:37:33 +00:00
Dominik Schilling (ocean90)
4d57b96fb2 Widget Customizer: Improve behavior of bigger widgets.
* Support widgets which are higher than browsers viewport.
* Use widgets width as max-width.
* Don't animate the width of wide widgets to make them visible, instead fade them in/out.
* Fix Chrome flickerings while updating wide widgets.

props adamsilverstein, westonruter, ocean90.
see #27348.

git-svn-id: https://develop.svn.wordpress.org/trunk@27798 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-27 23:12:25 +00:00
Andrew Ozz
bbe59d0487 Edit Image modal:
- Bring back some of the advanced settings.
- Make the layout two-column for wider screens, remove the sidebar, and shrink the modal a bit.
- The image reflects the size as inserted in the post as long as it doesn't overflow the column and is not too tall. Changing the size to another intermediate will also update the image "preview."
- Rename "Edit Image" to "Edit Original" to try and better communicate that editing the image will modify the media library item not just the image inserted into the post that is being edited.
(updates two PNGs from precommit)
Props gcorne, see #27366

git-svn-id: https://develop.svn.wordpress.org/trunk@27797 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-27 22:40:06 +00:00
Scott Taylor
c411ad4cba When labeling Show Tracklist for playlist settings, use Show Video List when the playlist is video.
Fixes #27535.



git-svn-id: https://develop.svn.wordpress.org/trunk@27796 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-27 21:09:39 +00:00
Scott Taylor
7b7e5305c7 In multi_resize() image editor methods, assert that null can only be passed for one of the arguments, not both. Add a lot more unit test assertions to ensure this.
Props pbearne, DH-Shredder.
Fixes #26823.



git-svn-id: https://develop.svn.wordpress.org/trunk@27794 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-27 20:39:08 +00:00
Scott Taylor
75ee98cb25 Remove tracknumbers from the UI, can still be overridden as a playlist shortcode attribute.
See #27535.



git-svn-id: https://develop.svn.wordpress.org/trunk@27793 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-27 20:26:24 +00:00
Helen Hou-Sandi
1959b1379b Affix the audio view toolbar to the bottom as opposed to the top of the view. Otherwise it's not accessible when the view is the first item in the content. Said views keep a newline underneath, so there's space for it to appear there instead. fixes #27548, see #27320.
git-svn-id: https://develop.svn.wordpress.org/trunk@27792 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-27 20:09:38 +00:00
Andrew Ozz
7494a5acc5 Set the default font family to inherit (Open Sans) in all TinyMCE modals, change the cursor to pointer when hovering over Quicktags buttons. Props avryl, see #27279
git-svn-id: https://develop.svn.wordpress.org/trunk@27791 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-27 19:18:45 +00:00
Dominik Schilling (ocean90)
615e820420 Add some missing CSS prefixes. props grunt autoprefixer:core.
git-svn-id: https://develop.svn.wordpress.org/trunk@27790 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-27 19:16:35 +00:00
Scott Taylor
8312fca652 Make sure Playlist states that are audio are marked as such with proper localized strings.
See #27554.


git-svn-id: https://develop.svn.wordpress.org/trunk@27789 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-27 18:36:03 +00:00
Scott Taylor
85de422f33 Move counting of attachments for audio/video to the backend, instead of using a reduce function in JS.
See #27554.



git-svn-id: https://develop.svn.wordpress.org/trunk@27788 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-27 18:15:09 +00:00
Andrew Nacin
c0fcc61290 Avoid JS errors when edit image is not available, such as outside of post editing.
props gcorne.
fixes #27551.


git-svn-id: https://develop.svn.wordpress.org/trunk@27787 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-27 18:14:05 +00:00
Andrew Nacin
c5717f0aa1 Remove the TinyMCE image toolbar when the image is deleted via the keyboard.
props gcorne.
fixes #27527.


git-svn-id: https://develop.svn.wordpress.org/trunk@27786 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-27 18:06:13 +00:00
Scott Taylor
9384ee1bf3 There is no more video-playlist shortcode. To use video, it is now [playlist type="video" ....]. Also deleting core playlist styles. The style attribute is still supported, defaulting to light. Our core style support was 4-5 CSS rules.
See #27552. Leaving open for comments and potential bugs.



git-svn-id: https://develop.svn.wordpress.org/trunk@27785 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-27 17:57:30 +00:00
Andrew Nacin
0098d5ab65 Color scheme support for the new theme installer UI.
props ryelle.
fixes #27522.


git-svn-id: https://develop.svn.wordpress.org/trunk@27784 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-27 17:55:34 +00:00
Andrew Nacin
ccf21196cb Remove unused JS variables after [27770]. see #27013.
git-svn-id: https://develop.svn.wordpress.org/trunk@27783 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-27 17:31:00 +00:00
Andrew Nacin
9e29fa6ffd Add post_parent to the private query vars list. Fixes detached media queries.
props SergeyBiryukov.
fixes #27532.


git-svn-id: https://develop.svn.wordpress.org/trunk@27782 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-27 16:36:40 +00:00
Andrew Nacin
1c19360c54 Preserve comments in Masonry shim. see [27780], see #27510.
git-svn-id: https://develop.svn.wordpress.org/trunk@27781 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-27 07:32:43 +00:00
Andrew Nacin
f89de2538c Update minified jQuery Masonry shim. see [27779], see #27510.
git-svn-id: https://develop.svn.wordpress.org/trunk@27780 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-27 07:31:32 +00:00
Andrew Nacin
ca8351919e Update Masonry v2/v3 shim from upstream.
props kovshenin.
see #27510.


git-svn-id: https://develop.svn.wordpress.org/trunk@27779 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-27 07:24:04 +00:00
Andrew Nacin
f4089c7a58 TinyMCE: Differentiate active and hover states for toolbar buttons like the kitchen sink.
This restores 3.8 behavior.

see #27279.


git-svn-id: https://develop.svn.wordpress.org/trunk@27778 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-27 07:18:18 +00:00
Helen Hou-Sandi
5db0c45614 MCE view controls:
* Move controls back over to the left, as they were before. Wide images and muscle memory have been causing frustration.
* Improve the experience and unify the UI of media view controls. Audio and video views now require an initial click to select before further interaction.
* CSS clean up and organization.

fixes #27320, #27542.


git-svn-id: https://develop.svn.wordpress.org/trunk@27777 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-27 07:01:38 +00:00
Andrew Nacin
ab787f2f57 Proper IDs for the custom fields box.
props SergeyBiryukov.
fixes #14376.


git-svn-id: https://develop.svn.wordpress.org/trunk@27776 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-27 06:55:51 +00:00
nacin
06603dc6cc Fix flyout menus on most mobile devices.
props ocean90.
fixes #26482.


git-svn-id: https://develop.svn.wordpress.org/trunk@27775 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-27 06:29:03 +00:00
Andrew Nacin
bc0bb40e5b Comments: Update border color and help text.
props bcworkz.
fixes #26967.


git-svn-id: https://develop.svn.wordpress.org/trunk@27774 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-27 05:07:04 +00:00
Andrew Nacin
03257493c9 Editor: Fix line height on 'Drop files to upload'.
props Nao.
fixes #27541.


git-svn-id: https://develop.svn.wordpress.org/trunk@27773 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-27 04:07:33 +00:00
Helen Hou-Sandi
a4588b42a0 Make sure inputs in Press This have a type so they are styled appropriately. see #18380.
git-svn-id: https://develop.svn.wordpress.org/trunk@27772 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-27 02:38:48 +00:00
Helen Hou-Sandi
d8311a0296 Match TinyMCE modal form element focus styling to the admin. props paulwilde. see #27173.
git-svn-id: https://develop.svn.wordpress.org/trunk@27771 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-27 02:35:43 +00:00
Andrew Ozz
1c0d6827f5 Remove containment of scrolling inside the editor for now. See #27013
git-svn-id: https://develop.svn.wordpress.org/trunk@27770 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-27 02:34:25 +00:00
Andrew Nacin
50d900aa5f Fix docs for hooks in deactivate_plugins() and activate_plugin(). see #27189, #27188.
git-svn-id: https://develop.svn.wordpress.org/trunk@27769 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-27 02:01:29 +00:00
Andrew Nacin
a4844038e2 Revert [27738] as the patient exhibited side effects. see #23862.
git-svn-id: https://develop.svn.wordpress.org/trunk@27768 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-27 01:30:34 +00:00
Scott Taylor
115f291221 Use wp_parse_id_list() when parsing exclude_tree in get_pages(). Add unit tests to ensure a URL string, array with string as value, and array with array as value for exclude_tree can be used to specify multiple IDs.
Props cgaffga, roothorick, hakre, tbrams for patches across the years.
Fixes #9153.



git-svn-id: https://develop.svn.wordpress.org/trunk@27767 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-27 01:17:41 +00:00
Andrew Ozz
42055c8c93 Add aria-label to the DFW buttons, props joedolson, fixes #26555
git-svn-id: https://develop.svn.wordpress.org/trunk@27766 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-27 01:13:44 +00:00
Helen Hou-Sandi
efec2a916c Better, more consistent styling for plugin details Thickbox and TinyMCE help.
props avryl. fixes #26952.


git-svn-id: https://develop.svn.wordpress.org/trunk@27765 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-27 00:07:05 +00:00
Andrew Ozz
a8fe109dcd Add the 'attachment_' prefix to caption IDs after editing, see #24409
git-svn-id: https://develop.svn.wordpress.org/trunk@27764 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-27 00:06:50 +00:00
Lance Willett
29d54bcb78 Twenty Thirteen and Fourteen: implement HTML5 markup for galleries (see #26697) and captions (see #26642). Props obenland, closes #27502.
git-svn-id: https://develop.svn.wordpress.org/trunk@27763 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-27 00:05:22 +00:00
Scott Taylor
3acb8fcdf6 The bulk editor and post format meta box should use the same checks for available post formats.
Props eightface.
Fixes #27187.



git-svn-id: https://develop.svn.wordpress.org/trunk@27762 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-27 00:05:14 +00:00
Andrew Nacin
28663b08e8 Remove select and input from wpautop()'s HTML blocks list.
props rachelbaker, DH-Shredder.
fixes #22230.


git-svn-id: https://develop.svn.wordpress.org/trunk@27761 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-27 00:00:17 +00:00
Andrew Nacin
814de88f7a Themes screen: Use a normal error for WP_Theme errors.
see #27235 for trunk.


git-svn-id: https://develop.svn.wordpress.org/trunk@27760 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-26 23:36:42 +00:00
Scott Taylor
4b21dcc825 Fix double avatars and JS errors when spamming/trashing comments.
Props avryl, SergeyBiryukov.
Fixes #27329.
 


git-svn-id: https://develop.svn.wordpress.org/trunk@27759 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-26 23:13:43 +00:00
Andrew Nacin
6b9eccd1f0 Add an .html4-captions class to the editor when HTML5 captions are not supported, for theme use.
see #26642.


git-svn-id: https://develop.svn.wordpress.org/trunk@27758 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-26 23:12:48 +00:00
Dominik Schilling (ocean90)
c6c9eae522 Customizer: Improve accessibility.
Prevent the form only from saving when enter is pressed on a select element or an input, which hasn't the button type.

props westonruter, ocean90.
fixes #26633.

git-svn-id: https://develop.svn.wordpress.org/trunk@27757 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-26 22:55:46 +00:00
Andrew Nacin
c55cdfa85d Properly render the image details modal when the image references an invalid attachment.
props gcorne.
fixes #27537.


git-svn-id: https://develop.svn.wordpress.org/trunk@27756 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-26 22:55:10 +00:00
Scott Taylor
09c4928cf7 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.



git-svn-id: https://develop.svn.wordpress.org/trunk@27755 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-26 22:46:16 +00:00
Andrew Nacin
8aeeaf976a Fix excluded_terms passed to get_adjacent_posts_rel_link().
props adelval.
fixes #22406.


git-svn-id: https://develop.svn.wordpress.org/trunk@27754 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-26 22:31:04 +00:00
Dominik Schilling (ocean90)
723caec67c Widget Customizer: First pass for inline docs.
props DrewAPicture.
see #27534.

git-svn-id: https://develop.svn.wordpress.org/trunk@27753 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-26 22:28:49 +00:00
Helen Hou-Sandi
8380c63b84 Post lock dialog should not appear above the auth check login prompt.
props lkwdwrd. fixes #27263.


git-svn-id: https://develop.svn.wordpress.org/trunk@27752 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-26 22:23:52 +00:00
Scott Taylor
61228a9c0f Don't display the "Show Artist Name in Tracklist" input in settings for Video Playlists.
See #27535.



git-svn-id: https://develop.svn.wordpress.org/trunk@27751 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-26 22:11:06 +00:00
Scott Taylor
6a7038062f jshint fixes for [27734].
git-svn-id: https://develop.svn.wordpress.org/trunk@27750 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-26 21:40:56 +00:00
Helen Hou-Sandi
3adce93956 Ensure active tabs have a background color to avoid any awkward bleed-through in case of overlap. props TobiasBg. fixes #27116.
git-svn-id: https://develop.svn.wordpress.org/trunk@27749 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-26 20:56:10 +00:00
Andrew Nacin
aeda501de1 Merge some theme update strings.
props pavelevap, yoavf.
fixes #25083.


git-svn-id: https://develop.svn.wordpress.org/trunk@27748 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-26 20:07:10 +00:00
Andrew Nacin
78b05bc236 Avoid JS errors before the commentReply script loads. Let's make this unobtrusive soon.
props aubreypwd.
fixes #24741.


git-svn-id: https://develop.svn.wordpress.org/trunk@27747 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-26 18:52:31 +00:00
Andrew Nacin
36496a3877 Revert [27166].
We should not be accounting for improper assignment of WP_Query properties.

fixes #26321.


git-svn-id: https://develop.svn.wordpress.org/trunk@27746 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-26 18:42:41 +00:00
Andrew Nacin
79ff680b93 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@27745 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-26 18:21:45 +00:00
Andrew Nacin
ed0b146180 Themes screens: Bump to 20 items per page so it fills a high resolution display. see #26968.
git-svn-id: https://develop.svn.wordpress.org/trunk@27744 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-26 17:45:28 +00:00
Andrew Nacin
cce32aa627 Fix LTR field handling:
* Restore .ltr class lost in the conversion to RTL as a build process.
 * Make email and url inputs always LTR.
 * Set an email field on user-edit to be LTR.

props MikeHansenMe, yoavf for initial patches.
fixes #26824.


git-svn-id: https://develop.svn.wordpress.org/trunk@27743 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-26 17:11:47 +00:00
Scott Taylor
befc57bc7c 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.



git-svn-id: https://develop.svn.wordpress.org/trunk@27742 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-26 16:50:52 +00:00
Helen Hou-Sandi
5af1c7497d Better focus styles for form elements in the admin. These are purposefully not keyed to admin color schemes, as different colors could communicate a state like an error as opposed to focus. props celloexpressions. fixes #27173.
git-svn-id: https://develop.svn.wordpress.org/trunk@27741 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-26 16:05:34 +00:00
Andrew Nacin
d712de8d2f Don't clip post titles in the dashboard activity widget as it hides direct links to comments.
props SergeyBiryukov.
fixes #27474.


git-svn-id: https://develop.svn.wordpress.org/trunk@27740 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-26 15:04:54 +00:00
Andrew Nacin
396404cd9b Inline documentation for hooks in wp-includes/kses.php.
props siobhyb, DrewAPicture.
fixes #25800.


git-svn-id: https://develop.svn.wordpress.org/trunk@27739 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-26 14:56:04 +00:00
Andrew Nacin
0dea9b049f WP class: Remove duplication of the post_type query var, also specified as a public QV.
props prettyboymp.
fixes #23862.


git-svn-id: https://develop.svn.wordpress.org/trunk@27738 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-26 14:44:59 +00:00
Andrew Nacin
c4b15e91bf Upgrader skins: Strip tags before displaying error data.
fixes #25394.


git-svn-id: https://develop.svn.wordpress.org/trunk@27737 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-26 14:38:39 +00:00
Andrew Nacin
3843983ffa Ensure proper slashing of the password on install.
This isn't the ideal fix, but it makes things work for now.

props nofearinc.
fixes #26573.


git-svn-id: https://develop.svn.wordpress.org/trunk@27736 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-26 14:30:26 +00:00
Scott Taylor
4a58d1a91b 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.



git-svn-id: https://develop.svn.wordpress.org/trunk@27735 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-26 12:44:42 +00:00
Scott Taylor
5745c4ab5b 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.



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



git-svn-id: https://develop.svn.wordpress.org/trunk@27733 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-26 12:10:21 +00:00
Drew Jaynes (DrewAPicture)
653e7f4be4 Inline documentation for hooks in wp-includes/script-loader.php.
Fixes #27520.


git-svn-id: https://develop.svn.wordpress.org/trunk@27732 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-26 05:51:45 +00:00
Drew Jaynes (DrewAPicture)
b66192abce Inline documentation for hooks in wp-includes/class.wp-scripts.php.
Props kpdesign for a wording switcheroo.
Fixes #27518.


git-svn-id: https://develop.svn.wordpress.org/trunk@27731 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-26 05:47:16 +00:00
Drew Jaynes (DrewAPicture)
e111f0a5ec Inline documentation for hooks in wp-includes/class-wp-xmlrpc-server.php.
Props kpdesign and DrewAPicture.
Fixes #27506.


git-svn-id: https://develop.svn.wordpress.org/trunk@27730 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-26 05:43:05 +00:00
Andrew Ozz
2dcbd7d3ca 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

git-svn-id: https://develop.svn.wordpress.org/trunk@27729 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-26 02:07:23 +00:00
Andrew Ozz
f2c1fcbb65 Autosave: don't create the temporary permalink if the title field had focus (the user was typing a title) at the time of the last autosave. Fixes #27503
git-svn-id: https://develop.svn.wordpress.org/trunk@27728 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-25 22:21:24 +00:00
Helen Hou-Sandi
8c47b1e188 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.
git-svn-id: https://develop.svn.wordpress.org/trunk@27727 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-25 21:23:00 +00:00
Helen Hou-Sandi
ccc5f363c0 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.
git-svn-id: https://develop.svn.wordpress.org/trunk@27726 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-25 21:09:34 +00:00
Andrew Nacin
101863ea1d Network Admin: Case-insensitive comparisons for the network-site comparison in the bootstrap.
props jeremyfelt.
fixes #17168.


git-svn-id: https://develop.svn.wordpress.org/trunk@27725 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-25 21:06:26 +00:00
Andrew Nacin
51847e0c73 Multisite: Lowercase REQUEST_URI when matching paths.
props markjaquith, jeremyfelt.
fixes #26403.


git-svn-id: https://develop.svn.wordpress.org/trunk@27724 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-25 21:04:23 +00:00
Drew Jaynes (DrewAPicture)
9215e9f5ab Fix a typo in the deleted_{$meta_type}_meta hook description.
Props aliso.
Fixes #25826.


git-svn-id: https://develop.svn.wordpress.org/trunk@27723 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-25 20:33:21 +00:00
Andrew Nacin
80fcbd5cf7 Use dashicons in header images in the customizer.
props mcsf.
see #21785.


git-svn-id: https://develop.svn.wordpress.org/trunk@27722 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-25 19:50:19 +00:00
Scott Taylor
815adc833a Popular tags' edit links should respect the current post type. Adds unit test.
Props mordauk, fahmiadib.
Fixes #25566.



git-svn-id: https://develop.svn.wordpress.org/trunk@27720 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-25 18:39:26 +00:00
Andrew Nacin
fbb2e1dc89 Transients: Allow a non-expiring transient to be updated with an expiry.
props shahpranaf, sandyr.
fixes #22807.


git-svn-id: https://develop.svn.wordpress.org/trunk@27719 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-25 18:22:49 +00:00
Andrew Nacin
89d81da181 Ensure the $path is trailing-slashed in domain_exists().
props ejdanderson, ericmann.
fixes #18209.


git-svn-id: https://develop.svn.wordpress.org/trunk@27717 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-25 17:31:37 +00:00
Andrew Nacin
5a60d9dc24 Theme compat: Move <head profile> to <link>.
props spmlucas.
fixes #24523.


git-svn-id: https://develop.svn.wordpress.org/trunk@27716 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-25 17:21:45 +00:00
Andrew Nacin
b2ad4105e3 Network Admin: Fix pagination on site-themes and site-users.
props kawauso, jeremyfelt.
fixes #17545.


git-svn-id: https://develop.svn.wordpress.org/trunk@27715 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-25 16:56:45 +00:00
Andrew Nacin
17c48086fb 3.9-beta2-27714
git-svn-id: https://develop.svn.wordpress.org/trunk@27714 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-25 16:48:20 +00:00
Andrew Nacin
21b0ca8462 Back compat for overriding window.autosave.
props azaozz.
fixes #25272.


git-svn-id: https://develop.svn.wordpress.org/trunk@27713 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-25 16:46:22 +00:00
Andrew Nacin
fbe0b3e5ac Don't allow the image editor thumbnail to be dragged. see #21811.
git-svn-id: https://develop.svn.wordpress.org/trunk@27712 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-25 16:20:50 +00:00
Andrew Nacin
0fccb7b64d Restore the update message in the dashboard, removed in 3.8.
props obenland.
fixes #26664.


git-svn-id: https://develop.svn.wordpress.org/trunk@27711 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-25 14:35:23 +00:00
Andrew Nacin
c9531d6d67 Encode spaces in get_template_directory_uri() and get_stylesheet_directory_uri().
props SergeyBiryukov.
fixes #21969.


git-svn-id: https://develop.svn.wordpress.org/trunk@27710 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-25 13:06:21 +00:00
Andrew Nacin
87bfc847b1 Gracefully fail in wp_generate_tag_cloud() when emptiness is returned from the tag_cloud_sort filter.
props SergeyBiryukov.
fixes #27413.


git-svn-id: https://develop.svn.wordpress.org/trunk@27709 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-25 12:59:17 +00:00
Andrew Nacin
de653fe7ab Clarify the return value of wp_generate_tag_cloud().
props SergeyBiryukov, DrewAPicture.
fixes #27487.


git-svn-id: https://develop.svn.wordpress.org/trunk@27708 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-25 12:55:11 +00:00
Andrew Nacin
89f16d1887 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@27707 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-25 12:52:48 +00:00
Andrew Nacin
3e28e2fae8 Multisite: Don't set the $super_admins global in grant_super_admin(), revoke_super_admin().
Adds tests and docs.

props jdgrimes.
see #27205.


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

git-svn-id: https://develop.svn.wordpress.org/trunk@27705 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-25 12:04:36 +00:00
Andrew Nacin
b48db6834f Custom backgrounds: Always cause a preview in the customizer.
Omitted from [27703].

props obenland.
see #22030.


git-svn-id: https://develop.svn.wordpress.org/trunk@27704 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-25 12:00:01 +00:00
Andrew Nacin
5653356188 Custom backgrounds: Do not print the default background color when it has been saved to the DB.
props obenland.
fixes #22030.


git-svn-id: https://develop.svn.wordpress.org/trunk@27703 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-25 11:52:56 +00:00
Dominik Schilling (ocean90)
2e1f98d2a0 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@27702 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-25 11:47:27 +00:00
Dominik Schilling (ocean90)
e54fff3bb1 Widget Customizer: Fix shift+click issue in Firefox to open a widget.
props westonruter.
see #27358.

git-svn-id: https://develop.svn.wordpress.org/trunk@27701 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-25 11:22:13 +00:00
Drew Jaynes (DrewAPicture)
9c740b8dd5 Inline documentation for hooks in wp-includes/nav-menu.php.
Props dustyf, kpdesign.
Fixes #27367.


git-svn-id: https://develop.svn.wordpress.org/trunk@27700 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-25 09:03:02 +00:00
Drew Jaynes (DrewAPicture)
16feaee19a Inline documentation for hooks in wp-includes/revision.php.
Props adamsilverstein, DrewAPicture.
Fixes #26979.


git-svn-id: https://develop.svn.wordpress.org/trunk@27699 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-25 08:59:55 +00:00
Drew Jaynes (DrewAPicture)
52a57b9f43 Inline documentation for hooks in wp-includes/meta.php.
Props raamdev and kpdesign.
Fixes #25826.


git-svn-id: https://develop.svn.wordpress.org/trunk@27698 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-25 08:55:44 +00:00
Drew Jaynes (DrewAPicture)
5e1914e748 Inline documentation for hooks in wp-includes/default-widgets.php.
Props janw.oostendorp and kpdesign.
Fixes #25638.


git-svn-id: https://develop.svn.wordpress.org/trunk@27697 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-25 08:52:22 +00:00
Drew Jaynes (DrewAPicture)
7fbfe22546 Fix typo from [27695]. See #26924.
git-svn-id: https://develop.svn.wordpress.org/trunk@27696 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-25 08:06:38 +00:00
Drew Jaynes (DrewAPicture)
0e7a34444d 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@27695 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-25 08:04:44 +00:00
Andrew Ozz
a00d98a8c2 TinyMCE: bring back removal of the size-* class when the user soft-resizes an image, see #24409
git-svn-id: https://develop.svn.wordpress.org/trunk@27694 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-25 00:15:37 +00:00
Scott Taylor
98921c5ca0 Let us pass jshint:core.
git-svn-id: https://develop.svn.wordpress.org/trunk@27693 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-24 23:01:15 +00:00
Andrew Nacin
05f0bcabec Use the current post's post type when determining post adjacency.
props ethitter.
fixes #26937.


git-svn-id: https://develop.svn.wordpress.org/trunk@27692 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-24 21:29:14 +00:00
Andrew Nacin
4983a8b8d0 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@27691 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-24 21:07:10 +00:00
Scott Taylor
9cd40edebf In wp_create_post_autosave(), intersect the $new_autosave's keys with the keys from _wp_post_revision_fields() to ensure that all expected fields are present.
Props kovshenin.
Fixes #25416.



git-svn-id: https://develop.svn.wordpress.org/trunk@27690 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-24 20:31:51 +00:00
Scott Taylor
82ba1702df 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.



git-svn-id: https://develop.svn.wordpress.org/trunk@27689 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-24 19:56:54 +00:00
Andrew Nacin
afde656058 Customizer header images: Fix randomizing headers.
props mcsf.
see #21785.


git-svn-id: https://develop.svn.wordpress.org/trunk@27688 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-24 19:15:32 +00:00
Andrew Nacin
d9ab8333c8 Media manager: Avoid a blank modal when an invalid image size class is set on the image.
props gcorne.
fixes #24409.


git-svn-id: https://develop.svn.wordpress.org/trunk@27687 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-24 19:00:15 +00:00
Scott Taylor
710f11f2df 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.



git-svn-id: https://develop.svn.wordpress.org/trunk@27686 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-24 18:54:38 +00:00
Scott Taylor
2583c954b9 Revert [27184] until WP_Query is patched to apply order to each space-delimited orderby value properly.
See #26042.



git-svn-id: https://develop.svn.wordpress.org/trunk@27683 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-24 14:45:44 +00:00
Scott Taylor
54bc81e04f Do not use the alternative if/elseif/else syntax in prepend_attachment() introduced in [27622], as per kovshenin.
Fixes #27243.



git-svn-id: https://develop.svn.wordpress.org/trunk@27682 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-24 14:38:31 +00:00
Sergey Biryukov
f966183e51 Fix typo in a comment. see #25663.
git-svn-id: https://develop.svn.wordpress.org/trunk@27681 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-24 09:08:36 +00:00
Andrew Nacin
9b56f72fb1 Ensure Thickbox loading spinner is properly sized for HiDPI displays.
props paulwilde.
see #26952.


git-svn-id: https://develop.svn.wordpress.org/trunk@27678 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-24 03:45:08 +00:00
Andrew Nacin
401aa27073 Plugin Installer: Disable 'Latest Version Installed' buttons.
props paulwilde.
see #26952.


git-svn-id: https://develop.svn.wordpress.org/trunk@27677 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-24 03:40:28 +00:00
Drew Jaynes (DrewAPicture)
73fe2abadd Inline documentation for hooks in wp-includes/post-template.php.
Props Toru and kpdesign.
Fixes #25621.


git-svn-id: https://develop.svn.wordpress.org/trunk@27676 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-24 03:36:36 +00:00
Andrew Nacin
48391a7444 Use correct variable. see [27373].
props TobiasBg.
fixes #14424.


git-svn-id: https://develop.svn.wordpress.org/trunk@27675 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-24 03:24:33 +00:00
Drew Jaynes (DrewAPicture)
0be6f6072a Inline documentation for hooks in wp-admin/includes/taxonomy.php.
Props kpdesign for the initial patch.
Fixes #27433.


git-svn-id: https://develop.svn.wordpress.org/trunk@27674 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-24 03:13:06 +00:00
Drew Jaynes (DrewAPicture)
7062f3c75a Inline documentation for wp-admin/includes/class-wp-upgrader.php.
Props kpdesign for some minor cleanup.
Fixes #27436.


git-svn-id: https://develop.svn.wordpress.org/trunk@27673 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-24 02:59:36 +00:00
Drew Jaynes (DrewAPicture)
af0f9a5e00 Inline documentation for hooks in wp-admin/includes/file.php.
Fixes #27429.


git-svn-id: https://develop.svn.wordpress.org/trunk@27672 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-24 02:44:17 +00:00
Drew Jaynes (DrewAPicture)
99c2775c0f Remove some debug cruft accidentally committed in [27670].
See #27430.


git-svn-id: https://develop.svn.wordpress.org/trunk@27671 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-24 02:37:05 +00:00
Drew Jaynes (DrewAPicture)
ac9e81e0f0 Inline documentation for hooks in wp-admin/includes/menu.php.
Also fixes syntax for a few unrelated multi-line comments in the file.

Props kpdesign for some minor cleanup.
Fixes #27430.


git-svn-id: https://develop.svn.wordpress.org/trunk@27670 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-24 02:34:14 +00:00
Drew Jaynes (DrewAPicture)
4d7ca61c09 Inline documentation for hooks in wp-admin/includes/dashboard.php.
Props mauryaratan. Props kpdesign for some minor cleanup.
Fixes #25752.


git-svn-id: https://develop.svn.wordpress.org/trunk@27669 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-24 02:20:33 +00:00
Andrew Nacin
71917873d4 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@27668 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-24 02:04:56 +00:00
Drew Jaynes (DrewAPicture)
c7080c0a6b Inline documentation for hooks in wp-admin/includes/post.php.
Also moves the primary PHPDoc for the `edit_posts_per_page` hook to wp-admin/includes/post.php.

Props kpdesign for some cleanup.
Fixes #27431.


git-svn-id: https://develop.svn.wordpress.org/trunk@27667 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-24 01:48:40 +00:00
Drew Jaynes (DrewAPicture)
7002a26178 Inline documentation for hooks in wp-includes/category-template.php.
Props kpdesign for the cleanup.
Fixes #27432.


git-svn-id: https://develop.svn.wordpress.org/trunk@27666 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-24 01:34:46 +00:00
Andrew Nacin
06a02bc455 Use wp_cache_add() instead of wp_cache_set() when we don't want an unconditional set.
props jeremyfelt.
see #27003.


git-svn-id: https://develop.svn.wordpress.org/trunk@27665 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-24 01:02:06 +00:00
Andrew Nacin
9c520a5412 Multisite load: Cache the main site lookup query.
props jeremyfelt.
see #27003.


git-svn-id: https://develop.svn.wordpress.org/trunk@27664 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-24 01:00:17 +00:00
Andrew Nacin
903c86d927 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@27663 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-24 00:13:48 +00:00
Andrew Ozz
263d9c7f33 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@27662 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-23 23:44:20 +00:00
Sergey Biryukov
d5889105bf Twenty Fourteen: Fix typo in contextual help.
props vanillalounge.
fixes #27493.

git-svn-id: https://develop.svn.wordpress.org/trunk@27661 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-23 12:41:58 +00:00
Andrew Ozz
00cb862f5e 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


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



git-svn-id: https://develop.svn.wordpress.org/trunk@27659 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-23 03:35:50 +00:00
Scott Taylor
559cccfdd1 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.



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



git-svn-id: https://develop.svn.wordpress.org/trunk@27657 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-23 02:34:39 +00:00
Andrew Ozz
7dbbebeb43 Move the styling of drag/drop on the editor uploading to media-views.css, see #27465
git-svn-id: https://develop.svn.wordpress.org/trunk@27656 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-23 01:41:21 +00:00
Scott Taylor
42e7ed7c78 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.



git-svn-id: https://develop.svn.wordpress.org/trunk@27655 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-22 23:25:08 +00:00
Dominik Schilling (ocean90)
7ad1e0f1bb Widget Customizer: Use Underscores indexOf for IE8 compatibility.
props adamsilverstein.
see #27485.

git-svn-id: https://develop.svn.wordpress.org/trunk@27654 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-22 21:21:36 +00:00
Dominik Schilling (ocean90)
2a1899e319 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@27653 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-22 21:03:18 +00:00
Dominik Schilling (ocean90)
429a018b9c 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@27652 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-22 20:54:17 +00:00
Dominik Schilling (ocean90)
a3abe09be2 Customizer: Use the _.now() function from Undescore.js for the current timestamp. Date.now() isn't supported in IE8.
fixes #27477.

git-svn-id: https://develop.svn.wordpress.org/trunk@27651 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-22 10:53:10 +00:00
Dominik Schilling (ocean90)
686896998d Widget Customizer: Improve widget search.
* Removes jQuery.liveFilter dependency
* Filters widget collection directly
* Widget's name, ID and description will be searched

fixes #27451.

git-svn-id: https://develop.svn.wordpress.org/trunk@27650 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-21 21:12:32 +00:00
Dominik Schilling (ocean90)
f0abc9b7e0 Themes: Improve RegExp pattern for search.
* The replacement of spaces is now done globally.
* The search term is now escaped for RegExp meta characters.

props westonruter for the hint.
fixes #27479.

git-svn-id: https://develop.svn.wordpress.org/trunk@27649 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-21 21:03:59 +00:00
Sergey Biryukov
4db18a113d Fix a copy/paste error in WP_Date_Query parameter description.
props jdgrimes.
fixes #27472.

git-svn-id: https://develop.svn.wordpress.org/trunk@27648 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-21 17:52:08 +00:00
Andrew Nacin
ff5c4e186b Add context to 'Browse' (themes). see #27055, #27453.
git-svn-id: https://develop.svn.wordpress.org/trunk@27646 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-21 00:19:38 +00:00
nacin
fe3404bdf1 Merge two strings. see #27320, #27453.
git-svn-id: https://develop.svn.wordpress.org/trunk@27645 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-21 00:18:02 +00:00
Andrew Ozz
4b760ff840 Editing image file: properly refresh the view after restoring the original image or rescaling the image. Props gcorne, see #21811
git-svn-id: https://develop.svn.wordpress.org/trunk@27644 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-20 23:24:43 +00:00
Scott Taylor
39197965e4 Fixes for jshint
git-svn-id: https://develop.svn.wordpress.org/trunk@27643 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-20 22:26:53 +00:00
Scott Taylor
f9dda7bea7 Add JSDoc blocks to media-audiovideo.js.
See #27016.



git-svn-id: https://develop.svn.wordpress.org/trunk@27642 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-20 22:22:25 +00:00
Lance Willett
42ad47e3b0 Twenty Fourteen: improved gallery styles in visual editor, props celloexpressions. Fixes #27462.
git-svn-id: https://develop.svn.wordpress.org/trunk@27641 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-20 17:20:22 +00:00
Scott Taylor
5c0f7ae4fb 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.



git-svn-id: https://develop.svn.wordpress.org/trunk@27640 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-20 13:33:00 +00:00
Andrew Nacin
5bbb2d3951 3.9-beta2
git-svn-id: https://develop.svn.wordpress.org/trunk@27639 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-20 04:42:44 +00:00
Lance Willett
ba301f7c24 Twenty Thirteen: add Audio, Video, and Gallery Styles to editor styles. Props celloexpressions, see #27462.
git-svn-id: https://develop.svn.wordpress.org/trunk@27638 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-20 04:40:43 +00:00
Lance Willett
42c27ef755 Twenty Fourteen: add Audio, Video, and Gallery Styles to editor styles. Props celloexpressions, see #27462.
git-svn-id: https://develop.svn.wordpress.org/trunk@27637 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-20 04:26:08 +00:00
Andrew Nacin
3217fa545b Theme installer:
* Restore the feature filter.
 * Improve responsiveness.
 * Router updates, fixes.
 * Make "Upload Theme" button more consistent with the admin.
 * Avoid theme-count causing filters to jump.

props matveb.
see #27055.


git-svn-id: https://develop.svn.wordpress.org/trunk@27636 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-20 04:19:55 +00:00
Andrew Nacin
0963ea19a0 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@27635 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-20 02:58:48 +00:00
Andrew Nacin
fb0adf94b3 Return a bool from wp_using_ext_object_cache(), never a null.
see #26937.


git-svn-id: https://develop.svn.wordpress.org/trunk@27634 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-20 02:54:26 +00:00
Andrew Nacin
5a49e9f4bf WP_Query: allow split_the_query = false to avoid a split.
see #26937.


git-svn-id: https://develop.svn.wordpress.org/trunk@27633 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-20 02:53:44 +00:00
Andrew Ozz
9bac9f66d9 wpView: select/deselect views when moving the caret with the arrow keys, don't move the caret after deselect(), props gcorne, see #26959
git-svn-id: https://develop.svn.wordpress.org/trunk@27632 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-20 02:47:15 +00:00
Scott Taylor
598162885c Move wp.media.view.MediaDetails to media-audiovideo.js. This should have moved over with the rest.
See [27608].



git-svn-id: https://develop.svn.wordpress.org/trunk@27631 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-20 02:44:26 +00:00
Helen Hou-Sandi
352e5c61cd Avoid an undefined function due to /wp-admin/includes/dashboard.php being included too late. props obenland. fixes #27457.
git-svn-id: https://develop.svn.wordpress.org/trunk@27630 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-20 01:30:49 +00:00
Helen Hou-Sandi
ae8cea0f82 Add the version string to wp-content.css to avoid tenacious caching woes. see #27320.
git-svn-id: https://develop.svn.wordpress.org/trunk@27629 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-20 01:07:36 +00:00
Helen Hou-Sandi
d80da6c3f4 Further unify and refine media and view control styling. see #27320.
git-svn-id: https://develop.svn.wordpress.org/trunk@27628 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-20 00:47:21 +00:00
Lance Willett
f2233c67bb Twenty Fourteen: load Masonry after window load event to give more time for widget content to load before drawing the layout. Closes #27051.
git-svn-id: https://develop.svn.wordpress.org/trunk@27627 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-19 23:07:24 +00:00
Dominik Schilling (ocean90)
9e92a95ec5 Remove "Show" prefix from filter dropdowns, see #26743.
git-svn-id: https://develop.svn.wordpress.org/trunk@27626 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-19 22:12:13 +00:00
Andrew Nacin
0b74a67262 Only enqueue the image editor in the media modal in the admin.
props gcorne.
see #21811.


git-svn-id: https://develop.svn.wordpress.org/trunk@27625 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-19 21:15:50 +00:00
Lance Willett
deb852ca3e Twenty Fourteen: revert r27623 post_class filter removal since it will visually break pre-WP 3.9 installs. See #18804.
git-svn-id: https://develop.svn.wordpress.org/trunk@27624 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-19 20:48:28 +00:00
Lance Willett
d38059b771 Twenty Fourteen: remove post_class filter for has-post-thumbnail now that it's added in core for every theme. See #18804.
git-svn-id: https://develop.svn.wordpress.org/trunk@27623 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-19 19:12:32 +00:00
Scott Taylor
33a76e2d06 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.



git-svn-id: https://develop.svn.wordpress.org/trunk@27622 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-19 18:59:31 +00:00
Helen Hou-Sandi
1d98cab1ef Ensure the media library spinner hides when displaying a cached result set. props kovshenin. see #24859.
git-svn-id: https://develop.svn.wordpress.org/trunk@27621 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-19 18:26:05 +00:00
Andrew Nacin
8c3ac32372 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@27620 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-19 08:17:08 +00:00
Scott Taylor
844b799d6e JSHint fix for [27608].
git-svn-id: https://develop.svn.wordpress.org/trunk@27619 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-19 07:23:19 +00:00
Andrew Nacin
506d92e2fe TinyMCE strings: Merge, remove, reorganize, restore, clarify.
see #27453, #24067.


git-svn-id: https://develop.svn.wordpress.org/trunk@27618 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-19 07:17:07 +00:00
Scott Taylor
bc2512f8cc 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.



git-svn-id: https://develop.svn.wordpress.org/trunk@27617 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-19 07:15:23 +00:00