Aaron Jorbin
5b658df402
Request FTP and SSH credentials when needed during shiny updates
...
This is a first pass at requesting FTP and SSH credentials when needed during shiny updates. Styling and some UX improvements are still needed, but we do show the prompt and use the passed data when doing plugin installs and updates for shiny updates. There are also a couple of areas that we could improve code wise such how we create the requestFilesystemCredentials part of the localized _wpUpdatesSettings. Over the past half century, we've split the atom, we've spliced the gene and we've roamed Tranquility Base. We've reached for the stars and never have we been closer to having them in our grasp. That has nothing to do with shiny updates.
Props ericlewis, jorbin, and drewapicture for testing
Fixes #31528
Built from https://develop.svn.wordpress.org/trunk@31749
git-svn-id: http://core.svn.wordpress.org/trunk@31730 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-12 08:53:26 +00:00
Helen Hou-Sandí
296dba2804
Nav menus: Return to calling links "Custom Links".
...
It was like this before 3.6 and got a bit lost during that development cycle. Also uses the terminology more consistently in the nav menu UI.
props tyxla.
fixes #31344 .
Built from https://develop.svn.wordpress.org/trunk@31748
git-svn-id: http://core.svn.wordpress.org/trunk@31729 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-12 06:15:27 +00:00
Helen Hou-Sandí
593bd1251a
Star ratings: Use a yellow color across the board. Keying these to color schemes originally turned out to be weird.
...
props hugobaeta.
fixes #31424 .
Built from https://develop.svn.wordpress.org/trunk@31747
git-svn-id: http://core.svn.wordpress.org/trunk@31728 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-12 05:41:27 +00:00
Andrew Nacin
364a2450c2
The partial change to the script handle in [31744] was not actually intended.
...
see #31242 .
Built from https://develop.svn.wordpress.org/trunk@31746
git-svn-id: http://core.svn.wordpress.org/trunk@31727 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-12 03:36:28 +00:00
Gary Pendergast
cd0e4a29fe
Add new smiley images missed in [31733].
...
See #31242
Built from https://develop.svn.wordpress.org/trunk@31745
git-svn-id: http://core.svn.wordpress.org/trunk@31726 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-12 03:28:26 +00:00
Andrew Nacin
78679bfb3f
Emoji JS cleanup.
...
* Filename: emoji.js => wp-emoji.js
* Script handle: emoji => wp-emoji
* Object: WPEmoji => wp.emoji
* Script settings: EmojiSettings => _wpemojiSettings
* Setting key: base_url => baseUrl
* Remove executable bit from files
see #31242 .
Built from https://develop.svn.wordpress.org/trunk@31744
git-svn-id: http://core.svn.wordpress.org/trunk@31725 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-12 03:17:26 +00:00
Sergey Biryukov
93e6326f8c
Press This: Remove obsolete help tab in Settings -> Writing.
...
props kraftbj.
fixes #26794 .
Built from https://develop.svn.wordpress.org/trunk@31743
git-svn-id: http://core.svn.wordpress.org/trunk@31724 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-12 02:37:27 +00:00
Andrew Ozz
04494a6c32
TinyMCE wpViews: always import the non-default editor styles in the sandbox iframe in views.
...
Props iseulde, mattheu. Fixes #31464 .
Built from https://develop.svn.wordpress.org/trunk@31742
git-svn-id: http://core.svn.wordpress.org/trunk@31723 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-12 01:05:54 +00:00
Sergey Biryukov
9f6cd01346
Fix JSHint errors in [31734] and add missing dependencies.
...
props iseulde.
fixes #31328 .
Built from https://develop.svn.wordpress.org/trunk@31741
git-svn-id: http://core.svn.wordpress.org/trunk@31722 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-12 01:05:26 +00:00
Andrew Ozz
b5f1514b54
TinyMCE: improve setting of the sandboxing iframe inside a view.
...
Props mattheu, iseulde. Fixes #31412 .
Built from https://develop.svn.wordpress.org/trunk@31740
git-svn-id: http://core.svn.wordpress.org/trunk@31721 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-11 23:53:26 +00:00
Andrew Ozz
1581ca7092
PressThis: add inline comments and some cleanup for the images and embeds regex.
...
Props stephdau. Fixes #31373 .
Built from https://develop.svn.wordpress.org/trunk@31739
git-svn-id: http://core.svn.wordpress.org/trunk@31720 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-11 23:37:28 +00:00
Andrew Ozz
8b53e5470d
TinyMCE: remove blocking of commands on placeholder images. Breaks some execCommand.
...
Props iseulde. Fixes #31571 .
Built from https://develop.svn.wordpress.org/trunk@31738
git-svn-id: http://core.svn.wordpress.org/trunk@31719 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-11 23:33:28 +00:00
Andrew Ozz
ce297a7227
PressThis: update _limit_url(), use esc_url_raw(). Fixes checking of urlencoded strings.
...
See #31373 .
Built from https://develop.svn.wordpress.org/trunk@31737
git-svn-id: http://core.svn.wordpress.org/trunk@31718 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-11 23:23:25 +00:00
Dominik Schilling
4cc85f4da2
Administration: Remove single-use URL parameters and create canonical link based on new URL.
...
The default removable query args are 'message', 'settings-updated', 'saved', 'update', 'updated','activated', 'activate', 'deactivate', 'locked', 'deleted', 'trashed', 'untrashed', 'enabled', 'disabled', and 'skipped'.
props morganestes.
fixes #23367 .
Built from https://develop.svn.wordpress.org/trunk@31736
git-svn-id: http://core.svn.wordpress.org/trunk@31717 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-11 23:09:26 +00:00
Andrew Ozz
7289cfcc7c
TinyMCE: remove block_formats setting, this is now the default in TinyMCE 4.1.9.
...
Props iseulde. Fixes #31585 .
Built from https://develop.svn.wordpress.org/trunk@31735
git-svn-id: http://core.svn.wordpress.org/trunk@31716 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-11 22:57:28 +00:00
Gary Pendergast
03ade8c011
Add emoji URL support, and Twemoji fallback for displaying slugs in wp-admin, when the browser doesn't natively support emoji.
...
Props pento, SergeyBiryukov and boonebgorges.
Fixes #31328
Built from https://develop.svn.wordpress.org/trunk@31734
git-svn-id: http://core.svn.wordpress.org/trunk@31715 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-11 22:55:28 +00:00
Gary Pendergast
46e2a65cf1
Add emoji support, with Twemoji fallback.
...
Replace exisiting smilies with equivalent emoji, or with shiny new smiley images where no emoji existed.
Props batmoo, joen and mkaz for the original plugin upon which this is based.
Props pento, iseulde, kraftbj and peterwilsoncc for making the internet's dreams come true.
See #31242
Built from https://develop.svn.wordpress.org/trunk@31733
git-svn-id: http://core.svn.wordpress.org/trunk@31714 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-11 22:49:28 +00:00
Andrew Ozz
7d2b380330
TinyMCE: initialize the floating toolbars on preinit so we can attach other events on init.
...
Props iseulde. Fixes #30619 .
Built from https://develop.svn.wordpress.org/trunk@31732
git-svn-id: http://core.svn.wordpress.org/trunk@31713 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-11 22:41:26 +00:00
Andrew Ozz
cb185ed5bc
TinyMCE wpViews: use the real attribute value instead of the cached jQuery data. Fixes updating of the wpView text strings.
...
Props iseulde. Fixes #31601 .
Built from https://develop.svn.wordpress.org/trunk@31731
git-svn-id: http://core.svn.wordpress.org/trunk@31712 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-11 22:40:28 +00:00
John Blackbourn
bb99536bf5
Introduce a new algorithm for displaying a hierarchical list of post objects in the WP_Posts_List_Table
. This reduces processing time, reduces database queries, and substantially reduces memory use on sites with a high number of Pages.
...
Props nofearinc, rodrigosprimo, nacin, johnbillion.
Fixes #15459
Built from https://develop.svn.wordpress.org/trunk@31730
git-svn-id: http://core.svn.wordpress.org/trunk@31711 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-11 20:46:27 +00:00
Dominik Schilling
b5a06f7695
Introduce HTML5 widgets support.
...
When a theme supports HTML5 widgets via `add_theme_support( 'html5', 'widgets' )`, aside will be used instead of list markup.
props LeoPeo, valendesigns.
fixes #30556 .
Built from https://develop.svn.wordpress.org/trunk@31729
git-svn-id: http://core.svn.wordpress.org/trunk@31710 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-11 20:44:25 +00:00
Helen Hou-Sandí
8355845b8a
Fix a unit test after [31721].
...
props jipmoors.
see #22329 .
Built from https://develop.svn.wordpress.org/trunk@31728
git-svn-id: http://core.svn.wordpress.org/trunk@31709 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-11 20:12:27 +00:00
Andrew Ozz
9c09d0ea2c
TinyMCE, floating toolbars: return early if no selected element in the editor. See #30619 .
...
Built from https://develop.svn.wordpress.org/trunk@31727
git-svn-id: http://core.svn.wordpress.org/trunk@31708 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-11 20:08:27 +00:00
Helen Hou-Sandí
c16129d3cf
Enable more flexibility for non-URL GUIDs.
...
props stevenkword.
fixes #31080 .
Built from https://develop.svn.wordpress.org/trunk@31726
git-svn-id: http://core.svn.wordpress.org/trunk@31707 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-11 20:00:26 +00:00
Andrew Ozz
6e14ff9234
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 .
Built from https://develop.svn.wordpress.org/trunk@31725
git-svn-id: http://core.svn.wordpress.org/trunk@31706 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-11 19:12:28 +00:00
Dominik Schilling
593e062b2e
JSHint: Remove an unused variable.
...
see #28206 .
Built from https://develop.svn.wordpress.org/trunk@31724
git-svn-id: http://core.svn.wordpress.org/trunk@31705 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-11 17:40:27 +00:00
Dominik Schilling
b145025fe1
Update hoverIntent to 1.8.1.
...
props rachelbaker, jesin.
fixes #31505 .
Built from https://develop.svn.wordpress.org/trunk@31723
git-svn-id: http://core.svn.wordpress.org/trunk@31704 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-11 17:15:27 +00:00
Helen Hou-Sandí
0b3170fc7d
Gravatars: Remove redundant 1x srcset.
...
props miqrogroove.
see #22329 .
Built from https://develop.svn.wordpress.org/trunk@31722
git-svn-id: http://core.svn.wordpress.org/trunk@31703 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-11 16:56:27 +00:00
Helen Hou-Sandí
0bf35836c3
Gravatars: Enable HiDPI versions for browsers that support srcset.
...
props iseulde.
see #22329 .
Built from https://develop.svn.wordpress.org/trunk@31721
git-svn-id: http://core.svn.wordpress.org/trunk@31702 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-11 16:32:26 +00:00
Andrew Ozz
4eba346517
Allow swiping of the admin menu on touch devices.
...
Props iseulde, ninnypants. See #31187 .
Built from https://develop.svn.wordpress.org/trunk@31720
git-svn-id: http://core.svn.wordpress.org/trunk@31701 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-11 16:29:26 +00:00
Helen Hou-Sandí
e5a7fc36d8
Plugin details: Ensure banner image doesn't repeat.
...
props senff, valendesigns.
fixes #30773 .
Built from https://develop.svn.wordpress.org/trunk@31719
git-svn-id: http://core.svn.wordpress.org/trunk@31700 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-11 16:12:26 +00:00
Dominik Schilling
d97fc40a0c
Editor: Hide TinyMCE help button on mobile.
...
props MattyRob, iseulde.
fixes #31161 .
Built from https://develop.svn.wordpress.org/trunk@31718
git-svn-id: http://core.svn.wordpress.org/trunk@31699 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-11 16:02:26 +00:00
Dominik Schilling
50c2cee32d
Merge three similar strings.
...
props pavelevap.
see #31013 .
Built from https://develop.svn.wordpress.org/trunk@31717
git-svn-id: http://core.svn.wordpress.org/trunk@31698 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-11 15:25:28 +00:00
Dominik Schilling
31b7a7a762
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 .
Built from https://develop.svn.wordpress.org/trunk@31716
git-svn-id: http://core.svn.wordpress.org/trunk@31697 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-11 15:12:27 +00:00
Helen Hou-Sandí
4cf596708a
wpLink: Title case "Link Text", as it's an existing string.
...
see #28206 .
Built from https://develop.svn.wordpress.org/trunk@31715
git-svn-id: http://core.svn.wordpress.org/trunk@31696 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-11 03:03:28 +00:00
Andrew Ozz
eb878043a5
wpLink: change the text label to Link text, always focus the URK field, fix Ctrl/Cmd + K shortcut. See #28206 .
...
Built from https://develop.svn.wordpress.org/trunk@31714
git-svn-id: http://core.svn.wordpress.org/trunk@31695 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-11 03:01:27 +00:00
Andrew Ozz
9029c07592
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 .
Built from https://develop.svn.wordpress.org/trunk@31713
git-svn-id: http://core.svn.wordpress.org/trunk@31694 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-11 02:40:27 +00:00
John Blackbourn
97fa0cf1b3
RIP3 Revision3
...
Fixes #31592
Built from https://develop.svn.wordpress.org/trunk@31712
git-svn-id: http://core.svn.wordpress.org/trunk@31693 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-11 02:07:25 +00:00
John Blackbourn
d7c60f135a
Some updates to the oEmbed provider table.
...
See #28507
Built from https://develop.svn.wordpress.org/trunk@31711
git-svn-id: http://core.svn.wordpress.org/trunk@31692 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-11 02:03:27 +00:00
John Blackbourn
4f1e0eee52
Allow https
URLs for Instagram embeds, and switch to https
for its oEmbed API endpoint.
...
See #28507 .
Built from https://develop.svn.wordpress.org/trunk@31710
git-svn-id: http://core.svn.wordpress.org/trunk@31691 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-11 01:06:26 +00:00
Sergey Biryukov
26f454de3e
Restore <title>
tag on Posts and Pages screens after [31696].
...
fixes #31349 .
Built from https://develop.svn.wordpress.org/trunk@31709
git-svn-id: http://core.svn.wordpress.org/trunk@31690 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-11 00:49:29 +00:00
Sergey Biryukov
bff59aa8cb
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 .
Built from https://develop.svn.wordpress.org/trunk@31708
git-svn-id: http://core.svn.wordpress.org/trunk@31689 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-10 23:20:26 +00:00
Dominik Schilling
953cf28ac6
Customizer: Return the original value when filtering theme mods/options and the current blog has changed.
...
props westonruter.
fixes #31428 .
Built from https://develop.svn.wordpress.org/trunk@31707
git-svn-id: http://core.svn.wordpress.org/trunk@31688 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-10 23:05:27 +00:00
Dominik Schilling
9250d59e6a
Customizer: Prevent a race condition when attempting to publish too soon after updating widget form fields with multiple edits.
...
props westonruter.
fixes #31501 .
Built from https://develop.svn.wordpress.org/trunk@31706
git-svn-id: http://core.svn.wordpress.org/trunk@31687 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-10 22:45:27 +00:00
Dominik Schilling
b96a624cb9
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 .
Built from https://develop.svn.wordpress.org/trunk@31705
git-svn-id: http://core.svn.wordpress.org/trunk@31686 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-10 22:39:28 +00:00
Dominik Schilling
2ae3dfa119
Customizer: Add title attributes to iframes.
...
props afercia.
fixes #31202 .
Built from https://develop.svn.wordpress.org/trunk@31704
git-svn-id: http://core.svn.wordpress.org/trunk@31685 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-10 21:20:26 +00:00
Andrew Ozz
9da43ab993
TinyMCE: Remove old placeholder functions and callbacks.
...
Props iseulde. Fixes #31576 .
Built from https://develop.svn.wordpress.org/trunk@31703
git-svn-id: http://core.svn.wordpress.org/trunk@31684 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-10 20:28:26 +00:00
Dominik Schilling
286545cad6
Theme Details: Hide admin toolbar on smaller screens.
...
props obenland.
fixes #31381 .
Built from https://develop.svn.wordpress.org/trunk@31702
git-svn-id: http://core.svn.wordpress.org/trunk@31683 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-10 20:04:26 +00:00
Sergey Biryukov
74dfb2680b
Don't run update checks for AJAX requests after [31168].
...
fixes #30947 .
Built from https://develop.svn.wordpress.org/trunk@31701
git-svn-id: http://core.svn.wordpress.org/trunk@31682 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-10 19:30:27 +00:00
Andrew Ozz
5de66d4176
TinyMCE: update to 4.1.9. Fixes #31551 .
...
Built from https://develop.svn.wordpress.org/trunk@31700
git-svn-id: http://core.svn.wordpress.org/trunk@31681 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-10 19:20:28 +00:00
Boone Gorges
7e7a0304d2
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 .
Built from https://develop.svn.wordpress.org/trunk@31699
git-svn-id: http://core.svn.wordpress.org/trunk@31680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-10 19:08:26 +00:00
Dominik Schilling
f9180e1b4b
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 .
Built from https://develop.svn.wordpress.org/trunk@31698
git-svn-id: http://core.svn.wordpress.org/trunk@31679 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-10 18:02:28 +00:00
Dominik Schilling
3349b7d25b
Customizer: Add loading indicators for the Customizer preview.
...
props Fab1en, westonruter.
fixes #31196 .
Built from https://develop.svn.wordpress.org/trunk@31697
git-svn-id: http://core.svn.wordpress.org/trunk@31678 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-10 15:56:26 +00:00
Dominik Schilling
13ad2d4e16
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 .
Built from https://develop.svn.wordpress.org/trunk@31696
git-svn-id: http://core.svn.wordpress.org/trunk@31677 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-10 15:32:27 +00:00
Dominik Schilling
70b7369935
Comments: Fix undefined $comment_url
variable notice, introduced in [31641].
...
see #23988 .
Built from https://develop.svn.wordpress.org/trunk@31695
git-svn-id: http://core.svn.wordpress.org/trunk@31676 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-10 14:51:26 +00:00
Sergey Biryukov
19f1d4f402
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 .
Built from https://develop.svn.wordpress.org/trunk@31694
git-svn-id: http://core.svn.wordpress.org/trunk@31675 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-10 05:07:28 +00:00
Andrew Ozz
be24bc3a97
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 .
Built from https://develop.svn.wordpress.org/trunk@31693
git-svn-id: http://core.svn.wordpress.org/trunk@31674 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-09 21:49:28 +00:00
Helen Hou-Sandí
fe47177a65
Media library: Revert [31582], as it introduces navigation difficulties for many users.
...
see #30333 .
Built from https://develop.svn.wordpress.org/trunk@31692
git-svn-id: http://core.svn.wordpress.org/trunk@31673 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-09 21:17:29 +00:00
Andrew Ozz
d08bb970ae
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 .
...
Built from https://develop.svn.wordpress.org/trunk@31691
git-svn-id: http://core.svn.wordpress.org/trunk@31672 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-09 20:00:27 +00:00
Scott Taylor
6ffa051689
Replace flagrant instances of .html('')
with .empty()
.
...
Props OriginalEXE, SergeyBiryukov.
Fixes #27034 .
Built from https://develop.svn.wordpress.org/trunk@31690
git-svn-id: http://core.svn.wordpress.org/trunk@31671 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-09 19:44:26 +00:00
Andrew Ozz
15ec9441cb
TinyMCE wpView: decode HTML entities before trying to match the wpView text string. Props iseulde. See #31412 .
...
Built from https://develop.svn.wordpress.org/trunk@31689
git-svn-id: http://core.svn.wordpress.org/trunk@31670 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-09 19:09:27 +00:00
Drew Jaynes
4815bfc2a0
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 .
Built from https://develop.svn.wordpress.org/trunk@31688
git-svn-id: http://core.svn.wordpress.org/trunk@31669 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-09 07:04:27 +00:00
Dion Hulse
4f7856aabe
Fix the editable_slug hook documentation, the PHPDoc must come directly before the hook call, with no HTML inbetween.
...
Props DrewAPicture. Fixes #31569
Built from https://develop.svn.wordpress.org/trunk@31687
git-svn-id: http://core.svn.wordpress.org/trunk@31668 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-09 06:43:26 +00:00
Dion Hulse
8a9181d8d4
SSH2 Upgrade transport: Trim the trailing newline character from the ouput of pwd
to avoid a PHP Segfault.
...
Fixes #30802 for trunk.
Built from https://develop.svn.wordpress.org/trunk@31686
git-svn-id: http://core.svn.wordpress.org/trunk@31667 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-09 04:32:27 +00:00
Scott Taylor
a685aa6670
[31684] has BC issues, revert it.
...
Props nacin.
See #30799 .
Built from https://develop.svn.wordpress.org/trunk@31685
git-svn-id: http://core.svn.wordpress.org/trunk@31666 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-09 02:36:26 +00:00
Scott Taylor
11ccf8f625
Remove the PHP4 constructor from WP_Widget
.
...
See #30799 .
Built from https://develop.svn.wordpress.org/trunk@31684
git-svn-id: http://core.svn.wordpress.org/trunk@31665 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-09 02:25:27 +00:00
Scott Taylor
d577c673e2
self
should be used for accessing local static members.
...
See #30799 .
Built from https://develop.svn.wordpress.org/trunk@31683
git-svn-id: http://core.svn.wordpress.org/trunk@31664 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-09 02:22:26 +00:00
Scott Taylor
2bcae51cfd
Declare multisite
as a field for WP_Object_Cache
.
...
See #30799 .
Built from https://develop.svn.wordpress.org/trunk@31682
git-svn-id: http://core.svn.wordpress.org/trunk@31663 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-09 02:18:27 +00:00
Scott Taylor
0ec87e4584
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 .
Built from https://develop.svn.wordpress.org/trunk@31681
git-svn-id: http://core.svn.wordpress.org/trunk@31662 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-09 02:11:28 +00:00
Andrew Ozz
ff5b22b872
PressThis: fix styling of wpLink.
...
Props Michael-Arestad, see #31373 .
Built from https://develop.svn.wordpress.org/trunk@31680
git-svn-id: http://core.svn.wordpress.org/trunk@31661 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-08 23:23:26 +00:00
Scott Taylor
dccf5ceb90
Empty return
statements are unnecessary at the end of functions.
...
See #30799 .
Built from https://develop.svn.wordpress.org/trunk@31679
git-svn-id: http://core.svn.wordpress.org/trunk@31660 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-08 23:09:27 +00:00
Scott Taylor
b4869ed42f
Avoid function calls on each iteration of a for
loop.
...
See #30799 .
Built from https://develop.svn.wordpress.org/trunk@31678
git-svn-id: http://core.svn.wordpress.org/trunk@31659 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-08 23:01:26 +00:00
Boone Gorges
6aff223ffb
jshint fixes for press-this.js.
...
Built from https://develop.svn.wordpress.org/trunk@31677
git-svn-id: http://core.svn.wordpress.org/trunk@31658 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-08 16:27:28 +00:00
Boone Gorges
d5e42f3d3e
Share fixtures across wp_list_authors()
tests.
...
See #30017 .
Built from https://develop.svn.wordpress.org/trunk@31676
git-svn-id: http://core.svn.wordpress.org/trunk@31657 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-08 15:58:26 +00:00
Andrew Ozz
7c65a95e4b
Fix tagBox init on the Edit Post screen. Props tyxla. Fixes #31558 .
...
Built from https://develop.svn.wordpress.org/trunk@31675
git-svn-id: http://core.svn.wordpress.org/trunk@31656 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-08 04:54:26 +00:00
Jeremy Felt
0f34b98bcf
Reveal row actions on focus in the network users list table.
...
In the future, we'll re-factor this selector pile in a way that makes things cleaner. See #25408 .
Props afercia.
Fixes #31003 .
Built from https://develop.svn.wordpress.org/trunk@31674
git-svn-id: http://core.svn.wordpress.org/trunk@31655 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-08 02:27:27 +00:00
Jeremy Felt
b5b5c98e0a
Introduce delete_site meta capability.
...
Map `delete_site` as a meta capability to `manage_options` so that the ability to delete sites can be more granularly managed for individual site administrators on a multisite network.
Props thomaswm.
Fixes #30470 .
Built from https://develop.svn.wordpress.org/trunk@31673
git-svn-id: http://core.svn.wordpress.org/trunk@31654 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-08 02:10:30 +00:00
Scott Taylor
c1cab11ceb
Use $this->
instead of parent::
when calling tablenav()
in WP_Theme_Install_List_Table
.
...
See #30799 .
Built from https://develop.svn.wordpress.org/trunk@31672
git-svn-id: http://core.svn.wordpress.org/trunk@31653 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-07 23:03:27 +00:00
Scott Taylor
a91d1c2ab2
Add oEmbed support for Kickstarter.
...
See #29126 .
Built from https://develop.svn.wordpress.org/trunk@31671
git-svn-id: http://core.svn.wordpress.org/trunk@31652 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-07 22:11:26 +00:00
Boone Gorges
ddc556e492
Whitelist 'psd' for uploads when testing `wp_attachment_is() on multisite.
...
It's not allowed by default, which causes the fixture not to be built.
See #25275 [31647].
Built from https://develop.svn.wordpress.org/trunk@31670
git-svn-id: http://core.svn.wordpress.org/trunk@31651 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-07 18:48:29 +00:00
Boone Gorges
f5513227db
Improved 'orderby' meta syntax in WP_User_Query
.
...
Recent commits have added the ability to order query results by specific
clauses of the 'meta_query' parameter (comments [31467], posts [31312] and
[31340]). The current changeset ports the same functionality to `WP_User_Query`.
Also introduced is the ability to pass the value of `$meta_key` to 'orderby'.
The internals of `WP_User_Query::prepare_users()` had to be reordered
somewhat to support these changes, primarily to ensure that the `meta_query`
object generates its SQL clauses before the 'orderby' parameter is parsed.
See #31265 .
Built from https://develop.svn.wordpress.org/trunk@31669
git-svn-id: http://core.svn.wordpress.org/trunk@31650 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-07 18:38:27 +00:00
Boone Gorges
4e1a8b195f
User query meta_vars
test must account for the 'blog_id' clause added in multisite.
...
See #31265 .
Built from https://develop.svn.wordpress.org/trunk@31668
git-svn-id: http://core.svn.wordpress.org/trunk@31649 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-07 17:34:26 +00:00
Andrew Ozz
f02a17e2a1
TinyMCE wpView: improve unbinding of mutationObserver in nested iframes. Props iseulde. See #31412 .
...
Built from https://develop.svn.wordpress.org/trunk@31667
git-svn-id: http://core.svn.wordpress.org/trunk@31648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-07 16:53:27 +00:00
Boone Gorges
9c20c8f7b7
Add tests for the conversion of 'meta_*' query vars to $meta_query
objects in all query classes.
...
See #31265 .
Built from https://develop.svn.wordpress.org/trunk@31666
git-svn-id: http://core.svn.wordpress.org/trunk@31647 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-07 16:35:53 +00:00
Boone Gorges
f07ebeff91
In WP_User_Query
, $meta_query
should be a class property rather than a local variable.
...
This provides better parity with other query classes, and makes it possible to
write more direct unit tests.
See #31265 .
Built from https://develop.svn.wordpress.org/trunk@31665
git-svn-id: http://core.svn.wordpress.org/trunk@31646 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-07 16:35:27 +00:00
Boone Gorges
503b36dd23
Fix documentation whitespace after [31663].
...
See #31265 .
Built from https://develop.svn.wordpress.org/trunk@31664
git-svn-id: http://core.svn.wordpress.org/trunk@31645 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-07 16:08:27 +00:00
Boone Gorges
1101444648
Improve 'orderby' syntax for WP_User_Query
.
...
This changeset ports a number of 'orderby' features from `WP_Query` and
`WP_Comment_Query`:
* Allow multiple 'orderby' values to be passed as a space-separated list.
* Allow multiple 'orderby' values to be passed as a flat array.
* Allow multi-dimensional 'orderby', with orderby fields as array keys and ASC/DESC as the corresponding values.
See #31265 .
Built from https://develop.svn.wordpress.org/trunk@31663
git-svn-id: http://core.svn.wordpress.org/trunk@31644 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-07 16:06:27 +00:00
Boone Gorges
09a9ce9e0a
Tests for some existing 'orderby' functionality in WP_*_Query
classes.
...
* In `WP_Query` and `WP_Comment_Query`, ensure that 'orderby' can parse multiple values for 'orderby' when passed as a space-separated string.
* In `WP_User_Query`, ensure that "shorthand" orderbys (like 'login' and 'name') are converted to their full versions (like 'user_login' and 'display_name').
See #31265 .
Built from https://develop.svn.wordpress.org/trunk@31662
git-svn-id: http://core.svn.wordpress.org/trunk@31643 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-07 15:45:31 +00:00
Dominik Schilling
08f0376f91
Customizer: Add audio/video previews for upload controls.
...
props celloexpressions, Fab1en, wonderboymusic.
fixes #30850 .
Built from https://develop.svn.wordpress.org/trunk@31661
git-svn-id: http://core.svn.wordpress.org/trunk@31642 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-07 11:06:29 +00:00
Drew Jaynes
b1a59e9d30
Add a missing @since 4.2.0
tag to the DocBlock for wp_attachment_is()
.
...
See #25275 .
Built from https://develop.svn.wordpress.org/trunk@31660
git-svn-id: http://core.svn.wordpress.org/trunk@31641 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-07 07:12:28 +00:00
Drew Jaynes
b84904051b
Better document parameters and the return for the newly-introduced wp_attachment_is()
.
...
Also adds a changelog entry to the DocBlock for `wp_attachment_is_image()` to denote that it serves as a wrapper for `wp_attachment_is()` as of 4.2.0.
See [31645]. See #25275 .
Built from https://develop.svn.wordpress.org/trunk@31659
git-svn-id: http://core.svn.wordpress.org/trunk@31640 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-07 07:09:28 +00:00
Jeremy Felt
80d13281ed
Return HTTP status code 403 in network admin when access is forbidden.
...
When the error message "You do not have permission to access this page" is used in network admin screens, return an HTTP status code of 403 to match. Previously: [30356] and [31300].
Props yo-l1982.
Fixes #31422 .
Built from https://develop.svn.wordpress.org/trunk@31658
git-svn-id: http://core.svn.wordpress.org/trunk@31639 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-07 06:00:28 +00:00
Jeremy Felt
3c4b95c1e3
Return HTTP status code 500 by default in ms_not_installed()
...
In admin views, specify a response code of 500 when using `wp_die()` to show an expanded message for a broken or missing multisite installation.
On front end views, use `dead_db()` rather than `die()` to generate the generic "Error establishing a database connection" message. `dead_db()` sets a status code of 500 by default and allows for the override of this generic error with a `db-error.php` template.
Props craig-ralston, jeremyfelt.
Fixes #30002 .
Built from https://develop.svn.wordpress.org/trunk@31657
git-svn-id: http://core.svn.wordpress.org/trunk@31638 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-07 05:35:26 +00:00
Jeremy Felt
63ceacb67a
Improve experience when deleting users from a multisite network.
...
When deleting a user who is not associated with any sites, the current messaging can be confusing as only users associated with at least one site actually appear on the confirmation page for deletion.
This experience can be improved by showing all users being deleted as well as their current site associations.
* If an empty array of users is passed, don't attempt to confirm deletion.
* If one user is passed, show a message crafted for a user of one.
* If multiple users are passed, show a message crafted for many.
* Show the pending results of all users to be deleted.
* Update messaging around the deletion/confirmation process to be less misleading.
Props Idealien, HarishChaudhari, DrewAPicture.
Fixes #18132 .
Built from https://develop.svn.wordpress.org/trunk@31656
git-svn-id: http://core.svn.wordpress.org/trunk@31637 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-07 04:40:28 +00:00
Andrew Ozz
be207e6550
PressThis: make the Preview button "subtle".
...
See #31458 .
Built from https://develop.svn.wordpress.org/trunk@31655
git-svn-id: http://core.svn.wordpress.org/trunk@31636 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-07 01:50:26 +00:00
Andrew Ozz
9716d171c7
PressThis: add preview functionality. Opens the preview in a new window or a tab next to the source tab.
...
Fixes #31458 .
Built from https://develop.svn.wordpress.org/trunk@31654
git-svn-id: http://core.svn.wordpress.org/trunk@31635 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-07 01:17:26 +00:00
Boone Gorges
b421255fc8
When passing $full
to get_posts_by_author_sql()
, make sure a 'post_type' clause is included in results.
...
This change makes the 'post_type' clause in `wp_list_authors()` redundant, so
we remove it. Third-party plugins using `get_posts_by_author_sql()` may have
similarly redundant clauses, but this won't change the results returned by the
SQL queries.
Also adds unit tests for `get_posts_by_author_sql()`.
Props pbearne.
Fixes #30354 .
Built from https://develop.svn.wordpress.org/trunk@31653
git-svn-id: http://core.svn.wordpress.org/trunk@31634 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-07 01:15:28 +00:00
Drew Jaynes
6486a233c0
Remove a duplicate mention of the default value for the $number
argument in get_terms()
.
...
Props iandunn.
Fixes #31526 .
Built from https://develop.svn.wordpress.org/trunk@31652
git-svn-id: http://core.svn.wordpress.org/trunk@31633 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-07 01:05:26 +00:00
Andrew Ozz
a27967aa05
PressThis:
...
- Close the sidebar on moving the focus outside of it (by clicking or by "tabbing").
- Fix a (weird) structural CSS problem where clicks go through the sidebar when it is open.
- Clean up the JS a bit.
Fixes #31457 .
Built from https://develop.svn.wordpress.org/trunk@31651
git-svn-id: http://core.svn.wordpress.org/trunk@31632 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-06 22:57:26 +00:00
Scott Taylor
47efbd9dcb
Update NPM Grunt packages: compress
, concat
, copy
, imagemin
and uglify
...
Props netweb.
Fixes #31489 .
Built from https://develop.svn.wordpress.org/trunk@31650
git-svn-id: http://core.svn.wordpress.org/trunk@31631 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-06 21:15:37 +00:00