Boone Gorges
d1e841c03b
Improvements to wp_make_link_relative().
...
* Support relative URL input.
* When the URL being made relative has another URL as a parameter, don't make the second URL relative.
Props voldemortensen.
Fixes #30373 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30383 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-19 01:52:57 +00:00
Drew Jaynes (DrewAPicture)
c4d33d3d75
Add some missing inline documentation for methods in the WP_Widget class in wp-includes/widgets.php.
...
Props ericlewis, jazzs3quence.
See #30315 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30382 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-18 22:57:34 +00:00
Drew Jaynes (DrewAPicture)
239d04cfae
Add missing documentation for the $password parameter, passed to the check_password hook.
...
Props coffee2code.
Fixes #30311 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30381 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-18 18:55:01 +00:00
Drew Jaynes (DrewAPicture)
a95d33f55a
Clarify/correct inline documentation in wp-includes/l10n.php.
...
* Add a missing `@return` description for `load_default_textdomain()`
* Clarify the `@param` description for `$locale` with an inline `@see` tag
* Ensure the correct parameter variable is used when documenting `$args` for `wp_dropdown_languages()`
Props camdensegal.
Fixes #30385 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30380 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-18 18:46:11 +00:00
Drew Jaynes (DrewAPicture)
aa2c1e6e73
Ensure the mixed type of string|int is reflected on the $title parameter in wp_die().
...
The ability to pass an error code as short-hand to the `$title` and `$args` parameters was added in r30355. Changes also include cleaned-up formatting and line-wraps for other documentation in the DocBlock.
See [30355]. Fixes #10551 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30379 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-18 16:46:36 +00:00
John Blackbourn
8c25a14aa0
Update the inline docs for the keyEvent callback in the media grid.
...
Props adamsilverstein
See #29725
git-svn-id: https://develop.svn.wordpress.org/trunk@30378 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-18 04:28:51 +00:00
John Blackbourn
0297a3c4f6
Avoid re-registering the keydown event controller in the media grid so arrow controls don't skip media items.
...
Fixes #30348
Props UmeshSingla
git-svn-id: https://develop.svn.wordpress.org/trunk@30377 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-18 04:27:12 +00:00
John Blackbourn
01ef72efa4
Improve Thickbox's close button so it can be announced by screen readers.
...
Fixes #29455
Props SergeyBiryukov
git-svn-id: https://develop.svn.wordpress.org/trunk@30376 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-18 03:54:19 +00:00
Gary Pendergast
de33d35d1f
WPDB: When a db.php drop-in is being used, and it doesn't explicitly define itself as connecting to MySQL, skip the character set checks. This ensures that existing drop-ins won't accidentally run checks that they don't support.
...
See #21212 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30375 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-18 03:37:23 +00:00
John Blackbourn
92ae13f0ee
Improve keyboard control of Edit Selection mode in the media manager.
...
See #29326
Props adamsilverstein
git-svn-id: https://develop.svn.wordpress.org/trunk@30374 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-18 03:33:11 +00:00
Lance Willett
9dc0f03b9a
Twenty Fifteen: fix SVN properties.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@30373 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-17 18:26:34 +00:00
Lance Willett
b539bd985b
Twenty Fifteen: pinking shears.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@30372 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-17 18:24:44 +00:00
Lance Willett
9379f1702c
Twenty Ten, Eleven, Thirteen: add bottom margin to audio and video players.
...
Fixes #29146 . Props mikeyarce, gregrickaby, DavidTheMachine, jeanyoungkim, ccprice.
git-svn-id: https://develop.svn.wordpress.org/trunk@30371 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-17 18:09:13 +00:00
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