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
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
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
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)
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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