Drew Jaynes
67342ade09
Inline documentation improvements for Walker_Category
and Walker_CategoryDropdown
.
...
Also covers previously undocumented parameters.
See #23406 , #19249 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25641 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-28 18:01:26 +00:00
Andrew Nacin
50a1bb0eb2
Mark _search_terms_tidy() as deprecated in 3.7. see #7394 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25640 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-28 08:24:28 +00:00
Andrew Nacin
44ee54e153
3.7-beta1-25639
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25639 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-28 07:30:45 +00:00
Andrew Nacin
35a24943ea
3.7-beta1
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25638 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-28 06:47:49 +00:00
Andrew Nacin
e212691d73
Fix non-square rotations when using the Imagick image editor.
...
props DH-Shredder.
fixes #22663 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25636 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-28 06:36:17 +00:00
Andrew Nacin
7149ae3b9f
Filters for locale in wp_update_plugins() and wp_update_themes(). see #18200 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25634 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-28 04:17:54 +00:00
Andrew Nacin
ed31cbfab1
Changes to automatic background updates in preparation for Beta 1.
...
* Show a notice for beta testers on update-core.php explaining the status of their install. Three possibilities: auto updates are enabled, auto updates are disabled because the install doesn't support SSL HTTP requests, and auto updates are disabled because it is a VCS checkout.
* Improve the output of the email, for maximum debugging potential. Failures are clearly labeled and the email leads testers to the support forums and Trac.
* Try to create wp-content/languages in the upgrader if it doesn't exist. Our mkdir isn't recursive, so trying to create wp-content/languages/plugins could fail.
* Abstract out version control checkout determination into a public method. The filter is now auto_upgrade_is_vcs_checkout, still subject to change.
see #22704 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25633 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-27 23:20:08 +00:00
Andrew Nacin
cff3bb14e6
Order search results by relevance, rather than by date.
...
The ordering logic is as follows:
* Full sentence matches in post titles.
* All search terms in post titles.
* Any search terms in post titles.
* Full sentence matches in post content.
Each section and any remaining posts are then sorted by date.
Introduces some filters:
* wp_search_stopwords, to filter stop words ignored in WHERE.
* posts_search_orderby, to filter the ORDER BY when ordering search results.
props azaozz, wonderboymusic.
fixes #7394 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25632 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-27 17:33:36 +00:00
Drew Jaynes
f7a6959048
Improve inline documentation for wp_insert_post()
by adding a hash notation.
...
See #25412 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25628 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-25 17:33:36 +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
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
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
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
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
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
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
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
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
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
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
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
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