Commit Graph

23752 Commits

Author SHA1 Message Date
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
564d5a51c2 Reinstate an assertion commented out in [25409]. This test is skipped due to @ticket anyway. see #25282.
git-svn-id: https://develop.svn.wordpress.org/trunk@25440 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-14 19:17:31 +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