Commit Graph

23546 Commits

Author SHA1 Message Date
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
df9b9dbbed Update wp-tests-config-sample.php to run with WP_DEBUG by default. see #25282.
git-svn-id: https://develop.svn.wordpress.org/trunk@25571 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-23 16:17:59 +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
Dion Hulse
f32eac7a75 Add a svn:ignore property to wp-content, wp-content/plugins, and, wp-content/themes to clean up the output of a svn status, this means that plugins/themes/uploads won't clutter the svn status output. Fixes #25337 See #24976
git-svn-id: https://develop.svn.wordpress.org/trunk@25559 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-22 04:25:14 +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
Scott Taylor
74ec1ce5ed tests/phpunit/data/images/a2-small-100x75.jpg should not be checked in - it is generated in a test method and unlink()'d since [25507].
git-svn-id: https://develop.svn.wordpress.org/trunk@25557 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-21 18:51:55 +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