Commit Graph

33099 Commits

Author SHA1 Message Date
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
Weston Ruter 0e39b86500 Customize: Fix broken unit test for `WP_Customize_Nav_Menu_Item_Setting::value_as_wp_post_nav_menu_item()`.
Fixes issue in [35580] which caused unit tests to fail while run under multisite.

Fixes #32812.



git-svn-id: https://develop.svn.wordpress.org/trunk@35583 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-09 02:56:01 +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) ca3e473b47 Build Tools: Update the `preserveComments` option for `uglify:jqueryui`.
Uglify2 doesn't support the value "some" anymore. Replace it with the `/^!/` regex which produces the same output as before.

See https://build.trac.wordpress.org/changeset/35502 and https://build.trac.wordpress.org/changeset/35528.
Fixes #34177.

git-svn-id: https://develop.svn.wordpress.org/trunk@35564 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-07 12:36:24 +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
Dominik Schilling (ocean90) 9632f3a771 Build Tools: Update `grunt-postcss` to 0.7.1.
Change: https://github.com/nDmitry/grunt-postcss/commit/6e18c7d5

See #34177.

git-svn-id: https://develop.svn.wordpress.org/trunk@35562 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-07 11:42: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
Andrew Ozz 3df03d1675 Responsive images: add test for invalid size name. Remove invalid size from other tests.
Props jaspermdegroot.
See #33641.

git-svn-id: https://develop.svn.wordpress.org/trunk@35560 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-07 01:32:41 +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
Aaron Jorbin ca0b5f9df8 Bump grunt-contrib-cssmin to 0.14.0
This updates the underlying version of cssmin

Fixes #34177



git-svn-id: https://develop.svn.wordpress.org/trunk@35541 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-05 17:57:53 +00:00
Aaron Jorbin b9a8a0f01c Bump grunt-contrib-copy to 0.8.2
updates an underlying dependency and fixes an issue with multiple copies

see #34177



git-svn-id: https://develop.svn.wordpress.org/trunk@35540 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-05 17:55:06 +00:00
Aaron Jorbin 75e3f3606a Bump grunt-sass to 1.1.0
This bumps the underlying version of node-sass to 3.4.0 and libsass to 3.3.0. It causes no difference in the current sass output.

Props netweb.
See #34177.



git-svn-id: https://develop.svn.wordpress.org/trunk@35539 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-05 17:52:49 +00:00
Aaron Jorbin 7b97ea0226 Bump grunt-contrib-uglify to 0.10.0
This includes an update to the underlying version of uglify which causes all of the JS to be modified.

See #34177



git-svn-id: https://develop.svn.wordpress.org/trunk@35538 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-05 17:46:13 +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