Commit Graph

28253 Commits

Author SHA1 Message Date
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 78f496f378 Fix a MySQL warning in the `test_get_adjacent_post_exclude_self_term` unit test, caused by [30400].
See #21212, #22112.


git-svn-id: https://develop.svn.wordpress.org/trunk@30401 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-20 01:47:30 +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
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