Helen Hou-Sandi
8f9bef790e
Enable more flexibility for non-URL GUIDs.
...
props stevenkword.
fixes #31080 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31726 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 19:59:03 +00:00
Andrew Ozz
2c9a5e3b8b
TinyMCE:
...
- Abstract the code for creating floating toolbars.
- Introduce `editor.wp` namespace to hold exported methods from our plugins.
- Create the wpView toolbar(s) with the new method. This makes them work the same as the image toolbar: shortcuts, esc key, etc.
Props iseulde. See #30619 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31725 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 19:11:02 +00:00
Dominik Schilling (ocean90)
9a350f7f36
JSHint: Remove an unused variable.
...
see #28206 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31724 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 17:39:48 +00:00
Dominik Schilling (ocean90)
416628ccd4
Update hoverIntent to 1.8.1.
...
props rachelbaker, jesin.
fixes #31505 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31723 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 17:14:34 +00:00
Helen Hou-Sandi
debd0092cb
Gravatars: Remove redundant 1x srcset.
...
props miqrogroove.
see #22329 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31722 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 16:55:22 +00:00
Helen Hou-Sandi
13c503d15a
Gravatars: Enable HiDPI versions for browsers that support srcset.
...
props iseulde.
see #22329 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31721 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 16:31:50 +00:00
Andrew Ozz
019a6dee36
Allow swiping of the admin menu on touch devices.
...
Props iseulde, ninnypants. See #31187 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31720 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 16:28:21 +00:00
Helen Hou-Sandi
2d8bfdea8f
Plugin details: Ensure banner image doesn't repeat.
...
props senff, valendesigns.
fixes #30773 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31719 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 16:11:15 +00:00
Dominik Schilling (ocean90)
137634176f
Editor: Hide TinyMCE help button on mobile.
...
props MattyRob, iseulde.
fixes #31161 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31718 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 16:01:07 +00:00
Dominik Schilling (ocean90)
f29a9083fc
Merge three similar strings.
...
props pavelevap.
see #31013 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31717 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 15:24:04 +00:00
Dominik Schilling (ocean90)
5b7bd930c6
Update jQuery UI to 1.11.4.
...
Changelog:
* https://jqueryui.com/changelog/1.11.4/
* https://github.com/jquery/jquery-ui/compare/1.11.3...1.11.4
props scott.gonzalez for arranging this release.
fixes #31597 , #30998 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31716 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 15:11:52 +00:00
Helen Hou-Sandi
507eab72c2
wpLink: Title case "Link Text", as it's an existing string.
...
see #28206 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31715 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 03:02:34 +00:00
Andrew Ozz
df6e920a87
wpLink: change the text label to Link text, always focus the URK field, fix Ctrl/Cmd + K shortcut. See #28206 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@31714 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 03:00:15 +00:00
Andrew Ozz
bfbcfe3e6a
wpLink: replace the "Title" field with a "Text" field and populate it with the link text when editing an existing link or with the selected text if any.
...
Props iseulde. See #28206 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31713 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 02:39:02 +00:00
John Blackbourn
62c89ae8b5
RIP3 Revision3
...
Fixes #31592
git-svn-id: https://develop.svn.wordpress.org/trunk@31712 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 02:06:32 +00:00
John Blackbourn
60eb837e3d
Some updates to the oEmbed provider table.
...
See #28507
git-svn-id: https://develop.svn.wordpress.org/trunk@31711 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 02:02:54 +00:00
John Blackbourn
1d0bac31fb
Allow `https` URLs for Instagram embeds, and switch to `https` for its oEmbed API endpoint.
...
See #28507 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31710 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 01:06:00 +00:00
Sergey Biryukov
c29e63fdf7
Restore `<title>` tag on Posts and Pages screens after [31696].
...
fixes #31349 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31709 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 00:48:56 +00:00
Sergey Biryukov
8c5057119e
Revert the part of [31168] that [31701] was trying to fix.
...
`default-filters.php` is loaded before the `$current_site` global is set, so `is_main_site()` cannot be used there.
fixes #30947 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31708 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 23:19:02 +00:00
Dominik Schilling (ocean90)
32a124a884
Customizer: Return the original value when filtering theme mods/options and the current blog has changed.
...
props westonruter.
fixes #31428 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31707 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 23:04:12 +00:00
Dominik Schilling (ocean90)
72fcd6e2ce
Customizer: Prevent a race condition when attempting to publish too soon after updating widget form fields with multiple edits.
...
props westonruter.
fixes #31501 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31706 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 22:44:25 +00:00
Dominik Schilling (ocean90)
63502a8a01
Customizer: Fix previewing and applying widgets when previewing another theme.
...
* Unset `wp_get_sidebars_widgets()`' non-admin cache var `$_wp_sidebars_widgets` in Customize theme preview.
* Add `WP_Customize_Setting::$dirty` so that settings can be initially-dirty when the Customizer loads.
* Mark `old_sidebars_widgets_data` setting initially-dirty.
* Mark all `sidebars_widgets` settings as initially-dirty during theme switch.
props westonruter.
see #31484 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31705 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 22:38:30 +00:00
Dominik Schilling (ocean90)
4aeeb0e0f0
Customizer: Add title attributes to iframes.
...
props afercia.
fixes #31202 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31704 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 21:19:14 +00:00
Andrew Ozz
2f41519c46
TinyMCE: Remove old placeholder functions and callbacks.
...
Props iseulde. Fixes #31576 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31703 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 20:27:48 +00:00
Dominik Schilling (ocean90)
39e1f112cf
Theme Details: Hide admin toolbar on smaller screens.
...
props obenland.
fixes #31381 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31702 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 20:03:30 +00:00
Sergey Biryukov
8f0910aee4
Don't run update checks for AJAX requests after [31168].
...
fixes #30947 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31701 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 19:29:31 +00:00
Andrew Ozz
9aba4766fc
TinyMCE: update to 4.1.9. Fixes #31551 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@31700 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 19:19:56 +00:00
Boone Gorges
8072fe7db6
Improved customizability for the Submit button in `comment_form()`.
...
The new 'submit_button' and 'submit_field' parameters for `comment_form()`
allow developers to modify the markup of the submit button and its wrapper.
These params are accompanied by targeted 'comment_form_submit_button' and
'comment_form_submit_field' filters on the concatenated markup.
Props coffee2code, morpheu5, DrewAPicture, boonebgorges.
Fixes #15015 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31699 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 19:07:31 +00:00
Dominik Schilling (ocean90)
179a1b7a4c
Customizer: Introduce `WP_Customize_Media_Control`.
...
`WP_Customize_Media_Control` is a new base class for all Customizer media controls. If used directly it supports the ID of an attachment instead of an URL like `WP_Customize_Upload_Control`.
props celloexpressions.
fixes #29215 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31698 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 18:01:42 +00:00
Dominik Schilling (ocean90)
557ecd19c6
Customizer: Add loading indicators for the Customizer preview.
...
props Fab1en, westonruter.
fixes #31196 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31697 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 15:55:28 +00:00
Dominik Schilling (ocean90)
3bb3d2f1a5
Screen Options: Improve items per page option label.
...
Previously the label just said "Posts", "Pages", or "Comments". This was bad in terms of accessibility and internationalization because of missing context.
This change adds a default label "Number of items per page:" to `WP_Screen->render_per_page_options()` and removes all the existing one-word labels.
props afercia.
fixes #31349 , #15576 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31696 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 15:31:54 +00:00
Dominik Schilling (ocean90)
b1bbce3f6e
Comments: Fix undefined `$comment_url` variable notice, introduced in [31641].
...
see #23988 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31695 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 14:50:50 +00:00
Sergey Biryukov
5fe8182c7f
EXIF/IPTC captions should populate Caption (`post_excerpt`) on upload, not Description (`post_content`).
...
Make sure the caption is always set if found. Previously, if the caption was less than 80 characters, only the Title field would be set.
props beaulebens, ericlewis, bendoh, SergeyBiryukov.
fixes #22768 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31694 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 05:06:39 +00:00
Andrew Ozz
e0f843cd81
PressThis:
...
- Filter and select the content on the PHP side. Then pass only the needed data to JS.
- Add the suggested post title and contend directly to the HTML.
- Standardise the data type names.
- Some cleanup/reduction of the code in the bookmarklet.
See #31373 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31693 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-09 21:48:38 +00:00
Helen Hou-Sandi
7c60125e15
Media library: Revert [31582], as it introduces navigation difficulties for many users.
...
see #30333 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31692 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-09 21:16:47 +00:00
Andrew Ozz
7baa0da965
TinyMCE: when pasting an URL over a selection, insert a link with the URL instead of replacing the selection with it. Props iseulde. Fixes #31571 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@31691 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-09 19:59:14 +00:00
Scott Taylor
69c449963e
Replace flagrant instances of `.html('')` with `.empty()`.
...
Props OriginalEXE, SergeyBiryukov.
Fixes #27034 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31690 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-09 19:43:49 +00:00
Andrew Ozz
64e63da3f6
TinyMCE wpView: decode HTML entities before trying to match the wpView text string. Props iseulde. See #31412 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@31689 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-09 19:08:05 +00:00
Drew Jaynes
5bbb7dd80d
Update hook docs for the `editable_slug` filter as it is evaluated in more than just a term slug context, it is also leveraged for use with post URIs.
...
See #31569 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31688 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-09 07:03:12 +00:00
Dion Hulse
1f90e70b7d
Fix the editable_slug hook documentation, the PHPDoc must come directly before the hook call, with no HTML inbetween.
...
Props DrewAPicture. Fixes #31569
git-svn-id: https://develop.svn.wordpress.org/trunk@31687 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-09 06:42:58 +00:00
Dion Hulse
b96b1db015
SSH2 Upgrade transport: Trim the trailing newline character from the ouput of `pwd` to avoid a PHP Segfault.
...
Fixes #30802 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@31686 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-09 04:31:21 +00:00
Scott Taylor
97ad987b7c
[31684] has BC issues, revert it.
...
Props nacin.
See #30799 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31685 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-09 02:35:36 +00:00
Scott Taylor
417aa9b84d
Remove the PHP4 constructor from `WP_Widget`.
...
See #30799 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31684 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-09 02:24:43 +00:00
Scott Taylor
8ba3c105a0
`self` should be used for accessing local static members.
...
See #30799 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31683 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-09 02:21:04 +00:00
Scott Taylor
253f0dd6cf
Declare `multisite` as a field for `WP_Object_Cache`.
...
See #30799 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31682 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-09 02:17:30 +00:00
Scott Taylor
3c810c5872
There are a few functions that have the ability to return `false` instead of a string, so the return value should be checked before being passed to functions that expect string.
...
These are trivial, but they clear out some Scrutinizer issues.
See #30799 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31681 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-09 02:10:36 +00:00
Andrew Ozz
7103ef6018
PressThis: fix styling of wpLink.
...
Props Michael-Arestad, see #31373 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31680 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-08 23:22:36 +00:00
Scott Taylor
1997429498
Empty `return` statements are unnecessary at the end of functions.
...
See #30799 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31679 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-08 23:08:48 +00:00
Scott Taylor
edf982fcd5
Avoid function calls on each iteration of a `for` loop.
...
See #30799 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31678 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-08 23:00:21 +00:00
Boone Gorges
5b0e3180b4
jshint fixes for press-this.js.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@31677 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-08 16:26:33 +00:00