Commit Graph

6061 Commits

Author SHA1 Message Date
Dominik Schilling (ocean90) 501aeeaaa6 Improve alignment of labels and inputs in Quick Edit.
props mattheu, valendesigns.
fixes #31408.

git-svn-id: https://develop.svn.wordpress.org/trunk@31890 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-25 22:24:37 +00:00
Dominik Schilling (ocean90) e7195da11a Comments List: Don't let "Quick Edit" break on smaller screens.
Other class-wp-*-list-table.php files already contain a non-breaking space for the Quick Edit row action.

props kraftbj.
fixes #31482.

git-svn-id: https://develop.svn.wordpress.org/trunk@31889 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-25 22:14:24 +00:00
Andrew Ozz e12762a76c TinyMCE: make sure the editor is not completely empty before checking if the user clicked above or below a wpView.
Fixes #31765.

git-svn-id: https://develop.svn.wordpress.org/trunk@31888 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-25 18:54:22 +00:00
Dominik Schilling (ocean90) 135be2826d Avoid a PHP notice in `wp_enqueue_script()` if $handle is an array.
Calling `wp_enqueue_script()` with an array as the first argument is a "hidden feature" and should be avoided. Use dependencies instead.

props sorich87 for initial patch.
fixes #31636.
see #14488.

git-svn-id: https://develop.svn.wordpress.org/trunk@31887 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-25 17:54:50 +00:00
Dominik Schilling (ocean90) de328f1a88 Text Widget: Use `!empty()` for checking if the filter setting is set.
props westonruter.
fixes #31690.

git-svn-id: https://develop.svn.wordpress.org/trunk@31886 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-25 17:33:49 +00:00
Dominik Schilling (ocean90) 7a5073020d Customizer: Avoid `SecurityError`s when the Customizer is embedded in an origin other than wp-admin.
props mattwiebe.
fixes #31687.

git-svn-id: https://develop.svn.wordpress.org/trunk@31885 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-25 17:25:01 +00:00
Drew Jaynes bd2d4c8d14 Clean up DocBlock information and syntax for `get_filesystem_method()`.
Props ericlewis, HarishChaudhari, valendesigns.
Fixes #31267.


git-svn-id: https://develop.svn.wordpress.org/trunk@31884 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-25 16:31:15 +00:00
Drew Jaynes 821ca1e93c Ensure the `$wp_hasher` global has an entry in the `check_password_reset_key()` DocBlock.
Props lamosty.
Fixes #31756.


git-svn-id: https://develop.svn.wordpress.org/trunk@31883 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-25 16:23:15 +00:00
Dion Hulse b179fe8e95 When altering the admin URL to reflect the canonical location, keep the existing hash (if present) in the URL.
Fixes #31758. See #23367


git-svn-id: https://develop.svn.wordpress.org/trunk@31882 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-25 04:31:21 +00:00
Gary Pendergast 76eee7be6a Emoji: Add a comment to `print_emoji_detection_script()` explaining how the `include` statement works as part of the `grunt build` process.
See #31701.



git-svn-id: https://develop.svn.wordpress.org/trunk@31881 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-25 04:08:07 +00:00
Andrew Ozz 9ef45a7200 Do not output empty name and id HTML attributes in get_submit_button().
Props afercia. Fixes #31749.

git-svn-id: https://develop.svn.wordpress.org/trunk@31880 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-25 03:22:18 +00:00
Gary Pendergast 87e372299d Emoji: Revert [31877], and print the emoji shim and styles during `admin_print_scripts` and `admin_print_styles`, instead. This is a few milliseconds slower, but easier to reuse in Press This, and any other code that uses admin scripts and styles, without using `admin-header.php`.
See #31701.



git-svn-id: https://develop.svn.wordpress.org/trunk@31879 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-25 01:42:25 +00:00
Andrew Ozz f6e1aeee60 TinyMCE: pad empty paragraphs with `<br>` in Chrome to stop it from inserting non-breaking spaces in them.
Props iseulde. Fixes #31255.

git-svn-id: https://develop.svn.wordpress.org/trunk@31878 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-25 01:17:04 +00:00
Gary Pendergast 12070176d9 Emoji: Print the emoji support shim in wp-admin, too.
See #31701.



git-svn-id: https://develop.svn.wordpress.org/trunk@31877 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-25 01:13:35 +00:00
Gary Pendergast 5a0564bb8f Emoji: Instead of loading the emoji JS files automatically, we now include a small JS shim in the header, to test if the user's browser needs Twemoji. It then loads the emoji JS files only if they're needed.
Props pento, azaozz.

Fixes #31701.



git-svn-id: https://develop.svn.wordpress.org/trunk@31875 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-24 23:32:23 +00:00
Andrew Ozz 8bbb5869e9 TinyMCE: fix error and PHP warning when adding more than one instance in RTL mode.
Part props maimairel. Fixes #31578.

git-svn-id: https://develop.svn.wordpress.org/trunk@31874 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-24 20:32:23 +00:00
Sergey Biryukov ecad13044d Fix a typo in [31872].
see #31738.

git-svn-id: https://develop.svn.wordpress.org/trunk@31873 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-24 17:32:47 +00:00
Aaron Jorbin 0d35447647 Fill `$plugins['upgrade']` with extra info for use in list table
Shiny updates depends upon information from the update_plugins site transient in order to set data- attributes which are used by JavaScript. Since /wp-admin/plugins.php?plugin_status=upgrade uses `$plugin['upgrade']` rather than `$plugins['all']`, we need to fill that information in both places.   

Fixes #31738.



git-svn-id: https://develop.svn.wordpress.org/trunk@31872 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-24 17:29:32 +00:00
John Blackbourn d6b90486d1 Implement an `aria-describedby` attribute for login screen errors, and improve the "Forgot password?" anchor text.
Props aferica, rianrietveld
Fixes #31143


git-svn-id: https://develop.svn.wordpress.org/trunk@31871 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-24 16:28:56 +00:00
Sergey Biryukov de44adee46 Remove obsolete `$wpdb` reference from `get_comments()` docs.
props lamosty.
fixes #31748.

git-svn-id: https://develop.svn.wordpress.org/trunk@31870 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-24 15:42:09 +00:00
Gary Pendergast 22214ffdf9 Emoji: The regex for checking if the current glyph is a flag was checking the incorrect byte range, which was causing the South Korean flag to not be replaced in Firefox.
git-svn-id: https://develop.svn.wordpress.org/trunk@31869 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-24 09:57:44 +00:00
Andrew Ozz defa8b0f96 Press This:
- Fix the links on inserted images to point to the source site.
- Fix inserting of images above the blockquote when the editor has not been focused.
Fixes #31745.

git-svn-id: https://develop.svn.wordpress.org/trunk@31868 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-24 01:32:17 +00:00
Andrew Ozz fc1d327261 Introduce `attachment_url_to_postid` filter to let plugins manage the uploads location better.
Props mattwiebe. Fixes #31717.

git-svn-id: https://develop.svn.wordpress.org/trunk@31867 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-23 17:23:27 +00:00
Drew Jaynes 074eba3a53 4.2-beta2-31866
git-svn-id: https://develop.svn.wordpress.org/trunk@31866 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-23 12:27:08 +00:00
Gary Pendergast 1676dd43b1 Taxonomy List Tables: On mobile devices, hide the slug column, to avoid cramping the action links into two rows.
Props MikeNGarrett.

Fixes #29992.



git-svn-id: https://develop.svn.wordpress.org/trunk@31865 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-23 12:20:11 +00:00
Gary Pendergast b3e3766233 Emoji: Gmail doesn't obey an `<img>`'s inline CSS `height` rule, transforming it to `min-height`. To avoid giant smiley faces everywhere, we're changing the `height` rule to `max-height`, which Gmail plays nicer with.
Props janhenckens.

Fixes #31719.



git-svn-id: https://develop.svn.wordpress.org/trunk@31864 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-23 12:07:47 +00:00
Dion Hulse f0849242d3 Upgrader: When creating a temporary working directory, strip off `.tmp` as well as `.zip` incase we end up using that directory as the items main directory.
Fixes #30945


git-svn-id: https://develop.svn.wordpress.org/trunk@31863 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-23 04:39:56 +00:00
Dion Hulse 9eb9342a54 Remove ambiguity in the time display format in core, switches to using 24hr notation where am/pm isn't specified.
* `H:i - 09:54`
* `g:i a - 9:54 am`
* `F j, Y - January 3, 2015`

These shouldn't be used without a/A (am/AM)
* `h:i - 01:23`
* `G:i - 1:23`

Props iseulde. Fixes #31121


git-svn-id: https://develop.svn.wordpress.org/trunk@31862 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-23 02:13:50 +00:00
Gary Pendergast 4d8a13fe33 Emoji: Set the emoji image protocol with `set_url_scheme()`, instead of defaulting to HTTPS.
Props extendwings.

Fixes #31735.



git-svn-id: https://develop.svn.wordpress.org/trunk@31861 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-23 02:10:35 +00:00
Gary Pendergast 48cb73bba1 Emoji: When we're replacing emoji with `<img>`s in email, we can only do that if the Content-Type is text/html - otherwise, they'll show up in the email as the HTML string.
Fixes #31720 



git-svn-id: https://develop.svn.wordpress.org/trunk@31860 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-22 23:15:34 +00:00
Drew Jaynes c1b0b8e97e Fix a typo in the description for the `_wp_filter_build_unique_id()` DocBlock.
Props lamosty.
Fixes #31732.


git-svn-id: https://develop.svn.wordpress.org/trunk@31859 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-22 22:55:21 +00:00
Andrew Ozz f6aa243908 TinyMCE: fix the icon for the `wp_code` button. Fixes #31733.
git-svn-id: https://develop.svn.wordpress.org/trunk@31858 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-22 22:53:32 +00:00
Helen Hou-Sandi 9822d05f72 Media: Show filename instead of extension in the list table.
This helps differentiate between files with the same or similar image or icon. Extension shows as a part of the filename, and so is not separately needed anymore.

fixes #30943.


git-svn-id: https://develop.svn.wordpress.org/trunk@31857 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-22 11:02:00 +00:00
Andrew Ozz e0e4780c9d TinyMCE: when pasting an URL, check if the node it is pasted at is empty and remove any empty inline child elements.
Fixes #31158.

git-svn-id: https://develop.svn.wordpress.org/trunk@31856 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-20 20:33:55 +00:00
Drew Jaynes 601aee103a Supplement hook documentation for the `get_terms_fields` filter to more clearly explain the expected consequences of using it to modify the fields to select in a terms query.
Props boonebgorges.
Fixes #31174.


git-svn-id: https://develop.svn.wordpress.org/trunk@31855 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-20 20:10:22 +00:00
Drew Jaynes d66fffa31b Document default arguments for `paginate_links()` as a hash notation.
Props atimmer.
Fixes #31433.


git-svn-id: https://develop.svn.wordpress.org/trunk@31854 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-20 20:03:04 +00:00
Drew Jaynes e450904e35 Adjust DocBlocks for `get_|the_post_thumbnail()` to clarify the difference between the 'thumbnail' and 'post-thumbnail' image sizes.
Also fleshes out parameter documentation for the two functions.

Props magicroundabout for the initial patch.
Fixes #31351.


git-svn-id: https://develop.svn.wordpress.org/trunk@31853 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-20 19:56:16 +00:00
Drew Jaynes b939e06b06 Add more verbose inline documentation inside of `wpautop()` to more clearly explain what's going on.
Props ericlewis, johneckman, azaozz.
Fixes #31041.


git-svn-id: https://develop.svn.wordpress.org/trunk@31852 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-20 19:46:41 +00:00
Drew Jaynes 34a7cdf926 Add hook documentation for the `get_media_embedded_in_content_allowed` filter, introduced in [31574].
Props valendesigns.
Fixes #26675.


git-svn-id: https://develop.svn.wordpress.org/trunk@31851 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-20 19:28:30 +00:00
Mark Jaquith 490fb1bf52 Trigger `_doing_it_wrong()` if `register_sidebar()` is not passed an `id`
* If you don't pass an `id`, WP sets an auto-increment one for you.
* But this depends on order of sidebar definition.
* Change the order or remove a sidebar? They jumble.

fixes #31675
props tschutter, valendesigns

git-svn-id: https://develop.svn.wordpress.org/trunk@31850 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-20 18:29:13 +00:00
Lance Willett 1e4238d6a8 Bundled themes: update editor styles to better display images and captions in small screens.
Props jacklenox, see #31250.

git-svn-id: https://develop.svn.wordpress.org/trunk@31849 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-20 16:34:15 +00:00
Gary Pendergast e3b2637699 When converting emoji in email to static images, check that the message is defined, otherwise we could cause PHP warnings.
Props nerrad.

Fixes #31708.




git-svn-id: https://develop.svn.wordpress.org/trunk@31847 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-20 12:31:30 +00:00
Sergey Biryukov 630aac94a3 Remove leading newlines from two translatable strings.
fixes #29480.

git-svn-id: https://develop.svn.wordpress.org/trunk@31844 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-20 02:41:33 +00:00
Sergey Biryukov 5a080ea40f Use bold Arial for RTL headings.
props valendesigns.
fixes #30807.

git-svn-id: https://develop.svn.wordpress.org/trunk@31843 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-20 02:19:02 +00:00
Sergey Biryukov eed94919b0 Bundled themes: After [31453], replace `current()` with `reset()`, which is guaranteed to be the first item.
see #31259, #31260.

git-svn-id: https://develop.svn.wordpress.org/trunk@31842 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-20 02:03:45 +00:00
Sergey Biryukov 850e6b2278 After [31730], replace one more instance of `array_shift()` with `reset()` for better performance.
see #31259, #15459.

git-svn-id: https://develop.svn.wordpress.org/trunk@31841 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-20 01:56:10 +00:00
Sergey Biryukov 56029d4452 Bundled themes: Add trailing slashes to theme URIs to avoid a redirect.
props obenland.
see #31839.

git-svn-id: https://develop.svn.wordpress.org/trunk@31840 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-20 01:31:38 +00:00
Sergey Biryukov 42b0b7f585 Bundled themes: Use SSL for theme and author URIs.
props mercime.
fixes #31699. see #27115.

git-svn-id: https://develop.svn.wordpress.org/trunk@31839 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-20 01:21:50 +00:00
Gary Pendergast 182dd8606e If the URL being visited has non-breaking spaces at the end of it, they were probably inserted by an errant URL copy/paste. Instead of showing a 404 for no obvious reason, let's just trim them.
Fixes #31499



git-svn-id: https://develop.svn.wordpress.org/trunk@31838 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-20 01:01:52 +00:00
Sergey Biryukov 71aa4b15f6 Make a comment clearer (without implying inversed logic) and fix a typo.
see #31645.

git-svn-id: https://develop.svn.wordpress.org/trunk@31837 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-20 00:44:21 +00:00
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