Commit Graph

9087 Commits

Author SHA1 Message Date
Weston Ruter
c854c33f82 Customize: Prevent multi-line checkbox control labels from wrapping under checkbox.
Props bordoni.
Fixes #34607.


git-svn-id: https://develop.svn.wordpress.org/trunk@35608 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-11 09:36:53 +00:00
Andrew Ozz
de759f047f TinyMCE:
- Fix the inline toolbar on images in iOS, move it out of the way so the default inline toolbar is not over it.
- Fix selecting images on touch in the editor (iOS Safari fails to select them most of the time).

Fixes #34557.

git-svn-id: https://develop.svn.wordpress.org/trunk@35607 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-11 03:26:59 +00:00
Gary Pendergast
8f83c08385 Emoji: Use twemoji in browsers that don't support Unicode 8 emoji.
Some less advanced browsers are yet to add support for the important advances made in Unicode 8. Let's make ensure that their users can experience emoji in their full glory.

See #33592.



git-svn-id: https://develop.svn.wordpress.org/trunk@35606 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-11 02:24:40 +00:00
Andrea Fercia
80569cc816 Accessibility: improvements for the taxonomies Quick Edit form.
Changes the "Cancel" and "Update" controls in buttons for better semantics and
accessibility. On cancel and successful saving, moves focus back to the term title
to avoid a focus loss. Dispatches error and success messages to `wp.a11y.speak`
to give assistive technologies users an audible feedback.

Patch prepared at #wpcdit, first Italian WordPress Contributor Day.

Props garusky, chiara_09.
Fixes #34613.

git-svn-id: https://develop.svn.wordpress.org/trunk@35605 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-11 00:23:15 +00:00
Drew Jaynes
18dd8595cf Permalinks: Use "Plain" instead of "None" for the ?p-###, which is still a valid permalink structure, just not a "pretty" one.
Permalinks are enabled by default (where supported) since in 4.2. When that change was made, it rended the "Default" label (previous to [35599]) inaccurate.

Props Ankit-K-Gupta.
Fixes #34509.


git-svn-id: https://develop.svn.wordpress.org/trunk@35604 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-10 22:18:16 +00:00
Dominik Schilling (ocean90)
66db054bae Passwords: Disable hidden input fields on profile/user edit page.
Prevents an issue where password helpers would autofill the hidden password fields and inadvertently causing password changes when editing other fields on the profile page.

Props adamsilverstein.
Fixes #33699.

git-svn-id: https://develop.svn.wordpress.org/trunk@35603 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-10 20:40:18 +00:00
Andrew Ozz
bf8e1083de TinyMCE: prevent resize handles in newer IE when inserting a wpView.
Fixes #29400.

git-svn-id: https://develop.svn.wordpress.org/trunk@35602 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-10 19:32:01 +00:00
Drew Jaynes
fec164e485 Docs: Remove an empty line from the hook doc for the wp_calculate_image_srcset filter, introduced in [35592].
Props kraftbj.
See #34612.


git-svn-id: https://develop.svn.wordpress.org/trunk@35601 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-10 17:14:33 +00:00
Dion Hulse
bea9afed7d Update random_compat to master.
Clarifies strings, Merges [35587] upstream.
See #34409, #28633


git-svn-id: https://develop.svn.wordpress.org/trunk@35600 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-10 11:59:15 +00:00
Drew Jaynes
530d10e330 Permalinks: Rename the "Default" permalink structure to "None" as permalinks have been enabled by default (where supported) since 4.2.
Updates help tabs and contextual text to match.

Props johnbillion, DrewAPicture.
Fixes #34509.


git-svn-id: https://develop.svn.wordpress.org/trunk@35599 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-10 06:57:05 +00:00
Drew Jaynes
092c62e738 Docs: Move an inline comment that was preventing the hook docs for the user_has_cap filter from being parsed.
Props ocean90.
Fixes #34639.


git-svn-id: https://develop.svn.wordpress.org/trunk@35598 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-10 06:44:51 +00:00
Andrew Ozz
bcbe8ae224 TinyMCE: always remove trailing <br> added by WebKit browsers to the clipboard.
Fixes #34642.

git-svn-id: https://develop.svn.wordpress.org/trunk@35597 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-10 04:31:04 +00:00
Gary Pendergast
845aa2d01e Emoji: Add some new flags, and a handful from Unicode 8.0.
Including the following that should be used as often as possible:

U+1F1E6 U+1F1FA Flag for Australia
U+1F3CF Cricket Bat and Ball
U+1F32F Burrito

See #33592.



git-svn-id: https://develop.svn.wordpress.org/trunk@35596 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-10 03:34:37 +00:00
Andrew Ozz
d51aa96069 Responsive images: fix args order and streamline the srcset and sizes generation and better inline docs in get_header_image_tag().
See #21389.

git-svn-id: https://develop.svn.wordpress.org/trunk@35595 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-10 01:58:38 +00:00
Andrew Ozz
cc3e1611bc Responsive images: add template helper functions to generate the tag for a (responsive) header image that includes srcset and sizes attributes.
Props Otto42, joemcgill, DH-Shredder, azaozz.
Fixes #21389.

git-svn-id: https://develop.svn.wordpress.org/trunk@35594 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-10 01:16:16 +00:00
Andrea Fercia
62c7da8710 Comments: in comment_form() when replying to a comment ensure to set focus on the first focusable form element, regardless of what that form element is.
Props azaozz.
See #29974.

git-svn-id: https://develop.svn.wordpress.org/trunk@35593 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-10 00:43:01 +00:00
Drew Jaynes
a21b20c3f6 Docs: Fix some formatting in the hook doc for the wp_calculate_image_srcset filter and clarify the summary.
See #34612.


git-svn-id: https://develop.svn.wordpress.org/trunk@35592 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-09 23:33:06 +00:00
Andrew Ozz
57f41cc1ec Responsive images: properly arrange the parameters for the wp_calculate_image_srcset filter and add fix the inline documentation.
Props joemcgill.
Fixes #34612.

git-svn-id: https://develop.svn.wordpress.org/trunk@35591 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-09 23:29:56 +00:00
Konstantin Obenland
a6a2159c7d Menu: Continue to use post dashicon as default menu icon.
Prevents a bug where custom post types without a specified menu icon would
adopt the menu icon of the preceding post type. Introduced in [33723].

See #16865.
Fixes #34637.



git-svn-id: https://develop.svn.wordpress.org/trunk@35590 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-09 21:59:11 +00:00
Andrew Ozz
b31e52a6e8 TinyMCE: update the keyboard shortcuts for the link dialog in the wplink plugin. Fixes Ctrl + Alt + A on MacOS.
Fixes #34636.

git-svn-id: https://develop.svn.wordpress.org/trunk@35589 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-09 21:31:48 +00:00
Boone Gorges
c4e06bbb22 Fix documentation typo introduced in [35585].
Props swissspidy, barryceelen.
See #34626.

git-svn-id: https://develop.svn.wordpress.org/trunk@35588 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-09 14:02:45 +00:00
Dion Hulse
645071345f Random_Compat: Bump the OpenSSL requirement for windows servers to 5.4.1 while the upstream issue is resolved.
Before PHP 5.4.1 the OpenSSL extension used a OpenSSL provided function which is seemingly slow under some circumstances, PHP 5.4.1+ uses the windows crypto API.

Fixes #34409


git-svn-id: https://develop.svn.wordpress.org/trunk@35587 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-09 04:49:53 +00:00
Dion Hulse
13000b7036 Fix a typo in a docblock
git-svn-id: https://develop.svn.wordpress.org/trunk@35586 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-09 03:37:08 +00:00
Boone Gorges
c13a263830 When deleting a term, delete its metadata as well.
Props barryceelen.
Fixes #34626.

git-svn-id: https://develop.svn.wordpress.org/trunk@35585 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-09 03:35:56 +00:00
Weston Ruter
01b19a6345 Customize: Fix focus and autofocus on nav_menu_item controls.
Embed the `nav_menu_item` control not only when the contained `nav_menu` section expands, but also if the control was autofocused (via the `autofocus[control]` query param). Also applies change from [33596] to work-around a broken `:focusable` selector in jQuery UI.

See #33258.
Fixes #34629.


git-svn-id: https://develop.svn.wordpress.org/trunk@35584 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-09 03:13:09 +00:00
Dion Hulse
94ed2c31ba Upgrade: Force disable the rest-api plugin on upgrade to 4.4 unless it's beta5+. Previous versions of the plugin were not configured correctly to gradefully degrade during update which would cause fatal errors.
Props wonderboymusic.
Fixes #34415


git-svn-id: https://develop.svn.wordpress.org/trunk@35582 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-09 01:21:29 +00:00
Weston Ruter
c5e342b9f9 Customize: Fix sub-nav menu items from appearing to bump to root level in preview upon saving.
This issue would appear when the parent nav menu item was also newly-inserted. The issue was only apparent in the prevew, as the actual data saved was correct. The `menu_item_parent` properties of the saved sub-nav menu items needed to get updated to refer to the newly-inserted parent `nav_menu_item` post IDs, as opposed to retaining the placeholder IDs.

Fixes #34628.


git-svn-id: https://develop.svn.wordpress.org/trunk@35581 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-09 01:18:32 +00:00
Weston Ruter
2e2ea4876b Customize: Improve alignment of WP_Customize_Nav_Menu_Item_Setting::sanitize() behavior with wp_update_nav_menu_item().
* Apply `title_save_pre`, `excerpt_save_pre`, and `content_save_pre` filters on a nav menu item's `title`, `attr_title`, and `description` properties respectively. This ensures that arbitrary markup can be supplied if the user has `unfiltered_html` cap, and for these fields to have markup stripped if not.
* Ensure a nav menu item's `post_status` is sanitized as `publish` or `draft` using the same conditions as `wp_update_nav_menu_item()`.
* Align `WP_Customize_Nav_Menu_Item_Setting::sanitize()` behavior for sanitizing `position` to be the same as `wp_update_nav_menu_item()`.
* Also apply `nav_menu_attr_title` and `nav_menu_description` filters in `WP_Customize_Nav_Menu_Item_Setting::value_as_wp_post_nav_menu_item()` to ensure that previewing markup entered into menu item description will preview the same way as when the nav menu item is saved.
* Add unit tests.

Fixes #32812.


git-svn-id: https://develop.svn.wordpress.org/trunk@35580 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-09 00:47:55 +00:00
Dion Hulse
28ab6b9578 Media: Allow media_sideload_image() to work when the upload directory is a PHP Stream. Using copy() instead of rename() allows the function to work across different stream sources.
Props mattheu.
Fixes #29257


git-svn-id: https://develop.svn.wordpress.org/trunk@35579 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-09 00:44:01 +00:00
Gary Pendergast
a62255ef65 Embeds: Add a filter for the site title HTML.
Props swissspidy.

Fixes #34534.




git-svn-id: https://develop.svn.wordpress.org/trunk@35578 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-09 00:10:36 +00:00
Gary Pendergast
6b9ba5893f Embeds: Fix support for embedding in non-WordPress sites.
This moves the last of the iframe message code from PHP to JavaScript, so it can be included in any site, without needing to rely on any of WordPress' internal behaviour.

Props swissspidy.

Fixes #34451.



git-svn-id: https://develop.svn.wordpress.org/trunk@35577 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-09 00:07:03 +00:00
Dominik Schilling (ocean90)
80975befb8 Widgets: Fix typo in WP_Widget_Tag_Cloud::form().
Props skithund.
Fixes #34623.

git-svn-id: https://develop.svn.wordpress.org/trunk@35576 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-08 20:34:34 +00:00
Jeremy Felt
21de649fd0 MS: Allow "Network Admin Email" to be a non-user during network setup.
The network admin email setting for a network is often used as a catch-all or notification email separate from the actual user ID set as the owner of the new network. If a non-user email address is set during network installation, we can defer to the current user as the actual network admin and apply the entered email as the address to which general notifications are sent and emails are sent from.

In the future, we'll want to update the messaging around "Network Admin Email" to reflect its reality. See #34293.

Props jjeaton.
Fixes #34065.


git-svn-id: https://develop.svn.wordpress.org/trunk@35575 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-08 03:15:07 +00:00
Andrew Ozz
71d22131e6 TinyMCE: update to 4.2.7. Changelog: http://www.tinymce.com/develop/changelog/?ctrl=version&act=view&pr_id=1&vr_id=888
Fixes #34620.

git-svn-id: https://develop.svn.wordpress.org/trunk@35574 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-08 02:31:31 +00:00
Jeremy Felt
5acf79fa7e Multisite: Clarify documentation for WP_Network::get_by_path().
See #31985.


git-svn-id: https://develop.svn.wordpress.org/trunk@35573 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-08 02:24:32 +00:00
Jeremy Felt
9d48f6c7c3 Site Icon: Wrap site icon retrieval with switch_to_blog() as needed.
When the site icon for another site is requested, retrieving its ID via `get_blog_option()` is not enough. `switch_to_blog()` is used to set proper context when required.

Adds multsite tests for `has_site_icon()`.

Props imath.
Fixes #34312.


git-svn-id: https://develop.svn.wordpress.org/trunk@35572 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-08 02:03:34 +00:00
Jeremy Felt
99c7b9b881 Site Icon: Use new wp_get_attachment_image_url() to retrieve URL.
`wp_get_attachment_image_url()` is a nice replacement for `wp_get_attachment_image_src()` here after its introduction in 4.4.

Props imath.
See #34312.


git-svn-id: https://develop.svn.wordpress.org/trunk@35571 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-08 01:58:56 +00:00
Sergey Biryukov
4249f900ca Remove <code> tags from translatable string in wp-admin/network/settings.php.
Add translator comment.

Props ramiy.
Fixes #34618.

git-svn-id: https://develop.svn.wordpress.org/trunk@35570 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-08 01:33:13 +00:00
Andrew Ozz
edf5d8bb36 Responsive images: make the new functions and filters signatures more consistent.
Props joemcgill.
Fixes #34612.

git-svn-id: https://develop.svn.wordpress.org/trunk@35569 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-07 21:35:34 +00:00
Scott Taylor
58c8ffa66d Administration: when hiding the login modal and unbind the auth check, also unbind the heartbeat auth check.
Props nofearinc.
Fixes #28962.


git-svn-id: https://develop.svn.wordpress.org/trunk@35568 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-07 16:21:27 +00:00
Scott Taylor
7301c115aa Accessibility: add missing alt attributes to a gaggle of <img>s.
Props afercia.
Fixes #34583.


git-svn-id: https://develop.svn.wordpress.org/trunk@35567 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-07 16:11:38 +00:00
Scott Taylor
b55053ba07 List Tables: fix row links CSS for RTL.
Props afercia.
Fixes #34150.


git-svn-id: https://develop.svn.wordpress.org/trunk@35566 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-07 16:04:41 +00:00
Scott Taylor
de02c5d2cd List Tables: to ensure that get_primary_column_name() can match columns that were added via the "manage_{$screen->id}_columns" filer, call get_column_headers() instead of $this->get_columns().
List Table classes and `WP_Screen` are already tangled together. The parent list table constructor adds a filter that is called by a function that references the instance globally, even though we have access to it via composition directly in the class that is adding the filter. So the fact that functions here have to be called that reference a screen instance we already have access to is what one might call... less than elegant.

#OOP

Props SergeyBiryukov.
Fixes #34508.


git-svn-id: https://develop.svn.wordpress.org/trunk@35565 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-07 15:26:05 +00:00
Dominik Schilling (ocean90)
9c709c218a Build Tools: Update autoprefixer to 0.6.1.
Release Post: https://github.com/postcss/autoprefixer/releases/tag/6.1.0

Includes changes to CSS files after `grunt precommit` because of the new transition support and a new parser for gradients (see [34637]).

See #34177.

git-svn-id: https://develop.svn.wordpress.org/trunk@35563 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-07 11:56:26 +00:00
Andrew Ozz
3b5433eb2e Responsive images: omit full size images from srcset attributes when the original file is an intermediate sized GIF so we don't accidentally add animation to an otherwise flat image. Update the tests to cover this case.
Props joemcgill, H-Shredder, SergeyBiryukov.
Fixes #34528.

git-svn-id: https://develop.svn.wordpress.org/trunk@35561 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-07 02:09:56 +00:00
Sergey Biryukov
9cd8c7e2c0 Reset Password: Improve wording for a string used in password reset email.
Props obrienlabs.
Fixes #34605.

git-svn-id: https://develop.svn.wordpress.org/trunk@35559 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-06 22:35:25 +00:00
Drew Jaynes
4f8b9840e0 Docs: Add a missing version to the file header for wp-admin/users.php.
See #33701.


git-svn-id: https://develop.svn.wordpress.org/trunk@35558 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-06 21:53:53 +00:00
Sergey Biryukov
5b6641b205 Remove <code> tags from translatable strings in wp-admin/setup-config.php.
Add translator comments.

Props ramiy.
Fixes #34579.

git-svn-id: https://develop.svn.wordpress.org/trunk@35557 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-06 17:21:33 +00:00
Sergey Biryukov
7d039b4e40 Replace 7 * DAY_IN_SECONDS with WEEK_IN_SECONDS in get_weekstartend().
Props MikeHansenMe.
Fixes #34603.

git-svn-id: https://develop.svn.wordpress.org/trunk@35556 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-06 16:36:57 +00:00
Sergey Biryukov
207ab0db7d Use the MONTH_IN_SECONDS constant added in [33698] for the month representation in human_time_diff() logic.
Props tyxla.
Fixes #34602.

git-svn-id: https://develop.svn.wordpress.org/trunk@35555 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-06 16:33:52 +00:00
Sergey Biryukov
5e614a08f8 Media: Avoid a PHP warning in wp_generate_attachment_metadata() if $metadata is not an array.
This was previously fixed in [25968], but accidentally reverted in [32545].

Props skithund.
Fixes #34599.

git-svn-id: https://develop.svn.wordpress.org/trunk@35554 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-06 09:24:36 +00:00
Weston Ruter
22135794a2 Customize: Fix typo in WP_Customize_Manager::_cmp_priority() which caused unstable sorting for same-priority constructs in PHP.
The issue, however, does not manifest in the UI because the UI is now built via JS and the `wp.customize.utils.prioritySort()` algorithm did not have the same typo.

Props bordoni, westonruter.
Fixes #34594.


git-svn-id: https://develop.svn.wordpress.org/trunk@35553 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-06 06:57:53 +00:00
Sergey Biryukov
251915c11f Remove <code> tags from translatable strings in wp-admin/includes/network.php.
Add translator comments.

Props ramiy.
Fixes #34598.

git-svn-id: https://develop.svn.wordpress.org/trunk@35552 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-06 00:59:01 +00:00
Sergey Biryukov
f75a2b113e Remove <code> tags from translatable strings in wp-admin/includes/class-wp-upgrader.php.
Add translator comments.

Props ramiy.
Fixes #34580.

git-svn-id: https://develop.svn.wordpress.org/trunk@35551 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-06 00:40:09 +00:00
Sergey Biryukov
f0d1f15358 Remove <code> tag from translatable string in wp-admin/options-media.php.
Add translator comment.

Props ramiy.
Fixes #34581.

git-svn-id: https://develop.svn.wordpress.org/trunk@35550 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-06 00:27:51 +00:00
Sergey Biryukov
175d780e44 Add translator comments for strings in wp-admin/edit-comments.php.
Props ramiy for initial patch.
Fixes #34586.

git-svn-id: https://develop.svn.wordpress.org/trunk@35549 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-06 00:22:44 +00:00
Sergey Biryukov
90f4b365a3 Remove <code> tags from translatable strings in wp-includes/class-wp-user.php.
Add translator comments.

Props ramiy.
Fixes #34576.

git-svn-id: https://develop.svn.wordpress.org/trunk@35548 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-06 00:05:58 +00:00
Sergey Biryukov
5081c05c00 Remove <code> tags from translatable strings in wp-load.php.
Add translator comments.

Props ramiy.
Fixes #34574.

git-svn-id: https://develop.svn.wordpress.org/trunk@35547 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-05 23:58:20 +00:00
Sergey Biryukov
b1ae50d4d0 Remove <code> tag from translatable string in trackback_url().
Add translator commment.

Props ramiy.
Fixes #34573.

git-svn-id: https://develop.svn.wordpress.org/trunk@35546 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-05 23:38:41 +00:00
Sergey Biryukov
c98179fb82 Remove <code> tag from translatable string in the_author().
Add translator commment.

Props ramiy.
See #34573.


git-svn-id: https://develop.svn.wordpress.org/trunk@35545 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-05 23:37:29 +00:00
Sergey Biryukov
d3f117c81c I18N: Add a translator comment for the string introduced in [24758] and made translatable in [29840].
Props swissspidy.
See #34249.

git-svn-id: https://develop.svn.wordpress.org/trunk@35544 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-05 21:17:11 +00:00
Sergey Biryukov
2c19fe4549 Use correct placeholders in translator comments added in [35542].
See #34249.

git-svn-id: https://develop.svn.wordpress.org/trunk@35543 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-05 21:04:56 +00:00
Drew Jaynes
999bfcb205 I18N: Add translator comments to three _doing_it_wrong() messages added for 4.3 and 4.4.
Also adds a full-stop to an invalid taxonomy message introduced in [34745] and later modified in [35428] for `wp_insert_post()`.

Props pavelevap.
Fixes #34249.


git-svn-id: https://develop.svn.wordpress.org/trunk@35542 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-05 20:55:28 +00:00
Boone Gorges
5043f0c795 Make get_term() behave more consistently in the context of shared terms.
When `WP_Term` was introduced in [34997], the `$taxonomy` parameter for
`get_term()` was made optional. This meant that, when the optional param was
omitted, `get_term()` had no way of determining which term was intended when
the term_id was shared between multiple taxonomies. As a (somewhat sneaky) way
of fixing things, `get_term()` split any shared terms it found. But this could
cause problems with developer expectations: it's not clear why requesting a
term should result in a database update, much less a potential change in the
ID of a term.

In place of this technique, this changeset introduces a number of changes that
make the handling of shared terms a bit less insane:

* When a taxonomy is provided to `get_term()`, and a cached term is found matching the term_id, make sure the taxonomy also matches before returning it.
* When a taxonomy is not provided, ensure that the term is not shared before adding it to the cache.
* When a term is shared between taxonomies and no taxonomy is provided, return a `WP_Error` rather than splitting the term.
* When a term is shared between taxonomies, only one of which is valid, return the term from that taxonomy.

Props boonebgorges, dlh.
Fixes #34533.

git-svn-id: https://develop.svn.wordpress.org/trunk@35537 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-05 16:44:59 +00:00
Sergey Biryukov
6971487d5c Comments: Use _n() in get_comments_number_text() when setting the default string for multiple comments.
Fixes #34593.

git-svn-id: https://develop.svn.wordpress.org/trunk@35536 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-05 15:35:06 +00:00
Weston Ruter
9711093ff8 Customize: Hide "Change" button in themes section if there are fewer than two available themes.
Props danielbachhuber, westonruter.
Fixes #34549.


git-svn-id: https://develop.svn.wordpress.org/trunk@35535 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-05 01:25:54 +00:00
Weston Ruter
228aeddd1f Customize: Correct phpdoc @return type for WP_Customize_Manager::add_dynamic_settings().
Fixes regression in [32032], where `WP_Customize_Setting[]` should have been changed to `array` instead of `WP_Customize_Setting`.

See #31888.


git-svn-id: https://develop.svn.wordpress.org/trunk@35534 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-05 00:42:23 +00:00
Gary Pendergast
1a9820238a Themes: Remove an errant comma from theme.js.
Added in [35527].

See #34206.



git-svn-id: https://develop.svn.wordpress.org/trunk@35533 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 23:48:17 +00:00
Gary Pendergast
c0d9fea512 Media Library: After [35499], increase the specificity of our selectors so that they don't cause problems for the wp-admin Media Library page.
Props aaronrutley.

Fixes #32005.



git-svn-id: https://develop.svn.wordpress.org/trunk@35532 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 23:42:38 +00:00
Scott Taylor
46a7884f1c Bump 4.4-beta3 (again, again)
git-svn-id: https://develop.svn.wordpress.org/trunk@35530 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 22:02:46 +00:00
Scott Taylor
88c4a6bee2 4.4-beta3 (again)
git-svn-id: https://develop.svn.wordpress.org/trunk@35529 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 21:59:52 +00:00
Scott Taylor
d06c31d70c Bump 4.4-beta3
git-svn-id: https://develop.svn.wordpress.org/trunk@35528 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 21:55:58 +00:00
Sergey Biryukov
1631a99336 Themes: Add a Favorites tab to the Add Themes screen.
You can now browse and install your wordpress.org theme favorites from the theme installer, just like with plugins.

Props swissspidy.
Fixes #34206.

git-svn-id: https://develop.svn.wordpress.org/trunk@35527 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 21:48:43 +00:00
Scott Taylor
ea41755c4b Bump 4.4-beta3
git-svn-id: https://develop.svn.wordpress.org/trunk@35526 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 21:46:04 +00:00
Scott Taylor
4dbba7ec68 4.4-beta3
git-svn-id: https://develop.svn.wordpress.org/trunk@35525 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 21:45:31 +00:00
Andrew Ozz
611ddaf9bf Responsive images: do not generate srcset for GIFs that are inserted at full size. Prevents breaking animated GIFs.
Props joemcgill.
Fixes #34528.

git-svn-id: https://develop.svn.wordpress.org/trunk@35524 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 21:43:44 +00:00
Andrea Fercia
89227eebe3 List tables: Improve the displaying of pagination links on small screens.
Pagination links can break in two lines on small screens. Implements a partial fix, new ideas and better solutions should be explored though.

See #33962.

git-svn-id: https://develop.svn.wordpress.org/trunk@35523 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 21:43:00 +00:00
Dominik Schilling (ocean90)
05f93d500d Revert [35372] because of possible encoding issues, needs more investigation.
See #10373.

git-svn-id: https://develop.svn.wordpress.org/trunk@35522 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 21:38:43 +00:00
Sergey Biryukov
1f59a960d2 Adjust some of the strings added in [35508].
Fixes #34519.

git-svn-id: https://develop.svn.wordpress.org/trunk@35519 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 21:31:05 +00:00
Dominik Schilling (ocean90)
5ee5029109 List Tables: Define the global $mode variable for Quick Edit savings.
Also remove two unused global imports for `$mode`.

Fixes #34577.

git-svn-id: https://develop.svn.wordpress.org/trunk@35518 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 21:28:55 +00:00
Sergey Biryukov
8cbd66ca86 Introduce wp_maybe_decline_date() for languages where certain date formats need to be declined, and hook it to the date_i18n filter.
If the locale specifies that month names require a genitive case in certain formats like `'j F Y'` or `'j. F'`, the month name will be replaced with a correct form. 

Fixes #11226.

git-svn-id: https://develop.svn.wordpress.org/trunk@35517 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 21:27:41 +00:00
Andrea Fercia
3ffaa37727 Admin: Ensure notices with the below-h2 class are not repositioned after [35238].
Keeps the `.below-h2` class for backwards compatibility with plugins that are (incorrectly) using it. Plugins should use `.inline` instead.

Props stephenharris.
Fixes #34570. See #34294.

git-svn-id: https://develop.svn.wordpress.org/trunk@35516 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 21:26:58 +00:00
Boone Gorges
7f79d26ca5 Don't allow term meta to be added to shared taxonomy terms.
`add_term_meta()` and `update_term_meta()` identify terms by `$term_id`. In
cases where a term is shared between taxonomies, `$term_id` is insufficient to
distinguish where the metadata belongs.

When attempting to add/update termmeta on a shared term, a `WP_Error` object
is returned. This gives developers enough information to decide whether they'd
like to force the term to be split and retry the save, or show an error in the
UI, or whatever.

Props boonebgorges, mboynes, DH-Shredder, jorbin, aaroncampbell.
Fixes #34544.

git-svn-id: https://develop.svn.wordpress.org/trunk@35515 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 21:23:28 +00:00
Scott Taylor
dc3f5a0cf5 REST API: in WP_REST_Server::dispatch(), move preg_match() out of it's current loop, which doesn't affect the context passed to it.
Props TobiasBg.
Fixes #34488.


git-svn-id: https://develop.svn.wordpress.org/trunk@35514 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 21:22:21 +00:00
Boone Gorges
c8dd2d480d WP_Comment_Query: Fill comment objects from database when cache is unavailable.
This fixes a bug where widgets loaded in a preview or the Customizer are
rendered inside of a `wp_suspend_cache_addition()` block and thus could not
find comment objects in the cache.

Props rommelxcastro, stevehenty.
Fixes #34138.

git-svn-id: https://develop.svn.wordpress.org/trunk@35512 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 21:09:01 +00:00
Drew Jaynes
74b68afa3f Customizer: Adjust styles on panel titles to prevent descenders – such as with the letters g, j, p, q, or y – from getting cut off in some browsers.
Props umeshnevase.
Fixes #33575.


git-svn-id: https://develop.svn.wordpress.org/trunk@35511 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 18:52:13 +00:00
Drew Jaynes
d09f6ef81c Pages: Introduce the get_page_uri filter, which makes it possible to manipulate a given page's URI before it's returned from the like-named get_page_uri().
Props tanner-m for the initial patch.
Fixes #15963.


git-svn-id: https://develop.svn.wordpress.org/trunk@35510 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 18:28:31 +00:00
Scott Taylor
75673887d1 XMLRPC: ensure that empty strings are not passed as null, which will then fail isset()
Props solarissmoke.
Fixes #16980.


git-svn-id: https://develop.svn.wordpress.org/trunk@35509 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 18:07:45 +00:00
Aaron Jorbin
395bc6e8d8 Adjust heading structure for pages using wp-admin/css/install.css
The readme, installation, upgrade, and repair pages use a common css file. The heading structure for these pages was inconstant with h2s where there should be h1s, h1s where there is no relevant info and sometimes, no h1s at all.

Fixes #34519
Props rianrietveld



git-svn-id: https://develop.svn.wordpress.org/trunk@35508 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 17:59:35 +00:00
Scott Taylor
48501d6658 Roles: map add_users cap to promote_users and remove it.
"Never used, will be removed." - The Ghost of 3.5 Nacin

Props Craig Ralston, renoirb.
Fixes #16719.


git-svn-id: https://develop.svn.wordpress.org/trunk@35507 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 17:53:40 +00:00
Scott Taylor
ee98fd84bb Feeds: <comments> is optional in RSS2, so don't include it when comments aren't present or open. Same for <wfw:commentRss> and <slash:comments>
Adds unit test.

Props swissspidy, realloc, hakre, sivel.
Fixes #9134.


git-svn-id: https://develop.svn.wordpress.org/trunk@35506 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 17:46:41 +00:00
Drew Jaynes
14cd5cf3ed Taxonomy: Introduce the dynamic taxonomy_labels_{$taxonomy} filter, which can be used to manipulate the labels for a given taxonomy.
The addition of this hook brings parity with the earlier-introduced `post_type_labels_{$post_type}` filter, which allows for similarly manipulating labels for a given post type.

Note: It isn't possible to unset or remove default labels via either of these hooks, only to overwrite. This is because WordPress relies on defaults being set for use in various UIs and admin experiences.

Props flixos90.
Fixes #34554.


git-svn-id: https://develop.svn.wordpress.org/trunk@35504 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 16:02:12 +00:00
Drew Jaynes
ebfc39e754 Docs: Add a missing return description for _get_custom_object_labels(), a private core helper function.
See #32246.


git-svn-id: https://develop.svn.wordpress.org/trunk@35503 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 15:46:49 +00:00
SergeyBiryukov
059eb46ddd Menus: After [35450], use correct IDs in $initial_meta_boxes.
Props swissspidy.
Fixes #33925.

git-svn-id: https://develop.svn.wordpress.org/trunk@35502 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 10:55:01 +00:00
Weston Ruter
46778fe2b0 Customize: Simplify condition for returning nav_menus_invalid_post_type error.
Props swissspidy.
See #16075.


git-svn-id: https://develop.svn.wordpress.org/trunk@35501 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 07:28:36 +00:00
Weston Ruter
5084a0b28a Customize: Add support for post_type_archive nav menu items.
Props celloexpressions, westonruter.
Fixes #16075.


git-svn-id: https://develop.svn.wordpress.org/trunk@35500 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 04:29:39 +00:00
Gary Pendergast
ff6e398b6f Media Library: Allow longer labels in the filter dropdowns.
Props aaronrutley, AlbertoCT.

Fixes #32005.




git-svn-id: https://develop.svn.wordpress.org/trunk@35499 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 00:40:31 +00:00
Andrew Ozz
01e9de382e Responsive images:
- Fix `_wp_upload_dir_baseurl()` to cache by blog_id.
- Replace `path_join()` with `trailingslashit()`, it's much faster.
- Rename $image_url to $image_src for consistency (used at about 50 other places).
- Couple of tests fixes.

See #34430.

git-svn-id: https://develop.svn.wordpress.org/trunk@35498 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 00:21:23 +00:00
Sergey Biryukov
88c274fad8 Formatting: wp_make_link_relative() should return an empty string if no path is present in the link.
Props bcworkz, MikeHansenMe, chriscct7, SergeyBiryukov.
Fixes #26819.

git-svn-id: https://develop.svn.wordpress.org/trunk@35497 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-03 21:35:17 +00:00
Sergey Biryukov
b077aecd6a Accessibility: After [35130], adjust the h2.nav-tab-wrapper selector to only override .wrap > h2:first-child.
This improves compatibility with plugins that use navigation tabs as a first H2 heading on their screens.

Props afercia.
Fixes #33559.

git-svn-id: https://develop.svn.wordpress.org/trunk@35496 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-03 20:48:21 +00:00
DrewAPicture
d49c379d18 Docs: Fix two notations for the $_wp_real_parent_file global, which is an array.
Props NExt-Season.
Fixes #34443.


git-svn-id: https://develop.svn.wordpress.org/trunk@35495 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-03 20:12:02 +00:00
Andrea Fercia
f25e642086 Accessibility: Improve buttons focus and links style in the install screens.
Fixes #34530.

git-svn-id: https://develop.svn.wordpress.org/trunk@35494 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-03 17:58:15 +00:00
Andrea Fercia
29f271da44 Media: Improve form fields labels association in the Edit Media screen.
Fixes #34548.

git-svn-id: https://develop.svn.wordpress.org/trunk@35493 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-03 16:01:11 +00:00
Andrea Fercia
3b587473b5 WP oEmbed: Improve the Sharing dialog accessibility.
Improves ARIA attributes, focus handling, and constrains tabbing within the modal dialog.

Fixes #34484.

git-svn-id: https://develop.svn.wordpress.org/trunk@35492 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-03 15:48:37 +00:00
Andrew Ozz
d037ebdb31 Responsive images:
- More fixes to inline docs.
- Replace the last `wp_get_attachment_metadata()` with `get_post_meta()`.
- For consistency only accept array or named size in `wp_get_attachment_image_sizes()`.

Props jaspermdegroot.
See #34430.

git-svn-id: https://develop.svn.wordpress.org/trunk@35491 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-03 00:18:07 +00:00
Drew Jaynes
d464e70d9c Docs: Document use of the $comment_status global in the DocBlock for WP_Comments_List_Table::handle_row_actions().
Props shimakyohsuke.
Fixes #34425.


git-svn-id: https://develop.svn.wordpress.org/trunk@35490 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-02 21:32:14 +00:00
Sergey Biryukov
ae68fbfcee Docs: After [32654], remove duplicate @param tag in WP_List_Table::set_pagination_args() DocBlock.
Add `@since` tag.

Props bobbingwide.
See #32444.

git-svn-id: https://develop.svn.wordpress.org/trunk@35489 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-02 21:02:29 +00:00
Gary Pendergast
c9f7e05f7b Upgrades: Add support for FULLTEXT indexes to dbDelta().
Props edirect24, mdawaffe, pento.

Fixes #14445.



git-svn-id: https://develop.svn.wordpress.org/trunk@35487 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-01 23:09:49 +00:00
Weston Ruter
3ef1e8194b Customize: Fix auto-expand (and focus) on newly added widgets.
Add widget controls with an initially-true `active` state so that calling `expand()` will not be short-circuited. Previously the `active` state would be set once the preview refreshes, but this happens too late for the `addWidget` call. Fixes regression introduced in [35231].

Fixes #34514.


git-svn-id: https://develop.svn.wordpress.org/trunk@35486 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-01 22:26:47 +00:00
Drew Jaynes
d74794fdde Docs: Correctly notate that the default $width and $height embed dimensions are passed to the embed_defaults filter as a compacted array, and not two distinct parameters.
Props swissspidy.
Fixes #34522.


git-svn-id: https://develop.svn.wordpress.org/trunk@35485 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-01 15:41:28 +00:00
Sergey Biryukov
bce985a5d7 Docs: Correct $post parameter description for display_post_states filter.
Props grapplerulrich.
Fixes #34541.

git-svn-id: https://develop.svn.wordpress.org/trunk@35484 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-01 14:05:42 +00:00
Weston Ruter
204bad4685 Customize: Return user to referring URL when leaving Customizer in absence of return query param.
When referring URL is not available, default returning user to frontend URL instead of admin URL. Themes page is updated to include the `return` path in Customizer links.

Props McGuive7, westonruter.
Fixes #32637.


git-svn-id: https://develop.svn.wordpress.org/trunk@35483 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-01 06:39:50 +00:00
Sergey Biryukov
ca898ccbdb Post List Table: Hierarchical post types should not default to sorting by date.
Regression introduced in [34728].

Props ellie.roepken.
Fixes #34473. See #25493.

git-svn-id: https://develop.svn.wordpress.org/trunk@35482 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-01 00:48:36 +00:00
Andrew Ozz
f64bc40f69 Responsive images: add $image_url parameter to wp_get_attachment_image_sizes() and use it in the filter. This allows themes and plugins to identify the image.
Props joemcgill.
Fixes #34477.

git-svn-id: https://develop.svn.wordpress.org/trunk@35481 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-31 22:48:08 +00:00
Scott Taylor
d74ab4b6df Canonical: when /%post_id%/ is the permalink structure, don't redirect IDs that match Auto Drafts.
Props SergeyBiryukov.
Fixes #29431.


git-svn-id: https://develop.svn.wordpress.org/trunk@35480 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-31 20:53:41 +00:00
Scott Taylor
bd7bf83886 Media: add a new image size, medium_large. Bumps db version to add new options.
Adds unit tests.

Props DH-Shredder, joemcgill, azaozz.
Fixes #34196.


git-svn-id: https://develop.svn.wordpress.org/trunk@35479 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-31 20:49:26 +00:00
Scott Taylor
d944108b13 WP oEmbed: Improve height attribute sanitization
Props afercia, swissspidy.
Fixes #34527.


git-svn-id: https://develop.svn.wordpress.org/trunk@35478 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-31 20:38:07 +00:00
Scott Taylor
aa616b1b45 Admin Menu: allow more than one menu item to be added at the same priority/position.
Props chriscct7.
Fixes #23316.


git-svn-id: https://develop.svn.wordpress.org/trunk@35477 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-31 20:30:06 +00:00
Scott Taylor
df134d1763 Filesystem: in WP_Filesystem_FTPext::parselisting(), check for the existence of $b['islink'] before using it.
Props jesin.
Fixes #27975.


git-svn-id: https://develop.svn.wordpress.org/trunk@35476 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-31 20:16:32 +00:00
Scott Taylor
957a800bd3 Comments: don't auto-close comments on draft posts.
Adds unit tests.

Props solarissmoke, MikeHansenMe, nacin, rachelbaker.
Fixes #20262.


git-svn-id: https://develop.svn.wordpress.org/trunk@35475 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-31 20:12:16 +00:00
Scott Taylor
14253d11b3 REST API: remove the @internal annotation from rest_api_default_filters().
Props swissspidy, rachelbaker.
Fixes #34219.


git-svn-id: https://develop.svn.wordpress.org/trunk@35474 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-31 20:07:21 +00:00
Scott Taylor
96eda396a6 Nav Menus: add responsive styles for viewport between 768 and 1000px.
Props datta.parad, chriscct7.
Fixes #28912.


git-svn-id: https://develop.svn.wordpress.org/trunk@35473 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-31 20:04:04 +00:00
Sergey Biryukov
fbd0b570fc Embeds: In get_post_embed_html(), move the optional $post argument after the required $width and $height.
Props swissspidy.
Fixes #34523.

git-svn-id: https://develop.svn.wordpress.org/trunk@35472 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-31 15:50:23 +00:00
Sergey Biryukov
29f940c5b2 Embeds: In get_oembed_response_data(), make the $post argument required.
`get_oembed_response_data()` is called by the API endpoint controller and never in a context where it makes sense to use the global post object.

Props swissspidy.
See #34523.

git-svn-id: https://develop.svn.wordpress.org/trunk@35471 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-31 15:42:01 +00:00
Sergey Biryukov
b0c7058037 Embeds: Fix typo in oembed_request_post_id filter DocBlock.
Props swissspidy.
See #34523.

git-svn-id: https://develop.svn.wordpress.org/trunk@35470 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-31 15:37:10 +00:00
Andrea Fercia
c01ce19d70 Dashboard: Activity widget CSS cleanup after [35420].
Props tyxla.
Fixes #34524. See #33558.

git-svn-id: https://develop.svn.wordpress.org/trunk@35469 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-31 13:48:14 +00:00
Drew Jaynes
37145d5b88 Docs: Use 3-digit, x.x.x-style semantic versioning in the DocBlocks for post_form_autocomplete_off() and WP_Filesystem_SSH2::sftp_path().
Props aaronrutley.
Fixes #34518.


git-svn-id: https://develop.svn.wordpress.org/trunk@35468 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-31 13:15:01 +00:00
Gary Pendergast
2edd6a894b Embeds: Revert [35083], as the PNG files ended up not being used in [35466].
See #34204.



git-svn-id: https://develop.svn.wordpress.org/trunk@35467 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-31 04:41:07 +00:00
Gary Pendergast
47e6c78d88 Embeds: Add fallbacks for IE7-9.
Older IE versions need just that little bit of extra tender care to keep them going.

Props peterwilsoncc, swissspidy, pento.

Fixes #34204.



git-svn-id: https://develop.svn.wordpress.org/trunk@35466 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-31 04:37:41 +00:00
Andrew Ozz
62c0557b90 Responsive images: few more inline docs fixes.
Props jaspermdegroot.
See #34430.

git-svn-id: https://develop.svn.wordpress.org/trunk@35465 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 23:35:14 +00:00
Andrew Ozz
98a63f523f Responsive images:
- Merge `wp_image_srcset_attr()` into `wp_calculate_image_srcset()`.
- Remove the `wp_image_srcset` filter.
- Fix the tests for the above changes. 

See #34430.

git-svn-id: https://develop.svn.wordpress.org/trunk@35464 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 23:26:44 +00:00
Andrea Fercia
90a15b9649 Media: Restore proper conditional statement broken after [35427].
Unprops afercia.
See #34273.

git-svn-id: https://develop.svn.wordpress.org/trunk@35463 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 22:05:22 +00:00
John Blackbourn
31f63b8b52 Remove trailing whitespace introduced in [35351].
Props rachelbaker
Unprops johnbillion
Fixes #34512


git-svn-id: https://develop.svn.wordpress.org/trunk@35462 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 21:38:36 +00:00
Helen Hou-Sandi
a701118676 View mode is only a screen option for posts lists.
see #22222.


git-svn-id: https://develop.svn.wordpress.org/trunk@35461 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 21:02:35 +00:00
John Blackbourn
0b05c7aa24 Add wp-post-new-reload to the list of removable query vars so it doesn't persist in the URL.
Fixes #34510


git-svn-id: https://develop.svn.wordpress.org/trunk@35460 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 18:05:31 +00:00
Andrea Fercia
2b54d3143b Accessibility: Bump the Settings API sections heading one level up.
Also, fix a typo in the `do_settings_sections()` DocBlock.

Props neoxx.
Fixes #34492.

git-svn-id: https://develop.svn.wordpress.org/trunk@35459 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 15:29:31 +00:00
Sergey Biryukov
fff36156c2 Don't use <a> in translatable strings in theme-compat/sidebar.php.
Add translator comments.

Props ramiy.
Fixes #34503.

git-svn-id: https://develop.svn.wordpress.org/trunk@35458 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 10:39:02 +00:00
Sergey Biryukov
80a257622b Add translator comments for strings in theme-compat/header.php.
Props ramiy.
See #34503.

git-svn-id: https://develop.svn.wordpress.org/trunk@35457 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 10:38:20 +00:00
Sergey Biryukov
8cd3b7d040 Add translator comments for strings in theme-compat/footer.php.
Props ramiy.
See #34503.

git-svn-id: https://develop.svn.wordpress.org/trunk@35456 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 10:37:52 +00:00
Sergey Biryukov
8334945146 Don't use <a> in translatable string in theme-compat/comments.php.
Add translator comments.

Props ramiy.
See #34503.

git-svn-id: https://develop.svn.wordpress.org/trunk@35455 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 10:37:09 +00:00
Sergey Biryukov
bcc5046d40 Add translator comments for strings in theme-compat/comments-popup.php.
Props ramiy.
See #34503.

git-svn-id: https://develop.svn.wordpress.org/trunk@35454 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 10:34:37 +00:00
Sergey Biryukov
64bf19ba40 Don't use <a> in translatable string in wp-includes/ms-load.php.
Add translator commment.

Props ramiy.
Fixes #34506.

git-svn-id: https://develop.svn.wordpress.org/trunk@35453 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 09:15:42 +00:00
Sergey Biryukov
4bca320a77 Don't use <strong> in translatable string in wp-includes/nav-menu.php.
Add translator commment.

Props ramiy.
Fixes #34505.

git-svn-id: https://develop.svn.wordpress.org/trunk@35452 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 08:56:36 +00:00
Sergey Biryukov
7e3cac2095 Don't use <strong> in translatable strings in wp-signup.php.
Add translator commments.

Props ramiy.
Fixes #34502.

git-svn-id: https://develop.svn.wordpress.org/trunk@35451 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 08:51:24 +00:00
Drew Jaynes
a18f309761 Menus: Prevent display conflicts in the screen options for Menus when a post type and taxonomy share the same slug.
Prior to this change, both taxonomies and post types added meta boxes to the Menus UI (which in-turn registered screen options) using the same ID formula: `add-{$id}`. This caused a conflict between the two elements, resulting in the rendering of a screen option for only the taxonomy or post type but not both. Moving to a new meta box ID for post types, `add-post-type-{$id}`, removes that conflict.

Note: This change in meta box IDs for post types effectively resets current user settings for the visibility of post types in the Menus UI.

Fixes #33925.


git-svn-id: https://develop.svn.wordpress.org/trunk@35450 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 05:46:53 +00:00
Drew Jaynes
cc8772262d Multisite: Restore display of the Toolbar on wp-activate.php while logged-in.
Just as with wp-signup.php, display of the Toolbar on wp-activate.php was broken in [23512] due to a hook change for the `_wp_admin_bar_init()` callback. wp-signup.php was fixed in [35423] for #34418.

See [35423] for more in-depth background and reasoning behind restoring display of the Toolbar on wp-activate.php and wp-signup.php.

Fixes #34496. See #34418.


git-svn-id: https://develop.svn.wordpress.org/trunk@35449 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 04:23:13 +00:00
Gary Pendergast
11ff4d07f9 Buttons: Add some vendor prefixes missed in [35422].
See #31459.



git-svn-id: https://develop.svn.wordpress.org/trunk@35448 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 03:12:44 +00:00
Sergey Biryukov
eb0a1074d7 Don't use <strong> in translatable strings in wp-signup.php.
Add translator commments.

Props ramiy.
Fixes #34502.

git-svn-id: https://develop.svn.wordpress.org/trunk@35447 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 02:08:03 +00:00
John Blackbourn
3eb0e3a4bb Ensure that the scheme used in the URL returned by get_blogaddress_by_id() always reflects the blog's URL, instead of using http.
Props thomaswm
Fixes #14867


git-svn-id: https://develop.svn.wordpress.org/trunk@35446 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 02:01:32 +00:00
Sergey Biryukov
bb045e4e3c Replace a second instance of <code> in translatable string left in [35440].
Props ramiy.
See #34498.

git-svn-id: https://develop.svn.wordpress.org/trunk@35445 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 01:55:49 +00:00