John Blackbourn
b670f503e5
Introduce two new filters to the post revisions screen:
...
* `process_text_diff_html` for contextually filtering a diffed line. Allows for the line to be processed in a different manner to the default `htmlspecialchars`.
* `revision_text_diff_options` for filtering the options passed to `wp_text_diff()` when viewing a post revision.
Fixes #24908
Props adamsilverstein
git-svn-id: https://develop.svn.wordpress.org/trunk@30396 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-19 23:20:07 +00:00
John Blackbourn
8e3b2a3b00
Slide the admin menu out to the right when DFW mode kicks in and RTL is in use.
...
Fixes #30356
Props yoavf
git-svn-id: https://develop.svn.wordpress.org/trunk@30395 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-19 22:45:43 +00:00
Ian Stewart
fd6fc9ae52
Twenty Fifteen: doc cleanup, addresses removing periods from file header summaries, some spacing, loop documentation, and https instead of http.
...
Props DrewAPicture, MikeHansenMe, see #30149 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30394 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-19 20:27:09 +00:00
Helen Hou-Sandi
db97a05fce
Accessibility: hide admin menu separators from screen readers.
...
props afercia. fixes #30010 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30393 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-19 19:36:43 +00:00
Boone Gorges
c002bcf27e
Better test method name in formatting/IsEmail.php.
...
Props dlh.
Fixes #30397 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30392 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-19 19:31:17 +00:00
Ian Stewart
0462166cec
Twenty Fifteen: Check if we're in the customizer before we avoid outputting HTML for an empty tagline. Avoids an issue with a not-updating customizer preview of the tagline if you're going in with an empty tagline.
...
Props philiparthurmoore, celloexpressions, fixes #30358 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30391 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-19 18:40:25 +00:00
Lance Willett
c5276922ef
Twenty Thirteen: replace ellipses appended to automatically generated excerpts with both ellipses and a "Continue Reading" link to meet accessibility-ready requirements.
...
Props davidakennedy, lancewillett. Fixes #30178 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30390 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-19 18:34:45 +00:00
Lance Willett
05c0f89a77
Twenty Fourteen: replace ellipses appended to automatically generated excerpts with both ellipses and a "Continue Reading" link to meet accessibility-ready requirements.
...
Props davidakennedy, lancewillett. Fixes #30176 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30389 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-19 18:26:17 +00:00
Ian Stewart
0a4c24f0dc
Twenty Fifteen: Making the sidebar sticky for everyone. When we have a long sidebar, let it scroll with the content, but fixing the sidebar and no longer scrolling when we get to the end of the sidebar content. Scroll up and the sidebar starts scrolling up to, eventually staying fixed when it gets back to the top.
...
Props celloexpressions, avryl, fixes #30366 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30388 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-19 18:22:15 +00:00
Lance Willett
68ea097c59
Twenty Fourteen: improve post thumbnail HTML output.
...
* Add `aria-hidden` attribute to reduce verbosity on archive pages.
* Add alt text in archives to avoid confusing link texts, see #30076 for context in Twenty Fifteen.
Props hiwhatsup, joedolson. Fixes #30144 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30387 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-19 18:11:39 +00:00
Lance Willett
70a27aca29
Twenty Thirteen: fix non-responsive layout in IE8. Props phpmypython, fixes #24194 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@30386 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-19 18:06:01 +00:00
Andrew Ozz
5740d2206b
TinyMCE: fix the tooltip for 'alignnone' button on the image toolbar. Props johnbillion, see #30147 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@30385 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-19 17:26:18 +00:00
Dion Hulse
9d0c957410
Background Updates: Introduce support to take advantage of Group Writable (or World Writable) to Core Background updates.
...
This is only enabled when new files will not be installed during the update (as indicated by the WordPress.org API), and does not apply to Plugin/Theme/Translation Background Updates.
Additionally, the code to determine if the 'direct' filesystem transport should be used has been tweaked for wider support (where getmyuid() was unavailalbe) which fixes #10424
See #10205 , #30245
git-svn-id: https://develop.svn.wordpress.org/trunk@30384 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-19 05:39:52 +00:00
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