Commit Graph

25417 Commits

Author SHA1 Message Date
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
Scott Taylor
baa630ce3a Bump the version for TinyMCE's stylesheet.
See [27615].



git-svn-id: https://develop.svn.wordpress.org/trunk@27616 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-19 07:02:57 +00:00
Scott Taylor
ce1c3140ab Add MCE views for audio and video shortcodes. When the shortcode does not contain a source that supports native playback, just show the filename.
* Remove the audio/video shortcode parsing from the `wpgallery` plugin.
* Make `mce-view` a dependency of `media-audiovideo`
* Introduce `wp.mce.video`, `wp.mce.audio`, `wp.mce.media`, and `wp.mce.media.View`
* Rename `wp.media.audio|video.shortcode()` to `wp.media.audio|video.update()` since it is called on Update and returns a `wp.shortcode` object now.
* In `wp.mce.View.render()`, fire a `ready` event when the placeholder is being parsed and pass the current node to the event handler.

See #27389, #27437.



git-svn-id: https://develop.svn.wordpress.org/trunk@27615 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-19 07:01:56 +00:00
Andrew Nacin
bd71f66240 Use an ellipsis instead of ...
see #27453, #27055.


git-svn-id: https://develop.svn.wordpress.org/trunk@27614 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-19 05:54:57 +00:00
Andrew Nacin
b2da716c11 Skipping placeholders in a string will only catch translators off guard.
see #27453, #27132.


git-svn-id: https://develop.svn.wordpress.org/trunk@27613 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-19 05:53:01 +00:00
Andrew Nacin
d3a873840e Remove two new strings from post_preview().
see #25272, #27453.


git-svn-id: https://develop.svn.wordpress.org/trunk@27612 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-19 05:48:28 +00:00
nacin
877e12ee33 Improve the autosave error message on nonce failure.
see #27453, #25272.


git-svn-id: https://develop.svn.wordpress.org/trunk@27611 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-19 05:46:02 +00:00
Andrew Nacin
a7a53e4417 Context for theme install strings. Untranslate an error message until it can be cleaned up.
see #27453, #27055.


git-svn-id: https://develop.svn.wordpress.org/trunk@27610 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-19 05:41:13 +00:00
Scott Taylor
54c541cfc6 Create a new file, media-audiovideo.js, to house all of the audio and video JS code in core.
UX Changes:
* Don't add a menu item for "Add Audio|Video Source"
* In the Audio|Video Details modal, add buttons and some suggestive text for adding alternate playback sources
* Don't show "Create Audio|Video Playlist" menu items until the user has uploaded audio or video files

See #27437.



git-svn-id: https://develop.svn.wordpress.org/trunk@27608 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-19 05:30:27 +00:00
Lance Willett
50f071e96c Twenty Thirteen: improve menu navigation for keyboard and voice-over interactions by properly focusing on submenu items when they are open. Closes #24839, props dannydehaan, joedolson, lancewillett, Frank Klein.
git-svn-id: https://develop.svn.wordpress.org/trunk@27607 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-19 05:28:36 +00:00
Lance Willett
931f1a0bce Twenty Twelve: improve menu navigation for keyboard and voice-over interactions by properly focusing on submenu items when they are open. See #24839, props dannydehaan, joedolson, lancewillett.
git-svn-id: https://develop.svn.wordpress.org/trunk@27606 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-19 05:28:24 +00:00
Andrew Nacin
137fe5a7dd Remove HTML from a new string. see #26709.
git-svn-id: https://develop.svn.wordpress.org/trunk@27605 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-19 05:27:37 +00:00
Andrew Nacin
a34bff3902 Combine two strings, using placeholders for filenames and avoiding HTML. see #27057.
git-svn-id: https://develop.svn.wordpress.org/trunk@27604 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-19 05:26:24 +00:00
Andrew Ozz
e342b6a3a5 TinyMCE: update to 4.0.20, see #24067
git-svn-id: https://develop.svn.wordpress.org/trunk@27603 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-19 04:46:01 +00:00
Andrew Ozz
04f3b0e0a5 TinyMCE show/hide toolbar row: fix the value for getUserSetting('hidetb'): 0 == hidden, 1 == visible, see #24067
git-svn-id: https://develop.svn.wordpress.org/trunk@27602 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-19 02:29:12 +00:00
Andrew Ozz
15e74ab98a wpView: don't overlap floated elements, see #26959
git-svn-id: https://develop.svn.wordpress.org/trunk@27601 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-19 01:15:59 +00:00
John Blackbourn
a27f712fbb Introduce before_page_number and after_page_number arguments for paginate_links(). Fixes #24709. Props grahamarmfield.
git-svn-id: https://develop.svn.wordpress.org/trunk@27600 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-18 23:30:55 +00:00
Lance Willett
de3f48f204 Twenty Twelve: remove doc block comments for @return void. See #27098.
git-svn-id: https://develop.svn.wordpress.org/trunk@27599 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-18 22:48:10 +00:00
Lance Willett
5b6a663d8a Twenty Thirteen: remove doc block comments for @return void. See #27098.
git-svn-id: https://develop.svn.wordpress.org/trunk@27598 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-18 22:48:00 +00:00
Lance Willett
74d34dbdc8 Twenty Eleven: remove doc block comments for @return void. See #27098.
git-svn-id: https://develop.svn.wordpress.org/trunk@27597 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-18 22:47:49 +00:00
John Blackbourn
f850186eff Introduce permission checks for post queries and edit links in the At a Glance dashboard widget. Fixes #27132. Props mattheu.
git-svn-id: https://develop.svn.wordpress.org/trunk@27596 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-18 22:43:41 +00:00
Lance Willett
975c953322 Twenty Fourteen: remove doc block comments for @return void. See #27098, props philiparthurmoore.
git-svn-id: https://develop.svn.wordpress.org/trunk@27595 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-18 22:43:15 +00:00
Lance Willett
ce25840560 Twenty Fourteen: make small-screen menu accessible to keyboard commands and voice-driven software by using a focusable button element rather than h1 for the toggle element. Fixes #27147, props jartes and joedolson.
git-svn-id: https://develop.svn.wordpress.org/trunk@27594 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-18 22:36:12 +00:00
John Blackbourn
72c63cd966 Remove a redundant title attribute. See #26559. Props joedolson.
git-svn-id: https://develop.svn.wordpress.org/trunk@27593 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-18 22:01:46 +00:00
Andrew Nacin
197bdf7479 Default Themes: Update POT files for trunk (3.9-beta).
git-svn-id: https://develop.svn.wordpress.org/trunk@27592 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-18 19:20:24 +00:00
Lance Willett
be324417cf Twenty Fourteen: improve i18n in Ephemera widget for better translation of plurals for post format archives. Fixes #27069, props Chouby, SergeyBiryukov, lancewillett.
git-svn-id: https://develop.svn.wordpress.org/trunk@27589 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-18 18:49:03 +00:00
Dominik Schilling (ocean90)
5358f081be Widget Customizer: Remove unused vars.
see #27112.

git-svn-id: https://develop.svn.wordpress.org/trunk@27588 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-18 18:34:26 +00:00
Lance Willett
ad24828f32 Twenty Fourteen: make sure we only hide post content on small screens for default post types: post and page. Fixes #27031.
git-svn-id: https://develop.svn.wordpress.org/trunk@27587 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-18 18:03:19 +00:00
Dominik Schilling (ocean90)
183e283e56 Widget Customizer: Remove special filter for Settings Revisions plugin.
see #27112.

git-svn-id: https://develop.svn.wordpress.org/trunk@27586 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-18 16:47:47 +00:00
Dominik Schilling (ocean90)
e60ee04f54 Widget Customizer: Move preview script to wp_default_scripts().
git-svn-id: https://develop.svn.wordpress.org/trunk@27585 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-18 15:30:12 +00:00
Dominik Schilling (ocean90)
c2a4665966 Widget Customizer: Restore highlighting of widgets in preview.
props westonruter.
see #27358.

git-svn-id: https://develop.svn.wordpress.org/trunk@27584 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-18 15:20:38 +00:00