Commit Graph

10400 Commits

Author SHA1 Message Date
Dominik Schilling (ocean90)
303ecbe36a TinyMCE, inline link: Make styles for the autocomplete results available on front end.
Also, replace the generic `.alignright` class with a more specific class to avoid styling issues with themes which have padding/margin attached to `.alignright`.

Props azaozz, imath.
Fixes #36461.

git-svn-id: https://develop.svn.wordpress.org/trunk@37174 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-11 15:11:32 +00:00
Mike Schroder
c5f5a505be Post 4.5-RC2 version bump.
git-svn-id: https://develop.svn.wordpress.org/trunk@37173 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-10 05:15:50 +00:00
Mike Schroder
ee135f2093 4.5-RC2
git-svn-id: https://develop.svn.wordpress.org/trunk@37172 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-10 04:20:26 +00:00
Jeremy Felt
f98744ec86 Ensure consistent dependency order when using wp_add_inline_script()
This disables the concatenation of remaining enqueued scripts once `wp_add_inline_script()` is invoked, which allows us to reliably print these scripts and their before/after inline scripts in the desired order.

Props gitlost, azaozz, swisspidy, ocean90.
Fixes #36392.


git-svn-id: https://develop.svn.wordpress.org/trunk@37171 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-10 03:32:47 +00:00
Jeremy Felt
fc1f8db19a 4.5 About Page, second round.
* Adjust text.
* Improve headings hierarchy.
* Add translation functions and translator comments throughout.

Props ocean90, afercia, ramiy, mikeschroder, mattfelten, helen. 
See #36173.


git-svn-id: https://develop.svn.wordpress.org/trunk@37170 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-10 02:02:04 +00:00
Andrew Ozz
8cb08d7ac4 4.5 About screen.
Props mikeschroder, melchoyce, ocean90, ryelle, jeremyfelt, Ipstenu, celloexpressions, DrewAPicture.
See #36173.

git-svn-id: https://develop.svn.wordpress.org/trunk@37169 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-09 06:22:18 +00:00
Helen Hou-Sandi
575afdc9f8 Default theme bumps for 4.5.
* Twenty Eleven 2.4
* Twenty Twelve 2.0
* Twenty Thirteen 1.9
* Twenty Fourteen 1.7
* Twenty Fifteen 1.5

props davidakennedy, ocean90.
fixes #36354.


git-svn-id: https://develop.svn.wordpress.org/trunk@37168 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-08 21:21:50 +00:00
Andrew Ozz
db17c15778 Customizer: fix cropping of small images when setting header image, site icon or logo.
Props obenland.
Fixes #36412.

git-svn-id: https://develop.svn.wordpress.org/trunk@37167 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-08 01:22:06 +00:00
Dominik Schilling (ocean90)
ca5db69c31 Customize: Harden assignment of Customizer settings transports for selective refreshable widgets
Theme support for `customize-selective-refresh-widgets` can be added _after_ the logic for registering the settings for incoming widgets that have been changed. This is due to themes adding the theme support in `after_setup_theme` which is also the action where `WP_Customize_Widgets::register_settings()` is called. If these both happen at priority 10, which one is called first depends on which one was added first. The other issue is that at the time that `WP_Customize_Widgets::register_settings()` is called at `after_setup_theme`, it is called before `widgets_init` and thus no widgets are yet registered. This means that any settings registered at this point will always have a `refresh` transport even if the theme supports `customize-selective-refresh-widgets`, since the `WP_Widget` instance is not visible yet to see if it supports selective refresh.

The fix: Defer `WP_Customize_Widgets::register_settings()` from `after_setup_theme` to `widgets_init` at priority 95 when the widget objects have all been registered. Also, ensure that the preview filter for `sidebars_widgets` is added before the sidebars are iterated for adding the controls.

Props westonruter.
Fixes #36389.

git-svn-id: https://develop.svn.wordpress.org/trunk@37166 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-07 20:58:56 +00:00
boonebgorges
f1c3ec9010 Use __trashed suffix rather than -%trashed% for trashed post slugs.
Percent signs are reserved characters in URIs. As such, it was impossible for
plugins to route requests to trashed posts, as happens in bbPress. The new
`__trashed` suffix should be sufficiently unique.

Also adds a test that demonstrates that the `__trashed` suffix can be
appended to slugs that contain the suffix somewhere other than the end of
the string.

Props netweb, ericlewis.
Fixes #11863.

git-svn-id: https://develop.svn.wordpress.org/trunk@37165 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-07 19:21:02 +00:00
Aaron Jorbin
1a27ba9fd7 External Libraries: Update jQuery to 1.12.3.
Sing it with me: jQuery fixed two issues, now you can get them with WP 4.5.

Release Post: http://blog.jquery.com/2016/04/05/jquery-1-12-3-and-2-2-3-released/
Changelog: https://github.com/jquery/jquery/compare/1.12.2...1.12.3

Fixes #35380.
Props ocean90.



git-svn-id: https://develop.svn.wordpress.org/trunk@37164 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-06 22:44:29 +00:00
Mark Jaquith
9deec9e723 REST API: Deliver parameters unadulterated instead of slashed.
We goofed, and parameters accessed through the REST API's methods
were slashed (inconsistently, even). This unslashes the data, so
you get the un-messed-with data that was sent.

Props joehoyle.
Fixes #36419.

git-svn-id: https://develop.svn.wordpress.org/trunk@37163 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-06 21:01:11 +00:00
Dominik Schilling (ocean90)
28699803ee I18N: On the Updates screen simplify plugin's version details link.
Replace the use of a `.screen-reader-text` element with an `aria-label` attribute to make the text easier to translate.

Props dimadin, ocean90.
See #35001.
Fixes #36410.

git-svn-id: https://develop.svn.wordpress.org/trunk@37162 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-06 12:51:57 +00:00
Aaron Jorbin
2b5f172b57 Make Moderate Comment Screen Great Again by showing links
You know what's wrong with the Moderate Comment Screen? It doesn't win anymore. Well, I'm going make the Moderate Comment screen win. It's going to win by showing the urls that are linked to from every anchor. It's going to win by having those urls be a lighter shade of gray than the surrounding text. Spammy links aren't going to be able to hide in commas. Spammy links aren't going to win.  The Moderate Comment Screen is going to win and we are going to make the Moderate Comment Screen Great Again.

Fixes #36380
Props rachelbaker, mikeschroder, adamsilverstein, boonebgorges, melchoyce, ocean90, jorbin, pento


git-svn-id: https://develop.svn.wordpress.org/trunk@37161 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-06 00:34:23 +00:00
Andrea Fercia
68a8211a55 Accessibility: improvements for the Editor wpLink modal form fields.
Adds `aria-describedby` attributes to the modal form fields after it
was partly restored in [37154].

Fixes #33301.

git-svn-id: https://develop.svn.wordpress.org/trunk@37160 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-05 22:23:23 +00:00
Dominik Schilling (ocean90)
d9212519fa Editor: Remove trailing space from a help text string.
Props dimadin.
Fixes #36407.

git-svn-id: https://develop.svn.wordpress.org/trunk@37159 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-05 10:53:15 +00:00
John Blackbourn
2d95d4187d Comments: Wrap the formatted comment text on the comment moderation screen in comment_text() so paragraphs and texturisation are applied.
Fixes #34133


git-svn-id: https://develop.svn.wordpress.org/trunk@37158 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-04 23:32:15 +00:00
Dominik Schilling (ocean90)
7ef7a98dd1 Plugins: Use correct placeholder for the number of reviews.
`number_format_i18n()` returns a string, not an integer.

See #35111.
Fixes #36395.

git-svn-id: https://develop.svn.wordpress.org/trunk@37156 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-02 11:16:32 +00:00
Dominik Schilling (ocean90)
6bf0509046 I18N: Clarify translator comment for an a11y label added in [36618].
Props TacoVerdo.
See #35111.
Fixes #36396.

git-svn-id: https://develop.svn.wordpress.org/trunk@37155 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-02 11:11:52 +00:00
Andrew Ozz
bd800fbca4 Editor, wpLink:
- Restore the bottom half of the modal.
- Make it always expanded and remove the toggle. It is used as advanced link options now, no need to have simple mode.

Props iseulde, adamsilverstein, azaozz.
Fixes #36359.

git-svn-id: https://develop.svn.wordpress.org/trunk@37154 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-01 21:12:18 +00:00
Weston Ruter
cfd07d69cf Customize: Fix toggle of title attribute field visibility on nav menus admin page.
Improves alignment with nav menus in the Customizer, fixing regression introduced in [36908].

See #35273.
Props sidati, westonruter.
Fixes #36353.


git-svn-id: https://develop.svn.wordpress.org/trunk@37153 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-30 21:54:45 +00:00
Weston Ruter
0bc533e10b Customize: Put focus on change button instead of remove button in media control.
Allow controls to specify the primary element to receive focus by adding a `control-focus` class.

Props adamsilverstein, westonruter.
Fixes #36337.


git-svn-id: https://develop.svn.wordpress.org/trunk@37152 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-30 21:40:43 +00:00
Aaron Jorbin
565ac1efc6 Remove Debugging code introduced in [37145]
git-svn-id: https://develop.svn.wordpress.org/trunk@37148 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-30 18:57:26 +00:00
Aaron Jorbin
bd0c3bf0c7 Add Nonce to updating wporg_favorites user meta field
git-svn-id: https://develop.svn.wordpress.org/trunk@37145 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-30 18:35:37 +00:00
Nikolay Bachiyski
f1680acb86 Add nonce to AJAX action for script compression setting
git-svn-id: https://develop.svn.wordpress.org/trunk@37143 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-30 18:20:31 +00:00
Konstantin Obenland
ef53a0db39 Template: Remove $size reference from get_custom_logo().
Argument was removed in [37077] in favor of `with` and `height` arguments.

Props ocean90.
Fixes #36327.



git-svn-id: https://develop.svn.wordpress.org/trunk@37135 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-30 17:19:41 +00:00
Nikolay Bachiyski
c1c0759ab0 Taxonomies: make sure taxonomy functions work correctly with taxonomy names with special characters
The codex says that taxonomy names "should only contain lowercase letters and the underscore character", but that's not enforced. It's too late to enforce it, since some plugins haven't been following it and the official phpdoc doesn't mention this restriction.


git-svn-id: https://develop.svn.wordpress.org/trunk@37133 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-30 17:12:08 +00:00
Jeremy Felt
914df85ab4 Multisite: Improve escaping in network settings.
git-svn-id: https://develop.svn.wordpress.org/trunk@37124 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-30 15:58:29 +00:00
Dominik Schilling (ocean90)
826b822214 HTTP: Improve detection of valid IP addresses.
git-svn-id: https://develop.svn.wordpress.org/trunk@37115 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-30 15:37:26 +00:00
Drew Jaynes
14d4060c4e Docs: Ignore _wp_upload_dir_baseurl() from parsing for the Code Reference.
See #36371.


git-svn-id: https://develop.svn.wordpress.org/trunk@37114 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-30 15:28:17 +00:00
Konstantin Obenland
783102fcdc Customize: Respect aspect ratio on cropped images.
Takes into account whether the control supports `flex_width` and/or
`flex_height` and adjusts destination measurements accordingly.

Fixes #36318.



git-svn-id: https://develop.svn.wordpress.org/trunk@37113 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-30 15:13:34 +00:00
Andrew Ozz
0e99aea684 Add deprecated notice and removal warning to _wp_upload_dir_baseurl().
Props DrewAPicture, azaozz.
Fixes #36371.

git-svn-id: https://develop.svn.wordpress.org/trunk@37112 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-30 15:09:16 +00:00
Dominik Schilling (ocean90)
7987d26847 Multisite: Validate new email address confirmations.
git-svn-id: https://develop.svn.wordpress.org/trunk@37103 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-30 14:44:00 +00:00
Nikolay Bachiyski
8d55453ef4 Snoopy: use escapeshellarg instead of escapeshellcmd
We are escaping arguments, not commands, so we'd better use the semantically correct function, even though they are similar.


git-svn-id: https://develop.svn.wordpress.org/trunk@37094 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-30 13:57:40 +00:00
Aaron Jorbin
f531959fa2 Prevent PHP Warnings when using Custom Logo with no params
The parsing of defaults assumes that $args will be an array. This solves it for Custom Logo the same way it is solved for custom-header and custom-background.

Props obenland.
Fixes #36332.



git-svn-id: https://develop.svn.wordpress.org/trunk@37092 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-30 02:21:57 +00:00
Dominik Schilling (ocean90)
0a9951a3b9 Editor: Make the tooltip for the 'apply' button in the inline link dialog translatable.
Props SergeyBiryukov.
Fixes #36366.

git-svn-id: https://develop.svn.wordpress.org/trunk@37091 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-29 21:10:39 +00:00
Drew Jaynes
0a5885ce3c Docs: Standardize file headers for two embed templates introduced in [36693] for #34561.
Props flixos90.
Also missed props for flixos90 on [37087].

See #35986. See #36352.


git-svn-id: https://develop.svn.wordpress.org/trunk@37088 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-28 18:26:43 +00:00
Drew Jaynes
b26e3d0508 Docs: Reference the correct embed templates and template parts filenames in headers for embed files introduced or changed in 4.5.
See [36693], #34561. See #35986. Fixes #36352.


git-svn-id: https://develop.svn.wordpress.org/trunk@37087 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-28 18:23:53 +00:00
Drew Jaynes
b7e91e1dcc Docs: Following [37085], properly indent the markdown-formatted examples in the DocBlock for wpdb::esc_like().
See #32246.


git-svn-id: https://develop.svn.wordpress.org/trunk@37086 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-27 18:26:33 +00:00
Drew Jaynes
2ac50341ab Docs: Add missing quotes around a specifier in a query example in the DocBlock for wpdb::esc_like().
Props madvic.
See #32246.


git-svn-id: https://develop.svn.wordpress.org/trunk@37085 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-27 18:24:45 +00:00
Pascal Birchler
b4c43b0005 Taxonomy: After [36874], run the correct load-edit-tags.php hook on the new term edit page.
When not misspelled, this hook is useful (and needed) for backward compatibility.

Unprops swissspidy.
Fixes #34988.

git-svn-id: https://develop.svn.wordpress.org/trunk@37084 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-27 15:15:48 +00:00
Drew Jaynes
0b6af900f1 Docs: Improve the DocBlocks for get_header_textcolor() and header_textcolor() to mention that they both retrieve color values in the HEX format.
Props theMikeD.
Fixes #36336.


git-svn-id: https://develop.svn.wordpress.org/trunk@37083 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-25 23:05:42 +00:00
Mike Schroder
ea2590a6c4 Post 4.5-RC1 version bump.
git-svn-id: https://develop.svn.wordpress.org/trunk@37079 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-24 03:58:00 +00:00
Mike Schroder
895b213e62 4.5-RC1
git-svn-id: https://develop.svn.wordpress.org/trunk@37078 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-24 03:31:51 +00:00
Konstantin Obenland
c35484581d Customize: Bring custom-logo args closer to custom-header.
Allows themes to specify the desired width and height of logos, and whether
that is flexible or not. Has the benefit of not having to generate a logo-sized
file for every image uploaded.

Props westonruter, celloexpressions.
Fixes #36255.



git-svn-id: https://develop.svn.wordpress.org/trunk@37077 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-24 02:01:50 +00:00
Ella Iseulde Van Dorpe
e6b5f3316f Update TinyMCE and jQuery UI button styles
Part props liljimmi.
Fixes #35571.



git-svn-id: https://develop.svn.wordpress.org/trunk@37076 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-24 00:56:14 +00:00
Sergey Biryukov
0058968499 Canonical / Query: Restore the is_404() check in wp_old_slug_redirect() which was removed in [34659].
This reverts part of [34659] due to excessive canonical problems it's caused in 4.4.x.

Remove the unit tests which are no longer supported.
This also removes the `is_feed()` code to avoid confusion - only pages & embeds will be redirected.

Merges [36280] and [36281] to trunk.

Props dd32.
See #21602, #35344.

git-svn-id: https://develop.svn.wordpress.org/trunk@37075 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-23 21:53:44 +00:00
Andrew Ozz
9f03a3bd5e TinyMCE: include the upstream fix for inserting <hr> while the caret is in an inline element: b1618d1adb.
Fixes #36165.

git-svn-id: https://develop.svn.wordpress.org/trunk@37074 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-23 21:44:05 +00:00
Dominik Schilling (ocean90)
f903fb5160 Common CSS: Reset bottom padding for .nav-tab-wrapper.
Props ericdaams.
Fixes #35960.

git-svn-id: https://develop.svn.wordpress.org/trunk@37073 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-23 20:13:57 +00:00
Dominik Schilling (ocean90)
4727f60c15 External Libraries: Update jQuery Migrate to 1.4.0.
Changes: https://github.com/jquery/jquery-migrate/compare/1.3.0...1.4.0

Fixes #35380.

git-svn-id: https://develop.svn.wordpress.org/trunk@37072 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-23 19:43:17 +00:00
Dominik Schilling (ocean90)
703bd5f97f External Libraries: Update jQuery to 1.12.2.
Release post: http://blog.jquery.com/2016/03/17/jquery-1-12-2-and-2-2-2-released/
Changelog: https://github.com/jquery/jquery/compare/1.12.1...1.12.2

See #35380.

git-svn-id: https://develop.svn.wordpress.org/trunk@37070 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-23 18:46:19 +00:00
Drew Jaynes
979d8931d3 Docs: Properly mark $args parameters in two WP_oEmbed methods as optional.
Also clarify that the `$args` parameters can accept a string (the default) in addition to an array.

Props ramiy.
See #36296.


git-svn-id: https://develop.svn.wordpress.org/trunk@37069 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-23 17:07:58 +00:00
Drew Jaynes
79150b2561 Docs: Use third-person singular verbs for summary DocBlocks in WP_oEmbed.
Also fixes inline `@see` formatting in appropriate places (summaries should not contain tags or markdown).

Props ramiy.
See #36296.


git-svn-id: https://develop.svn.wordpress.org/trunk@37068 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-23 16:57:08 +00:00
Drew Jaynes
d793244e3c Docs: Improve and add missing DocBlocks for methods and properties in WP_oEmbed.
Props ramiy.
See #36296.


git-svn-id: https://develop.svn.wordpress.org/trunk@37067 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-23 16:51:48 +00:00
Weston Ruter
b5cd3f862c Customize: Replace site logo with custom logo terminology, fixing failure to preview logo changes.
Fixes regression introduced in [37040] which was from a patch that did not include the terminology change. 

See #36255.
Fixes #35855.


git-svn-id: https://develop.svn.wordpress.org/trunk@37066 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-23 06:26:00 +00:00
Drew Jaynes
1395ff6db4 Docs: Improve inline documentation syntax throughout WP_Widget.
Fixes #36298.


git-svn-id: https://develop.svn.wordpress.org/trunk@37065 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-23 05:31:31 +00:00
Drew Jaynes
43dfcc5fa8 Docs: Add missing information to the WP_Widget PHP4 constructor DocBlock.
Also add several missing at `@access` tags to other method DocBlocks and clarify parameter docs for `WP_Widget::form_callback()`.

Props raimy.
See #36298.


git-svn-id: https://develop.svn.wordpress.org/trunk@37064 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-23 05:09:48 +00:00
Drew Jaynes
cbf08027df Docs: Use third-person singular verbs for method summaries in WP_Widget_Factory.
Fixes #36299.


git-svn-id: https://develop.svn.wordpress.org/trunk@37063 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-23 04:50:26 +00:00
Drew Jaynes
4d077b3a90 Docs: Add missing information to constructors DocBlocks for WP_Widget_Factory.
See #36299.


git-svn-id: https://develop.svn.wordpress.org/trunk@37062 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-23 04:18:26 +00:00
Drew Jaynes
7ce686fef1 Docs: Add a missing DocBlock for the WP_Widget_Factory::$widgets property.
Props raimy.
See #36299.


git-svn-id: https://develop.svn.wordpress.org/trunk@37061 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-23 04:10:27 +00:00
Weston Ruter
43b9dedeea Customize: Prevent preview iframe from showing until fully loaded.
Fixes issue where the Customizer preview window can appear to momentarily bounce to the top when being refreshed. Regression from [36532].

See #31195.
Fixes #36276.


git-svn-id: https://develop.svn.wordpress.org/trunk@37060 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-23 00:52:20 +00:00
Dominik Schilling (ocean90)
6c0a66cf49 Users: In edit_user() check for a blank password when adding a user.
Props wesleye, gitlost, adamsilverstein.
Fixes #35715.

git-svn-id: https://develop.svn.wordpress.org/trunk@37059 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-22 23:06:29 +00:00
Drew Jaynes
bcc058d02d Docs: Mark optional method parameters as such in Walker_Page.
Also normalizes parameter spacing following [37056].

Fixes #36300.


git-svn-id: https://develop.svn.wordpress.org/trunk@37057 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-22 18:06:58 +00:00
Drew Jaynes
b44910599c Docs: The page object type in use in Walker_Page is WP_Post.
See #36300.


git-svn-id: https://develop.svn.wordpress.org/trunk@37056 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-22 18:04:06 +00:00
Drew Jaynes
c7d05cff99 Docs: Improve inline documentation for properties and methods in Walker_Page.
Props raimy.
See #36300.


git-svn-id: https://develop.svn.wordpress.org/trunk@37055 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-22 18:03:07 +00:00
Drew Jaynes
6f43565b51 Docs: The page object type in use in Walker_PageDropdown is WP_Post.
See #36300.


git-svn-id: https://develop.svn.wordpress.org/trunk@37054 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-22 17:52:53 +00:00
Drew Jaynes
eacd0d863d Docs: Improve inline documentation for properties and methods in Walker_PageDropdown.
Props raimy for the initial patch.
See #36300.


git-svn-id: https://develop.svn.wordpress.org/trunk@37053 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-22 17:50:35 +00:00
Drew Jaynes
39bdd5fc3d Docs: Normalize Walker_Comment method parameter docs spacing following [37051].
See #36300.


git-svn-id: https://develop.svn.wordpress.org/trunk@37052 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-22 17:45:26 +00:00
Drew Jaynes
542f0a118e Docs: Comment display element object types for Walker_Comment are WP_Comment since 4.4.0.
See #36300.


git-svn-id: https://develop.svn.wordpress.org/trunk@37051 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-22 17:43:51 +00:00
Drew Jaynes
c4f61cf686 Docs: Improve inline documentation syntax for Walker_Comment.
* Marks optional parameters as such
* Improves existing parameter descriptions for clarity
* Syntax improvements

See #36300.


git-svn-id: https://develop.svn.wordpress.org/trunk@37050 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-22 17:40:27 +00:00
Drew Jaynes
436a966430 Docs: Standardize the class DocBlock summary for Walker_Comment.
See #36300.


git-svn-id: https://develop.svn.wordpress.org/trunk@37049 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-22 17:35:34 +00:00
Drew Jaynes
7479108b35 Docs: Improve inline documentation for properties and methods in Walker_Comment.
Props raimy for the initial patch.
See #36300.


git-svn-id: https://develop.svn.wordpress.org/trunk@37048 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-22 17:33:56 +00:00
Drew Jaynes
fc63cad200 Docs: Mark optional parameters in Walker_Category methods as such.
Also cleans up some syntax.

See #36300.


git-svn-id: https://develop.svn.wordpress.org/trunk@37047 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-22 17:29:40 +00:00
Drew Jaynes
a76c9c6cb2 Docs: Improve inline documentation for property and methods in Walker_Category.
Props raimy for the initial patch.
See #36300.


git-svn-id: https://develop.svn.wordpress.org/trunk@37046 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-22 17:24:49 +00:00
Drew Jaynes
07a91afd82 Docs: Improve inline documentation in property and method DocBlocks for Walker_CategoryDropdown.
Props ramiy for the initial patch.
See #36300.


git-svn-id: https://develop.svn.wordpress.org/trunk@37045 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-22 17:21:20 +00:00
Rachel Baker
06254f9a08 XMLRPC: Fix bug where draft posts couldn’t be published in the future, and would publish immediately.
Resolves bug introduced in [r34572], in which editing a Post via the XMLRPC API with a draft post_status, where the post_status changes from draft->publish with a future post_date set for the publish action, will have the future post_date disregarded and the Post will be published immediately. The expected behavior is that the post_date is used to schedule the Post to be published in the future.

Fixes #35874.

Props redsweater, rachelbaker, DrewAPicture

git-svn-id: https://develop.svn.wordpress.org/trunk@37043 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-22 15:09:05 +00:00
Weston Ruter
48b70c3504 Customize: Add support for flex sizes in CustomizeImageCropper.
Ensures that `$flex_width` and `$flex_height` as specified on `WP_Customize_Cropped_Image_Control` will be honored when a crop is saved.

See #36255.
Fixes #34851.


git-svn-id: https://develop.svn.wordpress.org/trunk@37042 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-22 03:54:58 +00:00
Joe Hoyle
2399173712 REST API: Provide better method for generating CURIEs
In [36533] CURIEs were added to the API responses for the link relation URIs, this makes
it a lot easier for clients to look up links by relation. That patch was functional, but
broke on edge cases such as embedded responses and collection items with links in the items.

This patch instead takes a less obtrusive approach by creating a new `get_compact_response_links`
to compliment `get_response_links` making both old and new functionality available.

Also the regex for curie relations has been relaxed to `.+` as rel names can have any uri-valid charector in it.

Fixes #34729.



git-svn-id: https://develop.svn.wordpress.org/trunk@37041 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-22 00:15:49 +00:00
Weston Ruter
4569f93d3e Customize: Require opt-in for selective refresh of widgets.
* Introduces `customize-selective-refresh-widgets` theme support feature and adds to themes.
* Introduces `customize_selective_refresh` arg for `WP_Widget::$widget_options` and adds to all core widgets.
* Remove `selective_refresh` from being a component that can be removed via `customize_loaded_components` filter.
* Add `WP_Customize_Widgets::get_selective_refreshable_widgets()` and `WP_Customize_Widgets::is_widget_selective_refreshable()`.
* Fix default `selector` for `Partial` instances.
* Implement and improve Masronry sidebar refresh logic in Twenty Thirteen and Twenty Fourteen, including preservation of initial widget position after refresh.
* Re-initialize ME.js when refreshing `Twenty_Fourteen_Ephemera_Widget`.

See #27355.
Fixes #35855.


git-svn-id: https://develop.svn.wordpress.org/trunk@37040 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-21 21:58:02 +00:00
Drew Jaynes
033c7465d5 Docs: Change the 'HTTPS' column header to 'Supports HTTPS' in the markdown providers tables in the hook doc for the oembed_providers filter.
See #32246.


git-svn-id: https://develop.svn.wordpress.org/trunk@37039 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-21 00:57:45 +00:00
Drew Jaynes
669cb94db9 Docs: Add Twitter timelines and moments to the table in the hook doc for the oembed_provders filter, introduced in [36954].
See #36197. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@37038 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-21 00:39:44 +00:00
Mel Choyce
f6281aa6d6 Dashicons: Fix incorrect ID in SVG version of font.
See #34221.


git-svn-id: https://develop.svn.wordpress.org/trunk@37037 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-18 20:42:40 +00:00
Mel Choyce
b4dfa41abb Dashicons: Update to the latest files.
Updates .dashicons-googleplus (f462) and adds three new icons, .dashicons-move (f545), .dashicons-laptop (f547), and .dashicons-paperclip (f546).

Props liljimmi, melchoyce, empireoflight, aargh-a-knot.
See #34221.


git-svn-id: https://develop.svn.wordpress.org/trunk@37036 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-18 20:25:42 +00:00
Andrew Ozz
058a2f558d Media: fix erroneously inserting a rel attribute in get_image_send_to_editor(). Reverts most of [34259] and [34260] and adds a unit test.
Props joemcgill, azaozz.
Fixes #36084.

git-svn-id: https://develop.svn.wordpress.org/trunk@37035 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-18 20:04:19 +00:00
Andrew Ozz
33947e4ba6 Responsive Images: the src of the image has to be first in the srcset, because of a bug in iOS8. Update the unit tests to reflect the changes.
Props jaspermdegroot, joemcgill, azaozz.
Fixes #35030.

git-svn-id: https://develop.svn.wordpress.org/trunk@37034 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-18 19:44:50 +00:00
Tammie
d85a319cd1 Twenty Thirteen, Twenty Fourteen, Twenty Fifteen: Update screenshots to 1200 x 900
Fixes #34806
Props: iamtakashi


git-svn-id: https://develop.svn.wordpress.org/trunk@37033 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-18 17:00:40 +00:00
Drew Jaynes
f720a4f216 Docs: Document default WP_Ajax_Response::add() arguments as a hash notation.
Adds example output to the DocBlock description based on default argument values.

Props ramiy for the initial patch.
See #32246.


git-svn-id: https://develop.svn.wordpress.org/trunk@37032 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-18 11:58:08 +00:00
Rachel Baker
da45e59bbd REST API: Add home_url to API index to avoid confusion with site_url.
Confusion abound, the API index is the generic term `url` to display the `site_url`. New `home` key will display the `home_url` in the index as well.

Fixes #35647.

git-svn-id: https://develop.svn.wordpress.org/trunk@37031 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-17 19:15:57 +00:00
Drew Jaynes
121bbc3b96 Docs: Improve 4.5 changelog entries introduced in [36992] for wp_authenticate(), and the authenticate and wp_login_failed hooks.
See #9568. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@37030 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-17 08:05:51 +00:00
Gary Pendergast
00cae29479 Emoji: The everythingExceptFlag browser support flag, introduced in [36816], wasn't being initialised correctly.
See #35300.



git-svn-id: https://develop.svn.wordpress.org/trunk@37029 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-17 04:59:14 +00:00
Gary Pendergast
83080f8e43 Emoji: Fix the diversity emoji check in Safari.
When the browser test for diversity emoji was added in [36160], it included a workaround for Chrome not being able to compare `Uint8ClampedArray` objects directly, by converting them to a string. Unfortunately, Safari doesn't support the `Uint8ClampedArray.toString()` method correctly, so the test was incorrectly failing in Safari.

Fixes #36266 for trunk.



git-svn-id: https://develop.svn.wordpress.org/trunk@37028 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-17 04:53:49 +00:00
Mike Schroder
007f3b456c Post 4.5-beta4 version bump.
git-svn-id: https://develop.svn.wordpress.org/trunk@37027 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-17 04:33:49 +00:00
Mike Schroder
9963b4a132 4.5-beta4
git-svn-id: https://develop.svn.wordpress.org/trunk@37026 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-17 04:16:44 +00:00
Drew Jaynes
e4547b78e3 Docs: Clarify documentation for the xmlrpc_enabled filter to better explain that its scope only extends to methods requiring authentication.
When the `xmlrpc_enabled` filter was initially introduced in [21509], it was effectively intended to replace the `enable_xmlrpc' UI option, which only controlled whether authenticated XML-RPC methods were enabled, such as for publishing actions. This change clarifies the expected behavior and adds information about ways to more granularly control XML-RPC method and request behavior with related hooks.

Part props mensmaximus.
See #21509. Fixes #36055.


git-svn-id: https://develop.svn.wordpress.org/trunk@37025 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-17 03:52:40 +00:00
Andrew Ozz
3014f291ae TinyMCE: after discussion in Slack https://wordpress.slack.com/archives/core/p1458164584000700
- Remove `***` and `___` text pattern and support for spaces in `---`. The only `<hr>` text pattern is 3 or more dashes, no spaces.
- Remove the `*`, `**`, `_`, and `__` text patterns for bold and italic.

Fixes #33300;

git-svn-id: https://develop.svn.wordpress.org/trunk@37023 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-16 22:59:03 +00:00
John Blackbourn
f1af2813d3 Media: When generating the base URL to be used in the srcset attribute, use an https scheme when the image base URL's host matches that of the current host, and the request is being served over HTTPS. This prevents mixed content warnings caused by http embedded media.
See #34945
Props joemcgill


git-svn-id: https://develop.svn.wordpress.org/trunk@37022 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-16 22:48:13 +00:00
Rachel Baker
40a3bac346 REST API: Remove unused variable $api_root from WP_Rest_Server->embed_links() method.
After [r36674] the variable `$api_root` is no longer used in this method and should be removed.

See #35803.

git-svn-id: https://develop.svn.wordpress.org/trunk@37021 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-16 21:40:42 +00:00
Dominik Schilling (ocean90)
ab8ff0dee1 Responsive images: Skip images with a missing $image_meta['file'] value.
Props joemcgill.
See [37002].
Fixes #35480.

git-svn-id: https://develop.svn.wordpress.org/trunk@37018 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-16 17:47:41 +00:00
Dominik Schilling (ocean90)
b0302d4d30 I18N: Move translatable Codex URLs to separate strings in wp-admin/includes/meta-boxes.php.
Props ramiy.
Fixes #35751.

git-svn-id: https://develop.svn.wordpress.org/trunk@37016 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-16 16:57:36 +00:00
Drew Jaynes
31a93cd569 Docs: Use a third-person singular verb in the DocBlock summary for WP_REST_Response::get_curies(), introduced in [36533].
Also adds a missing return description.

See #34729. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@37015 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-16 16:53:22 +00:00
Drew Jaynes
4cb2eef539 Docs: Improve parameter description syntax in the hook doc for the rest_request_from_url filter, introduced in [36673].
See #35803. See #35986,


git-svn-id: https://develop.svn.wordpress.org/trunk@37014 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-16 16:51:33 +00:00
Drew Jaynes
6dbf325d28 Docs: Improve the DocBlock for WP_REST_Request::from_url(), introduced in [36673].
See #35803. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@37013 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-16 16:49:35 +00:00
Drew Jaynes
da8a501226 Docs: Use a third-person singular verb in the DocBlock summary for WP_Customize_Site_Icon_Control::content_template(), introduced in [36698].
Also adds a missing `@access` notation.

See #33755. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@37012 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-16 16:40:45 +00:00
Drew Jaynes
7e2441298e Docs: Add a missing version and access information to the DocBlock for the WP_Customize_Selective_Refresh->$manager property, introduced in [36586].
See #27355. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@37011 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-16 16:38:31 +00:00
Drew Jaynes
7c4212d252 Docs: Standardize the file header and class summarries for the file containing WP_Customize_Selective_Refresh, introduced in [36586].
See #27355. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@37010 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-16 16:28:06 +00:00
Drew Jaynes
c50b76ea08 Docs: Standardize the file header and class summaries for the file containing WP_Customize_Partial, introduced in [36586].
See #27355. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@37009 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-16 16:23:46 +00:00
Drew Jaynes
65277b77b6 Docs: Clarify the use of the get_currentuserinfo() for backward compatibility purposes in the DocBlock description for _wp_get_current_user(), introduced in [36651].
See #19615. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@37008 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-16 16:20:14 +00:00
Drew Jaynes
af6d494b00 Docs: Use a third-person singular verb in the DocBlock summary for wp_authenticate_email_password(), introduced in [36617].
See #9568. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@37007 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-16 16:17:04 +00:00
Drew Jaynes
7f194fffc4 Docs: Add a couple of spaces before hook docs for filters introduced in 4.5.
See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@37006 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-16 16:14:55 +00:00
Sergey Biryukov
e86930f864 Remove several one-time variables from wp_get_archives(), added in [24] and [190].
Props pbearne for initial patch.
Fixes #36243.

git-svn-id: https://develop.svn.wordpress.org/trunk@37005 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-16 10:19:43 +00:00
Andrew Ozz
e76e55af2e TinyMCE, inline link:
- Add back the bottom box-shadow on the Apply button.
- Shrink `.mce-btn.mce-primary` to compensate for the bottom box-shadow.
- Tighten up/reduce the margins between the buttons.

See #33301.

git-svn-id: https://develop.svn.wordpress.org/trunk@37004 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-16 04:28:09 +00:00
Andrew Ozz
3858c09d02 Editor: fix exiting DFW with the keyboard shortcut on Mac (Opt+Ctrl+W).
Fixes #36222.

git-svn-id: https://develop.svn.wordpress.org/trunk@37003 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-16 02:47:29 +00:00
Andrew Ozz
1046806376 Responsive images: do not attempt to create srcset when the image meta is missing or corrupted.
Props overclokk, jaspermdegroot, joemcgill.
Fixes #35480.

git-svn-id: https://develop.svn.wordpress.org/trunk@37002 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-16 02:17:19 +00:00
Andrew Ozz
69a7d21279 TinyMCE, inline link:
- Remove bottom box-shadow from the Apply button so it matches the rest.
- Change the tooltip for the cogwheel button to Link options.

See #33301.

git-svn-id: https://develop.svn.wordpress.org/trunk@37001 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-16 02:03:21 +00:00
Andrew Ozz
22e01b6274 TinyMCE: update to 4.3.8, changelog: https://www.tinymce.com/docs/changelog/#version438-march152016.
Fixes #36254.

git-svn-id: https://develop.svn.wordpress.org/trunk@37000 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-15 21:37:22 +00:00
Tammie
6bc7b7c066 Twenty Thirteen, Twenty Fourteen and Twenty Fifteen: Fixes insufficient check for existence of DOM elements in jQuery object
Fixes #34033
Props: tywayne 


git-svn-id: https://develop.svn.wordpress.org/trunk@36999 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-15 21:32:15 +00:00
Gary Pendergast
8233227667 WPDB: Reset connection status variables when the connection is closed.
Fixes #36240.



git-svn-id: https://develop.svn.wordpress.org/trunk@36997 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-15 03:27:14 +00:00
Mike Schroder
2909283a7f Media: Fall back to GD when loading URL in HHVM Imagick.
HHVM does not currently support loading URLs in its port of Imagick.
Fixes `test_wp_crop_image_url()` failure introduced in [36916].

See #35973.

git-svn-id: https://develop.svn.wordpress.org/trunk@36996 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-15 00:14:42 +00:00
John Blackbourn
6152c81dd1 Docs: The $update_result parameter passed to WP_Automatic_Updater::after_core_update() is never a WP_Error. If an error is returned, the error object lives in the result property of the paramter.
See #32246


git-svn-id: https://develop.svn.wordpress.org/trunk@36995 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-14 22:42:36 +00:00
John Blackbourn
c0d39a1987 Docs: Re-add a @param that went missing in [36993].
See #32246


git-svn-id: https://develop.svn.wordpress.org/trunk@36994 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-14 22:38:53 +00:00
John Blackbourn
97c7cff31f Docs: Improvements and corrections for the $ver parameter of the dependencies API functions.
See #32246


git-svn-id: https://develop.svn.wordpress.org/trunk@36993 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-14 22:36:26 +00:00
John Blackbourn
6c972cbaff Users: Add @since entries to wp_authenticate() and its filters now that the $username parameter can also be an email address.
See #9568, #35986


git-svn-id: https://develop.svn.wordpress.org/trunk@36992 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-14 22:30:31 +00:00
Andrew Ozz
30d63dde4b wpLink: fix accessibility issues:
- Add role=dialog and an aria-labelledby attribute to the modal container.
- Change the modal title to h1.
- Remove one `&nbsp;` that gets read out as `blank` by screen readers.
- Replace the Cancel link with a button.
- Clean up unused CSS.

Props afercia.
Fixes #30468.

git-svn-id: https://develop.svn.wordpress.org/trunk@36991 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-14 20:54:58 +00:00
Weston Ruter
a0148962a2 Customize: Rely on selective refresh exclusively for previewing custom logo changes.
Eliminates JS logic (from [36698]) which attempted to do pure JS update while waiting for the selective refresh response to return. The duplicate JS logic lacked a re-implementation of the `image_downsize()` functionality available in PHP, and so the JS preview logic would fail to properly preview images that didn't have the exact theme image size generated. To keep the code DRY and to eliminate the momentary display of an improperly-sized image, the duplicated JS logic is now removed.

See #27355.
See #33755.
Fixes #36096.


git-svn-id: https://develop.svn.wordpress.org/trunk@36990 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-14 19:16:09 +00:00
Boone Gorges
9f05bf8ed9 Query: Ignore search terms consisting of a single dash.
Due to the "exclude" support added in WP 4.4, single dashes were being
converted to "NOT LIKE '%%'" clauses, causing all searches to fail.

Props RomSocial, swissspidy.
Fixes #36195.

git-svn-id: https://develop.svn.wordpress.org/trunk@36989 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-14 14:11:16 +00:00
Boone Gorges
0fdf0d4566 Improve error handling in get_categories().
When passed an invalid `'taxonomy'`, `get_terms()` will return a `WP_Error`
object. This object should not be blindly cast to an array. Instead, an empty
array should be returned, to indicate that no matching terms have been found.

Props virgodesign, sebastian.pisula.
Fixes #36227.

git-svn-id: https://develop.svn.wordpress.org/trunk@36988 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-14 13:52:14 +00:00
Sergey Biryukov
f653932157 Media: Fix typo introduced in [36887].
Props claudiosanches.
Fixes #36230. See #36089.

git-svn-id: https://develop.svn.wordpress.org/trunk@36987 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-14 08:59:49 +00:00
Andrew Ozz
289e9473df TinyMCE, inline link:
- Remove unused user setting for wpLink.
- Remove redundant text and variable from wp_link_dialog().

Props afercia, azaozz.
See #33301.

git-svn-id: https://develop.svn.wordpress.org/trunk@36985 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-14 01:38:09 +00:00
Andrew Ozz
bdbd792bfe TinyMCE, inline link:
- Add audible confirmation when a link has been selected or inserted in the editor for both the inline dialog and the modal.
- Do not auto-search when the URL field is empty or already contains an URL.
- Remove a few redundant `tabindex`.

Props afercia, azaozz.
See #33301.

git-svn-id: https://develop.svn.wordpress.org/trunk@36984 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-14 00:52:20 +00:00
Andrew Ozz
8f8b1001ad TinyMCE: when dragging, prevent error when a range cannot be created at the drop location.
Fixes #36229.

git-svn-id: https://develop.svn.wordpress.org/trunk@36983 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-13 22:55:01 +00:00
Andrew Ozz
4fcb429575 TinyMCE, inline link: when doing undo/redo with keyboard shortcut, do not focus the inline dialog. Cannot do consecutive undo/redo if the focus is moved away from the editor.
See #33301.

git-svn-id: https://develop.svn.wordpress.org/trunk@36982 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-13 22:43:10 +00:00
Andrew Ozz
98c197f09f Fix typo in wp-emoji.js.
See #35977.

git-svn-id: https://develop.svn.wordpress.org/trunk@36981 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-13 20:29:45 +00:00
Andrew Ozz
7a62a64686 TinyMCE, inline link: ensure the inline dialog is in preview mode after updating a link from the (advanced) modal.
Props afercia.
See #33301.

git-svn-id: https://develop.svn.wordpress.org/trunk@36977 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-13 17:46:59 +00:00
Andrew Ozz
c60cf303dc TinyMCE: tweak the small animation shown while waiting for wpView data to make it sell CPU intensive.
Props programmin.
Fixes #33525.

git-svn-id: https://develop.svn.wordpress.org/trunk@36976 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-13 17:01:19 +00:00
Sergey Biryukov
efeff26a67 Docs: Update default $size value for get_custom_logo filter after [36950].
Props wido.
See #33755.

git-svn-id: https://develop.svn.wordpress.org/trunk@36975 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-13 09:13:50 +00:00
Andrew Ozz
2a30146900 TinyMCE, inline link: when searching, do not empty the URL input field when using the arrow keys to highlight items.
Props afercia.
See #33301.

git-svn-id: https://develop.svn.wordpress.org/trunk@36974 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-12 19:41:00 +00:00
Eric Andrew Lewis
7552b192a8 Editor: Fix Mac keyboard shortcut for distraction free writing.
Fixes #36214.


git-svn-id: https://develop.svn.wordpress.org/trunk@36973 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-12 17:43:33 +00:00
Andrew Ozz
b68a4e3da6 Editor: hide the Move to Trash link for auto-drafts until they are auto-saved.
Props iseulde.
Fixes #16116.

git-svn-id: https://develop.svn.wordpress.org/trunk@36972 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-12 17:21:52 +00:00
Andrew Ozz
9d753fbf5a Editor: correct and update the Visual and Text editors description in the screen help.
Props arush, adamsilverstein, azaozz.
Fixes #35479.

git-svn-id: https://develop.svn.wordpress.org/trunk@36971 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-12 16:42:14 +00:00
Dominik Schilling (ocean90)
39ddaa65cc Docs: Correct grammar when referring to "a URL" vs "an URL" in several places.
Fixes #36218.

git-svn-id: https://develop.svn.wordpress.org/trunk@36970 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-12 12:38:48 +00:00
Pascal Birchler
91d4bbd041 Taxonomy: After [36874], rename $term_id to $tag_ID in wp-admin/edit-tag-form.php.
This ensures that no variables changed in the process of introducing `wp-admin/term.php`, improving overall backward compatibility.

Props Chouby for initial patch.
Fixes #34988.

git-svn-id: https://develop.svn.wordpress.org/trunk@36969 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-11 08:51:13 +00:00
Dominik Schilling (ocean90)
e20f75533e Media: Merge two error messages and use sprintf() for the method names.
See #33642.

git-svn-id: https://develop.svn.wordpress.org/trunk@36968 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 23:35:37 +00:00
Andrea Fercia
f4ee598def Coding standards after [36510].
git-svn-id: https://develop.svn.wordpress.org/trunk@36967 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 23:17:46 +00:00
Drew Jaynes
ad5b16cc09 Docs: Improve two 4.5.0 changelog entries added for the plugins_update_check_locales and themes_update_check_locales filters, introduced in [36630].
See #34937. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36966 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 23:00:50 +00:00
Drew Jaynes
deaabdcc28 Docs: Correct a typo in the DocBlock summary for get_embed_template(), introduced in [36963].
Props swissspidy.
See #34561, #34278. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36965 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 22:44:15 +00:00
Andrea Fercia
2a2539402f Accessibility: Improve accessibility for the Plugin details modal.
The plugin details modal can be invoked from several screens. There's now a new
`.open-plugin-details-modal` CSS class to be used in combination with the
`.thickbox` CSS class that adds everything needed for accessibility.

- Adds an ARIA role `dialog` and an `aria-label` attribute to the modal
- Adds a `title` attribute to the iframe inside the modal
- Constrains tabbing within the modal
- Restores focus back in a proper place when closing the modal

Also, improves a bit the native Thickbox implementation: it should probably be
replaced with some more modern tool but at least keyboard focus should be moved
inside the modal.

Fixes #33305.

git-svn-id: https://develop.svn.wordpress.org/trunk@36964 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 22:36:25 +00:00
Drew Jaynes
fd7c2fef96 Docs: Use a third-person singular verb in the summary for get_embed_template(), introduced in [36876].
See #34561, #34278. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36963 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 22:08:16 +00:00
Drew Jaynes
32dc4c97e0 Docs: Improve changelog entries added for the delete_term and delete_{$taxonomy} actions in [36080] and a third entry added for the clean_term_cache action in [36399]
See #35213, #35611. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36962 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 22:06:14 +00:00
Drew Jaynes
b557ee2d1b Docs: Improve the summary and return description in the DocBlock for unregister_taxonomy(), introduced in [36243].
See #35227. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36961 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 22:01:43 +00:00
Drew Jaynes
662a4c1fd8 Docs: Use a third-person singular verb for the DocBlock summary for remove_permastruct(), introduced in [36181].
See #35235. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36960 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 21:59:51 +00:00
Andrea Fercia
474c7da237 Accessibility: Improve the color contrast ratio of the expandable panel "handles".
Fixes #35923.

git-svn-id: https://develop.svn.wordpress.org/trunk@36959 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 21:44:00 +00:00
Rachel Baker
55cda28b18 Comments: On the Edit Comment screen do not show the permalink for unapproved comments.
Fixes #36161.

git-svn-id: https://develop.svn.wordpress.org/trunk@36958 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 21:17:57 +00:00
Tammie
4b898888a6 Twenty Elevent: Captioned image fix for editor
Fixes #33153
Props: @iseulde


git-svn-id: https://develop.svn.wordpress.org/trunk@36957 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 21:12:25 +00:00
Tammie
e62721d160 Twenty Thirteen: Removes title attribute from footer
Fixes #35843
Props: @davidakennedy


git-svn-id: https://develop.svn.wordpress.org/trunk@36956 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 21:06:07 +00:00
Dominik Schilling (ocean90)
3046ac771c oEmbed: Extend the provider list to support moments and timelines from Twitter.
Fixes #36197.

git-svn-id: https://develop.svn.wordpress.org/trunk@36954 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 20:03:09 +00:00
John Blackbourn
d9a7db711e Rewrite Rules: Allow rewrite rules to work in nested WordPress installations on IIS.
Props WiZZarD_
Fixes #35558


git-svn-id: https://develop.svn.wordpress.org/trunk@36953 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 20:00:05 +00:00
John Blackbourn
4db068e862 Embeds: Add support for dai.ly embeds over HTTPS.
Fixes #36189


git-svn-id: https://develop.svn.wordpress.org/trunk@36951 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 19:48:15 +00:00
Konstantin Obenland
cda0901425 Template: Explicitly set full as the default custom logo size.
See #33755.


git-svn-id: https://develop.svn.wordpress.org/trunk@36950 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 19:02:25 +00:00
Konstantin Obenland
6f69ca857e Tests: Introduce multisite unit tests.
Makes sure custom logo functions work for other sites within a network.
Fixes a bug in `get_custom_logo()` where the correct logo was returned, but
linked to the wrong site.

H/t ocean90.
See #33755, #36086.


git-svn-id: https://develop.svn.wordpress.org/trunk@36949 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 18:56:56 +00:00
Konstantin Obenland
827bcc32a8 Customize: Use full URL to image to prevent breakage if moved.
See https://core.trac.wordpress.org/ticket/33755#comment:103
See #33755.



git-svn-id: https://develop.svn.wordpress.org/trunk@36948 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 18:52:10 +00:00
Drew Jaynes
8ff9728013 Docs: Improve syntax in the DocBlock for rest_get_server(), introduced in [36529].
See #35329. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36947 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 18:48:34 +00:00
Aaron Jorbin
6c3d9fe803 Update Twitter oEmbed URL.
Twitter moved its preferred oEmbed URL for single Tweets from api.twitter.com to publish.twitter.com. They also are deprecating XML responses. 

Props niallkennedy.
Fixes #36197.



git-svn-id: https://develop.svn.wordpress.org/trunk@36946 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 18:39:12 +00:00
Drew Jaynes
95a37a1e35 Docs: Improve the DocBlock summary for wp_queue_posts_for_term_meta_lazyload(), introduced in [36566].
See #35816. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36945 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 18:28:33 +00:00
Drew Jaynes
2774bb1116 Docs: Improve the accuracy of the return description for unregister_post_type(), introduced in [36316].
See #14761. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36944 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 18:24:45 +00:00
Konstantin Obenland
4c0c3f769f Twenty Fifteen: Simplify twentyfifteen_the_custom_logo().
See b72e3d8059
See #35944.


git-svn-id: https://develop.svn.wordpress.org/trunk@36943 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 18:20:13 +00:00
Drew Jaynes
08ec976d15 Docs: Use a third-person singular verb for the get_the_excerpt() DocBlock summary.
See #32246.


git-svn-id: https://develop.svn.wordpress.org/trunk@36942 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 17:51:42 +00:00
Drew Jaynes
cc4e2e3f64 Docs: Improve the DocBlock summary for wp_metadata_lazyloader(), introduced in [36566].
See #35816. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36941 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 17:50:01 +00:00
Drew Jaynes
7c7a95cf9f Docs: Improve the usefulness of the DocBlock summary for get_edit_term_link().
See #32246.


git-svn-id: https://develop.svn.wordpress.org/trunk@36940 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 17:47:58 +00:00
Drew Jaynes
606d131f52 Docs: Improve the 4.5.0 changelog entry in the hook doc for the get_archives_link filter, introduced in [36418].
See #35573. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36939 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 17:46:44 +00:00
Drew Jaynes
d2a3bea2f7 Docs: Improve the $blog_id parameter description in the DocBlock for the_custom_logo(), introduced in [36698].
See #33755. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36938 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 17:45:20 +00:00
Drew Jaynes
71bd9dc422 Docs: Improve the $blog_id parameter description in the DocBlock for get_custom_logo(), introduced in [36698].
See #33755. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36937 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 17:44:23 +00:00
Drew Jaynes
5f72981462 Docs: Improve inline documentation for has_custom_logo(), introduced in [36698].
See #33755. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36936 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 17:43:32 +00:00
Dominik Schilling (ocean90)
73a88ca194 Editor: Fix size of the resize handle on RTL sites for HiDPI screens.
Also, add the `/*rtl:ignore*/` control directive so rtlcss doesn't process them again.

Fixes #36193.

git-svn-id: https://develop.svn.wordpress.org/trunk@36934 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 14:05:41 +00:00
Mike Schroder
b49bc4e651 Post 4.5-beta3 version bump.
git-svn-id: https://develop.svn.wordpress.org/trunk@36933 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 07:00:24 +00:00
Mike Schroder
171dc81a22 4.5-beta3
git-svn-id: https://develop.svn.wordpress.org/trunk@36932 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 06:48:58 +00:00
Gary Pendergast
ad57f8d6f9 Customize: Update cropper.js to match changes in [36866].
`media-views.js` was updated, but the changes weren't added to `cropper.js`, which caused the `grunt precommit:js` job to incorrectly remove the changes from `media-views.js`.

Fixes #32783.



git-svn-id: https://develop.svn.wordpress.org/trunk@36931 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 05:41:04 +00:00
Gary Pendergast
28a6bf00f7 About: Run w-logo-white.png through imagemin.
See #35661.



git-svn-id: https://develop.svn.wordpress.org/trunk@36929 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 05:15:33 +00:00
Gary Pendergast
792b7cd3a9 Emoji: Upgrade twemoji.js to version 2.
Adds official upstream support for Unicode 8.0 emoji, as well as file size and performance improvements.

Fixes #36059.



git-svn-id: https://develop.svn.wordpress.org/trunk@36928 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 05:10:27 +00:00
Gary Pendergast
17dc928316 Emoji: Twemoji replacements weren't working in TinyMCE after [36816].
See #35300.



git-svn-id: https://develop.svn.wordpress.org/trunk@36927 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 05:08:10 +00:00
Jeremy Felt
91513893c2 Posts: Call set_url_scheme() consistently on URLs passed through preview_post_link
After [34170], some preview URLs that passed through `set_url_scheme()` no longer do so. We can restore that behavior by applying `set_url_scheme()` whenever `get_preview_post_link()` provides the URL.

Props danielbachhuber.
Fixes #35407.


git-svn-id: https://develop.svn.wordpress.org/trunk@36926 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 04:41:34 +00:00
Drew Jaynes
89cfbe98f1 Docs: Improve DocBlock syntax for wp_get_upload_dir(), introduced in [36565].
See #34359. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36925 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 03:37:43 +00:00
Drew Jaynes
3d331e46f1 Docs: Improve the DocBlock summary for the_embed_site_title(), introduced in [36693].
See #34561. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36923 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 02:54:33 +00:00
Drew Jaynes
807396f94e Docs: Improve the DocBlock summary for the clean_comment_cache action, introduced in [36405].
See #35610. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36922 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 02:52:48 +00:00
Drew Jaynes
1d89f9e228 Docs: Improve syntax for the $lengths parameter in the hook doc for the wp_get_comment_fields_max_lengths filter, introduced in [36272].
See #10377. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36921 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 02:50:46 +00:00
Drew Jaynes
773ed4a36c Docs: Improve the DocBlock summary for wp_get_comment_fields_max_lengths(), introduced in [36514].
See #10377. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36920 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 02:45:15 +00:00
Drew Jaynes
a982b5462c Docs: Improve the DocBlock summary for wp_queue_comments_for_comment_meta_lazyload(), introduced in [36566].
See #35816. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36919 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 02:42:16 +00:00
Drew Jaynes
bd1e46eb82 Docs: Improve the usefulness of associated reference info in the hook doc for the comments_template_query_args filter, introduced in [36235].
See #34442. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36918 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 02:31:53 +00:00
Drew Jaynes
14a393beaf Docs: Add a missing DocBlock summary for the WP_Scripts->print_html_before property, added in [36633].
See #14853. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36917 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 02:26:00 +00:00
Mike Schroder
fd8bd3520c Media: Support Imagick in HHVM.
Removes case-sensitivity from Imagick feature detection within `WP_Image_Editor_Imagick::test()`.
This allows correct detection of Imagick support within HHVM.

Props markoheijnen, DuckDagobert.
Fixes #35973.

git-svn-id: https://develop.svn.wordpress.org/trunk@36916 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 01:18:39 +00:00
Konstantin Obenland
6d951b3c5d Customize: Only add custom logo’s header text control if needed.
Dissolves `WP_CustomLogo` and adopts a structure similar to custom header and background (See `_delete_attachment_theme_mod()`).
The option to hide header text only gets added if it’s not already part of custom header, and only if selectors have been registered when theme support for custom logos was declared. Themes can add `postMessage` support for it as well.

Example:
{{{
add_theme_support( 'custom-logo', array(
    'size' => ‘large’,
    'header-text' => array( 'site-title', 'site-description' ),
) );
}}}

See #33755.


git-svn-id: https://develop.svn.wordpress.org/trunk@36915 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-09 23:43:49 +00:00
Tammie
b37bfd8e29 Twenty Fifteen: add support for site logos
Fixes #35944
Props @iamtakashi, @celloexpressions, @drebbits.web


git-svn-id: https://develop.svn.wordpress.org/trunk@36913 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-09 23:01:53 +00:00
Konstantin Obenland
c1c6def489 Customize: Bump down the priority custom logo's control.
Keeps the control in the same place but allows for plugins and themes to place
other controls above it.

Props celloexpressions.
Fixes #35942.


git-svn-id: https://develop.svn.wordpress.org/trunk@36912 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-09 22:02:06 +00:00
Mel Choyce
14d0424513 About: Improve color contrast of WP Badge text, and update the logo to use the latest version.
Fixes #35661.
Props @hugobaeta.


git-svn-id: https://develop.svn.wordpress.org/trunk@36910 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-09 21:52:29 +00:00
Konstantin Obenland
57686e8b5d Themes: Support second argument in theme support for custom logo.
See #33755.


git-svn-id: https://develop.svn.wordpress.org/trunk@36909 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-09 21:50:37 +00:00
Weston Ruter
7ececb24f5 Customize: Fix persistence of toggles for displayed nav menu item properties.
* Eliminates need to click more than one checkbox to have preferences saved.
* Adds debouncing to saving user-selected menu item properties.
* Also removes discrepancies between available nav menu item properties on admin page vs Customizer.

Fixes #35273.
Props afercia, westonruter.


git-svn-id: https://develop.svn.wordpress.org/trunk@36908 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-09 21:40:27 +00:00
Konstantin Obenland
326806a961 Customize: Reduce vertical space of site icon control.
Makes the control easier to find, reduces visual clutter, and is more
consistent with Customizer UI conventions.

Props celloexpressions.
Fixes #35943.


git-svn-id: https://develop.svn.wordpress.org/trunk@36907 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-09 21:18:53 +00:00
Andrea Fercia
7e71bb398c Accessibility: Reduce the WordPress shades of grey, Episode 3.
Also, removes some no more used CSS.

See #35783.

git-svn-id: https://develop.svn.wordpress.org/trunk@36904 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-09 19:50:28 +00:00
Weston Ruter
6740130925 Customize: Restore body class removed in [36837] for when custom logo is present.
The class name is `wp-custom-logo` and it will be toggled by JS in the Customizer preview when the custom logo is added or removed.

See #33755.
Fixes #35945.


git-svn-id: https://develop.svn.wordpress.org/trunk@36903 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-09 19:32:33 +00:00
Sergey Biryukov
11c47a6cb5 Use admin_url() for "Add New" links in wp-admin/users.php.
Props johnjamesjacoby.
Fixes #36186.

git-svn-id: https://develop.svn.wordpress.org/trunk@36902 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-09 19:08:58 +00:00
Sergey Biryukov
96520194c7 Use admin_url() for "Add New" links in wp-admin/upload.php.
Props johnjamesjacoby.
See #36186.

git-svn-id: https://develop.svn.wordpress.org/trunk@36901 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-09 19:08:12 +00:00
Drew Jaynes
a72df051f8 Docs: Improve the DocBlock summary for WP::remove_query_var(), introduced in [36177].
See #35234. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36900 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-09 17:04:59 +00:00
Drew Jaynes
72e258bdd5 Docs: Standardize file header summary for wp-includes/class-wp-metadata-lazyloader.php.
See [36897]. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36899 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-09 16:58:08 +00:00
Drew Jaynes
94ac53331d Docs: Improve inline documentation syntax throughout WP_Metadata_Lazyloader, introduced in [36566].
See #35816. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36898 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-09 16:54:45 +00:00
Drew Jaynes
32f8a9b345 Docs: Add a missing file header to wp-includes/class-wp-metadata-lazyloader.php, introduced in [36566].
See #35816. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36897 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-09 16:51:15 +00:00
Boone Gorges
79c92e605a Correct @return annotation for wp_set_object_terms() and related functions.
The return value is an array of term taxonomy IDs, not term IDs.

Fixes #36182.

git-svn-id: https://develop.svn.wordpress.org/trunk@36896 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-09 16:16:29 +00:00
Jeremy Felt
fce77dc7c6 Docs: Update the return type for get_active_blog_for_user()
This is now a `WP_Site` object.

See #32450.


git-svn-id: https://develop.svn.wordpress.org/trunk@36895 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-09 07:49:50 +00:00
Jeremy Felt
3968688877 Docs: Update param/return types for WP_Site in ms-blogs.php
* `get_blog_details()` now returns a `WP_Site` object.
* `clean_blog_cache()` is now called with a `WP_Site` object.

See #32450.


git-svn-id: https://develop.svn.wordpress.org/trunk@36894 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-09 07:41:34 +00:00
Jeremy Felt
65b2be5b8f Docs: Update the return type for get_current_site()
This is now a `WP_Network` object.

See #32246.


git-svn-id: https://develop.svn.wordpress.org/trunk@36893 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-09 07:27:56 +00:00
Weston Ruter
746fc0ea1f Customize: Remove unused JS variable to fix jshint error introduced in [36890].
See #36164.


git-svn-id: https://develop.svn.wordpress.org/trunk@36892 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-09 05:04:56 +00:00
Mike Schroder
134c22caab Media: Progressive enhancement for Imagick; add profiles to whitelist.
- Progressive enhancement for optional compression improvements and stripping meta.
- Whitelist IPTC and XMP profiles to maintain Copyright and Rights Usage Terms.
- Whitelist EXIF profile to maintain orientation information. If handled on upload in the future, it can be stripped as well.

Fixes #33642. See #28634.
Props joemcgill, juliobox, ahockley, markoheijnen, adamsilverstein, wonderboymusic, mikeschroder.

git-svn-id: https://develop.svn.wordpress.org/trunk@36891 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-09 04:43:40 +00:00
Weston Ruter
c2c1c3fd3a Customize: Remove selective refresh error message from appearing inline within the preview.
The error message will still be available in the developer console.

Removes part of [36586].
See #27355.
Fixes #36164.


git-svn-id: https://develop.svn.wordpress.org/trunk@36890 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-09 04:36:51 +00:00
Weston Ruter
dcbbeffc57 Customize: Fix regressions and harden implementation of selective refresh for nav menus.
* Request full refresh if there are nav menu instances that lack partials for a changed setting.
* Restore `WP_Customize_Nav_Menus::$preview_nav_menu_instance_args` and `WP_Customize_Nav_Menus::export_preview_data()` from 4.3, and keeping a tally of all `wp_nav_menu()` calls regardless of whether they can use selective refresh.
* Ensure that all instances of `wp_nav_menu()` are tallied, regardless of whether they are made during the initial preview call or during subsequent partial renderings. Export `nav_menu_instance_args` with each partial rendering response just as they are returned when rendering the preview as a whole.
* Fix issues with Custom Menu widget where nav menu items would fail to render when switching between menus when a menu lacked items to begin with.
* Make sure the fallback behavior is invoked when the partial is no longer associated with a menu.
* Do fallback behavior to refresh preview when all menu items are removed from a menu.

Follows [36586].
See #27355.
Fixes #35362.


git-svn-id: https://develop.svn.wordpress.org/trunk@36889 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-09 00:08:51 +00:00
Drew Jaynes
f07f2252fe Menus: Avoid a notice when outputting a description for an existing archive menu item for a post type that doesn't.
Props bradyvercher.
See [36859]. Fixes #35324.


git-svn-id: https://develop.svn.wordpress.org/trunk@36888 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-08 18:24:50 +00:00
Dominik Schilling (ocean90)
6a8cb09f86 Media: Change wording for media files which aren't attached.
The media library can contain files which aren't attached yet. When attaching a file you currently get "Media attachment reattached.", or the opposite "Media attachment detached.". That's redundant and can be inaccurate. It's also not easy to translate in some languages.

This change generalizes the strings to refer to a "media file" instead.

Props SergeyBiryukov, ocean90, netweb.
Fixes #36089.

git-svn-id: https://develop.svn.wordpress.org/trunk@36887 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-08 17:42:45 +00:00
Dominik Schilling (ocean90)
dfc6f47841 Update Random_Compat from 1.1.6 to 1.2.1.
Changes: https://github.com/paragonie/random_compat/compare/1.1.6...v1.2.1

See #35665.

git-svn-id: https://develop.svn.wordpress.org/trunk@36886 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-08 17:14:52 +00:00
Dominik Schilling (ocean90)
7826b7b205 Script Loader: Enqueue the minified version of farbtastic if SCRIPT_DEBUG is false.
The files are available since [36341].

See #36083, #35229.

git-svn-id: https://develop.svn.wordpress.org/trunk@36884 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-08 16:03:35 +00:00
Dion Hulse
8d9b0a9d22 Filesystem: Support Windows shares/DFS roots in wp_normalize_path().
Props rilwis for initial patch.
Fixes #35996.


git-svn-id: https://develop.svn.wordpress.org/trunk@36881 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-08 05:59:45 +00:00
Dion Hulse
d32216787e oEmbed: During discovery, only request the first 150kb of linked content to avoid timouts requesting larger documents.
Fixes #35979.


git-svn-id: https://develop.svn.wordpress.org/trunk@36880 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-08 05:57:13 +00:00
Andrea Fercia
137bcc1fca Accessibility: Remove the title attributes from the old Media UI.
Also, adds better indication and attributes for the required form fields.
Moves some styles to `deprecated-media.css`.

Props andg, afercia.
Fixes #34944.

git-svn-id: https://develop.svn.wordpress.org/trunk@36879 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-07 22:28:15 +00:00
Drew Jaynes
6012464446 Docs: Add a missing @since version to the DocBlock for wp_add_dashboard_widget().
See #32246.


git-svn-id: https://develop.svn.wordpress.org/trunk@36878 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-07 22:16:56 +00:00
Andrea Fercia
d92e10fbb1 Customizer: Improve the collapsed view when switching to the responsive view.
Props rittesh.patel, afercia.

Fixes #35220.

git-svn-id: https://develop.svn.wordpress.org/trunk@36877 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-07 22:04:29 +00:00
Pascal Birchler
bae3fb43a5 Embeds: Add support for embeds in the theme template hierarchy.
This allows themes to directly override the default template. The order in which the template is retrieved is as follows: `embed-$post_type-$post_format.php` -> `embed-$post_type.php` -> `embed.php`.

The `embed_template` filter gets replaced by the dynamic `{$type}_template` filter in `get_query_template()`.

Props ChriCo, swissspidy.
See #34561. Fixes #34278.

git-svn-id: https://develop.svn.wordpress.org/trunk@36876 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-07 19:33:01 +00:00
Konstantin Obenland
ae79b4f91f Bundled Themes: Prevent elements within fieldsets from overflowing in Webkit.
Fixes #35421.


git-svn-id: https://develop.svn.wordpress.org/trunk@36875 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-07 19:14:05 +00:00
Pascal Birchler
3a51ff4d2e Taxonomy: Improve backward compatibility on the wp-admin/term.php page.
Specifically, run `do_action( 'edit-tags.php' );` on this new term edit page introduced in [36308]. Changes the GET param back to `tag_ID` and properly sets the screen base in `WP_Screen`.

See #34988.

git-svn-id: https://develop.svn.wordpress.org/trunk@36874 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-07 12:55:04 +00:00
Pascal Birchler
afdf1c9ec1 Embeds: Adjust the iframe title attribute for improved accessibility.
Changes the title attribute from `Embedded WordPress Post` to `"Post name" — site title`.

Props ramiy.
Fixes #35804.

git-svn-id: https://develop.svn.wordpress.org/trunk@36873 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-07 09:59:02 +00:00
Dion Hulse
e9dbf32553 Setup config: Generate the default secret keys & salts from the local CSPRNG if available, falling back to the WordPress.org API and a backup psuedo random source.
Props diddledan.
Fixes #35290


git-svn-id: https://develop.svn.wordpress.org/trunk@36872 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-07 06:31:18 +00:00
Dominik Schilling (ocean90)
00e87b40c8 Dependencies: Improve group processing of script dependencies.
This is a follow-up to [36604].

When processing dependencies `$this->group` will be the minimum of the script's registered group and all preceding siblings. This is wrong because only a scripts ancestors in the dependency chain should affect where it is loaded. Effectively `$this->group` introduced a form of global state which potentially corrupted the group of dependencies. Sorting covers up this problem.
The issue in #35873 was that script were not moving their dependencies to a lower group when necessary.

The fix:
* In `WP_Dependencies::all_deps()` pass the new `$group` value to `WP_Dependencies::all_deps()`. Previously the wrong value was passed because the parent script could have moved with `WP_Scripts::set_group()`.
* In `WP_Scripts::all_deps()` pass the `$group` parameter to `WP_Dependencies::all_deps()` so it doesn't always use `false` for `$group`. Same for `WP_Styles::all_deps()`.

Props stephenharris, gitlost.
Fixes #35956.

git-svn-id: https://develop.svn.wordpress.org/trunk@36871 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-06 19:49:54 +00:00
Pascal Birchler
92bdac8474 HTTP: Avoid an undefined index notice in wp_http_validate_url().
Props perezlabs.
Fixes #34164.

git-svn-id: https://develop.svn.wordpress.org/trunk@36870 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-06 15:54:13 +00:00
Andrea Fercia
b723d3fb75 CSS: Rename the handle for deprecated-media.css after [36341].
The `media` handle is now used for `media.css` thus the stylesheet
for the old media UI needs a different handle name.

See #35229.

git-svn-id: https://develop.svn.wordpress.org/trunk@36869 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-06 15:37:25 +00:00
Sergey Biryukov
74da332c40 Docs: Add wp_add_dashboard_widget() parameter descriptions.
Props meitar for initial patch.
Fixes #36092.

git-svn-id: https://develop.svn.wordpress.org/trunk@36868 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-06 12:07:34 +00:00
Jeremy Felt
e3feb63e33 Multisite: Handle redirect to a user's subdomain properly during login
`wp-login.php` uses `wp_safe_redirect()` for all redirects, even those that do not involve unsafe data from the request or referer.

When a user of a subdomain site attempts to login to a network site they do not have access to, the host in the redirect URL is treated as unsafe by `wp_safe_redirect()` as it has no immediate awareness as to which hosts are valid on the network. On a subdirectoy network, everything works as expected because the host is the same.

In this specific block of `wp-login.php`, all URLs are generated by WordPress and we can use `wp_redirect()` to handle the redirects. Users authenticating via other network sites will now be redirected properly. Hosts passed via the `redirect_to` query var will continue to be handled by `wp_safe_redirect()`.

Fixes #30598.


git-svn-id: https://develop.svn.wordpress.org/trunk@36867 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-06 03:05:46 +00:00
Weston Ruter
52d50a6ce9 Customize: Fix image cropping when doing live preview of theme switches.
Ensure that the Customizer gets bootstrapped with the pre-activated `theme` supplied in the `custom-header-crop` admin ajax requests.

Props faishal, rittesh.patel.
Fixes #32783.


git-svn-id: https://develop.svn.wordpress.org/trunk@36866 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-06 01:44:53 +00:00
Aaron Jorbin
4af0645ae8 Ensure Description is respected in post type archive menu items.
Tested scenarios include: using the default (which is the post type description), Setting a custom description for that individual menu item, and setting a custom description that is blank. Introduced in r35382.

Props Toro_Unit, mayukojpn, extendwings, jorbin.
Fixes #35324. See #16075.



git-svn-id: https://develop.svn.wordpress.org/trunk@36859 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-05 22:56:31 +00:00
Dominik Schilling (ocean90)
e5556666cc Themes: Bring the device preview from [31195] to the theme install previewer.
Props celloexpressions.
Fixes #36017.

git-svn-id: https://develop.svn.wordpress.org/trunk@36858 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-05 22:06:57 +00:00
Andrew Ozz
25838b4c23 TinyMCE:
- Fix the icon for the native dialogs close button.
- Highlight the button on :focus.

See #36035.

git-svn-id: https://develop.svn.wordpress.org/trunk@36857 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-05 22:00:45 +00:00
Aaron Jorbin
cdd3d5f318 Clarify Copyright year
Based on http://copyright.gov/title17/92chap4.html#401 and being more consistent with the rest of the document.

See also https://make.wordpress.org/themes/2014/07/08/proper-copyrightlicense-attribution-for-themes/

Fixes #35278


git-svn-id: https://develop.svn.wordpress.org/trunk@36855 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-05 20:13:35 +00:00
John Blackbourn
48959ec76e Posts, Post Types: Ensure that non-ASCII characters in attachment slugs aren't shown in urlencoded form in the sample permalink UI.
Fixes #35980


git-svn-id: https://develop.svn.wordpress.org/trunk@36853 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-05 03:55:33 +00:00
Eric Andrew Lewis
ae1c49027a Menus: Ensure theme location setting data is saved with a large menu.
[36510] introduced a fix to allow users to save large menus on the Edit Menu screen (70+ menu items). The form data is stored as JSON which is used to inject the `$_POST` variable in the form submission handler. This injection was not setting form items with named array elements properly (e.g. `menu-locations[primary]`), which did not save theme location data in a large form.

Props keraweb.
See #14134.


git-svn-id: https://develop.svn.wordpress.org/trunk@36852 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-05 00:46:45 +00:00
Weston Ruter
084772af80 Customize: Eliminate unnecessary WP_Customize_Site_Logo_Control in favor of re-using WP_Customize_Image_Control.
* Removes double `margin-bottom` from all the media controls.
* All media controls now send `{settingId}-attachment-data` messages to the preview when a media setting is updated so that the preview has access to the attachment data.
* Fixes receiving of `attachment-data` message for `custom_logo` which resulted in instant JS-applied preview not working. See #36096.

See #33755.
Fixes #35941.


git-svn-id: https://develop.svn.wordpress.org/trunk@36851 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-04 23:46:07 +00:00
Dominik Schilling (ocean90)
d9c9742527 I18N: Fix an invalid placeholder added in [36844].
See #36048.

git-svn-id: https://develop.svn.wordpress.org/trunk@36850 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-04 21:09:31 +00:00
Andrew Ozz
b0865cdcd0 TinyMCE, inline link: add styling for the dialog and UI Autocomplete to Press This.
See #33301.

git-svn-id: https://develop.svn.wordpress.org/trunk@36849 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-04 20:30:49 +00:00
Andrew Ozz
a9810a6287 Pres This:
- Change the newly added `press_this_save_post_content` filter to `press_this_save_post` and pass the $post_data array to it.
- Remove the newly added `press_this_useful_html_elements`. It only runs in compatibility mode when a URL is typed by the user.
- Remove the `press_this_suggested_content` filter. It is redundant as the suggested HTML for the editor is already filtered by `press_this_suggested_html`.
- Add some more inline docs and rename couple of vars to make the code more readable.

Fixes #34455.

git-svn-id: https://develop.svn.wordpress.org/trunk@36848 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-04 18:55:23 +00:00
Drew Jaynes
04d3748efa Docs: Improve DocBlock syntax and add a missing @return notation for WP_Image_Editor_Imagick::strip_meta(), introduced in [36700].
See: #33642, #30402, #28634. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36847 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-04 17:36:10 +00:00
Drew Jaynes
1dfbf0fb1b Docs: Improve the hook doc summary for the image_strip_meta filter, introduced in [36700].
See: #33642, #30402, #28634. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36846 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-04 17:32:35 +00:00
Sergey Biryukov
d8f72707d2 I18N: Move the aria-label text in get_theme_update_available() to a separate string for easier translation.
Add translator comments.

Props ramiy.
Fixes #36048.

git-svn-id: https://develop.svn.wordpress.org/trunk@36845 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-04 11:11:03 +00:00
Sergey Biryukov
9c39e27fde I18N: Move the aria-label text in wp_plugin_update_row() and wp_theme_update_row() to a separate string for easier translation.
Add translator comments.

Props ramiy.
See #36048.

git-svn-id: https://develop.svn.wordpress.org/trunk@36844 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-04 11:07:29 +00:00
Sergey Biryukov
fb7ada9e9a Comment out some CSS files in $_old_files that were added back as a result of [36341].
Add a unit test to make sure the `$_old_files` array does not contain any current project files.

Props joemcgill, swissspidy.
Fixes #36083.

git-svn-id: https://develop.svn.wordpress.org/trunk@36843 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-04 07:55:21 +00:00
Drew Jaynes
43399f4ff7 Docs: Improve syntax and correct documentation throughout a variety of methods in WP_Customize_Widgets.
See #32246. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36842 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-04 02:01:15 +00:00
Drew Jaynes
a9cce93ff2 Docs: Improve documentation for WP_Customize_Widgets::customize_dynamic_partial_args(), introduced in [36586].
See #27355. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36841 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-04 01:44:19 +00:00
Drew Jaynes
9775eef208 Docs: Remove an errant period following the @access tag in the DocBlock for wpdb::close(), mistakenly introduced in [36493].
Props markoheijnen.
See #34903. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36840 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-04 00:02:56 +00:00