Commit Graph

714 Commits

Author SHA1 Message Date
Lance Willett dc53919fe3 Twenty Ten: update code comments to reflect WP inline docs standards. Props DrewAPicture, closes #25256.
git-svn-id: https://develop.svn.wordpress.org/trunk@25627 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-25 17:03:34 +00:00
Lance Willett 4a8bf29102 Twenty Twelve: simplify header image check, props obenland. Closes #25400.
git-svn-id: https://develop.svn.wordpress.org/trunk@25626 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-25 16:58:43 +00:00
Lance Willett bd150bd8d6 Twenty Eleven: update code comments to reflect WP inline docs standards. Props DrewAPicture, see #25256.
git-svn-id: https://develop.svn.wordpress.org/trunk@25625 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-25 16:49:36 +00:00
Lance Willett 11a9f047cc Twenty Fourteen: make the content sidebar optional and alter the layout to full-width if the sidebar is not active, but without adding wider featured image (for now). Props iamtakashi, closes #25031.
git-svn-id: https://develop.svn.wordpress.org/trunk@25624 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-25 16:35:26 +00:00
Lance Willett fcd1b02a1d Twenty Fourteen: change the background color a bit more on hover for main navigation submenus. See #25220.
git-svn-id: https://develop.svn.wordpress.org/trunk@25623 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-25 16:28:00 +00:00
Andrew Nacin 1df5d5fa6b Only show top-level items when adding pages to a User's First Nav Menu. (This is also the title of Dave's first children's book.)
props lessbloat.
fixes #25122.


git-svn-id: https://develop.svn.wordpress.org/trunk@25622 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-25 16:22:29 +00:00
Andrew Nacin 57a5269b13 Live network counts of users and sites for small networks.
props adamsilverstein, jeremyfelt.
fixes #22917.


git-svn-id: https://develop.svn.wordpress.org/trunk@25621 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-25 16:20:21 +00:00
Helen Hou-Sandi 99fa347879 Better error messaging on install.php. props DrewAPicture, ocean90. fixes #24982.
git-svn-id: https://develop.svn.wordpress.org/trunk@25620 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-25 16:13:44 +00:00
Helen Hou-Sandi 64b021bbce Simplify the login page viewport meta for mobile devices, so it's less restrictive on the user. Allows for developers to override if necessary via the `login_head` action. props azaozz. fixes #24777.
git-svn-id: https://develop.svn.wordpress.org/trunk@25619 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-25 15:19:11 +00:00
Sergey Biryukov d16e2bc2b1 'sanitize_user' is a filter, not an action. fixes #25411.
git-svn-id: https://develop.svn.wordpress.org/trunk@25618 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-25 03:13:19 +00:00
Andrew Nacin beca878aa6 Clean up the path calculations in wp::parse_request().
props evansolomon for initial cleanup.
fixes #22209.


git-svn-id: https://develop.svn.wordpress.org/trunk@25617 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-25 00:46:39 +00:00
Andrew Nacin 8d72ad52ff Don't rely on include_path to include files.
Always use dirname() or, once available, ABSPATH.

props ketwaroo, hakre.
fixes #17092.


git-svn-id: https://develop.svn.wordpress.org/trunk@25616 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-25 00:17:40 +00:00
Andrew Nacin f7050daeba Use the wpdb method instead of $wpdb->prefix.
props hakre.
fixes #16756.


git-svn-id: https://develop.svn.wordpress.org/trunk@25615 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-24 23:40:41 +00:00
Lance Willett a580e9f3c3 Twenty Fourteen: remove unused images, following r25610. See #25300.
git-svn-id: https://develop.svn.wordpress.org/trunk@25614 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-24 23:06:18 +00:00
Lance Willett 9d5cab1940 Twenty Fourteen: accessibility fix for allowing the search button in the toolbar to be focused with the keyboard. Props joedolson and sabreuse, see #25054.
git-svn-id: https://develop.svn.wordpress.org/trunk@25613 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-24 23:03:14 +00:00
Lance Willett 2e21ea25f5 Twenty Fourteen: fixes for accent color functionality, props celloexpressions. See #25220.
* Apply the primary accent color to the current-time indicator for the `mediaelements` players.
 * Fix instances of the custom accent color CSS overriding white or black link colors that should have no text-color change on hover.
 * Remove text color from main navigation hover states for submenus and from main navigation top-level items.
 * Change the background color a bit more on hover for main navigation submenus.

git-svn-id: https://develop.svn.wordpress.org/trunk@25612 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-24 22:33:37 +00:00
Lance Willett 1b61078658 Twenty Fourteen: fix gap beneath header image, props taupecat. Fixes #25404.
git-svn-id: https://develop.svn.wordpress.org/trunk@25611 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-24 22:20:54 +00:00
Lance Willett f3c37fd5ae Twenty Fourteen: redo the featured image background pattern with CSS plus minor style adjustments. Props iamtakashi, fixes #25300. This also fixes #25363, props buffler.
git-svn-id: https://develop.svn.wordpress.org/trunk@25610 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-24 22:19:08 +00:00
Drew Jaynes c9bf087f36 Clarify inline documentation for the return in `get_attached_file()`.
Fixes #25409.


git-svn-id: https://develop.svn.wordpress.org/trunk@25609 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-24 21:28:35 +00:00
Helen Hou-Sandi ab117ae99c Make sure the attachment file exists before calling filesize() on it. props DrewAPicture. fixes #25170.
git-svn-id: https://develop.svn.wordpress.org/trunk@25608 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-24 20:22:24 +00:00
Andrew Nacin 648af753fd Initialize the filter globals.
props rmccue.
fixes #25378.


git-svn-id: https://develop.svn.wordpress.org/trunk@25607 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-24 19:04:21 +00:00
Andrew Nacin 34e9dc9f06 Introduce wp_get_user_contact_methods() as a public version of _wp_get_user_contactmethods.
props johnnyb.
fixes #24273.


git-svn-id: https://develop.svn.wordpress.org/trunk@25606 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-24 18:13:18 +00:00
Andrew Nacin de89edd699 When is_main_query() is called during the pre_get_posts hook, issue _doing_it_wrong().
The is_main_query() WP_Query method should be used in these instances instead.
see #23329.


git-svn-id: https://develop.svn.wordpress.org/trunk@25605 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-24 17:09:56 +00:00
Lance Willett 3dbcfcdbe4 Twenty Fourteen: simplify header image check, props obenland. See #25400.
git-svn-id: https://develop.svn.wordpress.org/trunk@25604 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-24 17:06:01 +00:00
Lance Willett f83075e3ed Twenty Fourteen: Genericons minor style adjustments, props iamtakashi. See #25085.
git-svn-id: https://develop.svn.wordpress.org/trunk@25603 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-24 16:41:52 +00:00
Helen Hou-Sandi 5ec48f6734 Add classes to menus to indicate that an item has sub-items: `.menu-item-has-children` for `wp_nav_menu()` and `.page_item_has_children` for `wp_page_menu()`. props hotchkissconsulting. fixes #23834.
git-svn-id: https://develop.svn.wordpress.org/trunk@25602 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-24 16:00:14 +00:00
Andrew Nacin 13408ddcbd Introduce a reset_postdata() method on the WP_Query object, which wp_reset_postdata() now wraps.
props ericlewis.
fixes #24785.


git-svn-id: https://develop.svn.wordpress.org/trunk@25601 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-24 15:52:41 +00:00
Andrew Nacin 621f86abfb Context for the signup_hidden_fields hooks.
props jeremyfelt, Cimmo.
fixes #19451.


git-svn-id: https://develop.svn.wordpress.org/trunk@25600 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-24 15:50:06 +00:00
Dion Hulse e4a523977f Automatic Updates: Correct a typo of a constant, s/DISABLE_FILE_MODS/DISALLOW_FILE_MODS/. See #22704
git-svn-id: https://develop.svn.wordpress.org/trunk@25599 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-24 07:15:58 +00:00
Dion Hulse c8251ec989 Automatic Core Updates: Enable Core Automatic Updates for Security releases, Development nightly releases, and, Language packs. See #22704
For more information on Automatic Core Updates, See #22704 and http://wp.me/p2AvED-1Lo



git-svn-id: https://develop.svn.wordpress.org/trunk@25598 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-24 03:35:53 +00:00
Drew Jaynes 1b984a7f05 Improve inline documentation for wp-includes/functions.wp-scripts.php.
Props kpdesign.
Fixes #25402.


git-svn-id: https://develop.svn.wordpress.org/trunk@25597 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-24 02:57:56 +00:00
Andrew Nacin b0717588b7 Introduce register_taxonomy_for_object_type().
props leewillis77.
fixes #11058.


git-svn-id: https://develop.svn.wordpress.org/trunk@25596 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-24 02:54:00 +00:00
Helen Hou-Sandi 3eea90937d Allow all non-visible default row actions in the admin to be accessed via keyboard. fixes #21334.
git-svn-id: https://develop.svn.wordpress.org/trunk@25595 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-24 02:49:30 +00:00
Drew Jaynes d1bd6d8c6f Improve inline documentation for wp-includes/functions.wp-styles.php.
Props kpdesign.
Fixes #25401.


git-svn-id: https://develop.svn.wordpress.org/trunk@25594 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-24 02:23:09 +00:00
Helen Hou-Sandi 7446faa7fb Allow non-visible post row actions to be accessed via keyboard. props adamsilverstein, lessbloat. fixes #21334.
git-svn-id: https://develop.svn.wordpress.org/trunk@25593 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-24 02:03:41 +00:00
Helen Hou-Sandi 9ac7b0ce32 Saner CSS for row actions - now we can just target `.row-actions` instead of both `.row-actions` and `.row-actions-visible`. CSS for `.row-actions-visible` remains for now due to usage in plugins. Visibility is controlled by toggling a `.visible` class. fixes #25403.
git-svn-id: https://develop.svn.wordpress.org/trunk@25592 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-24 01:53:08 +00:00
Andrew Nacin d420b71d52 Ignore unauthorized meta keys in meta_form(). fixes #18786.
git-svn-id: https://develop.svn.wordpress.org/trunk@25591 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-24 01:30:31 +00:00
Andrew Nacin 05c7da77fa Revert [25446] now that `wp_blogs`.`archived` is no longer an ENUM field. see #14511.
git-svn-id: https://develop.svn.wordpress.org/trunk@25590 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-24 01:19:27 +00:00
Drew Jaynes 05ffd2dad0 Inline documentation for hooks in wp-admin/admin-post.php.
Props ericlewis, kpdesign.
Fixes #25361.


git-svn-id: https://develop.svn.wordpress.org/trunk@25589 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-23 23:47:41 +00:00
Drew Jaynes e62fb3972b Inline documentation for the Walker_Comment class in wp-includes/comment-template.php
Fixes #25388.


git-svn-id: https://develop.svn.wordpress.org/trunk@25588 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-23 23:28:41 +00:00
Drew Jaynes 164b32b566 Inline documentation for hooks in wp-admin/includes/revision.php.
Fixes #25283.


git-svn-id: https://develop.svn.wordpress.org/trunk@25587 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-23 22:44:26 +00:00
Drew Jaynes db890b4e75 Standardize usage of 'text domain' in inline documentation for wp-includes/l10n.php.
Props ericlewis, SergeyBiryukov.
Fixes #16750.


git-svn-id: https://develop.svn.wordpress.org/trunk@25586 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-23 22:27:17 +00:00
Andrew Nacin 1929aeb1c3 Avoid a notice. see #14408, [25574].
git-svn-id: https://develop.svn.wordpress.org/trunk@25585 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-23 21:43:25 +00:00
Drew Jaynes b8a50e4cdd Inline documentation for hooks in wp-includes/comment-template.php.
Fixes #25396.


git-svn-id: https://develop.svn.wordpress.org/trunk@25584 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-23 21:20:48 +00:00
Andrew Nacin 169ac00ea5 Return false in update_metadata() and update_metadata_by_mid() when the DB query fails.
props leewillis77.
fixes #24933.


git-svn-id: https://develop.svn.wordpress.org/trunk@25583 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-23 20:31:01 +00:00
Andrew Nacin 164d6cf220 Change 'This post is password protected' to 'This content', for the benefit of custom post types.
props MikeHansenMe.
fixes #23603.


git-svn-id: https://develop.svn.wordpress.org/trunk@25582 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-23 20:28:30 +00:00
Andrew Nacin 17a0ace2a4 Use correct variable. props helen. see #17071.
git-svn-id: https://develop.svn.wordpress.org/trunk@25581 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-23 20:17:37 +00:00
Andrew Nacin 53a59c01a8 Temporary hooks for the widgets feature team in dynamic_sidebar() and is_active_sidebar().
props westonruter.
fixes #25368.


git-svn-id: https://develop.svn.wordpress.org/trunk@25580 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-23 20:13:58 +00:00
Andrew Nacin 740bb2d494 Introduce a wp_count_attachments filter.
props kevinB.
fixes #17071.


git-svn-id: https://develop.svn.wordpress.org/trunk@25579 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-23 19:10:53 +00:00
Andrew Nacin fbc417775d In wp_count_posts(), rename 'count_posts' hook to 'wp_count_posts', for clarity. see #16603.
git-svn-id: https://develop.svn.wordpress.org/trunk@25578 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-23 19:07:08 +00:00
Andrew Nacin 7203c7c012 Introduce a bulk_post_updated_messages filter.
props johnbillion for initial patch.
fixes #18710.


git-svn-id: https://develop.svn.wordpress.org/trunk@25577 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-23 18:52:04 +00:00
Andrew Nacin 9a45c4a414 Pass $taxonomies to two more filters in get_terms().
props johnbillion.
fixes #18754.


git-svn-id: https://develop.svn.wordpress.org/trunk@25576 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-23 18:38:50 +00:00
Drew Jaynes b00509f3b0 Inline documentation for `comment_form()` argument defaults missed in [25573].
See #25388.


git-svn-id: https://develop.svn.wordpress.org/trunk@25575 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-23 17:29:54 +00:00
Andrew Nacin dec1c4d8f2 Set up author data for the author template immediately, rather than waiting for the first the_post() call.
This removes the need to call the_post() and rewind_posts() in an author template to print information about the author.

props obenland.
fixes #14408.


git-svn-id: https://develop.svn.wordpress.org/trunk@25574 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-23 17:21:49 +00:00
Drew Jaynes 9297d23d5a Improve inline documentation of arguments for `comment_form()`.
See #25388.


git-svn-id: https://develop.svn.wordpress.org/trunk@25573 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-23 17:16:01 +00:00
Andrew Nacin 46fef6ef24 Introduce a meta_box_cb argument for register_taxonomy().
The specified callback function is used as the meta box callback for the taxonomy.

props garyc40, helen.
fixes #14206.


git-svn-id: https://develop.svn.wordpress.org/trunk@25572 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-23 17:11:09 +00:00
Andrew Nacin 40131fc188 Remove redundant title attributes.
props sabreuse.
see #24766.


git-svn-id: https://develop.svn.wordpress.org/trunk@25570 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-23 14:50:07 +00:00
Dion Hulse 85feec4df4 Move a certificate higher in the file (end to start) so that PHP 5.2.x (OpenSSL 0.9.8j and earlier) can parse the file correctly. See #25007
git-svn-id: https://develop.svn.wordpress.org/trunk@25569 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-23 13:58:40 +00:00
Dion Hulse aa9a8de56b Language Packs: Integrate Language Packs into the Auto-upgrader. See #18200 See #22704
git-svn-id: https://develop.svn.wordpress.org/trunk@25568 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-23 09:37:25 +00:00
Drew Jaynes 9e36d580e1 Inline documentation improvements for wp-includes/comment-template.php.
Changes include:
- Existing phpdoc block improvements
- Inclusion of defaults for optional parameters
- Hash-notated argument arrays
- Removal of unnecessary or redundant tagging.

Also standardization of int|WP_Post function parameters.

These changes clear the way toward less redundancy for hook docs in a future ticket.

Still left: Fully documented arguments in `comment_form()` and a pass through Walker_Comment.

See #20495. See #25388.


git-svn-id: https://develop.svn.wordpress.org/trunk@25567 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-23 04:15:41 +00:00
Andrew Nacin 330a8daccd Add a language pack upgrader class.
At the conclusion of any upgrade, after the transients are refreshed from the API, pending translations are downloaded and installed to wp-content/languages.

props dd32.
see #18200.


git-svn-id: https://develop.svn.wordpress.org/trunk@25566 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-23 02:07:51 +00:00
Drew Jaynes b28cc74069 Inline documentation for hooks in wp-includes/l10n.php.
Props Nao.
Fixes #25382.


git-svn-id: https://develop.svn.wordpress.org/trunk@25565 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-23 00:37:34 +00:00
Drew Jaynes 9ce3b46e1f Improve inline documentation for wp-trackback.php.
Props kpdesign.
Fixes #25377.


git-svn-id: https://develop.svn.wordpress.org/trunk@25564 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-22 18:38:56 +00:00
Drew Jaynes 24d1818527 Improve inline comment for removing default padding styles for the Toolbar.
Props nofearinc.
Fixes #25373.


git-svn-id: https://develop.svn.wordpress.org/trunk@25563 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-22 14:33:11 +00:00
Dominik Schilling (ocean90) a2cd165b61 Replace !$user_ID with !is_user_logged_in(). props garyc40. see #15508.
git-svn-id: https://develop.svn.wordpress.org/trunk@25562 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-22 10:15:38 +00:00
Drew Jaynes 222c2de402 Improve file header and description in wp-admin/admin-post.php.
Props ericlewis.
Fixes #25362.


git-svn-id: https://develop.svn.wordpress.org/trunk@25561 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-22 05:17:15 +00:00
Dion Hulse 455b8d47a9 First pass at documenting the WP_Filesystem methods. This also introduces stubs of the methods into the base class which are documented, which subclasses can override, some methods were cleaned up at the same time.
See #18476 See #23122. Props kurtpayne, bananastalktome, and, DrewAPicture 


git-svn-id: https://develop.svn.wordpress.org/trunk@25560 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-22 04:43:29 +00:00
Drew Jaynes 05ae44eaca Inline documentation for hooks in wp-admin/includes/ajax-actions.php.
Fixes #25374.


git-svn-id: https://develop.svn.wordpress.org/trunk@25558 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-21 20:46:15 +00:00
Drew Jaynes 8c8a0b990c Make the `WP_List_Table::months_dropdown()` query results filterable.
Introduces the `months_dropdown_results` filter.

Fixes #17022.


git-svn-id: https://develop.svn.wordpress.org/trunk@25556 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-21 18:34:26 +00:00
Scott Taylor 0d5bebfe0e Add an `$args` parameter to `comment_text` and `get_comment_text` filters. Adds filter docs. Improve docblocks for `get_comment_text()` and `comment_text()`.
Props simonwheatley, ericlewis, DrewAPicture.
Fixes #14856. 



git-svn-id: https://develop.svn.wordpress.org/trunk@25555 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-21 18:17:22 +00:00
Scott Taylor 5a74d939ec Add hooks to `wp_count_posts()`. Adds filter docs. Adds unit test to test `count_posts` filter.
Props nacin, DrewAPicture. 
Fixes #16603.



git-svn-id: https://develop.svn.wordpress.org/trunk@25554 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-21 17:54:36 +00:00
Scott Taylor 0d6c7bbbc3 Add `@access private` to `_get_custom_object_labels()`, which was already implied by the dangling underscore. Cast `$labels` to `array` in `get_taxonomy_labels()` and `_get_custom_object_labels()`.
Props nacin, foofy.
Fixes #16310.



git-svn-id: https://develop.svn.wordpress.org/trunk@25553 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-21 17:43:14 +00:00
Scott Taylor 7cca3e427b Alter some text for clarity on the Media Settings page.
Props layotte, DrewAPicture.
Fixes #15732.



git-svn-id: https://develop.svn.wordpress.org/trunk@25552 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-21 17:27:40 +00:00
Scott Taylor 325b1bf175 Ensure that terms with a post count of `0` are not returned in `wp_count_terms()` when `hide_empty => true`. Adds unit test which ensures that `wp_count_terms()` returns `0`.
Props markjaquith.
Fixes #15919.



git-svn-id: https://develop.svn.wordpress.org/trunk@25551 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-21 16:47:43 +00:00
Scott Taylor 825faf32da Use `elseif` when slurping the `nonce` in `check_ajax_referer()` to avoid accidentally overwriting it.
Fail wonderboymusic in [25433].
Props ocean90.
Fixes #25369.
See [25433].



git-svn-id: https://develop.svn.wordpress.org/trunk@25550 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-21 16:25:57 +00:00
Dominik Schilling (ocean90) 5315632f13 Update Jcrop to 0.9.12 (unused in WP core).
fixes #25342.

git-svn-id: https://develop.svn.wordpress.org/trunk@25549 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-21 12:45:47 +00:00
Dominik Schilling (ocean90) 4a1075909e Update imgAreaSelect version in script-loader.php for [25545], see #25370.
git-svn-id: https://develop.svn.wordpress.org/trunk@25548 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-21 12:39:04 +00:00
Dominik Schilling (ocean90) b3c66e7bd0 Image Edit: Replace deprecated $.load() and $.error() methods to prevent warnings by jQuery Migrate, fixes #25371.
git-svn-id: https://develop.svn.wordpress.org/trunk@25547 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-21 11:23:32 +00:00
Dominik Schilling (ocean90) 6e5e69cb85 Trim leading whitespace from AJAX responses.
This fixes the warning "$(html) HTML strings must start with '<' character" by jQuery Migrate when adding nav menu items, post custom fields or comment replies.

fixes #23681.

git-svn-id: https://develop.svn.wordpress.org/trunk@25546 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-21 10:50:09 +00:00
Dominik Schilling (ocean90) 4423693048 Update imgAreaSelect to 0.9.10. fixes #25370.
git-svn-id: https://develop.svn.wordpress.org/trunk@25545 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-21 10:42:55 +00:00
Dion Hulse 24294b97e4 Plugin Update API: Set the translations key to an empty array when the API is unavailable. Props rmmcue. See #18200
git-svn-id: https://develop.svn.wordpress.org/trunk@25544 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-21 09:33:12 +00:00
Dion Hulse f0fa5f821e Add a missing . in the Hook documentation from r25542 See #22704
git-svn-id: https://develop.svn.wordpress.org/trunk@25543 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-21 07:01:23 +00:00
Dion Hulse 6048f75b93 WordPress Core Automatic Updates: Add a filter as to whether or not to send the site administrator a summary of executed updates. Props JustinSainton. See #22704
git-svn-id: https://develop.svn.wordpress.org/trunk@25542 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-21 06:59:25 +00:00
Dion Hulse f377693931 When using download_url(), if the resource supplies a Content-MD5 header, verify the downloaded file against it. Fixes #20074
git-svn-id: https://develop.svn.wordpress.org/trunk@25541 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-21 06:53:50 +00:00
Dion Hulse eb3bee3ba5 Upgrader: Perform a MD5 file verification check on the files during upgrade. This ensures that both a Partial upgrade build can be used, and that all the files were copied into place correctly.
Props pento for initial patch. Fixes #18201


git-svn-id: https://develop.svn.wordpress.org/trunk@25540 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-21 06:48:20 +00:00
Drew Jaynes 38ef3b8f63 Fix spaces to tabs and inline documenation formatting in wp-admin/admin-ajax.php.
See #25229.


git-svn-id: https://develop.svn.wordpress.org/trunk@25539 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-21 05:52:06 +00:00
Drew Jaynes e7bee2709b Inline documentation for hooks in wp-admin/admin-ajax.php.
Props nullvariable for the initial patch.
Fixes #25229.


git-svn-id: https://develop.svn.wordpress.org/trunk@25538 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-21 05:31:09 +00:00
Drew Jaynes 3ffcfbf26b Inline documentation for hooks in wp-activate.php.
Props nullvariable for the initial patch.
See #25229.


git-svn-id: https://develop.svn.wordpress.org/trunk@25537 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-21 05:20:42 +00:00
Andrew Nacin 98f073272d Accept and store translations data from the plugin and theme update check endpoints.
Send site locale. Rename wp_get_installed_language_data() to wp_get_installed_translations().

see #18200.


git-svn-id: https://develop.svn.wordpress.org/trunk@25536 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-21 04:07:34 +00:00
Drew Jaynes 9fd23a65e7 Inline documentation for hooks in wp-includes/canonical.php.
Props dustyf for the initial patch.
See #25229.


git-svn-id: https://develop.svn.wordpress.org/trunk@25535 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-20 23:30:37 +00:00
Drew Jaynes b647fef9d5 Inline documentation for hooks in wp-admin/plugin-editor.php.
Props a.hoereth.
See #25229.


git-svn-id: https://develop.svn.wordpress.org/trunk@25534 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-20 23:17:59 +00:00
Drew Jaynes 4f54475853 Inline documentation for hooks in wp-includes/bookmark-template.php.
Props vinod dalvi, kpdesign.
Fixes #25364.


git-svn-id: https://develop.svn.wordpress.org/trunk@25533 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-20 23:08:50 +00:00
Drew Jaynes 63c1e0ed29 Inline documentation of hooks for wp-includes/feed-rss2-comments.php.
Props dustyf.
See #25229.


git-svn-id: https://develop.svn.wordpress.org/trunk@25532 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-20 23:01:01 +00:00
Drew Jaynes ca9d1fc693 Inline documentation for hooks in wp-includes/feed-atom.php.
Props dustyf.
See #25229.


git-svn-id: https://develop.svn.wordpress.org/trunk@25531 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-20 22:49:36 +00:00
Drew Jaynes ca5eb1e987 Inline documentation for hooks in wp-includes/feed-rss2.php.
Props dustyf for the initial patch.
See #25229.


git-svn-id: https://develop.svn.wordpress.org/trunk@25530 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-20 22:26:08 +00:00
Drew Jaynes c1031877ea Inline documentation for hooks in wp-includes/feed-rss.php.
Props dustyf.
See #25229.


git-svn-id: https://develop.svn.wordpress.org/trunk@25529 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-20 22:09:08 +00:00
Helen Hou-Sandi 5e5480b03e Revert [25031] and [24841] - filling the internal linking search field with selected text has UX and performance issues with no resolution in sight. see #16276.
git-svn-id: https://develop.svn.wordpress.org/trunk@25528 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-20 20:37:26 +00:00
Helen Hou-Sandi afe1b7a6c9 Allow the "Add New" URL on post edit screens to be filtered via `admin_url()`. props SergeyBiryukov, jeremyfelt, c3mdigital. fixes #18504.
git-svn-id: https://develop.svn.wordpress.org/trunk@25527 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-20 20:30:13 +00:00
Helen Hou-Sandi 76cb40634b Make it possible to filter comment screen by post type; no UI. props johnbillion, c3mdigital. fixes #18596.
git-svn-id: https://develop.svn.wordpress.org/trunk@25526 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-20 20:15:51 +00:00
Andrew Nacin 822f6e6746 Add REGEXP to meta queries.
"REGEXP is usually a terrible idea to use, but I see no reason to disallow it."

props wonderboymusic.
fixes #18736.


git-svn-id: https://develop.svn.wordpress.org/trunk@25525 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-20 20:12:11 +00:00
Drew Jaynes a213611e4e Inline documentation for WP_Dependencies and _WP_Dependency classes.
Props kitchin for the initial patch.
Fixes #23914.


git-svn-id: https://develop.svn.wordpress.org/trunk@25524 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-20 19:53:53 +00:00
Lance Willett b0d7ae1450 Twenty Fourteen: remove `rem` units, props iamtakashi. Fixes #25366.
git-svn-id: https://develop.svn.wordpress.org/trunk@25523 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-20 19:36:00 +00:00
Lance Willett dd63691dd4 Twenty Thirteen: update code comments to reflect WP inline docs standards. Props DrewAPicture, see #25256.
git-svn-id: https://develop.svn.wordpress.org/trunk@25522 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-20 19:33:23 +00:00
Lance Willett 69398611c8 Twenty Twelve: update code comments to reflect WP inline docs standards. Props DrewAPicture, see #25256.
git-svn-id: https://develop.svn.wordpress.org/trunk@25521 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-20 19:23:22 +00:00
Andrew Nacin 334edeb32d Send installed language data to the plugin and theme update-check endpoints.
Introduces wp_get_installed_language_data() and wp_get_pomo_file_data().

see #18200.


git-svn-id: https://develop.svn.wordpress.org/trunk@25520 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-20 19:12:45 +00:00
Lance Willett b7a9c6cac9 Twenty Fourteen: first pass at improving responsive patterns and allowing for a full-width layout when no secondary sidebar is present. Props iamtakashi, see #25332.
git-svn-id: https://develop.svn.wordpress.org/trunk@25519 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-20 18:21:30 +00:00
Drew Jaynes c4b9f70f17 Inline documentation for _WP_Dependency class properties.
See #23914.


git-svn-id: https://develop.svn.wordpress.org/trunk@25518 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-20 17:45:30 +00:00
Drew Jaynes 39169ce3cc Inline documentation for WP_Dependencies class properties.
See #23914.


git-svn-id: https://develop.svn.wordpress.org/trunk@25517 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-20 17:43:48 +00:00
Lance Willett b6859d87e9 Twenty Thirteen: fix case where comment layout can break if a really, really long word is in the comment content. Closes #25195 props RDall and obenland.
git-svn-id: https://develop.svn.wordpress.org/trunk@25516 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-20 17:43:15 +00:00
Lance Willett ed6136070f Twenty Thirteen: revert combining two similar `Nothing Found` strings. Closes #24891.
git-svn-id: https://develop.svn.wordpress.org/trunk@25515 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-20 17:33:50 +00:00
Andrew Nacin 3209d0d804 Further adjust the request and response formats for plugin and theme update checks. see #25311.
git-svn-id: https://develop.svn.wordpress.org/trunk@25514 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-20 05:54:41 +00:00
Drew Jaynes 16aee8cdea Inline documentation for hooks in wp-includes/post-thumbnail-template.php.
Props NikV.
See #25229.


git-svn-id: https://develop.svn.wordpress.org/trunk@25513 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-20 02:50:35 +00:00
Drew Jaynes 239226b5be Inline documentation for hooks in wp-admin/plugin-install.php.
Props naomicbush.
See #25229.


git-svn-id: https://develop.svn.wordpress.org/trunk@25512 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-20 02:35:41 +00:00
Drew Jaynes ebf3305722 Inline documentation for hooks in wp-admin/includes/plugin-install.php.
Props naomicbush.
See #25229.


git-svn-id: https://develop.svn.wordpress.org/trunk@25511 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-20 02:21:44 +00:00
Lance Willett d57aaeef25 Twenty Fourteen: first pass at adding a Contributors page template to highlight authors. Props MikeHansenMe, iamtakashi, obenland, and Kuzmanov. See #24863.
git-svn-id: https://develop.svn.wordpress.org/trunk@25510 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-19 21:33:00 +00:00
Helen Hou-Sandi 68f34a5d80 Add a class to the bulk actions wrapper div. props nofearinc. fixes #25197.
git-svn-id: https://develop.svn.wordpress.org/trunk@25509 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-19 21:00:02 +00:00
Lance Willett c1ad2ea70f Twenty Fourteen: revert bad Genericons merge leftovers, see #25085.
git-svn-id: https://develop.svn.wordpress.org/trunk@25508 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-19 18:20:16 +00:00
Lance Willett 93b93fde64 Twenty Fourteen: more Genericons fixes, merging exact files with latest Genericons 3.0 files for consistency and future ease of merging. Props obenland and georgestephanis, fixes #25085.
git-svn-id: https://develop.svn.wordpress.org/trunk@25506 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-19 18:04:57 +00:00
Helen Hou-Sandi c23defe7c3 Restore post formats to bulk editing. props azaozz, SergeyBiryukov, DrewAPicture. fixes #24096.
git-svn-id: https://develop.svn.wordpress.org/trunk@25505 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-19 17:46:25 +00:00
Lance Willett 2c5e59bed3 Twenty Fourteen: remove custom class from pullquotes and apply the same style to all left- and right-aligned quotes in the main content area. Props iamtakashi, fixes #25304.
git-svn-id: https://develop.svn.wordpress.org/trunk@25504 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-19 17:43:03 +00:00
Lance Willett ccb4d33234 Twenty Fourteen: clean up vendor prefixes. Props iamtakashi, fixes #25305.
git-svn-id: https://develop.svn.wordpress.org/trunk@25503 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-19 17:41:28 +00:00
Lance Willett 18a9fcdb67 Twenty Fourteen: remove `optimizeLegibility`. Props iamtakashi, fixes #25306.
git-svn-id: https://develop.svn.wordpress.org/trunk@25502 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-19 17:39:34 +00:00
Lance Willett 0c2365bb18 Twenty Fourteen: add underline style back to links in body text. Props iamtakashi, fixes #25307.
git-svn-id: https://develop.svn.wordpress.org/trunk@25501 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-19 17:37:05 +00:00
Lance Willett 9c45c7da75 Twenty Fourteen: change the background color of author's avatars in comments to black. Props iamtakashi, fixes #25309.
git-svn-id: https://develop.svn.wordpress.org/trunk@25500 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-19 17:35:53 +00:00
Drew Jaynes 3aa2add766 Inline documentation for hooks in wp-admin/admin-header.php.
props ericlewis. Fixes #25353.


git-svn-id: https://develop.svn.wordpress.org/trunk@25499 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-19 16:32:29 +00:00
Drew Jaynes bb42ed6893 Clarify error handling and special cases in the `wp_insert_term()` phpdoc block.
props lgedeon, SergeyBiryukov. See #22801.


git-svn-id: https://develop.svn.wordpress.org/trunk@25498 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-19 16:08:30 +00:00
Sergey Biryukov 24db2253b3 Some more tweaks for the documentation in wp-admin/includes/ms.php. see #25229.
git-svn-id: https://develop.svn.wordpress.org/trunk@25497 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-19 16:05:21 +00:00
Dion Hulse f52d0a96af WordPress Core Automatic Updates: Add a post-upgrade summary email to the WordPress install's admin email address. See #22704
git-svn-id: https://develop.svn.wordpress.org/trunk@25496 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-19 08:45:06 +00:00
Dion Hulse fb0b86a078 Upgrader: Fix the order of arguements passed to wp_parse_args() in the Upgrader, introduced with [25272]. See #22704
git-svn-id: https://develop.svn.wordpress.org/trunk@25495 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-19 08:39:51 +00:00
Drew Jaynes 090b527065 Clarify phpdoc for `get_comment_author_link()`.
props nofearinc. Fixes #24508.


git-svn-id: https://develop.svn.wordpress.org/trunk@25494 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-19 05:55:01 +00:00
Drew Jaynes 799e129e1f Clarify phpdoc descriptions for `esc_attr_x()` and `esc_html_x()`.
props ericlewis. Fixes #24212. 


git-svn-id: https://develop.svn.wordpress.org/trunk@25493 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-19 04:40:37 +00:00
Drew Jaynes b6c078fc00 Add missing `$path` parameter phpdoc for `load_theme_textdomain()`.
see #16750.


git-svn-id: https://develop.svn.wordpress.org/trunk@25492 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-19 04:12:25 +00:00
Drew Jaynes a989e79cf8 Add phpdoc blocks in wp-admin/credits.php.
Props siobhan, markoheijnen.
Fixes #20425.


git-svn-id: https://develop.svn.wordpress.org/trunk@25491 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-19 02:26:24 +00:00
Drew Jaynes 44cd294f64 Add missing phpdoc block for `export_date_options()`.
Props siobhan for the initial patch. See #20425


git-svn-id: https://develop.svn.wordpress.org/trunk@25490 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-19 02:08:53 +00:00
Sergey Biryukov 15265acec5 Update inline documentation for wp_insert_term().
props DrewAPicture.
fixes #22801.

git-svn-id: https://develop.svn.wordpress.org/trunk@25489 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-19 01:56:16 +00:00
Sergey Biryukov a30670afc6 Introduce 'offset' parameter for wp_get_sites().
props jamescollins.
see #14511.

git-svn-id: https://develop.svn.wordpress.org/trunk@25488 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-19 01:46:03 +00:00
Sergey Biryukov ec7af133a5 Use wp_parse_id_list() to parse the 'network_id' parameter in wp_get_sites().
props jamescollins.
see #14511.

git-svn-id: https://develop.svn.wordpress.org/trunk@25487 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-19 01:19:56 +00:00
Sergey Biryukov a4f3fc3489 Update inline documentation for hooks in wp-admin/includes/ms.php.
props jamescollins.
see #25229.

git-svn-id: https://develop.svn.wordpress.org/trunk@25486 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-19 00:04:16 +00:00
Sergey Biryukov 53d0201b7f Make the arguments of 'wp_audio_shortcode_override' and 'wp_video_shortcode_override' more consistent with the ones of 'img_caption_shortcode' and 'post_gallery' filters.
see #25313.

git-svn-id: https://develop.svn.wordpress.org/trunk@25485 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-18 22:05:46 +00:00
Sergey Biryukov 6d8ccb9e36 Replace non-functional 'wp_audio_shortcode_handler' and 'wp_video_shortcode_handler' filters with 'wp_audio_shortcode_override' and 'wp_video_shortcode_override'.
props ericlewis, SergeyBiryukov.
fixes #25313.

git-svn-id: https://develop.svn.wordpress.org/trunk@25484 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-18 21:19:20 +00:00
Scott Taylor 88639cb9b4 Use `wp_parse_args()` again for `$args['rewrite']` in `register_taxonomy()`.
Props SergeyBiryukov.
Fixes #23668.



git-svn-id: https://develop.svn.wordpress.org/trunk@25483 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-18 20:38:53 +00:00
Sergey Biryukov 801f56dec2 Clean up the documentation for hooks in wp-admin/includes/plugin.php.
props DrewAPicture.
see #25229.

git-svn-id: https://develop.svn.wordpress.org/trunk@25482 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-18 19:35:10 +00:00
Sergey Biryukov 8834a52e40 Inline documentation for hooks in wp-admin/includes/ms.php.
props enej, DrewAPicture.
see #25229.

git-svn-id: https://develop.svn.wordpress.org/trunk@25481 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-18 18:21:46 +00:00
Sergey Biryukov a0488fb609 Inline documentation for hooks in wp-links-opml.php.
props netweb.
see #25229.

git-svn-id: https://develop.svn.wordpress.org/trunk@25480 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-18 17:30:23 +00:00
Sergey Biryukov 57413deb42 Inline documentation for hooks in wp-includes/feed-rdf.php.
props dustyf.
see #25229.

git-svn-id: https://develop.svn.wordpress.org/trunk@25479 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-18 16:16:59 +00:00
Sergey Biryukov 959be34093 Correct @since for hooks in wp-includes/class-wp-admin-bar.php. see #25229.
git-svn-id: https://develop.svn.wordpress.org/trunk@25478 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-18 11:57:59 +00:00
Sergey Biryukov 7069b5c47c Correct @since for hooks in wp-admin/includes/plugin.php. see #25229.
git-svn-id: https://develop.svn.wordpress.org/trunk@25477 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-18 11:57:18 +00:00
Peter Westwood 44759b5e1c Clean up the documentation for add_filter and apply_filters.
Fixes #19203 props DrewAPicture, ericlewis


git-svn-id: https://develop.svn.wordpress.org/trunk@25476 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-18 07:47:31 +00:00
Peter Westwood 5331611baa Inline documentation for hooks in wp-includes/class-wp-admin-bar.php
See #25229 props betzster


git-svn-id: https://develop.svn.wordpress.org/trunk@25475 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-18 07:41:54 +00:00
Peter Westwood e71b7b15cf Inline documentation for hooks in wp-admin/includes/plugin.php
See #25229 props dllh


git-svn-id: https://develop.svn.wordpress.org/trunk@25474 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-18 07:37:39 +00:00
Dion Hulse c27b6d968e WP_HTTP: Fix a typo in the naming of WP_HTTP_Streams::verify_ssl_certificate(). Props SergeyBiryukov See #25007
git-svn-id: https://develop.svn.wordpress.org/trunk@25473 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-18 01:50:53 +00:00
Sergey Biryukov 89c1b75ada Deprecate the_attachment_links(), unused since [6910]. props vinod dalvi. fixes #25340.
git-svn-id: https://develop.svn.wordpress.org/trunk@25472 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-17 09:07:12 +00:00
Sergey Biryukov 48be5948d5 Expect a possible array of post types in get_body_class(). props norcross. fixes #25341.
git-svn-id: https://develop.svn.wordpress.org/trunk@25471 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-17 08:49:20 +00:00
Sergey Biryukov 8a46168489 Inline documentation for hooks in wp-admin/user-new.php.
props bftrick.
see #25229.

git-svn-id: https://develop.svn.wordpress.org/trunk@25470 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-17 08:32:07 +00:00
Dion Hulse ea24e2ce0d WordPress Upgrades: When defining the default filesystem permissions for files/directories, base the value on the existing ABSPATH & index.php file permissions - so as to respect the executable bit (if set) and not set global read if not required.
This sets a minimum permission set to 750 and 640 for directories and files, so any systems requring less permission than that will still need to define the constants themselves. Fixes #20069 


git-svn-id: https://develop.svn.wordpress.org/trunk@25469 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-17 08:05:23 +00:00
Dion Hulse ed8f918e4e WordPress Core Automatic Updates: Remove some debug. See #22704
git-svn-id: https://develop.svn.wordpress.org/trunk@25468 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-17 04:07:35 +00:00
Dion Hulse d1dcc8cca3 WordPress Core Automatic Updates: Switch from using a transient for locking the upgrade process, to using a site option. See #22704
git-svn-id: https://develop.svn.wordpress.org/trunk@25467 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-17 02:27:21 +00:00
Dion Hulse 194f6f75ae WordPress Core Automatic Updates: Switch to a twicedaily cronjob to match the update check cron jobs, this removes the ability for update checks to continuously re-queue a upgrade job. See #22704
git-svn-id: https://develop.svn.wordpress.org/trunk@25466 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-17 02:25:17 +00:00
Andrew Nacin 42260988ba If the script_loader_src filter returns nothing, bail instead of printing <script src="">.
props niallkennedy.
fixes #22470.


git-svn-id: https://develop.svn.wordpress.org/trunk@25465 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-16 22:11:12 +00:00
Andrew Nacin b307e1a23f Add documentation for the new flush_rewrite_rules_hard filter. fixes #23491.
git-svn-id: https://develop.svn.wordpress.org/trunk@25464 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-16 21:59:27 +00:00
Helen Hou-Sandi 54c6cd2793 Make sure quick edited non-alternate taxonomy list table rows don't become alternate. props c3mdigital. fixes #25059.
git-svn-id: https://develop.svn.wordpress.org/trunk@25463 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-16 21:10:27 +00:00
Andrew Nacin b5911d622e Update jQuery Form to 3.37.0 (unused in WP core).
props usermrpapa.
fixes #23944.


git-svn-id: https://develop.svn.wordpress.org/trunk@25462 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-16 21:05:35 +00:00
Sergey Biryukov 3af290b2c8 Check if the post type supports title. see #24423.
git-svn-id: https://develop.svn.wordpress.org/trunk@25461 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-16 20:50:11 +00:00
Andrew Nacin 6f09a65bf9 Allow the value attribute for list items processed by kses.
props kraftbj.
fixes #24293.


git-svn-id: https://develop.svn.wordpress.org/trunk@25460 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-16 20:48:36 +00:00
Andrew Nacin fb1759e417 Only focus the title field when it is empty. Remove ancient code that provided for an alternate condition.
props scruffian for initial patches.
props helen.
fixes #24423.


git-svn-id: https://develop.svn.wordpress.org/trunk@25459 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-16 20:36:35 +00:00
Sergey Biryukov 42de3388f9 Update inline documentation for l10n functions. props CharlesClarkson, DrewAPicture. fixes #16750.
git-svn-id: https://develop.svn.wordpress.org/trunk@25458 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-16 20:16:58 +00:00
Sergey Biryukov 7e6d20733e Clarify a string in Network Dashboard help text. props DrewAPicture. see #23163.
git-svn-id: https://develop.svn.wordpress.org/trunk@25457 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-16 20:13:36 +00:00
Andrew Nacin c89f2e38a8 Add nginx detection to the Permalink Settings screen.
Introduces got_url_rewrite() and a corresponding filter, which should now be used in lieu of the got_rewrite filter in got_mod_rewrite().

This does not write or even suggest nginx configuration; rather, it prevents nginx from being considered as either Apache or as an unrecognized server.

props johnbillion.
fixes #25098.


git-svn-id: https://develop.svn.wordpress.org/trunk@25456 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-16 20:06:27 +00:00
Sergey Biryukov 17c772d95b Inline documentation for hooks in wp-includes/load.php.
props mordauk.
see #25229.

git-svn-id: https://develop.svn.wordpress.org/trunk@25455 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-16 18:29:18 +00:00
Andrew Nacin fdc9bc6130 Allow callback args to be passed from wp_add_dashboard_widget() to add_meta_box().
props jdgrimes.
fixes #25152.


git-svn-id: https://develop.svn.wordpress.org/trunk@25454 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-16 18:06:05 +00:00
Andrew Nacin 400e27e71c Let the wp_redirect to media-new.php from post-new.php?post_type=attachment be canceled using the wp_redirect filter.
props DrewAPicture.
fixes #25216.


git-svn-id: https://develop.svn.wordpress.org/trunk@25453 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-16 17:51:58 +00:00
Andrew Nacin e24a1ac0dc Use get_terms() in the ajax tag search.
props Chouby.
fixes #25231.


git-svn-id: https://develop.svn.wordpress.org/trunk@25452 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-16 17:50:16 +00:00
Andrew Nacin 80653c01a1 Always pass integer expirations to cache backends.
props SergeyBiryukov, andreasnrb.
fixes #25308.


git-svn-id: https://develop.svn.wordpress.org/trunk@25451 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-16 17:42:49 +00:00
Andrew Nacin a58d80bbc1 Introduce post_password_expires filter to control the expiration of the post password cookie.
props Viper007Bond for initial patch.
fixes #21466.


git-svn-id: https://develop.svn.wordpress.org/trunk@25450 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-16 17:39:30 +00:00
Sergey Biryukov 80b315f740 Update @since for wp_script_is() and wp_style_is(). props jdgrimes. see #25326.
git-svn-id: https://develop.svn.wordpress.org/trunk@25449 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-16 12:45:54 +00:00
Andrew Nacin 1d80307d5d Multisite blogs table: Convert the archived field from enum to tinyint to match the other status fields. fixes #12832.
git-svn-id: https://develop.svn.wordpress.org/trunk@25448 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-15 23:11:30 +00:00
Dion Hulse 3ec962dd56 WordPress Core Automatic Updates: Remove an accidental closure which isn't supported in PHP 5.2. See #22704
git-svn-id: https://develop.svn.wordpress.org/trunk@25447 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-15 01:25:56 +00:00
Andrew Nacin d06cb2443f Proper treatment of the 'archived' field in wp_get_sites(). see #14511.
git-svn-id: https://develop.svn.wordpress.org/trunk@25446 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-14 23:09:59 +00:00
Andrew Nacin eb2e3536a9 Introduce wp_get_sites(), a long-awaited replacement for get_blog_list().
props jeremyfelt.
see #14511.


git-svn-id: https://develop.svn.wordpress.org/trunk@25445 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-14 21:12:26 +00:00
Andrew Nacin a2892990f1 Introduce a img_caption_shortcode_width filter for controlling the inline style of the image caption shortcode.
props iandunn for the initial patch.
fixes #14380.


git-svn-id: https://develop.svn.wordpress.org/trunk@25444 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-14 20:44:26 +00:00
Andrew Nacin 730574eeb5 Don't allow critical scripts to be deregistered on wp-login.php, just as we do in the rest of the admin.
props atimmer.
fixes #25017.


git-svn-id: https://develop.svn.wordpress.org/trunk@25443 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-14 20:20:46 +00:00
Andrew Nacin db7501f3fa Move to JSON for the plugin and theme update-check API endpoints. see #25311.
git-svn-id: https://develop.svn.wordpress.org/trunk@25442 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-14 19:57:27 +00:00
Andrew Nacin e539910e1a Move to JSON for three api.wordpress.org endpoints. see #25311.
git-svn-id: https://develop.svn.wordpress.org/trunk@25441 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-14 19:30:44 +00:00
Andrew Nacin 7fe981c578 Remove unnecessary printf(). fixes #25321.
git-svn-id: https://develop.svn.wordpress.org/trunk@25439 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-14 19:11:37 +00:00
Scott Taylor 535ae26afd Fix several esoteric errors related to AJAX unit tests for comments:
* `wp_ajax_get_comments()` relies on the `$post_id` global - even though `$_POST['p']` is passed to every action in the test methods. If `$post_id` is still lingering in between tests and doesn't match `p` in the request, the cap check might pass while the queries for comments will blow up. I added `unset( $GLOBALS['post_id'] )` to `Tests_Ajax_GetComments::setUp()`.
* If the global `$post_id` is empty, but `$_REQUEST['p']` is not, `$post_id` is now set to `absint( $_REQUEST['p'] )` and sanity-checked in `wp_ajax_get_comments()`.
* `map_meta_cap()` always assumes that `get_comment()` succeeds when checking for the `edit_comment` cap. It doesn't. I added sanity checks in a few places where it will break early if `get_post()` or `get_comment()` are empty.
* `wp_update_comment()` always assumes `get_comment()` succeeds. It doesn't. I added a check for empty.

All AJAX unit tests run and pass in debug mode. All general unit tests pass against these changes.

Fixes #25282.



git-svn-id: https://develop.svn.wordpress.org/trunk@25438 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-14 18:35:43 +00:00
Dominik Schilling (ocean90) 1de9497eef Add 'image' type/extensions to wp_ext2type() and make it case insensitive. props xparham. fixes #25176.
git-svn-id: https://develop.svn.wordpress.org/trunk@25437 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-14 14:33:19 +00:00
Dion Hulse 87e014a245 Account for Windows and CLI instances in wp_guess_url(). Props SergeyBiryukov. See #25317
git-svn-id: https://develop.svn.wordpress.org/trunk@25436 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-14 03:42:38 +00:00
Sergey Biryukov 64eec20413 Inline documentation for hooks in wp-admin/export.php.
props mordauk.
see #25229.

git-svn-id: https://develop.svn.wordpress.org/trunk@25435 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-14 01:01:49 +00:00
Sergey Biryukov 27d3a78193 Inline documentation for hooks in wp-admin/includes/comment.php.
props mordauk.
see #25229.

git-svn-id: https://develop.svn.wordpress.org/trunk@25434 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-14 01:00:44 +00:00
Scott Taylor 402e61f269 Fix some undefined index notices related to Comment unit tests:
* There are several places where a `$_POST` index was unchecked before setting a variable
* In `wp_notify_postauthor()`, `$comment` was being returned null, but its properties were being accessed.
* In `check_ajax_referer()`, 3 different values can be checked for nonce on `$_REQUEST`, but only 1 had an `isset()`

See #25282.



git-svn-id: https://develop.svn.wordpress.org/trunk@25433 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-13 22:17:51 +00:00
Scott Taylor ac23d53402 * Avoid notices in `tests/ajax/Autosave` by bailing early when `get_post()` returns nothing.
* Check for the existence of `$_POST['catslist']` before using it in `wp_ajax_autosave()`.

See #25282.



git-svn-id: https://develop.svn.wordpress.org/trunk@25430 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-13 21:21:16 +00:00
Sergey Biryukov 1a621e7615 Inline documentation for hooks in wp-includes/author-template.php.
props Frank Klein.
see #25229.

git-svn-id: https://develop.svn.wordpress.org/trunk@25429 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-13 19:24:26 +00:00
Sergey Biryukov 631d5edf3a Inline documentation for get_comment_reply_link() and 'comment_reply_link' filter.
props DrewAPicture.
fixes #25310.

git-svn-id: https://develop.svn.wordpress.org/trunk@25428 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-13 19:19:45 +00:00
Dion Hulse 9c1b30860c Upgrader: Allow plugins to short-circuit the package download. Props rmccue and DrewAPicture. Fixes #22378
git-svn-id: https://develop.svn.wordpress.org/trunk@25427 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-13 12:52:28 +00:00
Dion Hulse 4da6ecff26 WP_HTTP: correct the SSL root certificates property, set svn:eol-style to native, and remove the svn:executable property. See #25007
git-svn-id: https://develop.svn.wordpress.org/trunk@25426 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-13 12:29:27 +00:00
Sergey Biryukov a57529c720 Avoid a PHP warning in network admin if a constant corresponding to a drop-in is not defined. fixes #25301.
git-svn-id: https://develop.svn.wordpress.org/trunk@25425 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-13 09:36:08 +00:00
Sergey Biryukov f2c1db3663 Inline documentation for hooks in wp-admin/ms-delete-site.php.
props NikV.
see #25229.

git-svn-id: https://develop.svn.wordpress.org/trunk@25424 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-13 09:10:18 +00:00
Sergey Biryukov d60cbb399e Inline documentation for hooks in wp-includes/shortcodes.php.
props natejacobs.
see #25229.

git-svn-id: https://develop.svn.wordpress.org/trunk@25423 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-13 09:01:20 +00:00
Dion Hulse 5959a7011b WordPress Core Automatic Updates: Pass the Filesystem path as $context to request_filesystem_credentials(). See #22704
git-svn-id: https://develop.svn.wordpress.org/trunk@25422 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-13 06:52:11 +00:00
Dion Hulse 63956aa479 WordPress Core Automatic Updates: Add the first slice of Automatic Upgrades, This is presently disabled, and requires a filter to enable ( 'auto_upgrade_core' ). See #22704
git-svn-id: https://develop.svn.wordpress.org/trunk@25421 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-13 06:18:16 +00:00
Sergey Biryukov 96d12ddd9d Better alignment for wp_prepare_revisions_for_js() inline docs. see #25283.
git-svn-id: https://develop.svn.wordpress.org/trunk@25420 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-12 23:14:55 +00:00
Sergey Biryukov 529c973323 Inline documentation fixes and additions for wp-admin/revision.php and wp-admin/includes/revision.php.
props adamsilverstein.
see #25283.

git-svn-id: https://develop.svn.wordpress.org/trunk@25419 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-12 22:58:45 +00:00
Lance Willett 9e8bcc8bcd Twenty Fourteen: let authors customize the green "accent" color by changing to a different hex value in the Customizer. Props celloexpressions.
Also add an ID attribute to all `style` elements.

See #25220.

git-svn-id: https://develop.svn.wordpress.org/trunk@25418 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-12 22:05:06 +00:00
Lance Willett 4585c81b37 Twenty Fourteen: prefix Genericons enqueue handle so that the theme uses the its own version of the font CSS. Fixes a few display issues when plugins like Jetpack enqueue a different version of Genericons. See #25085.
git-svn-id: https://develop.svn.wordpress.org/trunk@25417 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-12 21:44:49 +00:00
Andrew Nacin bb2908d613 Clear all transients (regardless of expiration) on all database upgrades. see #20316.
git-svn-id: https://develop.svn.wordpress.org/trunk@25416 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-12 21:13:18 +00:00
Andrew Nacin 8917f2b3bd Add populate_network_meta filter to populate_network().
props jeremyfelt.
fixes #25020.


git-svn-id: https://develop.svn.wordpress.org/trunk@25414 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-12 20:48:20 +00:00
Andrew Nacin 3631b81545 Fix comma placement in [25179].
props gradyetc.
see #15004, fixes #25298.


git-svn-id: https://develop.svn.wordpress.org/trunk@25413 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-12 20:15:30 +00:00
Helen Hou-Sandi 91d14be2e2 No space between // and duplicate_hook. see #25229
git-svn-id: https://develop.svn.wordpress.org/trunk@25412 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-12 18:56:32 +00:00
Helen Hou-Sandi 67633ef09e Inline docs for hooks in `wp-admin/options-writing.php`. props siobhyb. see #25229.
git-svn-id: https://develop.svn.wordpress.org/trunk@25411 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-12 18:52:38 +00:00
Helen Hou-Sandi f72bc15544 Inline docs for hooks in `wp-includes/nav-menu-template.php`. props Faison. see #25229.
git-svn-id: https://develop.svn.wordpress.org/trunk@25410 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-12 18:47:27 +00:00
Lance Willett e89c725696 Twenty Fourteen: fix comment for `twentyfourteen_excerpt_length()`, props SergeyBiryukov. Fixes #25297.
git-svn-id: https://develop.svn.wordpress.org/trunk@25406 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-12 17:43:23 +00:00
Scott Taylor 404fd85586 Fix the failing `Tests_Link::test_wp_get_shortlink()` assertion:
* `wp_get_shortlink()` was firing a notice when reading `$post->ID` while `$post` was null in some cases
* Before the assertions that assume `$GLOBALS['post']` is not set, call `unset( $GLOBALS['post'] );` - there was global spillage from other tests

See #25282.




git-svn-id: https://develop.svn.wordpress.org/trunk@25404 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-12 17:30:01 +00:00
Helen Hou-Sandi 435c2b5686 Add file size to attachment publish meta box. props desrosj. fixes #25170.
git-svn-id: https://develop.svn.wordpress.org/trunk@25403 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-12 15:09:35 +00:00
Andrew Nacin 1851da1382 Return false from wp_get_original_referer() if it is called before wp_validate_redirect() is defined.
see #25294.


git-svn-id: https://develop.svn.wordpress.org/trunk@25400 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-12 13:35:35 +00:00
Andrew Nacin cc5477c7d9 Return false from wp_get_referer() if it is called before wp_validate_redirect() is defined.
see #25294.


git-svn-id: https://develop.svn.wordpress.org/trunk@25399 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-12 13:32:41 +00:00
Scott Taylor 3ae18e68ff * Fill in undefined var in `Tests_Option_BlogOption`
* Add `defined()` check for `BLOGSUPLOADDIR`
* Suppress deprecated function notices for `is_blog_user()` and `get_dashboard_blog()`
* Check existence of `$user` in `wpmu_log_new_registrations()` before arbitrarily making a database query

Fixes all notices in multisite unit tests.

See #25282.



git-svn-id: https://develop.svn.wordpress.org/trunk@25397 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-12 07:16:30 +00:00
Dion Hulse cccac649d5 Fix wp_guess_url() to work in every scenario I could find, allows us to use it to determine the correct path to the WordPress Site URL before installation for install.php and setup-config.php redirects. Fixes #24480 Fixes #16884
git-svn-id: https://develop.svn.wordpress.org/trunk@25396 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-12 06:56:20 +00:00
Scott Taylor d1d5bcf036 * Add `isset()` checks all over `WP_User_Query::prepare_query()` and `WP_User_Query::query()`. When a `WP_User_Query` instance is constructed without passing args, no query vars are filled in, thus `$qv` doesn't contain most of the expected indices.
* Suppress an undefined index notice in `tests/user/query.php`

Fixes #25292.
See #25282.



git-svn-id: https://develop.svn.wordpress.org/trunk@25392 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-12 06:24:09 +00:00
Scott Taylor c5c88eb85b Add sanity checks to `get_*_template()` functions to ensure that the return value of `get_queried_object()` is compatible with the assumed context.
Fixes #25291.
See #25282.



git-svn-id: https://develop.svn.wordpress.org/trunk@25386 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-12 05:31:14 +00:00
Dion Hulse 66aa532da5 When the WordPress files are in a subdirectory, correctly redirect the user to the setup-config.php page from the parent directories index.php. Fixes #24480
git-svn-id: https://develop.svn.wordpress.org/trunk@25385 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-12 05:12:51 +00:00
Scott Taylor f9877147f6 Use `reset()` to access the first element of an array, don't assume there is an item at index `0`.
See #25282.



git-svn-id: https://develop.svn.wordpress.org/trunk@25384 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-12 05:08:33 +00:00
Sergey Biryukov 1b012770eb Inline documentation for hooks in wp-admin/options.php.
props siobhyb.
see #25229.

git-svn-id: https://develop.svn.wordpress.org/trunk@25372 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-12 03:43:48 +00:00
Helen Hou-Sandi f1ef5c0e23 Indicate that the fall-through in `is_serialized()` is deliberate. fixes #24023.
git-svn-id: https://develop.svn.wordpress.org/trunk@25371 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-12 03:40:25 +00:00
Sergey Biryukov a56e83373d Consistently call skin methods in WP_Upgrader. fixes #25254.
git-svn-id: https://develop.svn.wordpress.org/trunk@25370 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-12 02:42:10 +00:00
Sergey Biryukov c05412b16c Fix invalid markup when searching for installed themes. fixes #25288.
git-svn-id: https://develop.svn.wordpress.org/trunk@25369 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-12 00:03:01 +00:00
Scott Taylor d091e1d0b7 Avoid a notice by casting `$args['rewrite']` to `array()` before adding a `slug` property and running `array_merge()`.
Fixes #23668.



git-svn-id: https://develop.svn.wordpress.org/trunk@25351 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-11 17:17:00 +00:00
Dion Hulse 23d3b372d7 Fix the action that `set_site_transient()` fires so as not to include the private option prefix. This brings set_site_transient() back in line with it's documented behaviour, and the behaviour of all other transient functions. Fixes #25213
git-svn-id: https://develop.svn.wordpress.org/trunk@25350 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-11 08:45:43 +00:00
Dion Hulse ea6da7d5dc Make use of the mbstring.func_overload helper functions in WP_Filesystem so byte lengths are properly determined. See #25259 Fixes #25237
git-svn-id: https://develop.svn.wordpress.org/trunk@25349 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-11 08:26:57 +00:00
Dion Hulse 7ebad3db1c Switch WP_HTTP over to using the mbstring.func_overload helper functions. This change moves the check from within the Streaming-handling function to wrap the individual request, this fixes it for both cURL and Streams and any future changes to the transports which use strlen() on binary data. See #25259 See #16057
git-svn-id: https://develop.svn.wordpress.org/trunk@25348 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-11 08:12:24 +00:00
Dion Hulse 47c25b41af Switch unzip_file() over to using the mbstring.func_override helper functions. See #25259
git-svn-id: https://develop.svn.wordpress.org/trunk@25347 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-11 08:08:35 +00:00
Dion Hulse 052d276215 Add a set of helpers to turn the behaviour of mbstring.func_overload off when needed. Fixes #25259
git-svn-id: https://develop.svn.wordpress.org/trunk@25346 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-11 07:22:05 +00:00
Andrew Nacin a1470e6161 Avoid error in ms-files.php after [25317].
git-svn-id: https://develop.svn.wordpress.org/trunk@25344 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-11 04:48:43 +00:00
Andrew Nacin adf6fab55b Bump version in trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@25343 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-11 04:19:36 +00:00
Andrew Nacin 1848709736 SimplePie: Fix use of DOMElement as array.
props MikeSchinkel.
fixes #25274.


git-svn-id: https://develop.svn.wordpress.org/trunk@25342 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-11 04:01:44 +00:00
Andrew Nacin 760e9e02d1 Avoid string offset notices in [25319].
git-svn-id: https://develop.svn.wordpress.org/trunk@25340 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-11 03:57:00 +00:00
Andrew Nacin 3b314a0adf Improve clarity and speed of [25320].
git-svn-id: https://develop.svn.wordpress.org/trunk@25338 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-11 03:22:09 +00:00
Andrew Nacin cedb15724a Bump TinyMCE version for [25132]. See #25131.
git-svn-id: https://develop.svn.wordpress.org/trunk@25337 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-11 02:43:12 +00:00
Scott Taylor 3ee8135baa Don't call `sanitize_title_with_dashes( $taxonomy )` in `register_taxonomy()` unless `$args['rewrite']['slug']` is empty.
Props SergeyBiryukov.
Fixes #23668.



git-svn-id: https://develop.svn.wordpress.org/trunk@25335 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-11 00:08:04 +00:00
Scott Taylor 0c0c81d81c Add `term_taxonomy_id` to available fields in `get_term_by()`. Adds unit test.
Props jchristopher.
Fixes #21651.



git-svn-id: https://develop.svn.wordpress.org/trunk@25334 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-11 00:01:19 +00:00
Scott Taylor a963ab0852 Remove dead code in `add_query_arg()`.
Props hakre, c3mdigital.
Fixes #16942.



git-svn-id: https://develop.svn.wordpress.org/trunk@25333 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-10 23:37:23 +00:00
Scott Taylor 1a46a76c18 Use `wp_get_nav_menus()` instead of `get_terms('nav_menu')` in `WP_Nav_Menu_Widget` to preserve use of `wp_get_nav_menus' filter.
Props Frank Klein.
Fixes #25263.



git-svn-id: https://develop.svn.wordpress.org/trunk@25332 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-10 23:29:04 +00:00
Scott Taylor d738f5e586 Support `orderby => meta_value` in `WP_User_Query`. Adds unit test.
Props wpsmith.
Fixes #21581.



git-svn-id: https://develop.svn.wordpress.org/trunk@25331 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-10 23:09:10 +00:00
Scott Taylor 270cc9702d Check `$profileuser->rich_editing` for empty before using it in Edit User admin code.
Props sorich87, c3mdigital.
Fixes #17328.



git-svn-id: https://develop.svn.wordpress.org/trunk@25330 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-10 22:48:27 +00:00
Scott Taylor c71a0422c0 Add an additional available param (the `WP_User` instance) to the `user_has_cap` filter.
Props Viper007Bond.
Fixes #24490.



git-svn-id: https://develop.svn.wordpress.org/trunk@25329 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-10 22:22:34 +00:00
Scott Taylor 4fccea305f Add filter `flush_rewrite_rules_hard` to give devs chance to prevent writing to file when hard-flushing rewrite rules.
Props jeremyfelt, nacin.
Fixes #23491.



git-svn-id: https://develop.svn.wordpress.org/trunk@25328 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-10 22:18:21 +00:00
Scott Taylor a98660d517 Introduce `get_previous_post_link()`, `get_next_post_link()`, and `get_adjacent_post_link()`. Allows developers to retrieve the value without `echo`ing.
Props yoavf, markjaquith, SergeyBiryukov.
Fixes #17302.



git-svn-id: https://develop.svn.wordpress.org/trunk@25327 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-10 22:11:53 +00:00
Andrew Nacin 9d7689c4ba Loose validation for is_serialized() in maybe_serialize().
git-svn-id: https://develop.svn.wordpress.org/trunk@25320 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-10 18:09:36 +00:00
Andrew Nacin 0281fc61da Better protocol validation in set_url_scheme().
git-svn-id: https://develop.svn.wordpress.org/trunk@25319 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-10 18:07:19 +00:00
Andrew Nacin ac3361e997 Validate referrers to prevent off-domain redirects.
git-svn-id: https://develop.svn.wordpress.org/trunk@25318 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-10 18:06:43 +00:00
Andrew Nacin 31482a7968 Tighten allowed upload file types.
git-svn-id: https://develop.svn.wordpress.org/trunk@25317 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-10 18:03:26 +00:00