Dominik Schilling
ecee3bcb67
Widget Customizer: Remove leading underscores from public methods.
...
Fix also an incorrect hook name in `stop_capturing_option_updates()`.
props DrewAPicture.
see #27534 .
Built from https://develop.svn.wordpress.org/trunk@27910
git-svn-id: http://core.svn.wordpress.org/trunk@27741 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-02 18:31:15 +00:00
Dominik Schilling
944fba8e2f
Widget Customizer: Improve support for dynamically-created inputs.
...
* Re-work how and when widget forms get updated.
* Replace ad hoc hooks system with jQuery events,
* Add `widget-updated`/`widget-synced` events for widget soft/hard updates.
* Enter into a non-live form update mode, where the Apply button is restored when a sanitized form does not have the same fields as currently in the form, and so the fields cannot be easily updated to their sanitized values without doing a complete form replacement. Also restores live update mode if sanitized fields are aligned with the existing fields again.
Note: jQuery events are *not* final yet, see #19675 .
props westonruter.
see #27491 .
Built from https://develop.svn.wordpress.org/trunk@27909
git-svn-id: http://core.svn.wordpress.org/trunk@27740 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-02 18:20:16 +00:00
Scott Taylor
92467fbd63
Fix a regression caused by [27622] in prepend_attachment()
by passing all attachments that are not audio or video to the else
clause.
...
Fixes #27634 .
Built from https://develop.svn.wordpress.org/trunk@27908
git-svn-id: http://core.svn.wordpress.org/trunk@27739 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-02 17:14:15 +00:00
Dominik Schilling
cde6d602ea
Widget Customizer: Improve plugin compatibility.
...
Some plugins are using custom scripts and styles for there widgets. These are available on the Widgets screens, but not in the Customizer yet.
Scripts and styles can be enqueued via:
* `admin_enqueue_scripts`
* `admin_print_scripts` and `admin_print_scripts-widgets.php`
* `admin_print_styles` and `admin_print_styles-widgets.php`
* `admin_print_footer_scripts` and `admin_footer-widgets.php`
All this hooks are now called in the Customizer too.
Previously we have add the `#widgets-right` ID to a container div via jQuery. Remember: `#widgets-right` exists on the Widgets screen and is used by many plugins to do event delegation from that element.
But since our script files are loaded in the footer, the JavaScript way is a bit late for some plugins.
We have decided to add a `div#widgets-right` container element to customizer. "Less hacky hack."
props westonruter, ocean90. Thanks dpe415 for testing.
fixes #27619 .
Built from https://develop.svn.wordpress.org/trunk@27907
git-svn-id: http://core.svn.wordpress.org/trunk@27738 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-02 17:04:14 +00:00
Dion Hulse
61289de08d
Background Updates: Fix two variable typos in r27905
...
Built from https://develop.svn.wordpress.org/trunk@27906
git-svn-id: http://core.svn.wordpress.org/trunk@27737 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-02 13:13:15 +00:00
Dion Hulse
50a7503c2e
Background Updates: Record Plugin & Theme update statistics like we for for Core updates, Pass Plugin/Theme update objects into the Background updater for consistency with Core & Translations. See #27633
...
Built from https://develop.svn.wordpress.org/trunk@27905
git-svn-id: http://core.svn.wordpress.org/trunk@27736 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-02 13:05:15 +00:00
Drew Jaynes
12e182d929
Coding standards and readability spacing for WP_Customize_Widgets.
...
Also explicitly re-mark `_capture_filter_pre_update_option()` and `_capture_filter_pre_get_option()` as public.
See #27534 .
Built from https://develop.svn.wordpress.org/trunk@27904
git-svn-id: http://core.svn.wordpress.org/trunk@27735 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-02 06:12:16 +00:00
Drew Jaynes
44c886045f
Second-pass inline documentation improvements for WP_Customize_Widgets.
...
See #27534 .
Built from https://develop.svn.wordpress.org/trunk@27903
git-svn-id: http://core.svn.wordpress.org/trunk@27734 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-02 05:45:16 +00:00
Drew Jaynes
3d2728f7a6
Improve some inline documentation for class properties in WP_Customize_Section
.
...
Props leewillis77 for the initial patch.
Fixes #26245 .
Built from https://develop.svn.wordpress.org/trunk@27902
git-svn-id: http://core.svn.wordpress.org/trunk@27733 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-02 03:02:16 +00:00
Andrew Ozz
668235fb42
Drag and drop files on the editor to upload: add new argument to wp_editor() to enable, fixes #27465
...
Built from https://develop.svn.wordpress.org/trunk@27901
git-svn-id: http://core.svn.wordpress.org/trunk@27732 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-02 02:42:16 +00:00
Andrew Ozz
08770f6b88
wpLink: fix spinners selectors and add some throttling when searching with AJAX while the user is typing, fixes #27615
...
Built from https://develop.svn.wordpress.org/trunk@27900
git-svn-id: http://core.svn.wordpress.org/trunk@27731 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-02 02:27:16 +00:00
Andrew Ozz
c7eb5e7f1f
Gallery preview: add a "No items found" state which is displayed when rendering the gallery wpview and no attachments are found. Props gcorne, fixes #27558
...
Built from https://develop.svn.wordpress.org/trunk@27899
git-svn-id: http://core.svn.wordpress.org/trunk@27730 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-02 02:18:15 +00:00
Andrew Ozz
56ede0bad7
Edit Image modal:
...
- Move all advanced options under a single “Show advanced options” toggle that mirrors the behavior and look-and-feel of the wplink modal.
- Switch to using <select> for the Size and Link To.
- Bring back the field for CSS Class for the image, but don’t incorporate the internally managed WordPress classes (size-, wp-image-, etc…).
- On larger screen sizes, float labels to the left. When the width drops below 900px, stack the label above the fields.
- Keep image at top on screen sizes where the two columns are stacked into a single column.
- Don't replace the nodes in the editor DOM so we don't stomp on any custom attributes that the user may have added via the Text editor or some other mechanism.
Props gcorne, see #27366
Built from https://develop.svn.wordpress.org/trunk@27898
git-svn-id: http://core.svn.wordpress.org/trunk@27729 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-02 01:54:15 +00:00
Andrew Ozz
2547ba21ae
TinyMCE: update to 4.0.21, see #24067
...
Built from https://develop.svn.wordpress.org/trunk@27897
git-svn-id: http://core.svn.wordpress.org/trunk@27728 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-01 22:46:14 +00:00
Andrew Nacin
d330c402c8
Theme Installer fixes:
...
* Better more filters section. props sonjanyc for some mockups.
* Better handling of no results.
* Use # for hrefs.
props matveb.
see #27055 .
Built from https://develop.svn.wordpress.org/trunk@27896
git-svn-id: http://core.svn.wordpress.org/trunk@27727 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-01 22:20:14 +00:00
Scott Taylor
6ec61c7506
Call MediaElement's shim method for setSrc()
when dynamically updating the playing source in playlists, which will properly set the source for mobile.
...
Make the labels for playlist items slightly smaller to account for size on mobile.
Fixes #27625 .
Built from https://develop.svn.wordpress.org/trunk@27895
git-svn-id: http://core.svn.wordpress.org/trunk@27726 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-01 19:04:14 +00:00
Scott Taylor
7aaa878a6f
Make <audio>
elements in playlists responsive.
...
See #27625 .
Built from https://develop.svn.wordpress.org/trunk@27894
git-svn-id: http://core.svn.wordpress.org/trunk@27725 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-01 18:47:14 +00:00
Dominik Schilling
dc5effa8cc
Cleanup [27892].
...
Built from https://develop.svn.wordpress.org/trunk@27893
git-svn-id: http://core.svn.wordpress.org/trunk@27724 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-01 15:30:16 +00:00
Dominik Schilling
ae1f4e146f
Widget Customizer: Use postMessage to highlight widgets in preview or sections/controls in Customizer.
...
fixes #27622 .
Built from https://develop.svn.wordpress.org/trunk@27892
git-svn-id: http://core.svn.wordpress.org/trunk@27723 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-01 15:26:15 +00:00
Dominik Schilling
404fe8710d
Widget Customizer: Remove WidgetCustomizer.showFirstSidebarIfRequested().
...
It's currently unused and needs another iteration.
see #27290 .
Built from https://develop.svn.wordpress.org/trunk@27891
git-svn-id: http://core.svn.wordpress.org/trunk@27722 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-01 12:38:15 +00:00
Dominik Schilling
6528b7804b
Revert [27654] for strings.
...
props westonruter.
fixes #27485 .
Built from https://develop.svn.wordpress.org/trunk@27890
git-svn-id: http://core.svn.wordpress.org/trunk@27721 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-01 11:08:16 +00:00
Drew Jaynes
4af2840a47
Clarify PHPDoc return description for media_handle_upload()
.
...
Props jdgrimes.
Fixes #27519 .
Built from https://develop.svn.wordpress.org/trunk@27880
git-svn-id: http://core.svn.wordpress.org/trunk@27711 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-31 22:33:15 +00:00
Drew Jaynes
f13d04e5cf
Clarify inline documentation for the 'html5' case and PHPDoc return in add_theme_support()
.
...
Props jond3r.
Fixes #27278 .
Built from https://develop.svn.wordpress.org/trunk@27879
git-svn-id: http://core.svn.wordpress.org/trunk@27710 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-31 22:20:16 +00:00
Andrew Nacin
d8622b39d6
Forward pingback IP during pingback verification.
...
props tellyworth, nacin.
fixes #27613 .
Built from https://develop.svn.wordpress.org/trunk@27872
git-svn-id: http://core.svn.wordpress.org/trunk@27703 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-31 20:43:18 +00:00
Scott Taylor
55b61b7a70
Re-instantiate the MediaElementPlayer
instance when switching mime types in playlists.
...
Fixes #27608 .
Built from https://develop.svn.wordpress.org/trunk@27871
git-svn-id: http://core.svn.wordpress.org/trunk@27702 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-31 15:35:15 +00:00
Drew Jaynes
7efc48c365
Inline documentation for hooks in wp-includes/widgets.php.
...
Props eliorivero and Nessworthy for the initial patches. Props kpdesign.
Fixes #27129 .
Built from https://develop.svn.wordpress.org/trunk@27870
git-svn-id: http://core.svn.wordpress.org/trunk@27701 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-31 07:30:16 +00:00
Scott Taylor
01d2062af3
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 .
Built from https://develop.svn.wordpress.org/trunk@27869
git-svn-id: http://core.svn.wordpress.org/trunk@27700 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-31 05:16:16 +00:00
Scott Taylor
98ceb17972
Favor escaping over interpolation in Underscore templates for media. Translate some strings directly instead of passing via JS.
...
Props nacin.
See #27574 .
Built from https://develop.svn.wordpress.org/trunk@27868
git-svn-id: http://core.svn.wordpress.org/trunk@27699 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-31 05:13:15 +00:00
Scott Taylor
616680b56b
Bump the MediaElement version in script-loader.php
to 2.14.1
.
...
See [27861].
Built from https://develop.svn.wordpress.org/trunk@27867
git-svn-id: http://core.svn.wordpress.org/trunk@27698 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-30 22:20:14 +00:00
Andrew Nacin
8acf74fe7b
Use correct formatting function. see [27864], see #27574 .
...
Built from https://develop.svn.wordpress.org/trunk@27866
git-svn-id: http://core.svn.wordpress.org/trunk@27697 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-30 22:12:29 +00:00
Scott Taylor
b6ac65f07f
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 .
Built from https://develop.svn.wordpress.org/trunk@27865
git-svn-id: http://core.svn.wordpress.org/trunk@27696 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-30 22:12:16 +00:00
Andrew Nacin
c95f232727
Cleanups for audio/video metadata, see [27862].
...
see #27574 .
Built from https://develop.svn.wordpress.org/trunk@27864
git-svn-id: http://core.svn.wordpress.org/trunk@27695 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-30 21:08:14 +00:00
Scott Taylor
7eb24edf4e
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 .
Built from https://develop.svn.wordpress.org/trunk@27863
git-svn-id: http://core.svn.wordpress.org/trunk@27694 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-30 20:54:15 +00:00
Scott Taylor
d947a55495
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 .
Built from https://develop.svn.wordpress.org/trunk@27862
git-svn-id: http://core.svn.wordpress.org/trunk@27693 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-30 19:28:16 +00:00
Scott Taylor
cae2ef37cd
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.
Built from https://develop.svn.wordpress.org/trunk@27861
git-svn-id: http://core.svn.wordpress.org/trunk@27692 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-30 17:51:14 +00:00
Dominik Schilling
da5339da30
Widget Customizer: Add a label to widget search.
...
props SergeyBiryukov.
fixes #27590 .
Built from https://develop.svn.wordpress.org/trunk@27860
git-svn-id: http://core.svn.wordpress.org/trunk@27691 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-30 15:47:16 +00:00
Andrew Nacin
2f9713104b
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 .
Built from https://develop.svn.wordpress.org/trunk@27859
git-svn-id: http://core.svn.wordpress.org/trunk@27690 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-30 00:41:15 +00:00
Andrew Ozz
86910b9a21
Add class wp-core-ui
to DFW and wpLink as it is required by buttons.css. Props avryl, see #27279
...
Built from https://develop.svn.wordpress.org/trunk@27858
git-svn-id: http://core.svn.wordpress.org/trunk@27689 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-30 00:37:15 +00:00
Andrew Ozz
bfaf007e97
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
Built from https://develop.svn.wordpress.org/trunk@27857
git-svn-id: http://core.svn.wordpress.org/trunk@27688 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-29 23:58:14 +00:00
Dominik Schilling
51c58c5be3
Customizer: Style "Cheatin’ uh?" message like wp_die().
...
props jackreichert.
fixes #27490
Built from https://develop.svn.wordpress.org/trunk@27856
git-svn-id: http://core.svn.wordpress.org/trunk@27687 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-29 23:19:15 +00:00
Dominik Schilling
2f0c68ad0e
Adjust colors in wp_die() and install.css.
...
Missed in [26788] and [26837], see #25858 .
fixes #27589 .
Built from https://develop.svn.wordpress.org/trunk@27855
git-svn-id: http://core.svn.wordpress.org/trunk@27686 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-29 23:06:14 +00:00
Dominik Schilling
016e1f53ba
Widget Customizer: Remove strings from WP_Error returns and go with just IDs.
...
fixes #27419 .
Built from https://develop.svn.wordpress.org/trunk@27854
git-svn-id: http://core.svn.wordpress.org/trunk@27685 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-29 21:44:14 +00:00
Scott Taylor
57dfb8fb2a
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 .
Built from https://develop.svn.wordpress.org/trunk@27853
git-svn-id: http://core.svn.wordpress.org/trunk@27684 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-29 21:36:15 +00:00
Helen Hou-Sandí
c347b4a5cb
Restore some CSS rules that are necessary for non-default schemes. see #18380 .
...
Built from https://develop.svn.wordpress.org/trunk@27852
git-svn-id: http://core.svn.wordpress.org/trunk@27683 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-29 17:48:15 +00:00
Andrew Nacin
840d9ce8fe
Post beta3 version bump.
...
Built from https://develop.svn.wordpress.org/trunk@27851
git-svn-id: http://core.svn.wordpress.org/trunk@27682 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-29 11:40:14 +00:00
Andrew Nacin
a43f865c1c
3.9-beta3
...
Built from https://develop.svn.wordpress.org/trunk@27850
git-svn-id: http://core.svn.wordpress.org/trunk@27681 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-29 11:15:14 +00:00
Andrew Nacin
f320b43587
Custom Headers: Simplify and consolidate the querying of custom headers for the customizer.
...
props mcsf.
see #21785 .
Built from https://develop.svn.wordpress.org/trunk@27849
git-svn-id: http://core.svn.wordpress.org/trunk@27680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-29 10:53:15 +00:00
Andrew Nacin
495c73fc1c
Theme Installer: Avoid race condition during pagination.
...
props matveb.
see #27055 .
Built from https://develop.svn.wordpress.org/trunk@27845
git-svn-id: http://core.svn.wordpress.org/trunk@27679 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-29 09:09:14 +00:00
Andrew Nacin
cfa2246cc7
Add braces to wptexturize() after [27839]. see #22692 .
...
Built from https://develop.svn.wordpress.org/trunk@27844
git-svn-id: http://core.svn.wordpress.org/trunk@27678 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-29 09:00:15 +00:00
Andrew Nacin
6531ed1efc
Theme Installer: Remove unused variables and undesired commas.
...
see #27055 .
Built from https://develop.svn.wordpress.org/trunk@27843
git-svn-id: http://core.svn.wordpress.org/trunk@27677 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-29 08:53:16 +00:00