Commit Graph

6061 Commits

Author SHA1 Message Date
Andrew Ozz f2aa089166 Press This: small clean-up when generating the suggested content. Ensure all keys are always set in the array that is passed through the filter.
See #31637.

git-svn-id: https://develop.svn.wordpress.org/trunk@31836 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-20 00:18:00 +00:00
Drew Jaynes dd8511c35b WordPress 4.2-beta2
git-svn-id: https://develop.svn.wordpress.org/trunk@31835 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-19 19:18:37 +00:00
Aaron Jorbin 757ee0684c Fix notice that exists for plugins with no slug
Not all plugins have a slug, especially plugins not from the WordPress.org repository. 

Props imath for initial patch. 
Fixes #31694



git-svn-id: https://develop.svn.wordpress.org/trunk@31834 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-19 17:47:30 +00:00
Jeremy Felt 86e155b34e Make dates in multisite site and user list tables translatable.
Props pavelevap.

Fixes #22302.


git-svn-id: https://develop.svn.wordpress.org/trunk@31833 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-19 16:21:46 +00:00
Andrew Ozz e977f42a66 TinyMCE: revert stripping of tags from pasted URLs on `beforeSetContent` [31817] and [31819]. Clean up URLs on `pastePreProcess`.
See #31158.

git-svn-id: https://develop.svn.wordpress.org/trunk@31832 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-19 07:07:48 +00:00
Aaron Jorbin cc0e582a67 Ensure that we target the correct plugin row for update updates
The DOM traversal of the plugins list table was less than ideal. By switching to data attributes, we can better target the DOM elements we want to update.

Props ericlewis
Fixes #31621




git-svn-id: https://develop.svn.wordpress.org/trunk@31831 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-19 05:26:00 +00:00
Scott Taylor 1392d272c2 In the "Send Trackbacks" meta box, the description of how pingbacks work was missing a comma after the introductory clause.
Props cfinke.
Fixes #31668.


git-svn-id: https://develop.svn.wordpress.org/trunk@31830 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-19 04:05:33 +00:00
Scott Taylor 2f20da29b5 Replace `array_shift()` with `reset()` where appropriate for performance.
Props SergeyBiryukov.
Fixes #31259.


git-svn-id: https://develop.svn.wordpress.org/trunk@31829 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-19 03:55:39 +00:00
Scott Taylor c74d9e6d1c Add `WP_Posts_List_Table::is_base_request()` to determine if the current "view" is the "All" (default) view.
Fixes #24869.


git-svn-id: https://develop.svn.wordpress.org/trunk@31828 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-19 02:25:05 +00:00
Andrew Ozz 8d392d4568 Press This: check if the URL is to embeddable content on a site that supports oEmbed. Then insert only the URL in the editor. It will trigger a wpView with the embedded content.
Fixes #31637.

git-svn-id: https://develop.svn.wordpress.org/trunk@31827 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-19 00:51:43 +00:00
Dominik Schilling (ocean90) 9c21bedcbb Revert [31729] since `<aside>` seems not to be the appropriate HTML5 tag.
see #30556.

git-svn-id: https://develop.svn.wordpress.org/trunk@31826 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 22:25:20 +00:00
Dominik Schilling (ocean90) 60f95452a4 Don't try to call `wp_clean_plugins_cache();` twice in `wp_clean_update_cache()`.
props TobiasBg.
fixes #31503.

git-svn-id: https://develop.svn.wordpress.org/trunk@31825 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 22:06:17 +00:00
Helen Hou-Sandi e771be8f7c Toolbar: Protect against Firefox font rendering interference by themes.
props cbaldelomar.
fixes #30021.


git-svn-id: https://develop.svn.wordpress.org/trunk@31824 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 22:03:12 +00:00
Dominik Schilling (ocean90) 74e404140d Edit Terms: Show error messages actually as error messages.
props rahulbhangale, SergeyBiryukov.
fixes #31241.

git-svn-id: https://develop.svn.wordpress.org/trunk@31823 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 21:58:52 +00:00
Andrew Ozz c2dc27adfd TinyMCE emoji: fix highlighting of selected replacement images in Chrome.
Props iseulde. Fixes #31628.

git-svn-id: https://develop.svn.wordpress.org/trunk@31822 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 21:53:36 +00:00
Dominik Schilling (ocean90) a3f6767a45 Comments: Move HTML tags for screen reader text into translatable strings.
Placeholders aren't helpful and it's much easier to make a mistake if you're dealing with placeholders.
Introduced in [31388].

props pento.
fixes #26553.

git-svn-id: https://develop.svn.wordpress.org/trunk@31821 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 21:51:36 +00:00
Helen Hou-Sandi 6a273462e8 List tables: Go back to inserting quick edit rows after, as some plugins rely on that assumption. Results are the same.
fixes #26060.


git-svn-id: https://develop.svn.wordpress.org/trunk@31820 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 21:49:26 +00:00
Andrew Ozz 639f5228c3 TinyMCE: small cleanup for stripping of tags from pasted URLs. See #31158.
git-svn-id: https://develop.svn.wordpress.org/trunk@31819 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 20:52:35 +00:00
Andrew Ozz 1a067a5e4c Press This: prepend the site domain to root-relative URLs. Reject other relative URLs.
Part props stephdau, kraftbj. Fixes #31645.

git-svn-id: https://develop.svn.wordpress.org/trunk@31818 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 20:42:38 +00:00
Andrew Ozz 25a5f07d51 TinyMCE: strip tags from pasted URLs before testing if they are embeddable.
Props siobhan, iseulde. Fixes #31158.

git-svn-id: https://develop.svn.wordpress.org/trunk@31817 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 20:25:09 +00:00
Dominik Schilling (ocean90) f288ec0581 Customizer: Remove a `throw error` call which prevents further actions, like `jqxhr.always()`.
props westonruter.
fixes #31501.

git-svn-id: https://develop.svn.wordpress.org/trunk@31816 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 19:28:14 +00:00
Dominik Schilling (ocean90) e9da1dc1f2 WP_Filesystem: Change `WP_Filesystem_FTPext::exists()` and `WP_Filesystem_ftpsockets::exists()` to return true for empty directories.
Both methods are using *nlist() which returns a list of files in a given directory or the file itself for a given file. If the result was an empty list we assumed that the file doesn't exists. This includes also cases where $file is actually an empty directory. To prevent this we now check if $file is a directory before returning the result of an empty list.
Other filesystem methods are using `file_exists()` which already checks whether a file or directory exists.

fixes #30815.

git-svn-id: https://develop.svn.wordpress.org/trunk@31815 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 19:21:33 +00:00
Lance Willett 7476ac6d05 Bundled themes: add documentation for new `onResizeARIA` function.
See #31527. Props davidakennedy, lancewillett.

git-svn-id: https://develop.svn.wordpress.org/trunk@31814 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 18:30:19 +00:00
Boone Gorges 31bded083b Ensure that the `$exclusions` parameter of 'list_terms_exclusions' filter is always a string.
Props fhwebcs.
Fixes #31681.

git-svn-id: https://develop.svn.wordpress.org/trunk@31813 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 18:22:20 +00:00
Aaron Jorbin 08ac58e160 Request FTP and SSH credentials when needed during shiny updates
This is a restoration of [31749] which was reverted in [31755].

It includes a number of enhancements from the original version.  Namely:
 * Not doing a credential check in src/wp-includes/script-loader.php
 * Add new function `wp_print_request_filesystem_credentials_modal`
 * update the version number in the list table when a plugin is updated

UI still needs further work, but this basic version should enable more testing

Props ericlewis, jorbin
See #31528



git-svn-id: https://develop.svn.wordpress.org/trunk@31811 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 03:17:59 +00:00
Andrew Ozz 533aefdf13 Press This: ignore site descriptions that end with an ellipsis. These are most likely auto-generated.
Props kraftbj. Fixes #31639.

git-svn-id: https://develop.svn.wordpress.org/trunk@31810 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 02:50:17 +00:00
Andrew Ozz 09dd0b59c9 Press This: fix editor buttons visibility on mobile.
Props Michael Arestad. Fixes #31622.

git-svn-id: https://develop.svn.wordpress.org/trunk@31809 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 02:24:38 +00:00
Andrew Ozz e875feafbb Press This: add `aria-describedby` to the new tag field.
Props afercia. Fixes #31546.

git-svn-id: https://develop.svn.wordpress.org/trunk@31808 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 02:18:00 +00:00
Andrew Ozz 34ff5cd2d2 Press This: fix the header styling and add a logo.
Props Michael-Arestad. Fixes #31472.

git-svn-id: https://develop.svn.wordpress.org/trunk@31807 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 02:09:00 +00:00
Andrew Ozz df2c74e878 Press This: fix styling on the Tools screen.
Props Michael-Arestad, see #31462.

git-svn-id: https://develop.svn.wordpress.org/trunk@31806 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 01:57:18 +00:00
Andrew Ozz f1ce621be7 Press This: fix styling of the "Scan" button. Fixes #31444.
git-svn-id: https://develop.svn.wordpress.org/trunk@31805 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 01:39:52 +00:00
Drew Jaynes a2d7c3fa58 Add a missing DocBlock for the core utility function `_get_cron_lock()`.
Props mordauk, valendesigns.
Fixes #31646.


git-svn-id: https://develop.svn.wordpress.org/trunk@31804 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-17 23:37:58 +00:00
Drew Jaynes b9cb22f888 Add a changelog entry to the DocBlock for `comment_form()` for the `class_submit` argument added in 4.1.
See [29809]. See #20446.


git-svn-id: https://develop.svn.wordpress.org/trunk@31803 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-17 18:37:12 +00:00
Dominik Schilling (ocean90) f812217753 Set svn:eol-style to native for `press-this-editor.css`.
git-svn-id: https://develop.svn.wordpress.org/trunk@31801 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-17 12:05:31 +00:00
Andrew Ozz 21da2ccd85 Press This: bump bookmarklet's version. See #31657.
git-svn-id: https://develop.svn.wordpress.org/trunk@31800 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-17 01:18:01 +00:00
Andrew Ozz 820fe85082 Press This:
- Strip slashes while running side_load_images(), add slashes after.
- Simplify and clean up side_load_images().
- Add another arg to media_sideload_image() to return the uploaded image src only, and fix it to always return WP_Error on errors.
Fixes #31660.

git-svn-id: https://develop.svn.wordpress.org/trunk@31799 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-17 00:46:01 +00:00
Andrew Ozz b91de55ede Press This: change the Publish button text to Submit for Review for contributors (like on the Edit Post screen).
Props stephdau, DrewAPicture. Fixes #31658.

git-svn-id: https://develop.svn.wordpress.org/trunk@31798 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-16 21:06:01 +00:00
Andrew Ozz eb9cf72a1b Press This:
- Test image sizes from JS after Press This loads, before adding them to  "Suggested media".
- Clean up and simplify the HTML and JS a bit.
Fixes #31561.

git-svn-id: https://develop.svn.wordpress.org/trunk@31797 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-16 20:50:39 +00:00
Drew Jaynes fb1873cfe6 Move the default arguments hash notation for `WP_Comment_Query` to the new constructor, where the argument definitions were moved in [31793].
Core style dictates that the default arguments should be documented in the same function or method where they are defined.

See [31793].
Fixes #24826.


git-svn-id: https://develop.svn.wordpress.org/trunk@31795 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-16 20:17:35 +00:00
Lance Willett fce4ab09f2 Twenty Fourteen: add ARIA attributes to search toggle. See #31527.
git-svn-id: https://develop.svn.wordpress.org/trunk@31794 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-16 18:50:50 +00:00
Boone Gorges 12784e13d4 Improve method consistency in `WP_Comment_Query`.
* Introduce a `__construct()` method, which can accept an array of query vars.
* Move query logic out of `query()` method and into a new `get_comments()` method.
* Ensure that `$this->comments` is set whenever `get_comments()` returns a value.
* Introduce a `parse_query()` method, where query vars are parsed with default values and the 'parse_comment_query' action is fired.

These changes bring `WP_Comment_Query` syntax closer to that of `WP_Query`.

Props westonruter, morganestes, boonebgorges.
Fixes #24826.

git-svn-id: https://develop.svn.wordpress.org/trunk@31793 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-16 14:23:33 +00:00
Boone Gorges ec49827b0b In `wp_insert_term()`, allow a term with an existing name if a unique `$slug` has been provided.
`wp_insert_term()` protects against the creation of terms with duplicate names
at the same level of a taxonomy hierarchy. However, it's historically been
possible to override this protection by explicitly providing a value of `$slug`
that is unique at the hierarchy tier. This ability was broken in [31734], and
the current changeset restores the original behavior.

A number of unit tests are added and refactored in support of these changes.

See #17689 for discussion of a fix that was superceded by [31734]. This commit
retains the fix for the underlying bug described in that ticket.

See #31328.

git-svn-id: https://develop.svn.wordpress.org/trunk@31792 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-16 11:15:34 +00:00
Gary Pendergast 2b3cfead22 Emoji: Rename the email and feed filter functions to be `_` prefixed, and `@ignore`-d in the PHPDocs.
See #31242



git-svn-id: https://develop.svn.wordpress.org/trunk@31791 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-16 10:45:29 +00:00
Sergey Biryukov 47c69c3207 Fix typo in a comment in [31752].
see #31242.

git-svn-id: https://develop.svn.wordpress.org/trunk@31790 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-16 01:55:53 +00:00
Drew Jaynes 7bbdceb336 Clean up some inline documentation for emoji functionality, including a missing `@since` for `mail_emoji()`, and a changelog entry for `wp_insert_post()`.
See #31242.


git-svn-id: https://develop.svn.wordpress.org/trunk@31789 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-16 01:42:26 +00:00
Gary Pendergast ad7456fe03 Emoji: Move a comment to match the restructure in [31779], and add an extra comment explaining how emoji rendering support is detected.
See #31242



git-svn-id: https://develop.svn.wordpress.org/trunk@31788 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-16 00:05:05 +00:00
Andrew Ozz f078bc93aa Emoji: fix few typos. See #31242.
git-svn-id: https://develop.svn.wordpress.org/trunk@31787 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-15 23:28:04 +00:00
Andrew Ozz 005ff9a8c8 Emoji:
- Add the styling for the replacement images to the admin CSS.
- Revert to using `.emoji` as replacement image class.
- When pasting in the editor, convert emoji images to our format so we can replace them with chars on saving.
- Some more clean up of both the plugin and wp-emoji.js.
See #31242.

git-svn-id: https://develop.svn.wordpress.org/trunk@31786 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-15 23:15:28 +00:00
Lance Willett b69fe9bd6a Twenty Thirteen: add ARIA attributes to menu toggle. See #31527.
git-svn-id: https://develop.svn.wordpress.org/trunk@31785 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-15 20:00:57 +00:00
Lance Willett 3366386aa3 Twenty Fourteen: add ARIA attributes to menu toggle. See #31527.
git-svn-id: https://develop.svn.wordpress.org/trunk@31784 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-15 19:59:53 +00:00
Gary Pendergast 0ac085da11 WPDB: HHVM doesn't support passing a DB link to `mysqli_get_client_version()`. While we usually pass a DB link to every `ext/mysql` and `mysqli` function call, we don't really need to do that here, as there's no way for the client library to change mid page load.
Another fun fact is that `mysql_get_client_version()` doesn't exist, but `mysql_get_client_info()` (along with `mysqli_get_client_info()') do. So, we're switching to them, in order to add a pleasing symmetry to the client version check.

Fixes #31644



git-svn-id: https://develop.svn.wordpress.org/trunk@31783 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-15 12:19:12 +00:00
Gary Pendergast 3503aa4820 Smilies: The new smilies added in [31733] and [31745] are larger than the old smilies. While this is taken care of by the CSS on normal pages, it means they're disproportionally large when seen in RSS and email.
By adding a little bit of inline style to them, we get pleasingly sized smilies everywhere. :-)

See #31242



git-svn-id: https://develop.svn.wordpress.org/trunk@31781 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-15 11:40:16 +00:00
Andrew Ozz e94b808f3b Emoji: always export the methods in wp-emoji.js, even when dependencies are missing and we cannot initialize.
See #31242.

git-svn-id: https://develop.svn.wordpress.org/trunk@31780 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-15 00:16:47 +00:00
Andrew Ozz 59b22c284d Emoji:
- Move the TinyMCE plugin CSS to wp-content.css.
- Change the replacement images class to `wp-emoji` inside the editor.
- Clean up both the plugin and wp-emoji.js, abstract and restructure a bit.
See #31242.

git-svn-id: https://develop.svn.wordpress.org/trunk@31779 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-14 23:49:00 +00:00
Andrew Ozz 2d99690655 PressThis: increase the number of meta tags we check in the bookmarklet to 200. Sometimes there are empty meta tag nodes (no attributes) in some browsers.
See #31373.

git-svn-id: https://develop.svn.wordpress.org/trunk@31778 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-14 20:11:42 +00:00
Sergey Biryukov 83c6f85cd5 Remove duplicate label on Add New User screen.
props abhishekfdd.
fixes #31131.

git-svn-id: https://develop.svn.wordpress.org/trunk@31777 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-14 01:03:18 +00:00
Sergey Biryukov 546f3c348b Remove hidden `user_id` input from Edit Comment screen.
Since [31172], it caused the comment's `user_id` field to be unexpectedly changed to the user who edits the comment.

fixes #30307.

git-svn-id: https://develop.svn.wordpress.org/trunk@31776 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-14 00:52:15 +00:00
Andrew Ozz a6b11c0411 PressThis: add a wrapped with role = application to the categories section.
Props: afercia. See #31443.

git-svn-id: https://develop.svn.wordpress.org/trunk@31775 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-13 23:40:53 +00:00
Andrew Ozz 262e849cdd Emoji: yet another update for Twemoji, to 1.3.2. Props iseulde. See #31242.
git-svn-id: https://develop.svn.wordpress.org/trunk@31773 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-13 20:29:10 +00:00
Andrew Ozz 1f05ad1b50 Emoji: better regex when testing for only char emoji. Props iseulde. See #31242.
git-svn-id: https://develop.svn.wordpress.org/trunk@31772 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-13 20:26:39 +00:00
Sergey Biryukov 870da19630 Emoji and smiley images should be displayed inline.
see #31242.

git-svn-id: https://develop.svn.wordpress.org/trunk@31771 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-13 18:44:40 +00:00
Sergey Biryukov 3089244b6f Restore line breaks before comment text in comment notification emails.
fixes #31508.

git-svn-id: https://develop.svn.wordpress.org/trunk@31770 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-13 18:28:52 +00:00
Andrew Ozz 49ca2ac0f4 PressThis: improve translatable strings on the Tools screen.
Props: afercia. See #28873.

git-svn-id: https://develop.svn.wordpress.org/trunk@31768 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-13 17:31:01 +00:00
Drew Jaynes a0d10f45cf Post 4.2-beta1 version bump.
git-svn-id: https://develop.svn.wordpress.org/trunk@31767 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-13 17:25:42 +00:00
Andrew Ozz 7fbb0e091a Emoji: update Twemoji to 1.3.1. Props iseulde. See #31242.
git-svn-id: https://develop.svn.wordpress.org/trunk@31766 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-13 17:19:28 +00:00
Andrew Ozz 2650be6c74 PressThis: simplify and restyle the categories drop-down, remove the checkboxes and use JS to get the selected categories on submitting the form.
Part prop: Michael-Arestad. Fixes #31443.

git-svn-id: https://develop.svn.wordpress.org/trunk@31765 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-13 16:56:45 +00:00
Drew Jaynes 4179e355e0 WordPress 4.2-beta1
git-svn-id: https://develop.svn.wordpress.org/trunk@31763 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-12 23:10:49 +00:00
Andrew Ozz 5cfe554773 TinyMCE: fix emoji parsing in IE typo. See #31242.
git-svn-id: https://develop.svn.wordpress.org/trunk@31762 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-12 23:02:08 +00:00
Andrew Ozz 29cca14491 TinyMCE: fix emoji parsing in IE. See #31242.
git-svn-id: https://develop.svn.wordpress.org/trunk@31761 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-12 22:59:41 +00:00
Drew Jaynes a6d4f5e679 WordPress 4.2-beta1
git-svn-id: https://develop.svn.wordpress.org/trunk@31760 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-12 22:49:58 +00:00
Dominik Schilling (ocean90) 949099f6f7 `grunt imagemin`for [31745].
see #31242.

git-svn-id: https://develop.svn.wordpress.org/trunk@31759 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-12 22:00:50 +00:00
Dominik Schilling (ocean90) c8cd080d1b Update Twemoji to 1.3.0.
Includes a fix for Firefox: 92d5bea1ab
Since this fix breaks IE 11 we added `modified = false;` after `subnode.parentNode.replaceChild(fragment, subnode)`.

props iseulde.
see #31242.

git-svn-id: https://develop.svn.wordpress.org/trunk@31758 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-12 21:59:04 +00:00
Andrew Ozz ba3a48766e TinyMCE wpViews: fix typos in the conditional checking which stylesheets to import.
Props mattheu. See #31464.

git-svn-id: https://develop.svn.wordpress.org/trunk@31757 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-12 20:07:13 +00:00
Andrew Ozz 86c521d868 Emoji:
- Patch twemoji.js to prevent infinite loop.
- Fix some `undefined` errors in old IE.
Props iseulde. See #31242.

git-svn-id: https://develop.svn.wordpress.org/trunk@31756 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-12 19:52:13 +00:00
Dominik Schilling (ocean90) 94768cad74 Revert [31749], see #31528.
git-svn-id: https://develop.svn.wordpress.org/trunk@31755 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-12 17:50:54 +00:00
Helen Hou-Sandi 21134a0c89 Allow `is_page_template()` to accept an array, as many other conditional tags do.
props morganestes, tyxla, DrewAPicture.
fixes #31271.


git-svn-id: https://develop.svn.wordpress.org/trunk@31754 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-12 16:27:06 +00:00
Sergey Biryukov a2abc13285 Shiny Updates: Disable body scrolling when filesystem request modal is open.
props ericlewis.
fixes #31607.

git-svn-id: https://develop.svn.wordpress.org/trunk@31753 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-12 14:56:34 +00:00
Gary Pendergast fa3131ee02 Emoji: There's a little tear in my eye as I remove DOMDocument from the Emoji staticizer. It was a beautiful dream, but it wasn't to be.
Instead, let's use the tried and trusted smiley replacement algorithm, which has stood the test of time.

See #31242



git-svn-id: https://develop.svn.wordpress.org/trunk@31752 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-12 13:16:34 +00:00
Sergey Biryukov 6642a1d228 Shiny Updates: Don't translate an error code string.
props ericlewis.
fixes #31606.

git-svn-id: https://develop.svn.wordpress.org/trunk@31751 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-12 13:08:40 +00:00
Gary Pendergast 37bee1ed3a Emoji: Instead of having custom hooks for Ajax callbacks, use MutationObserver to re-parse any changed elements in the DOM.
Props iseulde

See #31242



git-svn-id: https://develop.svn.wordpress.org/trunk@31750 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-12 12:51:06 +00:00
Aaron Jorbin b857ff6083 Request FTP and SSH credentials when needed during shiny updates
This is a first pass at requesting FTP and SSH credentials when needed during shiny updates. Styling and some UX improvements are still needed, but we do show the prompt and use the passed data when doing plugin installs and updates for shiny updates.  There are also a couple of areas that we could improve code wise such how we create the requestFilesystemCredentials part of the localized _wpUpdatesSettings. Over the past half century, we've split the atom, we've spliced the gene and we've roamed Tranquility Base. We've reached for the stars and never have we been closer to having them in our grasp. That has nothing to do with shiny updates. 

Props ericlewis, jorbin, and drewapicture for testing
Fixes #31528



git-svn-id: https://develop.svn.wordpress.org/trunk@31749 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-12 08:52:42 +00:00
Helen Hou-Sandi c5169d828e Nav menus: Return to calling links "Custom Links".
It was like this before 3.6 and got a bit lost during that development cycle. Also uses the terminology more consistently in the nav menu UI.

props tyxla.
fixes #31344.


git-svn-id: https://develop.svn.wordpress.org/trunk@31748 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-12 06:14:53 +00:00
Helen Hou-Sandi 75cb1ae15a Star ratings: Use a yellow color across the board. Keying these to color schemes originally turned out to be weird.
props hugobaeta.
fixes #31424.


git-svn-id: https://develop.svn.wordpress.org/trunk@31747 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-12 05:40:14 +00:00
Andrew Nacin fff0f98244 The partial change to the script handle in [31744] was not actually intended.
see #31242.


git-svn-id: https://develop.svn.wordpress.org/trunk@31746 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-12 03:36:01 +00:00
Gary Pendergast fa132c0d7e Add new smiley images missed in [31733].
See #31242



git-svn-id: https://develop.svn.wordpress.org/trunk@31745 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-12 03:27:06 +00:00
Andrew Nacin a5cd4f6284 Emoji JS cleanup.
* Filename: emoji.js => wp-emoji.js
 * Script handle: emoji => wp-emoji
 * Object: WPEmoji => wp.emoji
 * Script settings: EmojiSettings => _wpemojiSettings
 * Setting key: base_url => baseUrl
 * Remove executable bit from files

see #31242.


git-svn-id: https://develop.svn.wordpress.org/trunk@31744 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-12 03:16:51 +00:00
Sergey Biryukov fdb65519ac Press This: Remove obsolete help tab in Settings -> Writing.
props kraftbj.
fixes #26794.

git-svn-id: https://develop.svn.wordpress.org/trunk@31743 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-12 02:36:09 +00:00
Andrew Ozz 1c425c9eac TinyMCE wpViews: always import the non-default editor styles in the sandbox iframe in views.
Props iseulde, mattheu. Fixes #31464.

git-svn-id: https://develop.svn.wordpress.org/trunk@31742 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-12 01:04:59 +00:00
Sergey Biryukov 8220541799 Fix JSHint errors in [31734] and add missing dependencies.
props iseulde.
fixes #31328.

git-svn-id: https://develop.svn.wordpress.org/trunk@31741 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-12 01:04:44 +00:00
Andrew Ozz 484733be3a TinyMCE: improve setting of the sandboxing iframe inside a view.
Props mattheu, iseulde. Fixes #31412.

git-svn-id: https://develop.svn.wordpress.org/trunk@31740 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 23:52:15 +00:00
Andrew Ozz 2707b39c63 PressThis: add inline comments and some cleanup for the images and embeds regex.
Props stephdau. Fixes #31373.

git-svn-id: https://develop.svn.wordpress.org/trunk@31739 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 23:36:23 +00:00
Andrew Ozz 6d9c5ea526 TinyMCE: remove blocking of commands on placeholder images. Breaks some execCommand.
Props iseulde. Fixes #31571.

git-svn-id: https://develop.svn.wordpress.org/trunk@31738 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 23:32:44 +00:00
Andrew Ozz 962ba7c52e PressThis: update _limit_url(), use esc_url_raw(). Fixes checking of urlencoded strings.
See #31373.

git-svn-id: https://develop.svn.wordpress.org/trunk@31737 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 23:22:21 +00:00
Dominik Schilling (ocean90) 62dd55f7d7 Administration: Remove single-use URL parameters and create canonical link based on new URL.
The default removable query args are 'message', 'settings-updated', 'saved', 'update', 'updated','activated', 'activate', 'deactivate', 'locked', 'deleted', 'trashed', 'untrashed', 'enabled', 'disabled', and 'skipped'. 

props morganestes.
fixes #23367.

git-svn-id: https://develop.svn.wordpress.org/trunk@31736 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 23:08:56 +00:00
Andrew Ozz 62b4dd45d7 TinyMCE: remove block_formats setting, this is now the default in TinyMCE 4.1.9.
Props iseulde. Fixes #31585.

git-svn-id: https://develop.svn.wordpress.org/trunk@31735 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 22:56:17 +00:00
Gary Pendergast 1357e7fc2e Add emoji URL support, and Twemoji fallback for displaying slugs in wp-admin, when the browser doesn't natively support emoji.
Props pento, SergeyBiryukov and boonebgorges.

Fixes #31328



git-svn-id: https://develop.svn.wordpress.org/trunk@31734 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 22:54:49 +00:00
Gary Pendergast ae391ec226 Add emoji support, with Twemoji fallback.
Replace exisiting smilies with equivalent emoji, or with shiny new smiley images where no emoji existed.

Props batmoo, joen and mkaz for the original plugin upon which this is based.

Props pento, iseulde, kraftbj and peterwilsoncc for making the internet's dreams come true.

See #31242



git-svn-id: https://develop.svn.wordpress.org/trunk@31733 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 22:48:16 +00:00
Andrew Ozz 1c1e5f377f TinyMCE: initialize the floating toolbars on preinit so we can attach other events on init.
Props iseulde. Fixes #30619.

git-svn-id: https://develop.svn.wordpress.org/trunk@31732 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 22:40:56 +00:00
Andrew Ozz 976e548ef7 TinyMCE wpViews: use the real attribute value instead of the cached jQuery data. Fixes updating of the wpView text strings.
Props iseulde. Fixes #31601.

git-svn-id: https://develop.svn.wordpress.org/trunk@31731 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 22:39:29 +00:00
John Blackbourn 82ac76c0a7 Introduce a new algorithm for displaying a hierarchical list of post objects in the `WP_Posts_List_Table`. This reduces processing time, reduces database queries, and substantially reduces memory use on sites with a high number of Pages.
Props nofearinc, rodrigosprimo, nacin, johnbillion.
Fixes #15459


git-svn-id: https://develop.svn.wordpress.org/trunk@31730 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 20:45:17 +00:00
Dominik Schilling (ocean90) bea0628880 Introduce HTML5 widgets support.
When a theme supports HTML5 widgets via `add_theme_support( 'html5', 'widgets' )`, aside will be used instead of list markup.

props LeoPeo, valendesigns.
fixes #30556.

git-svn-id: https://develop.svn.wordpress.org/trunk@31729 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 20:43:25 +00:00
Andrew Ozz 3b585cd9ca TinyMCE, floating toolbars: return early if no selected element in the editor. See #30619.
git-svn-id: https://develop.svn.wordpress.org/trunk@31727 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 20:07:54 +00:00
Helen Hou-Sandi 8f9bef790e Enable more flexibility for non-URL GUIDs.
props stevenkword.
fixes #31080.


git-svn-id: https://develop.svn.wordpress.org/trunk@31726 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 19:59:03 +00:00
Andrew Ozz 2c9a5e3b8b TinyMCE:
- Abstract the code for creating floating toolbars.
- Introduce `editor.wp` namespace to hold exported methods from our plugins.
- Create the wpView toolbar(s) with the new method. This makes them work the same as the image toolbar: shortcuts, esc key, etc.
Props iseulde. See #30619.

git-svn-id: https://develop.svn.wordpress.org/trunk@31725 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 19:11:02 +00:00
Dominik Schilling (ocean90) 9a350f7f36 JSHint: Remove an unused variable.
see #28206.

git-svn-id: https://develop.svn.wordpress.org/trunk@31724 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 17:39:48 +00:00
Dominik Schilling (ocean90) 416628ccd4 Update hoverIntent to 1.8.1.
props rachelbaker, jesin.
fixes #31505.

git-svn-id: https://develop.svn.wordpress.org/trunk@31723 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 17:14:34 +00:00
Helen Hou-Sandi debd0092cb Gravatars: Remove redundant 1x srcset.
props miqrogroove.
see #22329.


git-svn-id: https://develop.svn.wordpress.org/trunk@31722 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 16:55:22 +00:00
Helen Hou-Sandi 13c503d15a Gravatars: Enable HiDPI versions for browsers that support srcset.
props iseulde.
see #22329.


git-svn-id: https://develop.svn.wordpress.org/trunk@31721 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 16:31:50 +00:00
Andrew Ozz 019a6dee36 Allow swiping of the admin menu on touch devices.
Props iseulde, ninnypants. See #31187.

git-svn-id: https://develop.svn.wordpress.org/trunk@31720 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 16:28:21 +00:00
Helen Hou-Sandi 2d8bfdea8f Plugin details: Ensure banner image doesn't repeat.
props senff, valendesigns.
fixes #30773.


git-svn-id: https://develop.svn.wordpress.org/trunk@31719 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 16:11:15 +00:00
Dominik Schilling (ocean90) 137634176f Editor: Hide TinyMCE help button on mobile.
props MattyRob, iseulde.
fixes #31161.

git-svn-id: https://develop.svn.wordpress.org/trunk@31718 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 16:01:07 +00:00
Dominik Schilling (ocean90) f29a9083fc Merge three similar strings.
props pavelevap.
see #31013.

git-svn-id: https://develop.svn.wordpress.org/trunk@31717 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 15:24:04 +00:00
Dominik Schilling (ocean90) 5b7bd930c6 Update jQuery UI to 1.11.4.
Changelog:
* https://jqueryui.com/changelog/1.11.4/
* https://github.com/jquery/jquery-ui/compare/1.11.3...1.11.4

props scott.gonzalez for arranging this release.
fixes #31597, #30998.

git-svn-id: https://develop.svn.wordpress.org/trunk@31716 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 15:11:52 +00:00
Helen Hou-Sandi 507eab72c2 wpLink: Title case "Link Text", as it's an existing string.
see #28206.


git-svn-id: https://develop.svn.wordpress.org/trunk@31715 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 03:02:34 +00:00
Andrew Ozz df6e920a87 wpLink: change the text label to Link text, always focus the URK field, fix Ctrl/Cmd + K shortcut. See #28206.
git-svn-id: https://develop.svn.wordpress.org/trunk@31714 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 03:00:15 +00:00
Andrew Ozz bfbcfe3e6a wpLink: replace the "Title" field with a "Text" field and populate it with the link text when editing an existing link or with the selected text if any.
Props iseulde. See #28206.

git-svn-id: https://develop.svn.wordpress.org/trunk@31713 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 02:39:02 +00:00
John Blackbourn 62c89ae8b5 RIP3 Revision3
Fixes #31592


git-svn-id: https://develop.svn.wordpress.org/trunk@31712 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 02:06:32 +00:00
John Blackbourn 60eb837e3d Some updates to the oEmbed provider table.
See #28507


git-svn-id: https://develop.svn.wordpress.org/trunk@31711 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 02:02:54 +00:00
John Blackbourn 1d0bac31fb Allow `https` URLs for Instagram embeds, and switch to `https` for its oEmbed API endpoint.
See #28507.


git-svn-id: https://develop.svn.wordpress.org/trunk@31710 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 01:06:00 +00:00
Sergey Biryukov c29e63fdf7 Restore `<title>` tag on Posts and Pages screens after [31696].
fixes #31349.

git-svn-id: https://develop.svn.wordpress.org/trunk@31709 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 00:48:56 +00:00
Sergey Biryukov 8c5057119e Revert the part of [31168] that [31701] was trying to fix.
`default-filters.php` is loaded before the `$current_site` global is set, so `is_main_site()` cannot be used there.

fixes #30947.

git-svn-id: https://develop.svn.wordpress.org/trunk@31708 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 23:19:02 +00:00
Dominik Schilling (ocean90) 32a124a884 Customizer: Return the original value when filtering theme mods/options and the current blog has changed.
props westonruter.
fixes #31428.

git-svn-id: https://develop.svn.wordpress.org/trunk@31707 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 23:04:12 +00:00
Dominik Schilling (ocean90) 72fcd6e2ce Customizer: Prevent a race condition when attempting to publish too soon after updating widget form fields with multiple edits.
props westonruter.
fixes #31501.

git-svn-id: https://develop.svn.wordpress.org/trunk@31706 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 22:44:25 +00:00
Dominik Schilling (ocean90) 63502a8a01 Customizer: Fix previewing and applying widgets when previewing another theme.
* Unset `wp_get_sidebars_widgets()`' non-admin cache var `$_wp_sidebars_widgets` in Customize theme preview.
* Add `WP_Customize_Setting::$dirty` so that settings can be initially-dirty when the Customizer loads.
* Mark `old_sidebars_widgets_data` setting initially-dirty.
* Mark all `sidebars_widgets` settings as initially-dirty during theme switch.

props westonruter.
see #31484.

git-svn-id: https://develop.svn.wordpress.org/trunk@31705 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 22:38:30 +00:00
Dominik Schilling (ocean90) 4aeeb0e0f0 Customizer: Add title attributes to iframes.
props afercia.
fixes #31202.

git-svn-id: https://develop.svn.wordpress.org/trunk@31704 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 21:19:14 +00:00
Andrew Ozz 2f41519c46 TinyMCE: Remove old placeholder functions and callbacks.
Props iseulde. Fixes #31576.

git-svn-id: https://develop.svn.wordpress.org/trunk@31703 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 20:27:48 +00:00
Dominik Schilling (ocean90) 39e1f112cf Theme Details: Hide admin toolbar on smaller screens.
props obenland.
fixes #31381.

git-svn-id: https://develop.svn.wordpress.org/trunk@31702 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 20:03:30 +00:00
Sergey Biryukov 8f0910aee4 Don't run update checks for AJAX requests after [31168].
fixes #30947.

git-svn-id: https://develop.svn.wordpress.org/trunk@31701 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 19:29:31 +00:00
Andrew Ozz 9aba4766fc TinyMCE: update to 4.1.9. Fixes #31551.
git-svn-id: https://develop.svn.wordpress.org/trunk@31700 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 19:19:56 +00:00
Boone Gorges 8072fe7db6 Improved customizability for the Submit button in `comment_form()`.
The new 'submit_button' and 'submit_field' parameters for `comment_form()`
allow developers to modify the markup of the submit button and its wrapper.
These params are accompanied by targeted 'comment_form_submit_button' and
'comment_form_submit_field' filters on the concatenated markup.

Props coffee2code, morpheu5, DrewAPicture, boonebgorges.
Fixes #15015.

git-svn-id: https://develop.svn.wordpress.org/trunk@31699 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 19:07:31 +00:00
Dominik Schilling (ocean90) 179a1b7a4c Customizer: Introduce `WP_Customize_Media_Control`.
`WP_Customize_Media_Control` is a new base class for all Customizer media controls. If used directly it supports the ID of an attachment instead of an URL like `WP_Customize_Upload_Control`.

props celloexpressions.
fixes #29215.

git-svn-id: https://develop.svn.wordpress.org/trunk@31698 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 18:01:42 +00:00
Dominik Schilling (ocean90) 557ecd19c6 Customizer: Add loading indicators for the Customizer preview.
props Fab1en, westonruter.
fixes #31196.

git-svn-id: https://develop.svn.wordpress.org/trunk@31697 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 15:55:28 +00:00
Dominik Schilling (ocean90) 3bb3d2f1a5 Screen Options: Improve items per page option label.
Previously the label just said "Posts", "Pages", or "Comments". This was bad in terms of accessibility and internationalization because of missing context.
This change adds a default label "Number of items per page:" to `WP_Screen->render_per_page_options()` and removes all the existing one-word labels.

props afercia.
fixes #31349, #15576.

git-svn-id: https://develop.svn.wordpress.org/trunk@31696 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 15:31:54 +00:00
Dominik Schilling (ocean90) b1bbce3f6e Comments: Fix undefined `$comment_url` variable notice, introduced in [31641].
see #23988.

git-svn-id: https://develop.svn.wordpress.org/trunk@31695 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 14:50:50 +00:00
Sergey Biryukov 5fe8182c7f EXIF/IPTC captions should populate Caption (`post_excerpt`) on upload, not Description (`post_content`).
Make sure the caption is always set if found. Previously, if the caption was less than 80 characters, only the Title field would be set.

props beaulebens, ericlewis, bendoh, SergeyBiryukov.
fixes #22768.

git-svn-id: https://develop.svn.wordpress.org/trunk@31694 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 05:06:39 +00:00
Andrew Ozz e0f843cd81 PressThis:
- Filter and select the content on the PHP side. Then pass only the needed data to JS.
- Add the suggested post title and contend directly to the HTML.
- Standardise the data type names.
- Some cleanup/reduction of the code in the bookmarklet.
See #31373.

git-svn-id: https://develop.svn.wordpress.org/trunk@31693 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-09 21:48:38 +00:00
Helen Hou-Sandi 7c60125e15 Media library: Revert [31582], as it introduces navigation difficulties for many users.
see #30333.


git-svn-id: https://develop.svn.wordpress.org/trunk@31692 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-09 21:16:47 +00:00
Andrew Ozz 7baa0da965 TinyMCE: when pasting an URL over a selection, insert a link with the URL instead of replacing the selection with it. Props iseulde. Fixes #31571.
git-svn-id: https://develop.svn.wordpress.org/trunk@31691 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-09 19:59:14 +00:00
Scott Taylor 69c449963e Replace flagrant instances of `.html('')` with `.empty()`.
Props OriginalEXE, SergeyBiryukov.
Fixes #27034.


git-svn-id: https://develop.svn.wordpress.org/trunk@31690 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-09 19:43:49 +00:00
Andrew Ozz 64e63da3f6 TinyMCE wpView: decode HTML entities before trying to match the wpView text string. Props iseulde. See #31412.
git-svn-id: https://develop.svn.wordpress.org/trunk@31689 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-09 19:08:05 +00:00
Drew Jaynes 5bbb7dd80d Update hook docs for the `editable_slug` filter as it is evaluated in more than just a term slug context, it is also leveraged for use with post URIs.
See #31569.


git-svn-id: https://develop.svn.wordpress.org/trunk@31688 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-09 07:03:12 +00:00
Dion Hulse 1f90e70b7d Fix the editable_slug hook documentation, the PHPDoc must come directly before the hook call, with no HTML inbetween.
Props DrewAPicture. Fixes #31569


git-svn-id: https://develop.svn.wordpress.org/trunk@31687 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-09 06:42:58 +00:00
Dion Hulse b96b1db015 SSH2 Upgrade transport: Trim the trailing newline character from the ouput of `pwd` to avoid a PHP Segfault.
Fixes #30802 for trunk.


git-svn-id: https://develop.svn.wordpress.org/trunk@31686 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-09 04:31:21 +00:00
Scott Taylor 97ad987b7c [31684] has BC issues, revert it.
Props nacin.
See #30799.



git-svn-id: https://develop.svn.wordpress.org/trunk@31685 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-09 02:35:36 +00:00
Scott Taylor 417aa9b84d Remove the PHP4 constructor from `WP_Widget`.
See #30799.


git-svn-id: https://develop.svn.wordpress.org/trunk@31684 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-09 02:24:43 +00:00
Scott Taylor 8ba3c105a0 `self` should be used for accessing local static members.
See #30799.


git-svn-id: https://develop.svn.wordpress.org/trunk@31683 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-09 02:21:04 +00:00
Scott Taylor 253f0dd6cf Declare `multisite` as a field for `WP_Object_Cache`.
See #30799.


git-svn-id: https://develop.svn.wordpress.org/trunk@31682 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-09 02:17:30 +00:00
Scott Taylor 3c810c5872 There are a few functions that have the ability to return `false` instead of a string, so the return value should be checked before being passed to functions that expect string.
These are trivial, but they clear out some Scrutinizer issues.

See #30799.


git-svn-id: https://develop.svn.wordpress.org/trunk@31681 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-09 02:10:36 +00:00
Andrew Ozz 7103ef6018 PressThis: fix styling of wpLink.
Props Michael-Arestad, see #31373.

git-svn-id: https://develop.svn.wordpress.org/trunk@31680 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-08 23:22:36 +00:00
Scott Taylor 1997429498 Empty `return` statements are unnecessary at the end of functions.
See #30799.


git-svn-id: https://develop.svn.wordpress.org/trunk@31679 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-08 23:08:48 +00:00
Scott Taylor edf982fcd5 Avoid function calls on each iteration of a `for` loop.
See #30799.


git-svn-id: https://develop.svn.wordpress.org/trunk@31678 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-08 23:00:21 +00:00
Boone Gorges 5b0e3180b4 jshint fixes for press-this.js.
git-svn-id: https://develop.svn.wordpress.org/trunk@31677 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-08 16:26:33 +00:00
Andrew Ozz a88e5fcadb Fix tagBox init on the Edit Post screen. Props tyxla. Fixes #31558.
git-svn-id: https://develop.svn.wordpress.org/trunk@31675 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-08 04:53:35 +00:00
Jeremy Felt 63ffcc96f3 Reveal row actions on focus in the network users list table.
In the future, we'll re-factor this selector pile in a way that makes things cleaner. See #25408.

Props afercia.

Fixes #31003.


git-svn-id: https://develop.svn.wordpress.org/trunk@31674 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-08 02:26:48 +00:00
Jeremy Felt 86b5558fd6 Introduce delete_site meta capability.
Map `delete_site` as a meta capability to `manage_options` so that the ability to delete sites can be more granularly managed for individual site administrators on a multisite network.

Props thomaswm.

Fixes #30470.


git-svn-id: https://develop.svn.wordpress.org/trunk@31673 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-08 02:09:25 +00:00
Scott Taylor f06485a701 Use `$this->` instead of `parent::` when calling `tablenav()` in `WP_Theme_Install_List_Table`.
See #30799.


git-svn-id: https://develop.svn.wordpress.org/trunk@31672 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-07 23:03:00 +00:00
Scott Taylor f4dc74745c Add oEmbed support for Kickstarter.
See #29126.


git-svn-id: https://develop.svn.wordpress.org/trunk@31671 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-07 22:10:42 +00:00
Boone Gorges a11372afe1 Improved 'orderby' meta syntax in `WP_User_Query`.
Recent commits have added the ability to order query results by specific
clauses of the 'meta_query' parameter (comments [31467], posts [31312] and
[31340]). The current changeset ports the same functionality to `WP_User_Query`.

Also introduced is the ability to pass the value of `$meta_key` to 'orderby'.

The internals of `WP_User_Query::prepare_users()` had to be reordered
somewhat to support these changes, primarily to ensure that the `meta_query`
object generates its SQL clauses before the 'orderby' parameter is parsed.

See #31265.

git-svn-id: https://develop.svn.wordpress.org/trunk@31669 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-07 18:37:05 +00:00
Andrew Ozz 6bb478d3fd TinyMCE wpView: improve unbinding of mutationObserver in nested iframes. Props iseulde. See #31412.
git-svn-id: https://develop.svn.wordpress.org/trunk@31667 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-07 16:52:54 +00:00
Boone Gorges abbbde190c In `WP_User_Query`, `$meta_query` should be a class property rather than a local variable.
This provides better parity with other query classes, and makes it possible to
write more direct unit tests.

See #31265.

git-svn-id: https://develop.svn.wordpress.org/trunk@31665 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-07 16:34:42 +00:00
Boone Gorges a510aafe46 Fix documentation whitespace after [31663].
See #31265.

git-svn-id: https://develop.svn.wordpress.org/trunk@31664 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-07 16:07:26 +00:00
Boone Gorges 945fd67d7b Improve 'orderby' syntax for `WP_User_Query`.
This changeset ports a number of 'orderby' features from `WP_Query` and
`WP_Comment_Query`:

* Allow multiple 'orderby' values to be passed as a space-separated list.
* Allow multiple 'orderby' values to be passed as a flat array.
* Allow multi-dimensional 'orderby', with orderby fields as array keys and ASC/DESC as the corresponding values.

See #31265.

git-svn-id: https://develop.svn.wordpress.org/trunk@31663 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-07 16:05:11 +00:00
Dominik Schilling (ocean90) 305a44617c Customizer: Add audio/video previews for upload controls.
props celloexpressions, Fab1en, wonderboymusic.
fixes #30850.

git-svn-id: https://develop.svn.wordpress.org/trunk@31661 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-07 11:05:57 +00:00
Drew Jaynes 9c1ab4eec0 Add a missing `@since 4.2.0` tag to the DocBlock for `wp_attachment_is()`.
See #25275.


git-svn-id: https://develop.svn.wordpress.org/trunk@31660 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-07 07:11:11 +00:00
Drew Jaynes 37ca5609c8 Better document parameters and the return for the newly-introduced `wp_attachment_is()`.
Also adds a changelog entry to the DocBlock for `wp_attachment_is_image()` to denote that it serves as a wrapper for `wp_attachment_is()` as of 4.2.0.

See [31645]. See #25275.


git-svn-id: https://develop.svn.wordpress.org/trunk@31659 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-07 07:08:52 +00:00
Jeremy Felt a5fcc34a50 Return HTTP status code 403 in network admin when access is forbidden.
When the error message "You do not have permission to access this page" is used in network admin screens, return an HTTP status code of 403 to match. Previously: [30356] and [31300].

Props yo-l1982.

Fixes #31422.


git-svn-id: https://develop.svn.wordpress.org/trunk@31658 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-07 05:59:17 +00:00
Jeremy Felt 03b4e1f0aa Return HTTP status code 500 by default in ms_not_installed()
In admin views, specify a response code of 500 when using `wp_die()` to show an expanded message for a broken or missing multisite installation.

On front end views, use `dead_db()` rather than `die()` to generate the generic "Error establishing a database connection" message. `dead_db()` sets a status code of 500 by default and allows for the override of this generic error with a `db-error.php` template.

Props craig-ralston, jeremyfelt.

Fixes #30002.


git-svn-id: https://develop.svn.wordpress.org/trunk@31657 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-07 05:34:47 +00:00
Jeremy Felt f0b524dad0 Improve experience when deleting users from a multisite network.
When deleting a user who is not associated with any sites, the current messaging can be confusing as only users associated with at least one site actually appear on the confirmation page for deletion.

This experience can be improved by showing all users being deleted as well as their current site associations.

* If an empty array of users is passed, don't attempt to confirm deletion.
* If one user is passed, show a message crafted for a user of one.
* If multiple users are passed, show a message crafted for many.
* Show the pending results of all users to be deleted.
* Update messaging around the deletion/confirmation process to be less misleading.

Props Idealien, HarishChaudhari, DrewAPicture.

Fixes #18132.


git-svn-id: https://develop.svn.wordpress.org/trunk@31656 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-07 04:39:13 +00:00
Andrew Ozz e651a8bef1 PressThis: make the Preview button "subtle".
See #31458.

git-svn-id: https://develop.svn.wordpress.org/trunk@31655 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-07 01:49:57 +00:00
Andrew Ozz fba4d3e296 PressThis: add preview functionality. Opens the preview in a new window or a tab next to the source tab.
Fixes #31458.

git-svn-id: https://develop.svn.wordpress.org/trunk@31654 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-07 01:16:05 +00:00
Boone Gorges b2332718a1 When passing `$full` to `get_posts_by_author_sql()`, make sure a 'post_type' clause is included in results.
This change makes the 'post_type' clause in `wp_list_authors()` redundant, so
we remove it. Third-party plugins using `get_posts_by_author_sql()` may have
similarly redundant clauses, but this won't change the results returned by the
SQL queries.

Also adds unit tests for `get_posts_by_author_sql()`.

Props pbearne.
Fixes #30354.

git-svn-id: https://develop.svn.wordpress.org/trunk@31653 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-07 01:14:31 +00:00
Drew Jaynes 86b23615ea Remove a duplicate mention of the default value for the `$number` argument in `get_terms()`.
Props iandunn.
Fixes #31526.


git-svn-id: https://develop.svn.wordpress.org/trunk@31652 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-07 01:04:22 +00:00
Andrew Ozz 900468728a PressThis:
- Close the sidebar on moving the focus outside of it (by clicking or by "tabbing").
- Fix a (weird) structural CSS problem where clicks go through the sidebar when it is open.
- Clean up the JS a bit.
Fixes #31457.

git-svn-id: https://develop.svn.wordpress.org/trunk@31651 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-06 22:56:17 +00:00
wonderboymusic 689c0982ec Update `grunt-sass` to `0.18.0`.
Props netweb.
Fixes #31343.


git-svn-id: https://develop.svn.wordpress.org/trunk@31648 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-06 21:04:03 +00:00
Scott Taylor 8a28e19808 Add unit tests for `wp_attachment_is()`, checks the whitelist and arbitrary extension.
See #25275.


git-svn-id: https://develop.svn.wordpress.org/trunk@31647 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-06 20:37:08 +00:00
Scott Taylor 6d5385be8d After [31645], for the `default` `case`, return the result of checking the extension against the passed type.
See #25275.


git-svn-id: https://develop.svn.wordpress.org/trunk@31646 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-06 20:27:49 +00:00
Scott Taylor 42bcec5061 Introduce a function, `wp_attachment_is( $type, $post = 0 )`, to collapse the logic for determining whether an attachment is an `image`, `audio`, or `video`.
This is admittedly a first pass. There needs to be a generic handler for when any other type is passed, but for now it accepts the whitelist.

See #25275.


git-svn-id: https://develop.svn.wordpress.org/trunk@31645 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-06 20:25:09 +00:00
Lance Willett ff67402710 Twenty Fifteen: add ARIA attributes to menu toggle.
See #31527, props davidakennedy, lance.


git-svn-id: https://develop.svn.wordpress.org/trunk@31644 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-06 17:33:38 +00:00
Scott Taylor eb73416790 For our MediaElement 2.16.4 build + monkey patches, also add from the illustrious dd32:
https://github.com/johndyer/mediaelement/pull/1423

Props dd32.
See [31444], #31541.


git-svn-id: https://develop.svn.wordpress.org/trunk@31643 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-06 15:46:26 +00:00
Helen Hou-Sandi df65776f88 Media: UI tweaks for Insert from URL.
"Title" field is now labeled as "Link Text", to reflect how it's actually used. It's also hidden whenever the embed is updating, to make it clearer that something is happening. Embed dimension fields are shown below the preview, much like image property fields are shown below.

fixes #29476, see #31139.


git-svn-id: https://develop.svn.wordpress.org/trunk@31642 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-06 15:02:08 +00:00
Helen Hou-Sandi c9913583e3 Comments: Show more identifying information for moderation and editing.
Attempting to moderate comments without context about the post is more difficult than necessary. The comment moderation screen you are sent to via email link was also in need of some better visual treatment.

props thaicloud, seanchayes, adamsilverstein.
see #23988.


git-svn-id: https://develop.svn.wordpress.org/trunk@31641 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-06 14:05:05 +00:00
Boone Gorges b9e222fd6a Allow `$autoload` setting to be changed for existing options using `update_option()`.
[31628] made it possible to pass an `$autoload` param to `update_option()` that
applies when the option does not yet exist in the database. The current
changeset introduces parity for existing options: the `$autoload` setting
for existing options can be changed via the `$autoload` parameter. For internal
simplicity, `$autoload` is ignored for existing options when `$value` is not
also changed.

This changeset also moves `update_option()` tests into their own class.

Props dd32.
Fixes #26394.

git-svn-id: https://develop.svn.wordpress.org/trunk@31640 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-06 13:56:44 +00:00
Boone Gorges 98322a7143 Ensure that an array of object IDs is passed to the 'get_object_terms' filter.
Originally introduced in [31581].

Props doublesharp.
Fixes #18828.

git-svn-id: https://develop.svn.wordpress.org/trunk@31639 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-06 13:17:09 +00:00
Drew Jaynes 653f2ee36e Correct the `$number` argument description in `get_terms()` to reflect that an empty string or 0 will return all possible results, not -1.
Previously, it was noted that -1 would return all possible results. However, as the value of `$number` is passed through `absint()`, -1 would actually be converted to 1, thereby producing unexpected results.

Props iandunn.
Fixes #31526.


git-svn-id: https://develop.svn.wordpress.org/trunk@31638 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-06 08:04:32 +00:00
Andrew Ozz 1080a903fc PressThis: when server-side parsing, filter small images by the width and height attributes if set.
See #31373.

git-svn-id: https://develop.svn.wordpress.org/trunk@31637 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-06 02:02:03 +00:00
Andrew Ozz e6fcf316b3 PressThis: fix toggling of `aria-expanded` attribute.
Props afercia, see #31373.

git-svn-id: https://develop.svn.wordpress.org/trunk@31636 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-06 01:50:56 +00:00
Andrew Ozz 24461024ca PressThis:
- Fix error when checking for empty array keys.
- Add better DailyMotion embed support.
Props stephdau, see #31373.

git-svn-id: https://develop.svn.wordpress.org/trunk@31635 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-06 01:16:53 +00:00
Scott Taylor deb7e5697e Audio previews need top margin on Edit Media screen.
Fixes #31524.


git-svn-id: https://develop.svn.wordpress.org/trunk@31634 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-05 22:44:17 +00:00
Scott Taylor 78bab0c4eb When adding `post_type` to `$sendback` in `wp-admin/post.php`, use `add_query_arg()` instead of string concatenation.
Props podpirate.
Fixes #31492.


git-svn-id: https://develop.svn.wordpress.org/trunk@31633 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-05 22:30:32 +00:00
Scott Taylor b44cf676b1 In the modal state for Embed previews, only show the Title field when the preview fails.
Props johnbillion, wonderboymusic.
See #29476.


git-svn-id: https://develop.svn.wordpress.org/trunk@31632 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-05 21:02:42 +00:00
Scott Taylor 2d120c988e Whitespace after [31630].
git-svn-id: https://develop.svn.wordpress.org/trunk@31631 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-05 20:13:15 +00:00
Scott Taylor 9539c0af8e Add oEmbed support for Tumblr.
Props elliottcarlson.
See #31180.


git-svn-id: https://develop.svn.wordpress.org/trunk@31630 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-05 20:12:31 +00:00
Boone Gorges 67324a9234 Introduce `$autoload` parameter to `update_option()`.
When creating an option via `add_option()`, the `$autoload` param allows you to
tell WP whether the option should be loaded as part of the 'alloptions' cache
during every pageload. `update_option()`, when used with a non-existent option
calls `add_option()` internally. The new `$autoload` param in `update_option()`
is passed along to `add_option()` in cases where the option does not yet exist.

The associated unit tests are skipped on multisite due to an issue that causes
`WP_INSTALLING` to force cache misses. See #31130.

Props codix, nofearinc, MikeHansenMe.
Fixes #26394.

git-svn-id: https://develop.svn.wordpress.org/trunk@31628 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-05 19:13:00 +00:00
Scott Taylor 9c292553d9 Ugrade to MediaElement 2.16.4:
https://github.com/johndyer/mediaelement/compare/2.16.2...2.16.4

Includes PRs from WordPress folk:
1a74854abf
f438256f5c
8b9856accd

Monkey-patch MediaElement to restore H264 support to Chromium.

Documented here:
https://core.trac.wordpress.org/ticket/31541#comment:1

See #31541.


git-svn-id: https://develop.svn.wordpress.org/trunk@31627 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-05 16:53:27 +00:00
Scott Taylor 214836a843 After [31620], when checking for HTTP URLs, make sure we are checking the shortcode body instead of an indexed attribute.
See #31139.


git-svn-id: https://develop.svn.wordpress.org/trunk@31626 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-05 16:26:00 +00:00
Scott Taylor ef10d719eb When editing/viewing the details of a `[video]` shortcode that has Vimeo as its source, and `Froogaloop` has not already been lazy-loaded, check the details of the state's model for the video `src`, instead of the HTML element.
See #29267.


git-svn-id: https://develop.svn.wordpress.org/trunk@31625 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-05 16:14:13 +00:00
Scott Taylor 21568b8cc1 `detached` affects the `wp()` call for the media list table, so switch our new `$_GET` key to `detach`.
See #6820.


git-svn-id: https://develop.svn.wordpress.org/trunk@31624 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-05 15:58:02 +00:00
Andrew Ozz 889edda453 TinyMCE wpView: revert decoding of HTML entities. Doesn't work in old IE and needs to be more selective. Keep the change from `.html()` to `.text()` when getting the content of a node. See #31412.
git-svn-id: https://develop.svn.wordpress.org/trunk@31621 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-05 12:35:10 +00:00
Scott Taylor 4726669b3f Allow inline editing of `width` and `height` parameters while previewing an embed in the media modal:
* Use `wp.shortcode()` instead of manually constructing a shortcode in `views/embed/link`
* Allow a URL to transition to a shortcode (and vice versa) when returning an embed to TinyMCE
* In `WP_Embed`, store the last URL and last set of attributes requested in class properties
* `wp_ajax_parse_embed()`, allow `[embed]`s to have attributes. Return `attr` in the response.

This is a first pass to allow broad testing with recent MCE view changes. 

See #31139.


git-svn-id: https://develop.svn.wordpress.org/trunk@31620 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-05 05:59:10 +00:00
Scott Taylor 6c8322e8fa Allow attachments to be Detached from their parent in media grid and list modes.
See #6820.


git-svn-id: https://develop.svn.wordpress.org/trunk@31619 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-05 05:34:40 +00:00