Commit Graph

28009 Commits

Author SHA1 Message Date
Drew Jaynes (DrewAPicture) b8c1296e28 Add inline `@see` tags to the docs for the `get_categories_taxonomy` hook.
Props tw2113.
Fixes #30310.


git-svn-id: https://develop.svn.wordpress.org/trunk@30370 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-17 17:36:17 +00:00
Drew Jaynes (DrewAPicture) e4bebb4089 Fix parameter description syntax for `WP_Screen::get_option()`.
Props zrothauser for the initial patch.
See [30368]. Fixes #30363.


git-svn-id: https://develop.svn.wordpress.org/trunk@30369 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-17 17:10:56 +00:00
Drew Jaynes (DrewAPicture) e6538f5e00 Add a missing `@return` description for `WP_Screen::get_option()`.
Also declare the default value for the `$key` parameter.

Props dustyf for the initial patch.
Fixes #30363.


git-svn-id: https://develop.svn.wordpress.org/trunk@30368 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-17 17:07:19 +00:00
Boone Gorges db2bd39770 Add unit test files mistakenly excluded from [30085].
See #9256, #25349.

git-svn-id: https://develop.svn.wordpress.org/trunk@30367 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-17 16:16:01 +00:00
Gary Pendergast 54b2f32180 WPDB: When removing invalid characters from utf8 strings in older versions of PHP, the regex was too large to be compiled.
See #21212


git-svn-id: https://develop.svn.wordpress.org/trunk@30366 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-17 11:57:46 +00:00
Dion Hulse 42c5d77b8c Remove a stray translator comment for a non-translatable string added in [30209] See #27238
git-svn-id: https://develop.svn.wordpress.org/trunk@30365 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-17 04:35:36 +00:00
John Blackbourn c162a0f82e Decode the sample permalink shown to the user. This avoids showing encoded non-Latin characters in the sample permalink.
Fixes #16496
Props linuxologos


git-svn-id: https://develop.svn.wordpress.org/trunk@30364 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-17 02:59:43 +00:00
Andrew Ozz 5a0e9db611 TinyMCE: fix the border on the image toolbar arrow. Props afercia, see #30147.
git-svn-id: https://develop.svn.wordpress.org/trunk@30363 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-17 00:18:49 +00:00
Andrew Ozz 34e409ddd8 Fix typo in [30361], see #30147.
git-svn-id: https://develop.svn.wordpress.org/trunk@30362 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-16 23:14:49 +00:00
Andrew Ozz d2b8163078 TinyMCE: don't show image toolbar for placeholder images. See #30147.
git-svn-id: https://develop.svn.wordpress.org/trunk@30361 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-16 23:11:14 +00:00
John Blackbourn c33b85fd39 Add a filter to the displayed title of the default page template.
Fixes #27178
Props johnstonphilip


git-svn-id: https://develop.svn.wordpress.org/trunk@30360 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-16 19:32:00 +00:00
John Blackbourn 6efcf3e759 Correctly wrap the text in long input labels in the media manager.
Fixes #23003
Props ramiabraham


git-svn-id: https://develop.svn.wordpress.org/trunk@30359 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-16 19:00:04 +00:00
John Blackbourn b5c2b8f9b2 Add `$depth` parameter to the `nav_menu_css_class`, `nav_menu_item_id`, and `nav_menu_link_attributes` filters.
Fixes #19064
Props cyclometh, chriscct7, johnbillion


git-svn-id: https://develop.svn.wordpress.org/trunk@30358 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-16 07:36:52 +00:00
John Blackbourn 0adcbd0094 Add `$user_login` and `$user_data` parameters to the `retrieve_password_message` filter.
Props ivankristianto, dcavins
Fixes #25853


git-svn-id: https://develop.svn.wordpress.org/trunk@30357 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-16 07:24:39 +00:00
John Blackbourn 4e1e4745ff Switch to a `403` response code in places where it is more appropriate than a `500` due to permissions errors.
Fixes #10551
Props nacin


git-svn-id: https://develop.svn.wordpress.org/trunk@30356 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-16 06:15:29 +00:00
John Blackbourn b68026bbfb Allow the response code to be passed as a shorthand to the `$title` or `$args` parameter of `wp_die()`, for brevity.
See #10551 and #11286
Props nacin


git-svn-id: https://develop.svn.wordpress.org/trunk@30355 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-16 06:10:58 +00:00
John Blackbourn 9a043693da Add some specific JSON responses when there are user permission errors for AJAX file uploads. Replace some usage of `wp_json_encode()` with `wp_send_json_*()`.
See #25849
Props gcorne


git-svn-id: https://develop.svn.wordpress.org/trunk@30354 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-16 05:46:35 +00:00
John Blackbourn ee01e3672b Display a faux revision when a post only has one revision but has an autosave.
Fixes #29044
Props adamsilverstein


git-svn-id: https://develop.svn.wordpress.org/trunk@30353 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-16 03:35:37 +00:00
John Blackbourn b4f9310fa6 Avoid adjusting the current submenu position when tabbing through the admin menu.
Fixes #30349
Props 5um17


git-svn-id: https://develop.svn.wordpress.org/trunk@30352 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-16 02:21:30 +00:00
Dominik Schilling (ocean90) 97910f325d Change Twenty Eleven's header preview callback too, missed in [30327].
see #29289.

git-svn-id: https://develop.svn.wordpress.org/trunk@30351 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-15 19:14:24 +00:00
Andrew Ozz 47a4d58d2b Editor: enable spellchecking of the post title field on the Edit Post screen. Props marsjaninzmarsa, fixes #30338.
git-svn-id: https://develop.svn.wordpress.org/trunk@30350 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-15 01:42:17 +00:00
Andrew Ozz 256db7c4cb TinyMCE: fix the cursor appearance while it is outside the editor body. Props miyauchi, fixes #30112.
git-svn-id: https://develop.svn.wordpress.org/trunk@30349 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-15 01:20:41 +00:00
John Blackbourn 16de5ce287 WordPress 4.1-beta1
git-svn-id: https://develop.svn.wordpress.org/trunk@30348 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-14 21:56:08 +00:00
Boone Gorges 69a167688e Flush cache for newly created term in `_split_shared_term()`.
The term itself does not have any cached values yet, but in some cases the new
term's taxonomy may need its cached hierarchy to be refreshed as a result of
the term splitting.

Props jorbin.
See #30335.

git-svn-id: https://develop.svn.wordpress.org/trunk@30347 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-14 21:52:23 +00:00
Gary Pendergast e1ca159011 If a saving a post fails, remove any invalid characters (such as emoji) from the primary text fields, then try to save it again.
See #21212.



git-svn-id: https://develop.svn.wordpress.org/trunk@30346 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-14 21:33:50 +00:00
Gary Pendergast 6df14c1612 When creating a post containing emoji, the post can be saved incorrectly if MySQL isn't using a character set that supports emoji.
This change prevents the save from occurring, so it can be handled correctly in the UI.

See #21212.


git-svn-id: https://develop.svn.wordpress.org/trunk@30345 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-14 21:27:17 +00:00
Boone Gorges ab96cf6614 Reinstate term splitting on term update.
Originally introduced in [30241] and reverted in [30336], term splitting is
back and better than ever. Now with *more unit tests* and *improved treatment
of child terms*!

See #30335.

git-svn-id: https://develop.svn.wordpress.org/trunk@30344 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-14 21:26:48 +00:00
Dominik Schilling (ocean90) 1b1f18baf4 Sync our jQuery UI styles with jQuery UI 1.11.2 CSS.
Removes also our own implementations for touch-action compatibility for IE Touch.

props georgestephanis, ocean90.
fixes #26843.

git-svn-id: https://develop.svn.wordpress.org/trunk@30343 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-14 19:27:38 +00:00
Dominik Schilling (ocean90) 437d90710d Media: Remove another unused string.
props pavelevap.
see #29741.

git-svn-id: https://develop.svn.wordpress.org/trunk@30342 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-14 17:45:39 +00:00
Dominik Schilling (ocean90) fd6bf722b7 Media: Remove unused string.
props pavelevap.
fixes #29741.

git-svn-id: https://develop.svn.wordpress.org/trunk@30341 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-14 17:30:57 +00:00
Andrew Nacin 6e587aed5f Only use the 'Installed' optgroup in wp_dropdown_languages() if it's needed.
see #30335.


git-svn-id: https://develop.svn.wordpress.org/trunk@30340 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-14 03:23:57 +00:00
Andrew Ozz 112061668f TinyMCE: set the image toolbar's z-index higher than the editor when the new DFW is active. See #30147.
git-svn-id: https://develop.svn.wordpress.org/trunk@30339 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-13 23:28:28 +00:00
Mark Jaquith 78f0186866 Introduce Distraction-Free Writing v2, a re-think of DFW that uses the main editor instance
* the "DFW" button is now an auto/off toggle
* defaulting to auto during beta, decide later for release
* "auto" means that DFW gets enabled as you start typing in editor
* tabbing and mousing out will bring the full interface back
* there is a slight grace period during which your mouse can quickly return

Feature plugin work happened here: https://github.com/avryl/focus

props avryl, azaozz, Michael Arestad
fixes #29806

git-svn-id: https://develop.svn.wordpress.org/trunk@30338 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-13 22:30:55 +00:00
Aaron Jorbin b94dd6a7ec When asserting microtime output as a number, make it a number
microtime is by default a string. Doing a greater then or less than check of that string is a bad idea since it uses the first part (the micro part of microtime) rather then the actual time. This adds a helper to convert microtime output into a float which we can then use to properly compare the output of microtime.

This fixes an intermittent test failure.

fixes #30336



git-svn-id: https://develop.svn.wordpress.org/trunk@30337 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-13 22:03:15 +00:00
boonebgorges 805021f406 Don't split shared terms on term update.
Splitting shared terms means assigning a new term_id to a given term_taxonomy_id.
It was uncovered that this change could cause problems for sites that have
cached the original term_id somehow - say, in postmeta - since future lookups
using that term_id will now fail.

Removing for 4.1-beta1. We'll look at improvements to backward compatibility
to try to get this back into a later beta.

Props mboynes.
See #30335.

git-svn-id: https://develop.svn.wordpress.org/trunk@30336 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-13 20:04:02 +00:00
Dominik Schilling (ocean90) dc8e01fa9b Site Language: Install translations on the fly.
The language dropdown now includes installed languages and all available translations when the filesystem is writable by WordPress.
Go to wp-admin/options-general.php, select one of the available translations, submit the form and let WordPress handle the rest.
Works for Multisite's Default Language too.

see #29395.

git-svn-id: https://develop.svn.wordpress.org/trunk@30335 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-13 17:00:08 +00:00
Dominik Schilling (ocean90) 8422a51b98 Improvements to [30333]:
* Move `.hide-if-no-js` class to table row
* Add a wrapper class
* Add missing translators comment

see #30264.

git-svn-id: https://develop.svn.wordpress.org/trunk@30334 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-13 15:53:52 +00:00
John Blackbourn d93bad3cd3 Introduce a button on the user profile screen which clears all other sessions, and on the user editing screen which clears all sessions. Only appears when there are applicable sessions which can be cleared.
See #30264.
Props jorbin, ocean90, johnbillion



git-svn-id: https://develop.svn.wordpress.org/trunk@30333 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-13 15:20:42 +00:00
Dominik Schilling (ocean90) c55a06370b Fix selector for the "Live Widget Previews" feature pointer.
props rzen.
fixes #30158.

git-svn-id: https://develop.svn.wordpress.org/trunk@30332 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-13 12:49:42 +00:00
Dominik Schilling (ocean90) 103788b4ad Twenty Fifteen: Add a transparent border to a link in the footer to avoid jumpiness on hover.
props iamtakashi.
fixes #30332.

git-svn-id: https://develop.svn.wordpress.org/trunk@30331 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-13 12:41:09 +00:00
Dominik Schilling (ocean90) 2aac7ef27c Color Picker: Allow to override `mode` and `width` values for Iris via wpColorPicker options.
props jtsternberg.
fixes #30182.

git-svn-id: https://develop.svn.wordpress.org/trunk@30330 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-13 12:33:27 +00:00
Dominik Schilling (ocean90) 8d476eee4f Customizer: Improve ability to filter active state for widget area Customizer sections.
* Mark panels, sections, controls as active if preview explicitly indicates.
* Introduce `WP_Customize_Sidebar_Section` PHP class, and `SidebarSection` JS class.
* Move logic for determining whether a sidebar section is active from the `SidebarControl` to `SidebarSection`.

props westonruter.
fixes #30235.

git-svn-id: https://develop.svn.wordpress.org/trunk@30329 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-13 12:18:01 +00:00
Boone Gorges 2a941720be Correct `@since` tag in `count_user_posts()` docs.
Props pavelevap, DrewAPicture.
See #21364.

git-svn-id: https://develop.svn.wordpress.org/trunk@30328 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-13 12:14:15 +00:00
Dominik Schilling (ocean90) 8d61151356 Improve keyboard accessibility on Custom Header and Custom Background screen.
props florianziegler.
fixes #29289.

git-svn-id: https://develop.svn.wordpress.org/trunk@30327 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-13 11:59:23 +00:00
Dominik Schilling (ocean90) 9c6b323976 Customizer: Prevent double-encoding in `WP_Customize_Control`.
Control's label and description may include HTML.

fixes #29572.

git-svn-id: https://develop.svn.wordpress.org/trunk@30326 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-13 11:43:06 +00:00
Ian Stewart 6f98ce5a45 Twenty Fifteen: cleaning up JS introduced in r30305 that doesn't pass jshint.
Props boonebgorges, fixes #29988.



git-svn-id: https://develop.svn.wordpress.org/trunk@30325 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-13 03:17:42 +00:00
Ian Stewart d97665d331 Twenty Fifteen: unfix the sidebar if we have a menu with submenus as there is a chance visitors might not be able to scroll down to see submenus in some situations.
Props mattwiebe, fixes #30208.



git-svn-id: https://develop.svn.wordpress.org/trunk@30324 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-13 03:08:21 +00:00
Boone Gorges 5e730a0cf9 Pass query object to 'the_post' filter.
Props tlovett1.
Fixes #30327.

git-svn-id: https://develop.svn.wordpress.org/trunk@30323 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-13 02:24:43 +00:00
Boone Gorges 3544e20e9a Introduce `$post_type` param for `count_user_posts()`.
Props Caspie, engelen, DrewAPicture.
Fixes #21364.

git-svn-id: https://develop.svn.wordpress.org/trunk@30322 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-13 02:18:30 +00:00
Andrew Ozz 403cf989ec Twenty Fifteen: reduce the margins on the editor body in esitor-style.css. Fixes #30331.
git-svn-id: https://develop.svn.wordpress.org/trunk@30321 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-13 02:01:29 +00:00