Commit Graph

4847 Commits

Author SHA1 Message Date
Helen Hou-Sandi
00053abb4c Media a11y: Don't set role=checkbox for the attachment details view.
Some unnecessary attributes were inherited from the attachment view, which created difficulties with screen readers.

fixes #30390.


git-svn-id: https://develop.svn.wordpress.org/trunk@30483 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-20 17:14:11 +00:00
Lance Willett
fed984a90c Twenty Twelve and Thirteen: Use proper way to get customizer settings values.
Props obenland, kdoran. Fixes #29577.

git-svn-id: https://develop.svn.wordpress.org/trunk@30482 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-20 17:05:27 +00:00
John Blackbourn
9aa0e31b28 WordPress 4.1-beta2
git-svn-id: https://develop.svn.wordpress.org/trunk@30481 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-20 16:52:54 +00:00
John Blackbourn
8fe059d426 Correct an SQL syntax error introduced in r30158. Adds tests.
Fixes #30339
See #18962
Props julien731


git-svn-id: https://develop.svn.wordpress.org/trunk@30480 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-20 16:45:48 +00:00
Ian Stewart
4dd55dcced Twenty Fifteen: bring back the border between post navigation links we lost in the_post_navigation changes.
Props iamtakashi, fixes #30414.



git-svn-id: https://develop.svn.wordpress.org/trunk@30479 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-20 16:40:29 +00:00
Andrew Nacin
aec2f2654e Prevent high resource usage when hashing large passwords. props mdawaffe, pento
git-svn-id: https://develop.svn.wordpress.org/trunk@30466 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-20 16:02:55 +00:00
Dominik Schilling (ocean90)
e1d16e8080 Simplify selectors in [30374].
props wonderboymusic, adamsilverstein.
see #29326.

git-svn-id: https://develop.svn.wordpress.org/trunk@30461 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-20 15:36:20 +00:00
Dominik Schilling (ocean90)
bf014b7e30 grunt autoprefixer for [30374].
see #29326.

git-svn-id: https://develop.svn.wordpress.org/trunk@30460 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-20 15:30:49 +00:00
Dominik Schilling (ocean90)
df884cb92e Customizer: Use deep-links for Backgrounds, Headers, and Widgets.
Replace links in admin menu and toolbar to Custom Background/Header screen with deep-links to the Customizer section.
On the Widgets screen display a link to the Customizer widgets panel.

props topher1kenobe, rzen, celloexpressions, westonruter
fixes #25569, #25571, #28032.

git-svn-id: https://develop.svn.wordpress.org/trunk@30459 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-20 15:28:55 +00:00
Andrew Nacin
05facab3d6 Validate image data.
git-svn-id: https://develop.svn.wordpress.org/trunk@30458 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-20 15:24:40 +00:00
John Blackbourn
cb41099935 Improvements to the output of the new post navigation template functions, including swapping the position of the previous and next links.
See #29808
Props obenland


git-svn-id: https://develop.svn.wordpress.org/trunk@30457 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-20 15:18:53 +00:00
Andrew Nacin
fb28a78331 Anchor texturize to shortcodes to improve regex efficiency.
props miqrogroove.
see #29557 for segfault issues.


git-svn-id: https://develop.svn.wordpress.org/trunk@30449 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-20 14:27:08 +00:00
Andrew Nacin
5db0ce11fb Better validation of the URL used in core HTTP requests.
git-svn-id: https://develop.svn.wordpress.org/trunk@30443 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-20 14:00:26 +00:00
Andrew Nacin
7e75ef00d2 Press This: Ensure the error message is printed. props johnbillion
git-svn-id: https://develop.svn.wordpress.org/trunk@30438 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-20 13:57:12 +00:00
Andrew Nacin
45d6c62707 TinyMCE: Verify HTML in captions. props azaozz
git-svn-id: https://develop.svn.wordpress.org/trunk@30435 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-20 13:48:20 +00:00
Andrew Nacin
d2b4df2d4f Invalidate password keys when a user's email changes.
git-svn-id: https://develop.svn.wordpress.org/trunk@30430 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-20 13:39:03 +00:00
Andrew Nacin
7e830d4a4a Fix typo in style filter. props miqrogroove
git-svn-id: https://develop.svn.wordpress.org/trunk@30425 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-20 13:15:00 +00:00
Andrew Nacin
912dbf3fd0 Playlists are video by default. props duck_
git-svn-id: https://develop.svn.wordpress.org/trunk@30422 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-20 13:10:45 +00:00
Andrew Nacin
1023d2bc60 Form validation for password resets.
git-svn-id: https://develop.svn.wordpress.org/trunk@30417 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-20 12:21:45 +00:00
Andrew Nacin
cff531489f Use hash_equals() for old md5 hashes.
git-svn-id: https://develop.svn.wordpress.org/trunk@30412 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-20 11:48:11 +00:00
Dion Hulse
54dff60079 Bump the $wp_version.
This version string controls more than you might first imagine, but the important thing to note for now, is that this needs to contain a revision number in order for nightly builds to include a revision number.
If a nightly build doesn't include a revision number, Background Updates won't occur for Development users (after all, 4.1-beta1 == 4.1-beta1, which is already installed).
See #30405


git-svn-id: https://develop.svn.wordpress.org/trunk@30411 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-20 11:35:07 +00:00
Jeremy Felt
3223d4a4b3 Prevent wpmu_delete_blog from removing the wrong uploads directory
`wp_upload_dir()` includes some logic to fall back to the default site's upload directory if a specific directory for the requested site cannot be found. Because of this, if `wpmu_delete_blog()` is fired twice in a row for the same site, the main site's upload directory could be deleted as well.

This adds some checks in `wpmu_delete_blog()` so that we are confident in the site and it's upload directory's existence before dropping the site. Tests are added for when `ms_files_rewriting` is enabled or disabled.

Fixes #30121


git-svn-id: https://develop.svn.wordpress.org/trunk@30404 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-20 06:52:07 +00:00
John Blackbourn
642f9cc7e7 Apply a filter to the <script> tag for enqueued scripts in the same way a filter is applied to the <link> tag for enqueued styles.
Fixes #13592
Props quietnic, MikeHansenMe


git-svn-id: https://develop.svn.wordpress.org/trunk@30403 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-20 05:17:42 +00:00
Boone Gorges
10b611b0c3 Return an empty array from get_approved_comments() when $post_id is empty.
This behavior was broken when moving the internals to `WP_Comment_Query` in
[30098]. As a result, `get_approved_comments( 0 )` was fetching *all* approved
comments, causing performance issues.

Props dd32.
Fixes #30412.

git-svn-id: https://develop.svn.wordpress.org/trunk@30402 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-20 01:51:38 +00:00
Gary Pendergast
cabcace53c WPDB: Force STRICT_ALL_TABLES to be enabled as soon as we connect to the MySQL server.
This improves data integrity when inserting and updating rows in the database, particularly when trying to insert emoji into posts stored with character sets that don't support emoji.

See #21212.


git-svn-id: https://develop.svn.wordpress.org/trunk@30400 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-20 01:45:10 +00:00
Ian Stewart
4a4c9d7667 Twenty Fifteen: Removing unneeded CSS from RTL causing odd hover effects.
Props yoavf, iamtakashi, fixes #30360.




git-svn-id: https://develop.svn.wordpress.org/trunk@30399 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-20 01:38:15 +00:00
Ian Stewart
43ccdeebd0 Twenty Fifteen: escaping here breaks color schemes.
Props celloexpressions, iamtakashi, fixes #30409.




git-svn-id: https://develop.svn.wordpress.org/trunk@30398 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-20 01:34:56 +00:00
Andrew Ozz
7137f26a5b TinyMCE: update to the latest dev. version, 4.1.6+. Fixes #30411.
git-svn-id: https://develop.svn.wordpress.org/trunk@30397 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-20 00:49:38 +00:00
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
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
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
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
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