Sergey Biryukov
e6cef58106
Clean up the documentation for hooks in wp-admin/includes/plugin.php.
...
props DrewAPicture.
see #25229 .
Built from https://develop.svn.wordpress.org/trunk@25482
git-svn-id: http://core.svn.wordpress.org/trunk@25403 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-18 19:36:09 +00:00
Sergey Biryukov
37e3b91285
Inline documentation for hooks in wp-admin/includes/ms.php.
...
props enej, DrewAPicture.
see #25229 .
Built from https://develop.svn.wordpress.org/trunk@25481
git-svn-id: http://core.svn.wordpress.org/trunk@25402 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-18 18:22:09 +00:00
Sergey Biryukov
31ddfcca58
Correct @since for hooks in wp-admin/includes/plugin.php. see #25229 .
...
Built from https://develop.svn.wordpress.org/trunk@25477
git-svn-id: http://core.svn.wordpress.org/trunk@25398 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-18 11:58:10 +00:00
Peter Westwood
8f621ffc78
Inline documentation for hooks in wp-admin/includes/plugin.php
...
See #25229 props dllh
Built from https://develop.svn.wordpress.org/trunk@25474
git-svn-id: http://core.svn.wordpress.org/trunk@25395 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-18 07:38:12 +00:00
Sergey Biryukov
14db24911f
Deprecate the_attachment_links(), unused since [6910]. props vinod dalvi. fixes #25340 .
...
Built from https://develop.svn.wordpress.org/trunk@25472
git-svn-id: http://core.svn.wordpress.org/trunk@25393 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-17 09:08:08 +00:00
Sergey Biryukov
637fa4f1af
Inline documentation for hooks in wp-admin/user-new.php.
...
props bftrick.
see #25229 .
Built from https://develop.svn.wordpress.org/trunk@25470
git-svn-id: http://core.svn.wordpress.org/trunk@25391 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-17 08:33:10 +00:00
Dion Hulse
f98f5d0a36
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
Built from https://develop.svn.wordpress.org/trunk@25469
git-svn-id: http://core.svn.wordpress.org/trunk@25390 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-17 08:06:09 +00:00
Dion Hulse
59d5e858f7
WordPress Core Automatic Updates: Remove some debug. See #22704
...
Built from https://develop.svn.wordpress.org/trunk@25468
git-svn-id: http://core.svn.wordpress.org/trunk@25389 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-17 04:08:09 +00:00
Dion Hulse
cc84220ab5
WordPress Core Automatic Updates: Switch from using a transient for locking the upgrade process, to using a site option. See #22704
...
Built from https://develop.svn.wordpress.org/trunk@25467
git-svn-id: http://core.svn.wordpress.org/trunk@25388 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-17 02:28:09 +00:00
Helen Hou-Sandí
7439445462
Make sure quick edited non-alternate taxonomy list table rows don't become alternate. props c3mdigital. fixes #25059 .
...
Built from https://develop.svn.wordpress.org/trunk@25463
git-svn-id: http://core.svn.wordpress.org/trunk@25384 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-16 21:11:09 +00:00
Sergey Biryukov
3137e83126
Check if the post type supports title. see #24423 .
...
Built from https://develop.svn.wordpress.org/trunk@25461
git-svn-id: http://core.svn.wordpress.org/trunk@25382 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-16 20:51:09 +00:00
Andrew Nacin
737bcf1123
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 .
Built from https://develop.svn.wordpress.org/trunk@25459
git-svn-id: http://core.svn.wordpress.org/trunk@25380 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-16 20:37:09 +00:00
Sergey Biryukov
239aa081c5
Clarify a string in Network Dashboard help text. props DrewAPicture. see #23163 .
...
Built from https://develop.svn.wordpress.org/trunk@25457
git-svn-id: http://core.svn.wordpress.org/trunk@25378 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-16 20:14:11 +00:00
Andrew Nacin
d3b89d43fc
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 .
Built from https://develop.svn.wordpress.org/trunk@25456
git-svn-id: http://core.svn.wordpress.org/trunk@25377 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-16 20:07:09 +00:00
Andrew Nacin
4587da663f
Allow callback args to be passed from wp_add_dashboard_widget() to add_meta_box().
...
props jdgrimes.
fixes #25152 .
Built from https://develop.svn.wordpress.org/trunk@25454
git-svn-id: http://core.svn.wordpress.org/trunk@25375 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-16 18:07:10 +00:00
Andrew Nacin
5f9a631983
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 .
Built from https://develop.svn.wordpress.org/trunk@25453
git-svn-id: http://core.svn.wordpress.org/trunk@25374 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-16 17:52:10 +00:00
Andrew Nacin
188f763120
Use get_terms() in the ajax tag search.
...
props Chouby.
fixes #25231 .
Built from https://develop.svn.wordpress.org/trunk@25452
git-svn-id: http://core.svn.wordpress.org/trunk@25373 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-16 17:51:08 +00:00
Andrew Nacin
6931079cec
Multisite blogs table: Convert the archived field from enum to tinyint to match the other status fields. fixes #12832 .
...
Built from https://develop.svn.wordpress.org/trunk@25448
git-svn-id: http://core.svn.wordpress.org/trunk@25369 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-15 23:12:11 +00:00
Dion Hulse
d39f430f64
WordPress Core Automatic Updates: Remove an accidental closure which isn't supported in PHP 5.2. See #22704
...
Built from https://develop.svn.wordpress.org/trunk@25447
git-svn-id: http://core.svn.wordpress.org/trunk@25368 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-15 01:26:09 +00:00
Andrew Nacin
fef6081046
Move to JSON for three api.wordpress.org endpoints. see #25311 .
...
Built from https://develop.svn.wordpress.org/trunk@25441
git-svn-id: http://core.svn.wordpress.org/trunk@25362 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-14 19:31:08 +00:00
Andrew Nacin
a7b26bd103
Remove unnecessary printf(). fixes #25321 .
...
Built from https://develop.svn.wordpress.org/trunk@25439
git-svn-id: http://core.svn.wordpress.org/trunk@25361 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-14 19:12:10 +00:00
Scott Taylor
daa4b531e8
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 .
Built from https://develop.svn.wordpress.org/trunk@25438
git-svn-id: http://core.svn.wordpress.org/trunk@25360 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-14 18:36:09 +00:00
Sergey Biryukov
bc1c732a16
Inline documentation for hooks in wp-admin/export.php.
...
props mordauk.
see #25229 .
Built from https://develop.svn.wordpress.org/trunk@25435
git-svn-id: http://core.svn.wordpress.org/trunk@25357 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-14 01:02:10 +00:00
Sergey Biryukov
a55d3abd5f
Inline documentation for hooks in wp-admin/includes/comment.php.
...
props mordauk.
see #25229 .
Built from https://develop.svn.wordpress.org/trunk@25434
git-svn-id: http://core.svn.wordpress.org/trunk@25356 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-14 01:01:08 +00:00
Scott Taylor
5df8338e0a
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 .
Built from https://develop.svn.wordpress.org/trunk@25433
git-svn-id: http://core.svn.wordpress.org/trunk@25355 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-13 22:18:08 +00:00
Scott Taylor
e8c656a045
* 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 .
Built from https://develop.svn.wordpress.org/trunk@25430
git-svn-id: http://core.svn.wordpress.org/trunk@25354 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-13 21:22:11 +00:00
Dion Hulse
dd8e15f612
Upgrader: Allow plugins to short-circuit the package download. Props rmccue and DrewAPicture. Fixes #22378
...
Built from https://develop.svn.wordpress.org/trunk@25427
git-svn-id: http://core.svn.wordpress.org/trunk@25351 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-13 12:53:08 +00:00
Sergey Biryukov
680a7a596d
Avoid a PHP warning in network admin if a constant corresponding to a drop-in is not defined. fixes #25301 .
...
Built from https://develop.svn.wordpress.org/trunk@25425
git-svn-id: http://core.svn.wordpress.org/trunk@25350 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-13 09:37:10 +00:00
Sergey Biryukov
4502b65ac0
Inline documentation for hooks in wp-admin/ms-delete-site.php.
...
props NikV.
see #25229 .
Built from https://develop.svn.wordpress.org/trunk@25424
git-svn-id: http://core.svn.wordpress.org/trunk@25349 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-13 09:11:09 +00:00
Dion Hulse
89682d2013
WordPress Core Automatic Updates: Pass the Filesystem path as $context to request_filesystem_credentials(). See #22704
...
Built from https://develop.svn.wordpress.org/trunk@25422
git-svn-id: http://core.svn.wordpress.org/trunk@25347 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-13 06:53:09 +00:00
Dion Hulse
4678d33216
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
...
Built from https://develop.svn.wordpress.org/trunk@25421
git-svn-id: http://core.svn.wordpress.org/trunk@25346 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-13 06:19:12 +00:00
Sergey Biryukov
533519086e
Better alignment for wp_prepare_revisions_for_js() inline docs. see #25283 .
...
Built from https://develop.svn.wordpress.org/trunk@25420
git-svn-id: http://core.svn.wordpress.org/trunk@25345 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-12 23:15:10 +00:00
Sergey Biryukov
b01adf9615
Inline documentation fixes and additions for wp-admin/revision.php and wp-admin/includes/revision.php.
...
props adamsilverstein.
see #25283 .
Built from https://develop.svn.wordpress.org/trunk@25419
git-svn-id: http://core.svn.wordpress.org/trunk@25344 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-12 22:59:08 +00:00
Andrew Nacin
52feff7a75
Clear all transients (regardless of expiration) on all database upgrades. see #20316 .
...
Built from https://develop.svn.wordpress.org/trunk@25416
git-svn-id: http://core.svn.wordpress.org/trunk@25341 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-12 21:14:10 +00:00
Andrew Nacin
e6bf2a293f
Add populate_network_meta filter to populate_network().
...
props jeremyfelt.
fixes #25020 .
Built from https://develop.svn.wordpress.org/trunk@25414
git-svn-id: http://core.svn.wordpress.org/trunk@25340 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-12 20:49:09 +00:00
Andrew Nacin
717ec20ac7
Fix comma placement in [25179].
...
props gradyetc.
see #15004 , fixes #25298 .
Built from https://develop.svn.wordpress.org/trunk@25413
git-svn-id: http://core.svn.wordpress.org/trunk@25339 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-12 20:16:11 +00:00
Helen Hou-Sandí
321268ba9d
No space between // and duplicate_hook. see #25229
...
Built from https://develop.svn.wordpress.org/trunk@25412
git-svn-id: http://core.svn.wordpress.org/trunk@25338 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-12 18:57:10 +00:00
Helen Hou-Sandí
bbb18589c0
Inline docs for hooks in wp-admin/options-writing.php
. props siobhyb. see #25229 .
...
Built from https://develop.svn.wordpress.org/trunk@25411
git-svn-id: http://core.svn.wordpress.org/trunk@25337 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-12 18:53:09 +00:00
Helen Hou-Sandí
0758df9758
Add file size to attachment publish meta box. props desrosj. fixes #25170 .
...
Built from https://develop.svn.wordpress.org/trunk@25403
git-svn-id: http://core.svn.wordpress.org/trunk@25333 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-12 15:10:09 +00:00
Dion Hulse
641d3b2560
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
...
Built from https://develop.svn.wordpress.org/trunk@25396
git-svn-id: http://core.svn.wordpress.org/trunk@25327 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-12 06:57:09 +00:00
Sergey Biryukov
f2391051c7
Inline documentation for hooks in wp-admin/options.php.
...
props siobhyb.
see #25229 .
Built from https://develop.svn.wordpress.org/trunk@25372
git-svn-id: http://core.svn.wordpress.org/trunk@25322 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-12 03:44:08 +00:00
Sergey Biryukov
b533a2bd94
Consistently call skin methods in WP_Upgrader. fixes #25254 .
...
Built from https://develop.svn.wordpress.org/trunk@25370
git-svn-id: http://core.svn.wordpress.org/trunk@25320 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-12 02:43:10 +00:00
Sergey Biryukov
0232d1cfd8
Fix invalid markup when searching for installed themes. fixes #25288 .
...
Built from https://develop.svn.wordpress.org/trunk@25369
git-svn-id: http://core.svn.wordpress.org/trunk@25319 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-12 00:03:10 +00:00
Dion Hulse
26ebfca466
Make use of the mbstring.func_overload helper functions in WP_Filesystem so byte lengths are properly determined. See #25259 Fixes #25237
...
Built from https://develop.svn.wordpress.org/trunk@25349
git-svn-id: http://core.svn.wordpress.org/trunk@25311 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-11 08:27:10 +00:00
Dion Hulse
83ebc727e8
Switch unzip_file() over to using the mbstring.func_override helper functions. See #25259
...
Built from https://develop.svn.wordpress.org/trunk@25347
git-svn-id: http://core.svn.wordpress.org/trunk@25309 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-11 08:09:08 +00:00
Scott Taylor
988caeb9a7
Check $profileuser->rich_editing
for empty before using it in Edit User admin code.
...
Props sorich87, c3mdigital.
Fixes #17328 .
Built from https://develop.svn.wordpress.org/trunk@25330
git-svn-id: http://core.svn.wordpress.org/trunk@25292 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-10 22:49:08 +00:00
Andrew Nacin
8fe0d246fb
Ignore user ID post data.
...
Built from https://develop.svn.wordpress.org/trunk@25316
git-svn-id: http://core.svn.wordpress.org/trunk@25278 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-10 17:58:09 +00:00
Scott Taylor
d39c01d30e
Consistently wrap author
and excerpt
nodes with CDATA
in feeds.
...
Fixes #18056 .
Built from https://develop.svn.wordpress.org/trunk@25315
git-svn-id: http://core.svn.wordpress.org/trunk@25277 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-10 16:55:09 +00:00
Helen Hou-Sandí
399a2f2ac2
Show the IP address, if available, in the comment edit screen submit meta box. props leewillis77. fixes #24638 .
...
Built from https://develop.svn.wordpress.org/trunk@25314
git-svn-id: http://core.svn.wordpress.org/trunk@25276 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-10 14:41:11 +00:00
Dion Hulse
068df26686
Switch to using HTTPS connections for Plugin and Theme API requests when SSL is available. See #18577
...
Built from https://develop.svn.wordpress.org/trunk@25308
git-svn-id: http://core.svn.wordpress.org/trunk@25270 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-09 07:54:11 +00:00