Sergey Biryukov
a1fb0a378c
Restore line breaks before comment text in comment notification emails.
...
fixes #31508 .
Built from https://develop.svn.wordpress.org/trunk@31770
git-svn-id: http://core.svn.wordpress.org/trunk@31750 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-13 18:29:27 +00:00
Sergey Biryukov
a956c2798d
Ignore .DS_Store
files.
...
props danielbachhuber.
fixes #31633 .
Built from https://develop.svn.wordpress.org/trunk@31769
git-svn-id: http://core.svn.wordpress.org/trunk@31749 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-13 18:12:27 +00:00
Andrew Ozz
5080f1e3af
PressThis: improve translatable strings on the Tools screen.
...
Props: afercia. See #28873 .
Built from https://develop.svn.wordpress.org/trunk@31768
git-svn-id: http://core.svn.wordpress.org/trunk@31748 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-13 17:31:28 +00:00
Drew Jaynes
79979c27c2
Post 4.2-beta1 version bump.
...
Built from https://develop.svn.wordpress.org/trunk@31767
git-svn-id: http://core.svn.wordpress.org/trunk@31747 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-13 17:26:27 +00:00
Drew Jaynes
f02e801045
WordPress 4.2-beta1
...
Built from https://develop.svn.wordpress.org/trunk@31763
git-svn-id: http://core.svn.wordpress.org/trunk@31744 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-12 23:11:28 +00:00
Andrew Ozz
731f7c500d
TinyMCE: fix emoji parsing in IE typo. See #31242 .
...
Built from https://develop.svn.wordpress.org/trunk@31762
git-svn-id: http://core.svn.wordpress.org/trunk@31743 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-12 23:03:26 +00:00
Andrew Ozz
b20119d92f
TinyMCE: fix emoji parsing in IE. See #31242 .
...
Built from https://develop.svn.wordpress.org/trunk@31761
git-svn-id: http://core.svn.wordpress.org/trunk@31742 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-12 23:00:27 +00:00
Drew Jaynes
b2dbe2080f
WordPress 4.2-beta1
...
Built from https://develop.svn.wordpress.org/trunk@31760
git-svn-id: http://core.svn.wordpress.org/trunk@31741 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-12 22:50:27 +00:00
Dominik Schilling
6b01aa3a4f
grunt imagemin
for [31745].
...
see #31242 .
Built from https://develop.svn.wordpress.org/trunk@31759
git-svn-id: http://core.svn.wordpress.org/trunk@31740 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-12 22:01:26 +00:00
Dominik Schilling
8fc889b2da
Update Twemoji to 1.3.0.
...
Includes a fix for Firefox: 92d5bea1ab
Since this fix breaks IE 11 we added `modified = false;` after `subnode.parentNode.replaceChild(fragment, subnode)`.
props iseulde.
see #31242 .
Built from https://develop.svn.wordpress.org/trunk@31758
git-svn-id: http://core.svn.wordpress.org/trunk@31739 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-12 22:00:28 +00:00
Andrew Ozz
036f131b14
TinyMCE wpViews: fix typos in the conditional checking which stylesheets to import.
...
Props mattheu. See #31464 .
Built from https://develop.svn.wordpress.org/trunk@31757
git-svn-id: http://core.svn.wordpress.org/trunk@31738 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-12 20:08:27 +00:00
Andrew Ozz
e7131def4d
Emoji:
...
- Patch twemoji.js to prevent infinite loop.
- Fix some `undefined` errors in old IE.
Props iseulde. See #31242 .
Built from https://develop.svn.wordpress.org/trunk@31756
git-svn-id: http://core.svn.wordpress.org/trunk@31737 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-12 19:53:26 +00:00
Dominik Schilling
474f001c42
Revert [31749], see #31528 .
...
Built from https://develop.svn.wordpress.org/trunk@31755
git-svn-id: http://core.svn.wordpress.org/trunk@31736 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-12 17:51:26 +00:00
Helen Hou-Sandí
798abe9f78
Allow is_page_template()
to accept an array, as many other conditional tags do.
...
props morganestes, tyxla, DrewAPicture.
fixes #31271 .
Built from https://develop.svn.wordpress.org/trunk@31754
git-svn-id: http://core.svn.wordpress.org/trunk@31735 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-12 16:28:27 +00:00
Sergey Biryukov
5c9656393a
Shiny Updates: Disable body scrolling when filesystem request modal is open.
...
props ericlewis.
fixes #31607 .
Built from https://develop.svn.wordpress.org/trunk@31753
git-svn-id: http://core.svn.wordpress.org/trunk@31734 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-12 14:57:26 +00:00
Gary Pendergast
351ea2d6f8
Emoji: There's a little tear in my eye as I remove DOMDocument from the Emoji staticizer. It was a beautiful dream, but it wasn't to be.
...
Instead, let's use the tried and trusted smiley replacement algorithm, which has stood the test of time.
See #31242
Built from https://develop.svn.wordpress.org/trunk@31752
git-svn-id: http://core.svn.wordpress.org/trunk@31733 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-12 13:17:26 +00:00
Sergey Biryukov
e8a600ac94
Shiny Updates: Don't translate an error code string.
...
props ericlewis.
fixes #31606 .
Built from https://develop.svn.wordpress.org/trunk@31751
git-svn-id: http://core.svn.wordpress.org/trunk@31732 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-12 13:09:27 +00:00
Gary Pendergast
b7546d798f
Emoji: Instead of having custom hooks for Ajax callbacks, use MutationObserver to re-parse any changed elements in the DOM.
...
Props iseulde
See #31242
Built from https://develop.svn.wordpress.org/trunk@31750
git-svn-id: http://core.svn.wordpress.org/trunk@31731 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-12 12:52:26 +00:00
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
Scott Taylor
ae90e6a536
Update grunt-contrib-jshint
to 0.11.0
...
Props netweb.
Fixes #31488 .
Built from https://develop.svn.wordpress.org/trunk@31649
git-svn-id: http://core.svn.wordpress.org/trunk@31630 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-06 21:08:29 +00:00
Scott Taylor
6dd747f27c
Update grunt-sass
to 0.18.0
.
...
Props netweb.
Fixes #31343 .
Built from https://develop.svn.wordpress.org/trunk@31648
git-svn-id: http://core.svn.wordpress.org/trunk@31629 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-06 21:05:46 +00:00
Scott Taylor
70aec9e406
Add unit tests for wp_attachment_is()
, checks the whitelist and arbitrary extension.
...
See #25275 .
Built from https://develop.svn.wordpress.org/trunk@31647
git-svn-id: http://core.svn.wordpress.org/trunk@31628 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-06 20:38:26 +00:00
Scott Taylor
aabe0bcc2c
After [31645], for the default
case
, return the result of checking the extension against the passed type.
...
See #25275 .
Built from https://develop.svn.wordpress.org/trunk@31646
git-svn-id: http://core.svn.wordpress.org/trunk@31627 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-06 20:28:26 +00:00
Scott Taylor
8f0b626d13
Introduce a function, wp_attachment_is( $type, $post = 0 )
, to collapse the logic for determining whether an attachment is an image
, audio
, or video
.
...
This is admittedly a first pass. There needs to be a generic handler for when any other type is passed, but for now it accepts the whitelist.
See #25275 .
Built from https://develop.svn.wordpress.org/trunk@31645
git-svn-id: http://core.svn.wordpress.org/trunk@31626 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-06 20:26:26 +00:00
Lance Willett
04ff214073
Twenty Fifteen: add ARIA attributes to menu toggle.
...
See #31527 , props davidakennedy, lance.
Built from https://develop.svn.wordpress.org/trunk@31644
git-svn-id: http://core.svn.wordpress.org/trunk@31625 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-06 17:34:26 +00:00
Scott Taylor
38df7e5048
For our MediaElement 2.16.4 build + monkey patches, also add from the illustrious dd32:
...
https://github.com/johndyer/mediaelement/pull/1423
Props dd32.
See [31444], #31541 .
Built from https://develop.svn.wordpress.org/trunk@31643
git-svn-id: http://core.svn.wordpress.org/trunk@31624 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-06 15:47:26 +00:00
Helen Hou-Sandí
b6393c9d77
Media: UI tweaks for Insert from URL.
...
"Title" field is now labeled as "Link Text", to reflect how it's actually used. It's also hidden whenever the embed is updating, to make it clearer that something is happening. Embed dimension fields are shown below the preview, much like image property fields are shown below.
fixes #29476 , see #31139 .
Built from https://develop.svn.wordpress.org/trunk@31642
git-svn-id: http://core.svn.wordpress.org/trunk@31623 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-06 15:03:25 +00:00
Helen Hou-Sandí
7ce4256d4d
Comments: Show more identifying information for moderation and editing.
...
Attempting to moderate comments without context about the post is more difficult than necessary. The comment moderation screen you are sent to via email link was also in need of some better visual treatment.
props thaicloud, seanchayes, adamsilverstein.
see #23988 .
Built from https://develop.svn.wordpress.org/trunk@31641
git-svn-id: http://core.svn.wordpress.org/trunk@31622 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-06 14:06:24 +00:00
Boone Gorges
305cf8b95e
Allow $autoload
setting to be changed for existing options using update_option()
.
...
[31628] made it possible to pass an `$autoload` param to `update_option()` that
applies when the option does not yet exist in the database. The current
changeset introduces parity for existing options: the `$autoload` setting
for existing options can be changed via the `$autoload` parameter. For internal
simplicity, `$autoload` is ignored for existing options when `$value` is not
also changed.
This changeset also moves `update_option()` tests into their own class.
Props dd32.
Fixes #26394 .
Built from https://develop.svn.wordpress.org/trunk@31640
git-svn-id: http://core.svn.wordpress.org/trunk@31621 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-06 13:57:26 +00:00
Boone Gorges
3acf36fe48
Ensure that an array of object IDs is passed to the 'get_object_terms' filter.
...
Originally introduced in [31581].
Props doublesharp.
Fixes #18828 .
Built from https://develop.svn.wordpress.org/trunk@31639
git-svn-id: http://core.svn.wordpress.org/trunk@31620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-06 13:18:26 +00:00
Drew Jaynes
68bbc0e43d
Correct the $number
argument description in get_terms()
to reflect that an empty string or 0 will return all possible results, not -1.
...
Previously, it was noted that -1 would return all possible results. However, as the value of `$number` is passed through `absint()`, -1 would actually be converted to 1, thereby producing unexpected results.
Props iandunn.
Fixes #31526 .
Built from https://develop.svn.wordpress.org/trunk@31638
git-svn-id: http://core.svn.wordpress.org/trunk@31619 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-06 08:05:25 +00:00
Andrew Ozz
5abac389fa
PressThis: when server-side parsing, filter small images by the width and height attributes if set.
...
See #31373 .
Built from https://develop.svn.wordpress.org/trunk@31637
git-svn-id: http://core.svn.wordpress.org/trunk@31618 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-06 02:03:27 +00:00
Andrew Ozz
0ba8fe0132
PressThis: fix toggling of aria-expanded
attribute.
...
Props afercia, see #31373 .
Built from https://develop.svn.wordpress.org/trunk@31636
git-svn-id: http://core.svn.wordpress.org/trunk@31617 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-06 01:51:25 +00:00
Andrew Ozz
bcad925af4
PressThis:
...
- Fix error when checking for empty array keys.
- Add better DailyMotion embed support.
Props stephdau, see #31373 .
Built from https://develop.svn.wordpress.org/trunk@31635
git-svn-id: http://core.svn.wordpress.org/trunk@31616 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-06 01:17:24 +00:00
Scott Taylor
e4952687f6
Audio previews need top margin on Edit Media screen.
...
Fixes #31524 .
Built from https://develop.svn.wordpress.org/trunk@31634
git-svn-id: http://core.svn.wordpress.org/trunk@31615 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-05 22:45:26 +00:00
Scott Taylor
b8341a472d
When adding post_type
to $sendback
in wp-admin/post.php
, use add_query_arg()
instead of string concatenation.
...
Props podpirate.
Fixes #31492 .
Built from https://develop.svn.wordpress.org/trunk@31633
git-svn-id: http://core.svn.wordpress.org/trunk@31614 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-05 22:31:24 +00:00
Scott Taylor
ba977671b6
In the modal state for Embed previews, only show the Title field when the preview fails.
...
Props johnbillion, wonderboymusic.
See #29476 .
Built from https://develop.svn.wordpress.org/trunk@31632
git-svn-id: http://core.svn.wordpress.org/trunk@31613 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-05 21:03:25 +00:00
Scott Taylor
c06316b7ab
Whitespace after [31630].
...
Built from https://develop.svn.wordpress.org/trunk@31631
git-svn-id: http://core.svn.wordpress.org/trunk@31612 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-05 20:14:24 +00:00
Scott Taylor
b05ff18586
Add oEmbed support for Tumblr.
...
Props elliottcarlson.
See #31180 .
Built from https://develop.svn.wordpress.org/trunk@31630
git-svn-id: http://core.svn.wordpress.org/trunk@31611 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-05 20:13:25 +00:00
Scott Taylor
e1e8782304
Use browserify
's watch mechanism in tandem with grunt watch
. Makes building media bundles about 10 (million) times faster.
...
Make the `browserify` config more dynamic to make future additions easier and to ensure proper use of `SOURCE_DIR`.
Props iseulde, wonderboymusic.
See #28510 .
Built from https://develop.svn.wordpress.org/trunk@31629
git-svn-id: http://core.svn.wordpress.org/trunk@31610 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-05 19:49:26 +00:00
Boone Gorges
11ec50e453
Introduce $autoload
parameter to update_option()
.
...
When creating an option via `add_option()`, the `$autoload` param allows you to
tell WP whether the option should be loaded as part of the 'alloptions' cache
during every pageload. `update_option()`, when used with a non-existent option
calls `add_option()` internally. The new `$autoload` param in `update_option()`
is passed along to `add_option()` in cases where the option does not yet exist.
The associated unit tests are skipped on multisite due to an issue that causes
`WP_INSTALLING` to force cache misses. See #31130 .
Props codix, nofearinc, MikeHansenMe.
Fixes #26394 .
Built from https://develop.svn.wordpress.org/trunk@31628
git-svn-id: http://core.svn.wordpress.org/trunk@31609 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-05 19:13:25 +00:00
Scott Taylor
cd49531b14
Ugrade to MediaElement 2.16.4:
...
https://github.com/johndyer/mediaelement/compare/2.16.2...2.16.4
Includes PRs from WordPress folk:
1a74854abf
f438256f5c
8b9856accd
Monkey-patch MediaElement to restore H264 support to Chromium.
Documented here:
https://core.trac.wordpress.org/ticket/31541#comment:1
See #31541 .
Built from https://develop.svn.wordpress.org/trunk@31627
git-svn-id: http://core.svn.wordpress.org/trunk@31608 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-05 16:54:26 +00:00
Scott Taylor
da7359b060
After [31620], when checking for HTTP URLs, make sure we are checking the shortcode body instead of an indexed attribute.
...
See #31139 .
Built from https://develop.svn.wordpress.org/trunk@31626
git-svn-id: http://core.svn.wordpress.org/trunk@31607 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-05 16:26:25 +00:00
Scott Taylor
ae85d506e6
When editing/viewing the details of a [video]
shortcode that has Vimeo as its source, and Froogaloop
has not already been lazy-loaded, check the details of the state's model for the video src
, instead of the HTML element.
...
See #29267 .
Built from https://develop.svn.wordpress.org/trunk@31625
git-svn-id: http://core.svn.wordpress.org/trunk@31606 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-05 16:15:25 +00:00
Scott Taylor
f9c138b4c4
detached
affects the wp()
call for the media list table, so switch our new $_GET
key to detach
.
...
See #6820 .
Built from https://develop.svn.wordpress.org/trunk@31624
git-svn-id: http://core.svn.wordpress.org/trunk@31605 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-05 15:59:27 +00:00
Boone Gorges
ec26a08d3c
Pinking shears in unit test files.
...
Built from https://develop.svn.wordpress.org/trunk@31623
git-svn-id: http://core.svn.wordpress.org/trunk@31604 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-05 13:15:53 +00:00
Boone Gorges
55e32049e3
In PHPUnit test classes, parent::tearDown()
should be the last thing done in tearDown()
methods.
...
`WP_UnitTestCase::tearDown()` restores the test environment to the default
conditions, including rolling back the MySQL transaction that the test takes
place in, resetting globals, and unhooking test-specific filters. As such, all
teardown routines for specific tests should happen before the parent class's
`tearDown()` method is called. Failure to do so can cause database locks on
certain configurations, among other problems.
See #31537 .
Built from https://develop.svn.wordpress.org/trunk@31622
git-svn-id: http://core.svn.wordpress.org/trunk@31603 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-05 13:15:25 +00:00
Andrew Ozz
36610e072b
TinyMCE wpView: revert decoding of HTML entities. Doesn't work in old IE and needs to be more selective. Keep the change from .html()
to .text()
when getting the content of a node. See #31412 .
...
Built from https://develop.svn.wordpress.org/trunk@31621
git-svn-id: http://core.svn.wordpress.org/trunk@31602 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-05 12:36:28 +00:00
Scott Taylor
cc953717b7
Allow inline editing of width
and height
parameters while previewing an embed in the media modal:
...
* Use `wp.shortcode()` instead of manually constructing a shortcode in `views/embed/link`
* Allow a URL to transition to a shortcode (and vice versa) when returning an embed to TinyMCE
* In `WP_Embed`, store the last URL and last set of attributes requested in class properties
* `wp_ajax_parse_embed()`, allow `[embed]`s to have attributes. Return `attr` in the response.
This is a first pass to allow broad testing with recent MCE view changes.
See #31139 .
Built from https://develop.svn.wordpress.org/trunk@31620
git-svn-id: http://core.svn.wordpress.org/trunk@31601 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-05 06:00:26 +00:00
Scott Taylor
d3471e9850
Allow attachments to be Detached from their parent in media grid and list modes.
...
See #6820 .
Built from https://develop.svn.wordpress.org/trunk@31619
git-svn-id: http://core.svn.wordpress.org/trunk@31600 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-05 05:35:28 +00:00
Scott Taylor
0250aebf2a
Media modules: set $
to Backbone.$
, instead of jQuery
, so fewer globals are imported.
...
See #28510 .
Built from https://develop.svn.wordpress.org/trunk@31618
git-svn-id: http://core.svn.wordpress.org/trunk@31599 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-05 04:12:26 +00:00
Boone Gorges
34715e3b1a
In get_next_comments_link()
, ensure proper pagination when no 'cpage' query var is found.
...
The 'cpage' query var is only set when using `comments_template()` to display
comments. If displaying them in a context where 'cpage' is not yet set, the
default value should be 1, not 0.
Props MomDad, couturefreak.
Fixes #20319 .
Built from https://develop.svn.wordpress.org/trunk@31617
git-svn-id: http://core.svn.wordpress.org/trunk@31598 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-05 03:57:24 +00:00
Scott Taylor
7ba0674183
[31468] reverted this in the 4.1 branch, also reverting in trunk.
...
See #30725 .
Built from https://develop.svn.wordpress.org/trunk@31616
git-svn-id: http://core.svn.wordpress.org/trunk@31597 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-05 03:50:28 +00:00
Boone Gorges
b3e11db20b
Respect comment_date
and comment_date_gmt
params in wp_new_comment()
.
...
Props solarissmoke, oso96_2000.
Fixes #14279 .
Built from https://develop.svn.wordpress.org/trunk@31615
git-svn-id: http://core.svn.wordpress.org/trunk@31596 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-05 03:00:26 +00:00
Boone Gorges
8c48f9400e
In wp_get_attachment_url()
, convert to HTTPS when possible.
...
`wp_get_attachment_url()`, via `wp_upload_dir()`, uses 'siteurl' to generate
attachment URLs. When a site is SSL-optional on the front end - ie, 'siteurl'
is non-HTTPS, but SSL is available - a number of situations can arise where
non-HTTPS attachment URLs cause browser mixed-content warnings:
a) SSL is forced in the admin and `wp_get_attachment_url()` is used to generate the `<img>` tag for an inserted image. In these cases, the post content will contain non-HTTPS. Viewing/editing this post in the Dashboard will result in non-HTTPS images being served in an SSL environment.
b) `wp_get_attachment_url()` is used in a theme to generate an `<img>` `src` attribute on a public page. When viewing that page over SSL, the images will have HTTP URLs.
This changeset switches attachment URLs to HTTPS when it's determined that the
host supports SSL. This happens when 'siteurl' is non-SSL, but the current page
request *is* over SSL, and the host of the current request matches the host of
the URL being generated.
Props joemcgill, boonebgorges.
Fixes #15928 .
Built from https://develop.svn.wordpress.org/trunk@31614
git-svn-id: http://core.svn.wordpress.org/trunk@31595 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-05 02:39:24 +00:00
Andrew Ozz
09ef640af4
PressThis: remove the extra .length tests for strings from press-this.js.
...
Props stephdau, see #31373 .
Built from https://develop.svn.wordpress.org/trunk@31613
git-svn-id: http://core.svn.wordpress.org/trunk@31594 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-04 21:01:25 +00:00
Andrew Ozz
810df170e7
TinyMCE wpView: decode HTML entities before trying to insert view markers. Props iseulde. See #31412 .
...
Built from https://develop.svn.wordpress.org/trunk@31612
git-svn-id: http://core.svn.wordpress.org/trunk@31593 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-04 20:35:27 +00:00
Helen Hou-Sandí
77f3f6943d
Autocomplete: Update CSS based on both jQuery UI and general visual changes.
...
props rodrigosprimo for the initial patch.
fixes #31427 .
Built from https://develop.svn.wordpress.org/trunk@31611
git-svn-id: http://core.svn.wordpress.org/trunk@31592 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-04 20:24:25 +00:00
Helen Hou-Sandí
df08581656
List tables: Display front and posts page indicators.
...
fixes #30190 .
Built from https://develop.svn.wordpress.org/trunk@31610
git-svn-id: http://core.svn.wordpress.org/trunk@31591 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-04 19:45:25 +00:00
Andrew Ozz
f53199487d
PressThis:
...
- Improve handling of the data, both from the bookmarklet and from server-side parsing.
- Standardize on processing the data in PHP and remove duplicate code from JS.
- Improve the bookmarklet code and remove pre-filtering of the data.
Part props stephdau, see #31373 .
Built from https://develop.svn.wordpress.org/trunk@31609
git-svn-id: http://core.svn.wordpress.org/trunk@31590 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-04 19:29:25 +00:00
Drew Jaynes
3b267afbf4
Correct a typo in the hash notation for wp_insert_user()
: The argument name should be $user_registered
not $date_registered
.
...
Props floriansimeth.
Fixes #31513 .
Built from https://develop.svn.wordpress.org/trunk@31608
git-svn-id: http://core.svn.wordpress.org/trunk@31589 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-04 09:51:26 +00:00
Helen Hou-Sandí
513a038159
Remove the once-placeholder-esque "tag hint", which has not worked in quite some time.
...
It's not particularly useful, and adds visual noise when in place.
props welcher.
fixes #31485 .
Built from https://develop.svn.wordpress.org/trunk@31607
git-svn-id: http://core.svn.wordpress.org/trunk@31588 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-03 21:53:25 +00:00
Andrew Ozz
eecd5561d8
wpLink: fix the logic for prepending http://
and trim the input.
...
Props iseulde. See #18149 .
Built from https://develop.svn.wordpress.org/trunk@31606
git-svn-id: http://core.svn.wordpress.org/trunk@31587 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-03 21:21:25 +00:00
Helen Hou-Sandí
b201f3a5cb
Fix some inline doc typos that were missed in [31604]. see #25698 .
...
Built from https://develop.svn.wordpress.org/trunk@31605
git-svn-id: http://core.svn.wordpress.org/trunk@31586 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-03 21:18:25 +00:00
Helen Hou-Sandí
5567d03278
Nav menus: Better JS performance on initial load of edit screen.
...
The accessibility helpers previously processed all items when editing a menu, which was quite slow to the point of being unresponsive for large menus. They now only process items when they are expanded or a user comes near them in some way, such as hover or focus.
Also simplifies a redundant set of click event handlers down to one, which further enhances performance.
props atimmer, sevenspark.
fixes #25698 .
Built from https://develop.svn.wordpress.org/trunk@31604
git-svn-id: http://core.svn.wordpress.org/trunk@31585 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-03 21:14:25 +00:00
Sergey Biryukov
b8bbd959e2
Themes: Avoid jumping when selecting a feature in the feature filter on Add Themes screen.
...
props abhishekfdd.
fixes #31497 .
Built from https://develop.svn.wordpress.org/trunk@31603
git-svn-id: http://core.svn.wordpress.org/trunk@31584 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-03 19:47:25 +00:00
Andrew Ozz
1750c89afb
wpLink:
...
- Prepend 'http://' to pasted URLs.
- Do not prepend it when typing an URL.
- Do not prepend it when pasting the same URL for the second time (trying to correct wrong guess).
Props iseulde. Fixes #18149 .
Built from https://develop.svn.wordpress.org/trunk@31602
git-svn-id: http://core.svn.wordpress.org/trunk@31583 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-03 00:01:28 +00:00
Andrew Ozz
a9f165915f
Press This:
...
- Remove classes from suggested HTML for the editor.
- Improve the filter, pass an associative array as param.
- Use <em> instead of <cite>.
Props Michael-Arestad, kraftbj. Fixes #31493 .
Built from https://develop.svn.wordpress.org/trunk@31601
git-svn-id: http://core.svn.wordpress.org/trunk@31582 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-02 23:41:27 +00:00
Drew Jaynes
bc378b8de1
Properly indent the hash notation of default arguments for wp_page_menu()
.
...
See #28841 .
Built from https://develop.svn.wordpress.org/trunk@31600
git-svn-id: http://core.svn.wordpress.org/trunk@31581 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-02 06:16:26 +00:00
Drew Jaynes
0b3c3092fc
Clean up and refine DocBlocks for a variety of functions and methods in wp-admin/includes/template.php.
...
* Also documents the default arguments of `wp_terms_checklist()` as a hash notation.
Props ipm-frommen, DrewAPicture.
Fixes #31248 .
Built from https://develop.svn.wordpress.org/trunk@31599
git-svn-id: http://core.svn.wordpress.org/trunk@31580 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-02 06:11:40 +00:00
Andrew Ozz
acc6c422e2
PressThis: fix and update buttons styles. Props Michael-Arestad. Fixes #31498 .
...
Built from https://develop.svn.wordpress.org/trunk@31598
git-svn-id: http://core.svn.wordpress.org/trunk@31579 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-02 01:18:27 +00:00
Andrew Ozz
c22307fd9a
PressThis: make sure buttons.css is loaded before press-this.css. Use (int) $post_ID instead of $post->ID.
...
See #31373 .
Built from https://develop.svn.wordpress.org/trunk@31597
git-svn-id: http://core.svn.wordpress.org/trunk@31578 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-02 00:58:25 +00:00
Andrew Ozz
3a124ac2f4
PressThis:
...
- Replace all `%1$s` and `%2$s` in suggestedHTML in case plugins repeat them.
- Fix docs typo, props kraftbj.
See #31373 .
Built from https://develop.svn.wordpress.org/trunk@31596
git-svn-id: http://core.svn.wordpress.org/trunk@31577 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-01 23:28:26 +00:00
Andrew Ozz
4e8138cea5
PressThis:
...
- Simplify `getSuggestedContent()` and helpers. No need to override the global `data`.
- Replace the `press_this_source_string` and `press_this_source_link` filters with `press_this_suggested_html` that allows filtering of the link and the wrapper HTML tags.
See #31373 .
Built from https://develop.svn.wordpress.org/trunk@31595
git-svn-id: http://core.svn.wordpress.org/trunk@31576 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-01 22:44:25 +00:00
Andrew Ozz
5e07bfdfd1
Add wp.a11y.speak()
for audible alerts/updates in screen readers. Props afercia, GrahamArmfield (for the idea), iseulde. Fixes #31368 .
...
Built from https://develop.svn.wordpress.org/trunk@31594
git-svn-id: http://core.svn.wordpress.org/trunk@31575 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-01 19:11:27 +00:00
Drew Jaynes
a337c34c4e
Fix a typo in the $args
parameter hash notation description for add_settings_field()
.
...
See #28975 , [31592].
Built from https://develop.svn.wordpress.org/trunk@31593
git-svn-id: http://core.svn.wordpress.org/trunk@31574 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-01 07:57:32 +00:00
Drew Jaynes
82fd5e33dd
Add a hash notation for the optional $args
parameter in add_settings_field()
, which includes a description for the new $class
argument added in [31560].
...
Also adds a changelog entry to `add_settings_field()` DocBlock for the new `$class` argument.
See [31560].
Fixes #28975 .
Built from https://develop.svn.wordpress.org/trunk@31592
git-svn-id: http://core.svn.wordpress.org/trunk@31573 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-01 07:53:25 +00:00
Drew Jaynes
33d9dd8066
Adjust the description for the $extra_attr
argument in the DocBlocks for get_avatar_data()
and get_avatar()
.
...
See [31561]. See #31469 .
Built from https://develop.svn.wordpress.org/trunk@31591
git-svn-id: http://core.svn.wordpress.org/trunk@31572 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-01 07:19:24 +00:00
Drew Jaynes
a49cd7851b
Add an entry to the changelog for wp_get_mime_types()
mentioning that GIMP (xcf) file support was added in 4.2.
...
See [31578].
Fixes #31146 .
Built from https://develop.svn.wordpress.org/trunk@31590
git-svn-id: http://core.svn.wordpress.org/trunk@31571 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-01 07:10:26 +00:00
Andrew Ozz
8164f8fe0e
PressThis:
...
- Remove unneeded passing of post formats strings to JS.
- Set the currently selected post format name with jQuery.
See #31373 .
Built from https://develop.svn.wordpress.org/trunk@31589
git-svn-id: http://core.svn.wordpress.org/trunk@31570 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-28 20:08:27 +00:00
Dominik Schilling
8ecb7f5d1e
Press This: Backwards compatibility enhancements.
...
* Add missing actions for printing styles/scripts.
* Since `$hook_suffix` is null, hardcode `press-this.php`.
* Restore body classes, add filter.
* Use boolean value instead of `__return_false()`.
* Use `wp_json_encode()`.
* Update docs for filters in script-loader.php.
* Make `<a href="%1$s">%2$s</a>` not translatable.
see #31373 .
Built from https://develop.svn.wordpress.org/trunk@31588
git-svn-id: http://core.svn.wordpress.org/trunk@31569 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-28 10:36:25 +00:00
Gary Pendergast
18bb886b22
When sanitizing a URL to redirect to, UTF-8 characters can be URL encoded, instead of being removed.
...
While RFC 3986 does not specify which character sets are allowed in URIs, Section 2.5 states that octects matching UTF-8 character encoding should be percent-encoded, then unreserved octets outside of the UTF-8 range should be percent-encoded. As browsers tend to only implement support for UTF-8 in URLs, this change only implements the UTF-8 encoding part. We may revisit the second part if it becomes an issue.
Fixes #31486
Built from https://develop.svn.wordpress.org/trunk@31587
git-svn-id: http://core.svn.wordpress.org/trunk@31568 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-28 02:21:26 +00:00
Andrew Ozz
5aae51144d
TinyMCE wpView: update the "update" method. Props iseulde. See #31412 .
...
Built from https://develop.svn.wordpress.org/trunk@31586
git-svn-id: http://core.svn.wordpress.org/trunk@31567 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-27 22:29:26 +00:00
Scott Taylor
7acfb7740b
In the Insert From URL
state of the Post
frame, add the necessary CSS for focus styles for images.
...
Example image to insert: https://flic.kr/p/rnsm5M
See #28820 .
Built from https://develop.svn.wordpress.org/trunk@31585
git-svn-id: http://core.svn.wordpress.org/trunk@31566 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-27 22:13:27 +00:00
Andrew Ozz
0b626ffea2
PressThis: when there is a protocol mismatch (http vs. https), use server-side media detection instead of submitting a form as it triggers "Unsafe data" warning in some browsers. Props stephdau. Fixes #31468 .
...
Built from https://develop.svn.wordpress.org/trunk@31584
git-svn-id: http://core.svn.wordpress.org/trunk@31565 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-27 22:06:25 +00:00
Andrew Ozz
9f86b1023b
PressThis: fix selecting a post format (radio buttons) with the keyboard. Props afercia, Michael-Arestad. Fixes #31440 .
...
Built from https://develop.svn.wordpress.org/trunk@31583
git-svn-id: http://core.svn.wordpress.org/trunk@31564 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-27 21:53:25 +00:00
Scott Taylor
39dabbb8b1
When viewing media in List mode, auto-submit the form for attachment filters when the value of a <select>
changes. This makes it behave similar to Grid mode and "feels" more performant, even though it is a full page load.
...
Fixes #30333 .
Built from https://develop.svn.wordpress.org/trunk@31582
git-svn-id: http://core.svn.wordpress.org/trunk@31563 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-27 21:27:25 +00:00
Boone Gorges
3db78d6a24
Introduce 'get_object_terms' filter in wp_get_object_terms()
.
...
The existing 'wp_get_object_terms' filter accepts a parameter `$taxonomies`,
which is a list of taxonomy names formatted for direct use in a MySQL IN clause.
This formatting makes it difficult to make use of the taxonomy list in filter
callbacks. However, changing the parameters passed to the existing filter
raises backward compatibility concerns, so we introduce a new filter that
receives a structured `$taxonomy_array` parameter.
We also take this opportunity to correct and clean up some of the documentation
on the 'wp_get_object_terms' filter.
Props postpostmodern, doublesharp, wonderboymusic, nacin.
Fixes #18828 .
Built from https://develop.svn.wordpress.org/trunk@31581
git-svn-id: http://core.svn.wordpress.org/trunk@31562 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-27 20:31:26 +00:00
Andrew Ozz
848cd46e9a
PressThis TinyMCE: set 'directionality' and add the LTR button when in RTL. Fixes #31474 .
...
Built from https://develop.svn.wordpress.org/trunk@31580
git-svn-id: http://core.svn.wordpress.org/trunk@31561 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-27 20:21:24 +00:00
Dominik Schilling
03a50ce509
Build: Let RTLCSS handle swapping the codes for right/left arrows from Dashicons.
...
Exclude `wp-includes/css/dashicons.css` from core task since we don't want/need a RTL version of it.
fixes #31478 .
Built from https://develop.svn.wordpress.org/trunk@31579
git-svn-id: http://core.svn.wordpress.org/trunk@31560 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-27 20:19:29 +00:00
Scott Taylor
7994009296
Support GIMP files in the Media Library. We already support Photoshop files.
...
Props MikeHansenMe.
Fixes #31146 .
Built from https://develop.svn.wordpress.org/trunk@31578
git-svn-id: http://core.svn.wordpress.org/trunk@31559 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-27 19:47:25 +00:00
Dominik Schilling
c7dba8b015
Press This: RTL improvements.
...
* Load the RTL version of press-this-editor.css.
* Use more semantic class names for the arrows, Makes it easier to swap the arrows in RTL, see #31478 .
see #31474 .
Built from https://develop.svn.wordpress.org/trunk@31577
git-svn-id: http://core.svn.wordpress.org/trunk@31558 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-27 19:44:24 +00:00
Scott Taylor
dbc38ea246
In the ->multi_resize()
method of the WP_Image_Editor
subclasses, when looping through potential crops, we need to make sure the crop isn't the exact same dimensions as the original image before copying it as a new crop.
...
This ensures that we don't save multiple copies of the same image.
Supposedly broke in [30639], but this logic was always missing. When I tested reverting [30639], there were still 2 files being created.
Fixes #31296 .
Built from https://develop.svn.wordpress.org/trunk@31576
git-svn-id: http://core.svn.wordpress.org/trunk@31557 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-27 19:38:27 +00:00
Scott Taylor
f6b1b01ecd
Make a new function, wp_delete_file()
. Use it.
...
Props scribu, wonderboymusic.
Fixes #17864 .
Built from https://develop.svn.wordpress.org/trunk@31575
git-svn-id: http://core.svn.wordpress.org/trunk@31556 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-27 16:51:25 +00:00
Scott Taylor
295af37bd0
Improve get_media_embedded_in_content()
so that it returns the media it finds in the same order that it appears in the content.
...
Adds unit test, updates another.
Props kopepasah.
See #26675 .
Built from https://develop.svn.wordpress.org/trunk@31574
git-svn-id: http://core.svn.wordpress.org/trunk@31555 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-27 16:11:25 +00:00
Dominik Schilling
d2f0abf85f
RTL CSS generation: Switch from CSSJanus to RTLCSS.
...
CSSJanus (introduced in [26107]), we had a great time with you, but sadly you don't like our fancy CSS.
RTLCSS is a framework for converting CSS from LTR to RTL, same as CSSJanus, with support for more CSS properties like `transform`, `transition` or multiple box and text shadows.
Changes:
* devDependencies: Remove `grunt-cssjanus`, add `grunt-rtlcss`.
* RTLCSS uses `/* rtl:ignore */` to ignore a rule, switch existing `/* @noflip */` to the new directive.
* RTLCSS supports the `transform` property, means we can remove some ignore rules.
* RTLCSS supports string maps for custom replace rules. This commit includes a rule `import-rtl-stylesheet` which replaces ".css" with "-rtl.css" in URLs.
Notes for core development:
* The file generation task is still `grunt rtl`.
* If you have used `grunt cssjanus` before, use `grunt rtlcss` now.
* Remember the new directive `/* rtl:ignore */`.
fixes #31332 .
Build: https://build.trac.wordpress.org/changeset/31554
Built from https://develop.svn.wordpress.org/trunk@31573
git-svn-id: http://core.svn.wordpress.org/trunk@31554 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-27 13:41:30 +00:00
Dominik Schilling
043cf80e75
Press This: Add press-this to list of RTL styles.
...
see #31373 .
Built from https://develop.svn.wordpress.org/trunk@31572
git-svn-id: http://core.svn.wordpress.org/trunk@31553 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-27 11:22:25 +00:00
Dominik Schilling
5e47a1f633
Press This: Use boolean value instead of __return_true(). Add missing hook docs.
...
see #31373 .
Built from https://develop.svn.wordpress.org/trunk@31571
git-svn-id: http://core.svn.wordpress.org/trunk@31552 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-27 11:15:25 +00:00
Dominik Schilling
789cd2e824
Customize Widgets: Don't return undefined items in getWidgetFormControls method.
...
props westonruter.
fixes #31465 .
Built from https://develop.svn.wordpress.org/trunk@31570
git-svn-id: http://core.svn.wordpress.org/trunk@31551 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-27 10:35:24 +00:00
Dominik Schilling
8f44036ea7
Update jQuery UI to 1.11.3.
...
Changelog:
* http://jqueryui.com/changelog/1.11.3/
* https://github.com/jquery/jquery-ui/compare/1.11.2...1.11.3
fixes #31473 .
Built from https://develop.svn.wordpress.org/trunk@31569
git-svn-id: http://core.svn.wordpress.org/trunk@31550 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-27 10:21:26 +00:00
Dominik Schilling
4f19a4b613
JSHint: Remove an unused variable.
...
Built from https://develop.svn.wordpress.org/trunk@31568
git-svn-id: http://core.svn.wordpress.org/trunk@31549 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-27 09:50:24 +00:00
Dominik Schilling
d35ef1c5b1
Update jQuery to 1.11.2.
...
Changelog:
* https://github.com/jquery/jquery/issues?q=milestone%3A1.11.2%2F2.1.3
* https://github.com/jquery/jquery/compare/1.11.1...1.11.2
props HarishChaudhari.
fixes #31423 .
Built from https://develop.svn.wordpress.org/trunk@31567
git-svn-id: http://core.svn.wordpress.org/trunk@31548 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-27 09:41:27 +00:00
Andrew Ozz
4593319ea7
PressThis: accessibility enhancements:
...
- Add missing form labels.
- Add some screen-reader-text and aria-hidden attributes.
- Focus handling improvements.
- Change tagcloud-link into a button.
- Add missing ID attribute in tools.php.
Props afercia. Fixes #31449 .
Built from https://develop.svn.wordpress.org/trunk@31566
git-svn-id: http://core.svn.wordpress.org/trunk@31547 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-27 02:50:25 +00:00
Andrew Ozz
dd79f77b26
PressThis: enable scrollbars in Firefox, remove overflow-x: hidden from the html element. Part props Michael-Arestad. Fixes #31455 .
...
Built from https://develop.svn.wordpress.org/trunk@31565
git-svn-id: http://core.svn.wordpress.org/trunk@31546 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-27 01:55:26 +00:00
Helen Hou-Sandí
6d03323746
CSS: Move relevant #sidemenu
rules into deprecated-media.css
and remove the cruft.
...
fixes #27956 .
Built from https://develop.svn.wordpress.org/trunk@31564
git-svn-id: http://core.svn.wordpress.org/trunk@31545 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-26 23:24:27 +00:00
Scott Taylor
c43fcec0e3
Fix the build file after [31562].
...
Built from https://develop.svn.wordpress.org/trunk@31563
git-svn-id: http://core.svn.wordpress.org/trunk@31544 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-26 23:02:24 +00:00
Scott Taylor
a8dcd7aced
Persist search terms across grid/list modes:
...
* In `grid` mode, when the page loads and `s` is in the URL, all attachments are loaded and then the search value is set, which will filter the attachments. If the page loads with the attachments already filtered, the library will have to be requery'd to get the full set, which will require weirder code.
* When a user searches, the mode-switcher link for `list` view is updated dynamically to represent the current `location.href` in the proper `mode=` and `s=` context.
Fixes #30583 .
Built from https://develop.svn.wordpress.org/trunk@31562
git-svn-id: http://core.svn.wordpress.org/trunk@31543 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-26 23:01:25 +00:00
Scott Taylor
e899c370a4
In get_avatar_data()
and get_avatar()
, allow height
and width
to be specified separately (both default to size
). Also allow arbitrary attributes on the <img>
via the extra_attr
arg.
...
Props miqrogroove.
See #31469 .
Built from https://develop.svn.wordpress.org/trunk@31561
git-svn-id: http://core.svn.wordpress.org/trunk@31542 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-26 21:17:24 +00:00
Helen Hou-Sandí
b95d99d1c1
Settings API: Allow passing a class to add_settings_field()
via the $args
array.
...
While it's possible to target the wrapper element otherwise (currently a `tr`), this deficiency is made especially noticeable when custom code cannot take advantage of what core is doing, such as with avatars in #30168 .
props valendesigns.
fixes #28975 . see #30168 .
Built from https://develop.svn.wordpress.org/trunk@31560
git-svn-id: http://core.svn.wordpress.org/trunk@31541 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-26 19:59:25 +00:00
Andrew Ozz
a226da32d3
TinyMCE: wpView improvements: introduce getText() and remove() methods, improved getInstance(), better docs. Props iseulde. See #31412 .
...
Built from https://develop.svn.wordpress.org/trunk@31559
git-svn-id: http://core.svn.wordpress.org/trunk@31540 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-26 19:32:24 +00:00
Aaron Jorbin
38b6646b41
Run unit tests on Travis CI with php nightlies
...
With PHP7 in active development, this will help us identify issues there. Also will be fun to see how fast it is.
Fixes #31454
Built from https://develop.svn.wordpress.org/trunk@31558
git-svn-id: http://core.svn.wordpress.org/trunk@31539 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-26 17:50:24 +00:00
Aaron Jorbin
4eefb02ebe
Update grunt-patch-wordpress to 0.3.0
...
This new update includes the following changes:
* The tools directory can now be patched along with a handful of other root level files that were failing
* If patching fails or otherwise issues a prompt, you can now interact with the prompt
* Only save the watch file to your directory if you pass the --debug flag
* Default to selecting the newest patch rather then the oldest patch
props ocean90 ntwb kadamwhite aaronjorbin
Fixes #31466
Built from https://develop.svn.wordpress.org/trunk@31557
git-svn-id: http://core.svn.wordpress.org/trunk@31538 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-26 17:47:31 +00:00
Sergey Biryukov
49dd31506f
Press This: Use correct URL for update bookmarklet link.
...
props kraftbj.
fixes #31461 .
Built from https://develop.svn.wordpress.org/trunk@31556
git-svn-id: http://core.svn.wordpress.org/trunk@31537 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-26 08:48:25 +00:00
Scott Taylor
4ce271ea86
Cleanup the @property
annotations for WP_User
.
...
See #30799 .
Built from https://develop.svn.wordpress.org/trunk@31555
git-svn-id: http://core.svn.wordpress.org/trunk@31536 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-26 05:54:24 +00:00
Scott Taylor
7cb45f2402
Don't call the size function count()
as part of a test condition in loops. Compute the size beforehand, and not on each iteration.
...
Scrutinizer added a Performance label: these are the only violations.
See #30799 .
Built from https://develop.svn.wordpress.org/trunk@31554
git-svn-id: http://core.svn.wordpress.org/trunk@31535 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-26 05:48:24 +00:00
Scott Taylor
94bd0f93b8
wp_insert_comment()
should be checking and setting $compacted
, not the non-existent $post_data
.
...
See [31263], #21212 .
Built from https://develop.svn.wordpress.org/trunk@31553
git-svn-id: http://core.svn.wordpress.org/trunk@31534 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-26 05:38:24 +00:00
Scott Taylor
4310147e54
Add missing access modifiers to WP_Press_This
.
...
See #31456 .
Built from https://develop.svn.wordpress.org/trunk@31552
git-svn-id: http://core.svn.wordpress.org/trunk@31533 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-26 05:18:25 +00:00
Drew Jaynes
50bb433c66
Ignore the internal-use function _wp_posts_page_notice()
from parsing for the code reference.
...
See #17470 .
Built from https://develop.svn.wordpress.org/trunk@31551
git-svn-id: http://core.svn.wordpress.org/trunk@31532 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-26 03:08:28 +00:00
Helen Hou-Sandí
ae3baa7c5b
Hide irrelevant UI and display a message when editing the page for posts.
...
Users are frequently confused as to why the content they've entered or the page template they've selected doesn't apply for this one page. Showing and saving items that don't do anything hurts trust.
Developers can elect to turn on the editor should they be using it for something. If the content isn't empty, the editor will show so that users still have access to their content.
props alexkingorg for the initial, long-suffering patch.
fixes #17470 .
Built from https://develop.svn.wordpress.org/trunk@31550
git-svn-id: http://core.svn.wordpress.org/trunk@31531 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-26 02:47:25 +00:00
Andrew Ozz
9e7561a8d4
Press This: fix notices/errors classes. Props michael-arestad. Fixes #31456 .
...
Built from https://develop.svn.wordpress.org/trunk@31549
git-svn-id: http://core.svn.wordpress.org/trunk@31530 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-26 01:31:26 +00:00
Andrew Ozz
5f27c59f49
TinyMCE: wpView improvements: remove the (obsolete) get/setViewText methods. Update stopping/pausing of multiple ME media players. Props iseulde. See #31412 .
...
Built from https://develop.svn.wordpress.org/trunk@31548
git-svn-id: http://core.svn.wordpress.org/trunk@31529 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-26 00:31:31 +00:00
Andrew Ozz
c30c705ec3
Press This: add press-this.css to the list of stylesheets that are minified. Bump wp_version. See #31373 .
...
Built from https://develop.svn.wordpress.org/trunk@31547
git-svn-id: http://core.svn.wordpress.org/trunk@31528 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-25 23:49:24 +00:00
Andrew Ozz
b799bd8e33
TinyMCE: wpView improvements:
...
- Better structure, simpler "view" registration, better extensibility.
- Better inline documentation.
- Don't show a placeholder for pasted link until we know the link is "embeddable'.
And many more improvements. Props iseulde. See #31412 .
Built from https://develop.svn.wordpress.org/trunk@31546
git-svn-id: http://core.svn.wordpress.org/trunk@31527 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-25 23:13:25 +00:00
Andrew Ozz
3146475ed8
PressThis: go back to loading the minified bookmarklet content with file_get_contents(). Add Grunt task to minify bookmarklet.js on precommit and update it in /src. See #31373 .
...
Built from https://develop.svn.wordpress.org/trunk@31545
git-svn-id: http://core.svn.wordpress.org/trunk@31526 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-25 20:16:24 +00:00
Drew Jaynes
0c45c387be
Add a missing file header to wp-includes/class-wp-customize-widgets.php, separate out the class DocBlock for WP_Customize_Widgets
.
...
Fixes #31446 .
Built from https://develop.svn.wordpress.org/trunk@31544
git-svn-id: http://core.svn.wordpress.org/trunk@31525 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-25 08:20:26 +00:00
Drew Jaynes
26f8fbd705
Add a missing file header and clean up class DocBlocks in wp-includes/class-wp-customize-setting.php.
...
* Adds a file header separate from the `WP_Customize_Setting` class block
* Fixes formatting for the `WP_Customize_Setting`, `WP_Customize_Filter_Setting`, `WP_Customize_Header_Image_Setting`, and `WP_Customize_Background_Image_Setting` class DocBlocks.
See #31446 .
Built from https://develop.svn.wordpress.org/trunk@31543
git-svn-id: http://core.svn.wordpress.org/trunk@31524 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-25 08:18:26 +00:00
Drew Jaynes
2058532f43
Add a missing file header and clean up class DocBlocks in wp-includes/class-wp-customize-section.php.
...
* Adds a file header separate from the `WP_Customize_Section` class block
* Fixes formatting for the `WP_Customize_Section`, `WP_Customize_Themes_Section`, and `WP_Customize_Sidebar_Section` class DocBlocks.
See #31446 .
Built from https://develop.svn.wordpress.org/trunk@31542
git-svn-id: http://core.svn.wordpress.org/trunk@31523 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-25 08:13:26 +00:00
Drew Jaynes
6a899c6709
Add a missing file header to wp-includes/class-wp-customize-panel.php, separate out the class DocBlock for WP_Customize_Panel
.
...
See #31446 .
Built from https://develop.svn.wordpress.org/trunk@31541
git-svn-id: http://core.svn.wordpress.org/trunk@31522 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-25 08:09:25 +00:00
Drew Jaynes
5c2c3a961d
Add a missing file header to wp-includes/class-wp-customize-manager.php, separate out the class DocBlock for WP_Customize_Manager
.
...
See #31446 .
Built from https://develop.svn.wordpress.org/trunk@31540
git-svn-id: http://core.svn.wordpress.org/trunk@31521 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-25 08:07:24 +00:00
Drew Jaynes
8ffc38ce7c
Add a missing file header and clean up class DocBlocks in wp-includes/class-wp-customize-control.php.
...
* Adds a file header separate from the `WP_Customize_Control` class block
* Fixes formatting for the `WP_Customize_Control`, `WP_Customize_Color_Control`, `WP_Customize_Upload_Control`, `WP_Customize_Image_Control`, `WP_Customize_Background_Image_Control`, `WP_Customize_Theme_Control`, `WP_Customize_New_Theme_Control`, `WP_Widget_Area_Customize_Control`, and `WP_Widget_Form_Customize_Control` class DocBlocks.
* Adds a missing class DocBlock for `WP_Customize_Header_Image_Control`
See #31446 .
Built from https://develop.svn.wordpress.org/trunk@31539
git-svn-id: http://core.svn.wordpress.org/trunk@31520 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-25 07:56:25 +00:00
Andrew Ozz
d84eda9f35
Grunt precommit cleanup. See [31533], [31535].
...
Built from https://develop.svn.wordpress.org/trunk@31538
git-svn-id: http://core.svn.wordpress.org/trunk@31519 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-25 04:17:27 +00:00
Andrew Ozz
64092c309d
Press This: JSON encode the URL before appending it to the bookmarklet. See #31373 .
...
Built from https://develop.svn.wordpress.org/trunk@31537
git-svn-id: http://core.svn.wordpress.org/trunk@31518 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-25 03:58:25 +00:00
Mark Jaquith
bd2c067245
Make sure WP_Customize_Manager::theme() never returns null.
...
* Fixes issue in [31533] that caused unit test fatal error
fixes #31445
Built from https://develop.svn.wordpress.org/trunk@31536
git-svn-id: http://core.svn.wordpress.org/trunk@31517 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-25 03:54:25 +00:00
Andrew Ozz
ce8defbeb4
PressThis:
...
- Hard-code the minified bookmarklet js. Adding the non-minified bookmarklet to the browser bookmarks bar may have unexpected effect.
- Fix type juggling when checking the bookmarklet version.
Props stephdau, see #31373 .
Built from https://develop.svn.wordpress.org/trunk@31535
git-svn-id: http://core.svn.wordpress.org/trunk@31516 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-25 03:03:25 +00:00
Andrew Ozz
1857055bb8
PressThis v2, first run. Props michael-arestad, stephdau, marcelomazza, DrewAPicture, iseulde, afercia, kraftbj, rachelbaker, AramZS, dd32. See #31373 .
...
Built from https://develop.svn.wordpress.org/trunk@31534
git-svn-id: http://core.svn.wordpress.org/trunk@31515 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-25 01:50:26 +00:00
Mark Jaquith
8b180b9a46
Add theme browsing and theme switching to the Customizer
...
* Brings into core the Customizer Theme Switcher feature plugin
* You can now browse, preview, and activate themes right from the Customizer
fixes #31303 .
props celloexpressions, afercia, westonruter, folletto, designsimply
Built from https://develop.svn.wordpress.org/trunk@31533
git-svn-id: http://core.svn.wordpress.org/trunk@31514 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-24 20:31:24 +00:00
Boone Gorges
0d9275930b
Add 'orderby=description' support to get_terms()
.
...
This fixes an interface inconsistency in edit-tags.php, where Description
appears as a sortable column header.
Props neil_pie.
Fixes #31364 .
Built from https://develop.svn.wordpress.org/trunk@31532
git-svn-id: http://core.svn.wordpress.org/trunk@31513 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-24 16:37:26 +00:00
Sergey Biryukov
7c8b6609ca
Fix line endings after [31522].
...
fixes #31430 .
Built from https://develop.svn.wordpress.org/trunk@31531
git-svn-id: http://core.svn.wordpress.org/trunk@31512 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-24 10:06:24 +00:00
Drew Jaynes
46286070a5
Clarify a wide variety of function, parameter, and return descriptions in DocBlocks throughout wp-includes/media.php.
...
Props stevegrunwell, DrewAPicture.
Fixes #28408 .
Built from https://develop.svn.wordpress.org/trunk@31530
git-svn-id: http://core.svn.wordpress.org/trunk@31511 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-24 07:42:24 +00:00
Drew Jaynes
4743843323
Add missing function and parameter descriptions to a variety of functions in wp-admin/includes/image-edit.php.
...
Props NikV for the initial patch.
Fixes #31353 .
Built from https://develop.svn.wordpress.org/trunk@31529
git-svn-id: http://core.svn.wordpress.org/trunk@31510 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-24 06:07:26 +00:00
Dion Hulse
90e85a70c4
Upgrades: Specifically pass the 'version' and 'locale' POST vars through the Core Update FTP credentials form.
...
This bug was introduced with [30384] / #30245
Fixes #31378 for trunk.
Built from https://develop.svn.wordpress.org/trunk@31527
git-svn-id: http://core.svn.wordpress.org/trunk@31508 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-24 03:01:25 +00:00
Andrew Ozz
481889c40b
Load json2.js only in IE7 and older. Fixes #31276 .
...
Built from https://develop.svn.wordpress.org/trunk@31526
git-svn-id: http://core.svn.wordpress.org/trunk@31507 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-23 23:04:24 +00:00
Boone Gorges
e89d237b86
Pass taxonomy name, not object, to 'edit_term_taxonomy' and 'edited_term_taxonomy' actions.
...
These actions are fired in a number of different places, and in some cases
the tax name is passed, while in others the taxonomy object is passed. This
inconsistency made it difficult for plugins to use the `$taxonomy` value.
Props ipm-frommen.
Fixes #30999 .
Built from https://develop.svn.wordpress.org/trunk@31525
git-svn-id: http://core.svn.wordpress.org/trunk@31506 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-23 21:08:26 +00:00
Sergey Biryukov
ad30deda04
Menus: Remove fixed height from .description-thin
fields.
...
props tyxla.
fixes #31426 .
Built from https://develop.svn.wordpress.org/trunk@31524
git-svn-id: http://core.svn.wordpress.org/trunk@31505 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-23 20:23:26 +00:00
Sergey Biryukov
132d65ef1e
Menus: Prevent checkboxes and radio buttons from being stretched to full width on mobile.
...
props tyxla.
fixes #31425 .
Built from https://develop.svn.wordpress.org/trunk@31523
git-svn-id: http://core.svn.wordpress.org/trunk@31504 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-23 20:03:26 +00:00
Sergey Biryukov
aade870f17
Add unit tests for get_page_template_slug()
.
...
props tyxla.
fixes #31389 .
Built from https://develop.svn.wordpress.org/trunk@31522
git-svn-id: http://core.svn.wordpress.org/trunk@31503 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-23 18:47:27 +00:00
Sergey Biryukov
6221fc86a3
Fix a typo in wp_update_nav_menu_item
hook documentation.
...
props tyxla.
fixes #31338 .
Built from https://develop.svn.wordpress.org/trunk@31521
git-svn-id: http://core.svn.wordpress.org/trunk@31502 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-23 16:51:25 +00:00
Sergey Biryukov
c6522e3c93
Add missing labels to Archives and Categories dropdown widgets.
...
props joedolson, jlevandowski, DrewAPicture, SergeyBiryukov.
fixes #18650 .
Built from https://develop.svn.wordpress.org/trunk@31520
git-svn-id: http://core.svn.wordpress.org/trunk@31501 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-23 16:32:25 +00:00
Sergey Biryukov
c6c5455d93
Themes: Use a darker color for "No themes found" message to increase contrast.
...
props joedolson.
see #26600 .
Built from https://develop.svn.wordpress.org/trunk@31519
git-svn-id: http://core.svn.wordpress.org/trunk@31500 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-23 15:49:27 +00:00
Jeremy Felt
646e643e5d
Add comment-author-is-site-member
class to comment output for site members.
...
Add a class to allow targeting of comments made by members of a site rather than users of the entire network.
Props Viper007Bond, MikeHansenMe.
Fixes #24054 .
Built from https://develop.svn.wordpress.org/trunk@31518
git-svn-id: http://core.svn.wordpress.org/trunk@31499 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-23 02:52:24 +00:00
Jeremy Felt
7644e68119
Provide proper label associations and descriptions throughout the network admin
...
* Add labels previously missing for many inputs throughout the network admin screen.
* Add proper `aria-describedby` attributes to provide better descriptions.
* Wrap grouped inputs with `fieldset` elements.
* Remove now unneeded `title` attributes when appropriate.
Props cfoellmann, afercia, rianrietveld.
Fixes #38406 .
Built from https://develop.svn.wordpress.org/trunk@31517
git-svn-id: http://core.svn.wordpress.org/trunk@31498 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-23 02:29:26 +00:00
Jeremy Felt
754636aaf1
Avoid clearing stored capabilities for a user when removing their built in role in multisite.
...
Previously, if “No role on this site” was assigned to a user AND that user did not have an empty role array stored for the site, the `$blog_prefix . ‘capabilities’` meta for that user would be deleted completely after changes to the user were saved. Any custom capabilities stored (i.e. `$user->add_role()`) would be removed as well.
This removes the code controlling the old WPMU handling of “no role” and allows custom stored capabilities to remain. Users with no role and custom capabilities will now appear in the users list table with “None” as the role.
In the process we’re able to better clarify the multisite specific pieces that do occur.
Props PeteMall, jeremyfelt.
Fixes #18934 .
Built from https://develop.svn.wordpress.org/trunk@31516
git-svn-id: http://core.svn.wordpress.org/trunk@31497 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-23 01:34:24 +00:00
Boone Gorges
1b6bb2f183
Ensure that a request URL is always set in WP_UnitTestCase::go_to()
.
...
Failure to set this variable meant that passing the home URL to `go_to()`
(without a trailing slash) resulted in a PHP notice, and failed to reset the
globals properly.
Props joostdevalk.
Fixes #31417 .
Built from https://develop.svn.wordpress.org/trunk@31515
git-svn-id: http://core.svn.wordpress.org/trunk@31496 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-23 01:08:25 +00:00
Jeremy Felt
5ac75b3b0a
Use response code 200 when an existing network user joins a site via invitation.
...
Pass a response code of 200 to `wp_die()` when a user is successfully added to an individual site after using the `/newbloguser/` URL from an invite email. This is a user facing success message.
Props MikeHansenMe.
Fixes #31224 .
Built from https://develop.svn.wordpress.org/trunk@31514
git-svn-id: http://core.svn.wordpress.org/trunk@31495 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-22 22:30:25 +00:00
Andrew Ozz
19dbf7b998
Improve table footer tab sequence by moving <tfoot>
after <tbody>
. Props afercia, rianrietveld, DrewAPicture. Fixes #30914 .
...
Built from https://develop.svn.wordpress.org/trunk@31513
git-svn-id: http://core.svn.wordpress.org/trunk@31494 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-22 21:48:26 +00:00
Boone Gorges
0cd7554f75
Use PHP 5.2 compatible syntax in image tests.
...
T_PAAMAYIM_NEKUDOTAYIM, HAKUNA_MATATA, YOLO.
See [31510], #31124 .
Built from https://develop.svn.wordpress.org/trunk@31512
git-svn-id: http://core.svn.wordpress.org/trunk@31493 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-22 21:42:24 +00:00
Jeremy Felt
678982ee7e
Do not activate plugins on initial installation in multisite.
...
Check `is_multisite()` before activating a plugin that has been installed via AJAX. Without this check, the plugin would be automatically activated on the main site of the network.
Props ianmjones.
Fixes #31327 .
Built from https://develop.svn.wordpress.org/trunk@31511
git-svn-id: http://core.svn.wordpress.org/trunk@31492 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-22 21:30:25 +00:00
Boone Gorges
3ef981335d
Better image-type support checks in image unit tests.
...
PHP can be compiled without support for certain image types. Our unit tests
should be sensitive to these configurations.
Fixes #31124 .
Built from https://develop.svn.wordpress.org/trunk@31510
git-svn-id: http://core.svn.wordpress.org/trunk@31491 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-22 21:07:25 +00:00
Sergey Biryukov
0231047071
Delegate focusin
and focusout
events for row actions to make sure the actions are always revealed on focus.
...
props afercia.
fixes #29765 .
Built from https://develop.svn.wordpress.org/trunk@31509
git-svn-id: http://core.svn.wordpress.org/trunk@31490 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-22 20:14:25 +00:00
Sergey Biryukov
8eb25609e9
Dashboard: Add a filter for the query arguments used for the Recent Posts widget.
...
props danielbachhuber.
fixes #29374 .
Built from https://develop.svn.wordpress.org/trunk@31508
git-svn-id: http://core.svn.wordpress.org/trunk@31489 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-22 19:57:24 +00:00
Sergey Biryukov
93e5bb3702
Quick Edit: Make date fields a bit wider.
...
props Ravindra Pal Singh, janhenckens.
fixes #27912 .
Built from https://develop.svn.wordpress.org/trunk@31507
git-svn-id: http://core.svn.wordpress.org/trunk@31488 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-22 19:24:25 +00:00
Sergey Biryukov
4b21c67738
Remove untranslatable period from a successful update message in Bulk_Upgrader_Skin::add_strings()
.
...
props mako09, DrewAPicture.
fixes #30793 .
Built from https://develop.svn.wordpress.org/trunk@31506
git-svn-id: http://core.svn.wordpress.org/trunk@31487 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-22 17:07:24 +00:00
Dominik Schilling
2b9a79db8e
Run Autoprefixer after [31504].
...
This removes media queries for Opera < 12 and `-ms-animation`/`@-ms-keyframes` which was never (dev versions excluded) supported by IE.
see #31337 .
Built from https://develop.svn.wordpress.org/trunk@31505
git-svn-id: http://core.svn.wordpress.org/trunk@31486 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-22 17:00:24 +00:00
Dominik Schilling
8f83a2e48c
Update grunt-autoprefixer to 2.2.0
...
Upstream changes:
* grunt-autoprefixer: https://github.com/nDmitry/grunt-autoprefixer/compare/v1.0.1...v2.2.0
* autoprefixer-core: https://github.com/postcss/autoprefixer-core/compare/2.0.2...5.1.7
fixes #31337 .
Built from https://develop.svn.wordpress.org/trunk@31504
git-svn-id: http://core.svn.wordpress.org/trunk@31485 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-22 16:54:33 +00:00
Sergey Biryukov
1ab9aa255e
Use correct closing tag for "Under the Hood" header on About screen.
...
props tyxla.
fixes #31402 .
Built from https://develop.svn.wordpress.org/trunk@31503
git-svn-id: http://core.svn.wordpress.org/trunk@31484 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-22 16:44:25 +00:00
Dominik Schilling
bbbdee0e6d
Adjust our QUnit test suite to show the QUnit toolbar.
...
props iseulde.
fixes #31413 .
Built from https://develop.svn.wordpress.org/trunk@31502
git-svn-id: http://core.svn.wordpress.org/trunk@31483 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-22 15:32:26 +00:00
Dominik Schilling
121d2ee4cb
Update POT file for Twenty Fourteen.
...
props SergeyBiryukov.
see #30972 , #30603 .
Built from https://develop.svn.wordpress.org/trunk@31501
git-svn-id: http://core.svn.wordpress.org/trunk@31482 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-22 15:16:24 +00:00
Dominik Schilling
a748574c29
Revert [30790] and update POT file for Twenty Fifteen.
...
see #30972 , #30603 .
Built from https://develop.svn.wordpress.org/trunk@31500
git-svn-id: http://core.svn.wordpress.org/trunk@31481 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-22 13:43:24 +00:00
Dominik Schilling
6f97715bea
i18n tools: Delete data/not-gettexted-0-work.php
.
...
In NotGettextedTest this file is a copy of `data/not-gettexted-0.php` which will be removed after the test has finished.
Built from https://develop.svn.wordpress.org/trunk@31499
git-svn-id: http://core.svn.wordpress.org/trunk@31480 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-22 12:56:25 +00:00
Dominik Schilling
a68ba4cd2d
i18n tools: Improve support for multi-line comments in StringExtractor.
...
props SergeyBiryukov.
fixes #30972 .
Built from https://develop.svn.wordpress.org/trunk@31498
git-svn-id: http://core.svn.wordpress.org/trunk@31479 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-22 12:47:25 +00:00
Sergey Biryukov
f7df99549a
Themes: Add feedback for screen readers when search results are changed.
...
props obenland, joedolson.
see #26600 .
Built from https://develop.svn.wordpress.org/trunk@31497
git-svn-id: http://core.svn.wordpress.org/trunk@31478 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-22 10:15:26 +00:00
Sergey Biryukov
224cb89878
Remove a stray single quote in wp_insert_post()
documentation.
...
see #31359 .
Built from https://develop.svn.wordpress.org/trunk@31496
git-svn-id: http://core.svn.wordpress.org/trunk@31477 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-22 09:50:25 +00:00
Sergey Biryukov
677d37753f
Themes: Update the theme count when searching for installed themes, like we do on Add Themes screen.
...
props afercia.
see #26600 .
Built from https://develop.svn.wordpress.org/trunk@31495
git-svn-id: http://core.svn.wordpress.org/trunk@31476 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-22 09:41:24 +00:00
Scott Taylor
d5b80a2be2
Make sure the grid
build does not load files from the views
build.
...
Fix the errant back-compat assignment for `wp.media.view.Frame`.
See #28510 .
Built from https://develop.svn.wordpress.org/trunk@31494
git-svn-id: http://core.svn.wordpress.org/trunk@31475 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-22 08:47:25 +00:00
Scott Taylor
7b8cdd61fd
Make sure the audio-video
build does not load files from the views
build.
...
See #28510 .
Built from https://develop.svn.wordpress.org/trunk@31493
git-svn-id: http://core.svn.wordpress.org/trunk@31474 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-22 08:29:25 +00:00
Scott Taylor
d9a2e85bfe
Media JS files:
...
* specify globals in more files
* add missing `wp.media.*` namespace docs
* add doc blocks to files that had none
See #28510 .
Built from https://develop.svn.wordpress.org/trunk@31492
git-svn-id: http://core.svn.wordpress.org/trunk@31473 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-22 07:25:27 +00:00
Scott Taylor
9737acc1a5
Specify globals in media JS files - it is important to denote where we are diverging from dependency injection.
...
See #28510 .
Built from https://develop.svn.wordpress.org/trunk@31491
git-svn-id: http://core.svn.wordpress.org/trunk@31472 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-22 06:56:27 +00:00
Scott Taylor
8b54658f0c
After [30120], in media JS files, move from @constructor
to @class
annotations as per JSDoc preferred nomenclature: http://usejsdoc.org/tags-class.html
...
See #28510 , #30193 .
Built from https://develop.svn.wordpress.org/trunk@31490
git-svn-id: http://core.svn.wordpress.org/trunk@31471 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-22 06:28:26 +00:00
Scott Taylor
117a0518fd
The grid
build should not load views/edit-image
, it already exists in the views
build.
...
`views/edit-image.js` doesn't need to set a `render` method if it doesn't override its parent.
See #28510 .
Built from https://develop.svn.wordpress.org/trunk@31489
git-svn-id: http://core.svn.wordpress.org/trunk@31470 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-22 06:21:25 +00:00
Scott Taylor
8babe839e3
JSHint after [31487].
...
Built from https://develop.svn.wordpress.org/trunk@31488
git-svn-id: http://core.svn.wordpress.org/trunk@31469 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-22 05:57:28 +00:00
Scott Taylor
6848035d1a
Restore the changes I made in [31016] for chromeless Vimeo that were missed in [31373].
...
Make sure that the build file for `grid` doesn't load `views/media-details.js`, it already exists in the `audio-video` build.
See #29267 , #28510 .
Built from https://develop.svn.wordpress.org/trunk@31487
git-svn-id: http://core.svn.wordpress.org/trunk@31468 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-22 05:38:27 +00:00
Drew Jaynes
1ffca1fcb6
Clarify and complete default argument documentation for wp_insert_post()
.
...
Props atimmer, SergeyBiryukov.
Fixes #31359 .
Built from https://develop.svn.wordpress.org/trunk@31486
git-svn-id: http://core.svn.wordpress.org/trunk@31467 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-22 00:56:29 +00:00
Andrew Ozz
0fa4845eec
TinyMCE wpView: don't insert nested paragraphs when inserting embeddable URLs. Props iseulde, fixes #29526 .
...
Built from https://develop.svn.wordpress.org/trunk@31485
git-svn-id: http://core.svn.wordpress.org/trunk@31466 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-20 23:17:27 +00:00
Sergey Biryukov
3c64d94ba9
Fix typo in [30760].
...
props afercia.
fixes #31393 .
Built from https://develop.svn.wordpress.org/trunk@31484
git-svn-id: http://core.svn.wordpress.org/trunk@31465 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-20 17:09:28 +00:00
Sergey Biryukov
109295cdd4
When creating a new user, pasting a password should update the password strength indicator.
...
props dipesh.kakadiya.
fixes #31226 .
Built from https://develop.svn.wordpress.org/trunk@31483
git-svn-id: http://core.svn.wordpress.org/trunk@31464 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-20 13:05:27 +00:00
Drew Jaynes
64bc6934f1
Add an entry to the changelog for twentyfourteen_post_thumbnail()
noting that it was made 'pluggable'.
...
Fixes #31374 .
Built from https://develop.svn.wordpress.org/trunk@31482
git-svn-id: http://core.svn.wordpress.org/trunk@31463 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-20 10:35:28 +00:00
Lance Willett
5dc3b77be3
Twenty Fourteen: make twentyfourteen_post_thumbnail()
pluggable.
...
Fixes #31374 , props wordpressorru.
Built from https://develop.svn.wordpress.org/trunk@31481
git-svn-id: http://core.svn.wordpress.org/trunk@31462 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-19 19:43:28 +00:00
Sergey Biryukov
add5f9bdf2
Remove src
from duplicate hook comments for get_avatar
and get_avatar_data
.
...
see #21195 .
Built from https://develop.svn.wordpress.org/trunk@31480
git-svn-id: http://core.svn.wordpress.org/trunk@31461 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-19 14:59:26 +00:00
Sergey Biryukov
01bb8478ff
Fix a typo in duplicate hook comment.
...
see [31107], #21195 .
Built from https://develop.svn.wordpress.org/trunk@31479
git-svn-id: http://core.svn.wordpress.org/trunk@31460 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-19 14:56:28 +00:00
Boone Gorges
ec8aef8233
Respect 'default_option_' filters during early sanity checks in add_option()
and update_option()
.
...
`add_option()` and `update_option()` both call `get_option()` to compare the
value passed to the function with any existing value for the given option name.
When a `'default_option_'` filter is in place to change the default value of
an option, `add_option()` and `update_option()` ought to check against the
filtered value, rather than a hardcoded `false`, in order to determine whether
a prior value exists.
Props GregLone, tyxla.
Fixes #31047 .
Built from https://develop.svn.wordpress.org/trunk@31473
git-svn-id: http://core.svn.wordpress.org/trunk@31454 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-18 19:14:27 +00:00
Aaron Jorbin
911f8d952a
Restore PHP 5.2 to Travis CI
...
Travis restored PHP 5.2 support late last week.
upstream: https://github.com/travis-ci/travis-ci/issues/3152
Props netweb for the heads up
Fixes #31244
Built from https://develop.svn.wordpress.org/trunk@31472
git-svn-id: http://core.svn.wordpress.org/trunk@31453 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-18 17:47:27 +00:00
Andrew Ozz
21225211d8
Add SVN eol-style = native where missing.
...
Built from https://develop.svn.wordpress.org/trunk@31471
git-svn-id: http://core.svn.wordpress.org/trunk@31452 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-17 21:37:26 +00:00
Andrew Ozz
e054ee5f05
Add eol-style property and normalize EOLs.
...
Built from https://develop.svn.wordpress.org/trunk@31470
git-svn-id: http://core.svn.wordpress.org/trunk@31451 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-17 19:34:27 +00:00
Boone Gorges
2686db917a
Improved handling of expectedDeprecated and expectedIncorrectUsage annotations in unit tests.
...
* Do the `expectedDeprecated()` check in `assertPostConditions()` instead of `tearDown()`. Previously, `fail`ing inside of `tearDown()` was causing the rest of the teardown process to be aborted, resulting in inter-test leakage.
* Collect all `expectedDeprecated` and `expectedIncorrectUsage` annotations in an entire method and display them all when `fail`ing, instead of showing only the first one.
Props jdgrimes.
Fixes #31362 .
Built from https://develop.svn.wordpress.org/trunk@31469
git-svn-id: http://core.svn.wordpress.org/trunk@31450 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-17 16:12:28 +00:00
Boone Gorges
a224ff7d9b
Improve 'orderby' syntax for WP_Comment_Query
.
...
Since [29027], `WP_Query` has supported an array of values for the `$orderby`
parameter, with field names as array keys and ASC/DESC as the array values.
This changeset introduces the same syntax to `WP_Comment_Query`.
We leverage the new support for multiple ORDER BY clauses to fix a bug that
causes comments to be queried in an indeterminate order when sorting by the
default `comment_date_gmt` and comments share the same value for
`comment_date_gmt`. By always including a `comment_ID` subclause at the end of
the ORDER BY statement, we ensure that comments always have a unique fallback
for sorting.
This changeset also includes improvements paralleling those introduced to
`WP_Query` in [31312] and [31340], which allow `$orderby` to accept array keys
from specific `$meta_query` clauses. This change lets devs sort by multiple
clauses of an associated meta query. See #31045 .
Fixes #30478 . See #31265 .
Built from https://develop.svn.wordpress.org/trunk@31467
git-svn-id: http://core.svn.wordpress.org/trunk@31448 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-16 14:10:27 +00:00
Andrew Ozz
5715db82d4
TinyMCE wpView: fire nodeChanged
when an embedded iframe is resized so we can adjust the editor height and other UI components. Props iseulde, fixes #30646 .
...
Built from https://develop.svn.wordpress.org/trunk@31466
git-svn-id: http://core.svn.wordpress.org/trunk@31447 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-15 18:19:27 +00:00
Dominik Schilling
7bd3ea7da9
grunt autoprefixer
for [31333].
...
see ##29820.
Built from https://develop.svn.wordpress.org/trunk@31465
git-svn-id: http://core.svn.wordpress.org/trunk@31446 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-15 12:18:25 +00:00
Lance Willett
52e5bc2eee
Bundled themes: update CSS rules for .screen-reader-text
to be consistent with current accessibility guidelines. Fixes #31279 .
...
Built from https://develop.svn.wordpress.org/trunk@31464
git-svn-id: http://core.svn.wordpress.org/trunk@31445 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-14 17:29:29 +00:00
Drew Jaynes
c384ed989f
Add inline documentation to clarify the reasoning behind the various conditions that control how WP is loaded.
...
Props mattheweppelsheimer for the initial patch.
Fixes #30935 .
Built from https://develop.svn.wordpress.org/trunk@31463
git-svn-id: http://core.svn.wordpress.org/trunk@31444 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-14 11:39:27 +00:00
Sergey Biryukov
19a43125cd
Don't try to read a non-existent Exif:Title tag in wp_read_image_metadata()
, as it's not a part of the Exif standard.
...
props tyxla.
fixes #31043 .
Built from https://develop.svn.wordpress.org/trunk@31462
git-svn-id: http://core.svn.wordpress.org/trunk@31443 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-14 09:14:28 +00:00
Drew Jaynes
542a4bd98b
Update the descriptions for transition_post_status()
and the {$new_stats}_{$post->post_type}
hook with more information about the expected behavior of transitioning post statuses.
...
In some cases, the values of `$old_status` and `$new_status` may be the same thing before and after a post status is "transitioned". An example of this would be the scenario where a published post is being updated: the status before and after the update both equal 'publish'.
Further, the documentation clarifies that if the intent is to only execute code when initially transitioningto a post status from something else, the 'transition_post_status' hook should be used instead of one of the dynamic hooks to avoid confusion.
Props Idealien for the initial patch.
Fixes #31099 .
Built from https://develop.svn.wordpress.org/trunk@31461
git-svn-id: http://core.svn.wordpress.org/trunk@31442 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-14 09:11:28 +00:00