Commit Graph

8076 Commits

Author SHA1 Message Date
Andrew Nacin 3d4abac949 Tabs for internal linking. props koopersmith, see #11420.
git-svn-id: https://develop.svn.wordpress.org/trunk@16159 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-02 23:25:24 +00:00
Andrew Nacin e5684c63bc New color scheme swatches for the profile page. props JohnONolan, saracannon. see #15207.
git-svn-id: https://develop.svn.wordpress.org/trunk@16156 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-02 21:04:29 +00:00
scribu e07b7bbdc5 Use wp_basename() in WP_Query too. See #11887
git-svn-id: https://develop.svn.wordpress.org/trunk@16155 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-02 17:28:28 +00:00
scribu 58aedde597 Introduce wp_basename() and use it for media handling. See #11887
git-svn-id: https://develop.svn.wordpress.org/trunk@16154 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-02 17:19:55 +00:00
Andrew Nacin 59d3fd59c4 Implement the screen options toggle sprite across color schemes. props PeteMall, and use correct file ext, props ocean90. see #15207.
git-svn-id: https://develop.svn.wordpress.org/trunk@16152 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-02 15:35:10 +00:00
Peter Westwood ba0b9ce455 Revert 16150 - breaks things more than it fixes things. See #14993
git-svn-id: https://develop.svn.wordpress.org/trunk@16151 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-02 11:42:30 +00:00
Peter Westwood 3454487449 Don't capture RFC3986 sub-delims when making urls clickable except for ). Fixes #14993 props filosofo.
git-svn-id: https://develop.svn.wordpress.org/trunk@16150 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-02 09:45:09 +00:00
Peter Westwood 804b3a0747 Rename new classes to match our coding standards. Fixes #15280.
git-svn-id: https://develop.svn.wordpress.org/trunk@16149 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-02 08:29:07 +00:00
Andrew Nacin f95cfd07f3 Remove deleted file from the manifest. Note that most other blue files were never added. see #15207.
git-svn-id: https://develop.svn.wordpress.org/trunk@16147 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-02 05:24:58 +00:00
Andrew Nacin c31ef3498a Housekeeping for blue refresh. Script bumps, image bumps, remove unused blue-specific files. see #15207.
git-svn-id: https://develop.svn.wordpress.org/trunk@16146 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-02 05:05:27 +00:00
scribu 033dc3afa2 Just pass meta type to get_meta_sql(). See #15032
git-svn-id: https://develop.svn.wordpress.org/trunk@16143 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-01 20:34:54 +00:00
scribu 69b36459a8 Rename class.wp-object-query.php to class-wp-object-query.php. See #15032
git-svn-id: https://develop.svn.wordpress.org/trunk@16142 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-01 20:21:29 +00:00
Peter Westwood 0bb1061d57 Add the post status as a class so that a theme can easily style private posts differently. Fixes #15279.
git-svn-id: https://develop.svn.wordpress.org/trunk@16139 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-01 18:07:31 +00:00
Peter Westwood 3462e6af43 Add a post class if a password is required for the post to be displayed. See #13860 props zeo.
git-svn-id: https://develop.svn.wordpress.org/trunk@16138 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-01 18:05:33 +00:00
Ryan Boren 2e4abe9e16 Use CPTs in admin bar menus. Props duck_. see #14772
git-svn-id: https://develop.svn.wordpress.org/trunk@16132 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-01 14:58:59 +00:00
scribu a3009772e7 make not_found puctuation translatable. See #14579
git-svn-id: https://develop.svn.wordpress.org/trunk@16121 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-31 23:21:56 +00:00
scribu 33e3ef1367 Remove check on unexistant $ids var in WP_Query::get_posts. Props Utkarsh. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@16116 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-31 11:28:49 +00:00
scribu 58f4333233 Use get_queried_object() in more get_*_template() functions. Fixes #15263
git-svn-id: https://develop.svn.wordpress.org/trunk@16115 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-31 11:23:10 +00:00
scribu b4988b968b use get_queried_object() wrappers throughout. See #14015
git-svn-id: https://develop.svn.wordpress.org/trunk@16114 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-31 11:02:17 +00:00
Peter Westwood 4d8416318e Always capture ! as part of a url. See #14993 props filosofo.
git-svn-id: https://develop.svn.wordpress.org/trunk@16111 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-31 09:09:29 +00:00
scribu 2285775e09 Add 'get_meta_sql' filter. Props sc0ttkclark for initial patch. Fixes #15018
git-svn-id: https://develop.svn.wordpress.org/trunk@16106 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-31 00:21:06 +00:00
Andrew Nacin 310a9b04d2 Move code out of the conditional. props duck_, fixes #14415.
git-svn-id: https://develop.svn.wordpress.org/trunk@16104 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-30 18:21:23 +00:00
Andrew Nacin 88fa2b340c File-level phpdoc for new class files. fixes #10287.
git-svn-id: https://develop.svn.wordpress.org/trunk@16101 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-30 14:09:05 +00:00
Andrew Nacin f9c7ac66ec Move Walker_Page* to post-template, Walker_Category* to category-template, and rm classes.php. see #10287.
git-svn-id: https://develop.svn.wordpress.org/trunk@16100 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-30 14:06:08 +00:00
Andrew Nacin edc329c691 Begin the dissolution of classes.php. see #10287.
git-svn-id: https://develop.svn.wordpress.org/trunk@16099 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-30 07:02:06 +00:00
Andrew Nacin ccee731f94 Kill the admin-bar directory. see #14772.
git-svn-id: https://develop.svn.wordpress.org/trunk@16098 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-30 06:40:04 +00:00
Andrew Nacin 6524af3915 Add menu-item-object-$object class. props filosofo, fixes #14053.
git-svn-id: https://develop.svn.wordpress.org/trunk@16095 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-29 22:49:42 +00:00
Andrew Nacin 82ae655534 Move an array cast further down the stack. props filosofo, fixes #13965.
git-svn-id: https://develop.svn.wordpress.org/trunk@16093 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-29 22:39:53 +00:00
Ryan Boren af17458ed9 get_queried_obecjt() and get_queried_object_id(). Props filosofo. fixes #14015
git-svn-id: https://develop.svn.wordpress.org/trunk@16091 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-29 20:48:54 +00:00
Andrew Ozz d39d7e4ba4 Editor: utilize the new "formats" option in TinyMCE, fix errors in IE when pressing Enter inside a caption box, fix resizing of the caption box when the user soft-resizes the image in the editor, fixes #12574
git-svn-id: https://develop.svn.wordpress.org/trunk@16090 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-29 20:06:00 +00:00
Ryan Boren 9afa96dc1b Lose Manage Sites. see #14772
git-svn-id: https://develop.svn.wordpress.org/trunk@16086 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-29 18:18:21 +00:00
Ryan Boren cfcf51fcfa Use get_edit_profile_url(). see #14772
git-svn-id: https://develop.svn.wordpress.org/trunk@16085 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-29 18:15:24 +00:00
Ryan Boren 01cd7eae1f Add Network Admin link to super admin menu. Link Site Options to site-info.php. see #14772
git-svn-id: https://develop.svn.wordpress.org/trunk@16084 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-29 18:12:18 +00:00
Ryan Boren 40558c2dbc get_dashboard_url() and get_edit_profile_url(). Determine the appropriate dahboard for a user based on the user's blogs and the current blog. see #14696 #14772
git-svn-id: https://develop.svn.wordpress.org/trunk@16083 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-29 17:48:53 +00:00
Ryan Boren 59a291483f Fix comments links. Props PeteMall. see #14772
git-svn-id: https://develop.svn.wordpress.org/trunk@16082 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-29 16:50:21 +00:00
Ryan Boren e33e94e28d Use a sprite for screen options toggle. Props TECannon PeteMall. see #15163
git-svn-id: https://develop.svn.wordpress.org/trunk@16081 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-29 16:23:17 +00:00
Peter Westwood b5025d2b5b Only show it as the Global Dashboard if multisite. See #14772
git-svn-id: https://develop.svn.wordpress.org/trunk@16080 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-29 15:45:29 +00:00
Ryan Boren d2dd8df29f Add Updates menu to admin bar. see #14772
git-svn-id: https://develop.svn.wordpress.org/trunk@16079 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-29 15:36:45 +00:00
Ryan Boren 3c374b177c Add Appearance menu to admin bar. see #14772
git-svn-id: https://develop.svn.wordpress.org/trunk@16078 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-29 15:26:36 +00:00
Ryan Boren 81b8a20429 Beginnings of new admin bar organization. see #14772
git-svn-id: https://develop.svn.wordpress.org/trunk@16077 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-29 15:17:22 +00:00
Peter Westwood bcd5c65438 Don't show a shortlink button if we don't have one. See #14772.
git-svn-id: https://develop.svn.wordpress.org/trunk@16076 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-29 13:58:14 +00:00
Nikolay Bachiyski 94ed154f65 Retain backwards compatiblity for the few plugins using _n_noop()
git-svn-id: https://develop.svn.wordpress.org/trunk@16075 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-29 13:37:03 +00:00
Ryan Boren 71dd59892d Fix typo. Props filosofo. see #14772
git-svn-id: https://develop.svn.wordpress.org/trunk@16074 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-29 13:27:52 +00:00
Nikolay Bachiyski 1937c1221d Introduce and use translate_nooped_plural(). Fixes #13996
* _n_noop() and _nx_noop() now return associative arrays for greater clarity
 * translate_nooped_plural() takes one such associative array and translates it
 * it works on both the result from _n_noop() and from _nx_noop()
 * this breaks backwards compatibility, but I doubt any plugin uses it (I will do a global grep to confirm)
 * translate_nooped_plural() is applied where applicable


git-svn-id: https://develop.svn.wordpress.org/trunk@16073 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-29 13:12:14 +00:00
Peter Westwood 8e0ad0374e If someone has defined WP_SHOW_ADMIN_BAR it wins period. Otherwise we break for things like XMLRPC which disable this always. See #14772.
git-svn-id: https://develop.svn.wordpress.org/trunk@16071 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-29 07:44:02 +00:00
Peter Westwood a80db4c779 More admin bar updates. See #14772 props filosofo.
Moves js out into seperate file.
Respects WP_SHOW_ADMIN_BAR.
Moved shortlink to top-level
Removed admin bar from non-multisite admin pages.
Set eol-style on new files.

git-svn-id: https://develop.svn.wordpress.org/trunk@16070 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-29 07:25:58 +00:00
Peter Westwood 743606fac1 Fix some notices when pinging
git-svn-id: https://develop.svn.wordpress.org/trunk@16069 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-29 07:07:28 +00:00
Peter Westwood c8366c5966 Don't pass deprecated argument to discover_pingback_server_uri!
git-svn-id: https://develop.svn.wordpress.org/trunk@16068 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-29 07:06:48 +00:00
Andrew Nacin e2dfe4f5c2 Revert submit_button() for wp-includes, setup-config, install, login, signup. see [16061], see #15064, fixes #15247.
git-svn-id: https://develop.svn.wordpress.org/trunk@16066 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-29 00:31:27 +00:00
Peter Westwood 4cc293abd2 Switch to using WP_HTTP_IXR_Client in core. See #10588.
git-svn-id: https://develop.svn.wordpress.org/trunk@16065 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 22:15:54 +00:00
Peter Westwood a7d5b1d473 Introduce WP_HTTP_IXR_Client. Extends IXR_Client and switches it to using the WordPress HTTP API instead of fsockopen. See #10588 props andy and ryan.
git-svn-id: https://develop.svn.wordpress.org/trunk@16064 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 22:13:24 +00:00
Peter Westwood f744dcac07 Ensure we always have a headers array.
git-svn-id: https://develop.svn.wordpress.org/trunk@16063 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 22:11:16 +00:00
Peter Westwood 1fecd2b99c Add a TODO to review this code later.
git-svn-id: https://develop.svn.wordpress.org/trunk@16062 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 22:00:53 +00:00
Mark Jaquith d65cdf4ba8 Expand submit_button() capabilities. Replace all (or almost all) manual HTML instances in WP. props sbressler. see #15064
git-svn-id: https://develop.svn.wordpress.org/trunk@16061 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 21:56:43 +00:00
Ryan Boren bd29ca8eeb Update wp-tinymce.js.gz. see #11420
git-svn-id: https://develop.svn.wordpress.org/trunk@16060 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 21:03:16 +00:00
scribu d72c69b7b6 Introduce get_terms_args filter. Fixes #15020
git-svn-id: https://develop.svn.wordpress.org/trunk@16059 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 19:09:18 +00:00
Ryan Boren d74685e477 s/Read Site/Visit Site/. Props markmcwilliams. see #14772
git-svn-id: https://develop.svn.wordpress.org/trunk@16058 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 19:00:12 +00:00
scribu 34ca745a55 Add terms_clauses filter. Props sc0ttkclark for initial patch. See #15020
git-svn-id: https://develop.svn.wordpress.org/trunk@16056 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 17:55:30 +00:00
Ryan Boren c28835809e Lose the snack menu. see #14772
git-svn-id: https://develop.svn.wordpress.org/trunk@16055 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 17:29:44 +00:00
Ryan Boren 8223646c58 Typo fix. Props markmcwilliams. see #14772
git-svn-id: https://develop.svn.wordpress.org/trunk@16054 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 17:19:37 +00:00
scribu 0ba17a703a Make get_meta_sql() return associative array. See #15032
git-svn-id: https://develop.svn.wordpress.org/trunk@16053 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 17:02:37 +00:00
scribu 554cf6319b Remove duplicate file docs. See #15032
git-svn-id: https://develop.svn.wordpress.org/trunk@16052 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 16:28:58 +00:00
scribu 8c293b9d94 Move WP_Object_Query to it's own file. See #15032
git-svn-id: https://develop.svn.wordpress.org/trunk@16051 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 16:27:18 +00:00
Ryan Boren 2184a5d0f6 get_current_blog_id(). Props aaroncampbell. fixes #15233
git-svn-id: https://develop.svn.wordpress.org/trunk@16050 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 15:46:11 +00:00
scribu 35362272f1 More precise role querying. Props johnbillion for initial patch. Fixes #12693
git-svn-id: https://develop.svn.wordpress.org/trunk@16048 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 13:26:16 +00:00
Peter Westwood 6c0440291b phpDoc and a bug fix for the new media XMLRPC functions. See #15151 props koke.
git-svn-id: https://develop.svn.wordpress.org/trunk@16046 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 12:12:59 +00:00
Peter Westwood 75e6391410 Comment it out better
git-svn-id: https://develop.svn.wordpress.org/trunk@16045 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 12:02:52 +00:00
Peter Westwood 6fd3027f4e Add a todo. See #14772.
git-svn-id: https://develop.svn.wordpress.org/trunk@16044 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 12:01:44 +00:00
Peter Westwood c0c3167621 Missing part of the admin bar rework. See #14772 props filosofo.
git-svn-id: https://develop.svn.wordpress.org/trunk@16043 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 11:48:22 +00:00
Peter Westwood c3a0a1919b Debug should be a plugin not a core feature for now. See #14772.
git-svn-id: https://develop.svn.wordpress.org/trunk@16042 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 08:48:52 +00:00
Peter Westwood 20c34b481c Revert [16039]. Wasn't as much junk as it looked :-( See #14772.
git-svn-id: https://develop.svn.wordpress.org/trunk@16041 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 08:45:35 +00:00
Peter Westwood 080daa9752 Strip out some junk from trunk. See #14772.
git-svn-id: https://develop.svn.wordpress.org/trunk@16039 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 08:35:55 +00:00
Peter Westwood 4c79038cfe Admin bar cleanup. See #14772 props filosofo.
Moves CSS into seperate files.
Patch cleanup included moving function call arguments back on to one line where not necessary to split them.

git-svn-id: https://develop.svn.wordpress.org/trunk@16038 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 08:31:36 +00:00
Peter Westwood 27b777b4a6 Purger more create_function usage during autop and iso descrambling. See #14424 props ScottMac.
git-svn-id: https://develop.svn.wordpress.org/trunk@16035 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 07:38:00 +00:00
Peter Westwood 82d2869415 Remove create_function usage during preview. See #14424 props ScottMac.
git-svn-id: https://develop.svn.wordpress.org/trunk@16034 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 07:25:30 +00:00
Andrew Nacin 81c93c3e1f Doc fix for get_author_posts_url. props simonwheatley, fixes #14249.
git-svn-id: https://develop.svn.wordpress.org/trunk@16033 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 07:15:23 +00:00
Andrew Nacin e07a1d59c6 Use esc_html. Ancient, deprecated functions, but a valid fix nonetheless. fixes #14199.
git-svn-id: https://develop.svn.wordpress.org/trunk@16031 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 06:30:59 +00:00
Andrew Nacin 2c833277b2 Use correct variable. props linguasite, fixes #14141.
git-svn-id: https://develop.svn.wordpress.org/trunk@16030 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 05:58:49 +00:00
Andrew Nacin af1bafa67b Remove unnecessary wp_cache_delete calls. props shidouhikari, fixes #14080.
git-svn-id: https://develop.svn.wordpress.org/trunk@16029 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 05:22:45 +00:00
Andrew Nacin 7b6f24eeeb Add a class to 'Your comment is awaiting moderation' in the comment walker and Twenty Ten's callback. fixes #15206.
git-svn-id: https://develop.svn.wordpress.org/trunk@16028 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 03:58:51 +00:00
Andrew Nacin 4bd893efd3 Use call_user_func for wpnique_filename callback. fixes #14627.
git-svn-id: https://develop.svn.wordpress.org/trunk@16025 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-27 22:27:06 +00:00
scribu b2f927ed76 Set additional fields when searching. Fixes #15211
git-svn-id: https://develop.svn.wordpress.org/trunk@16022 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-27 20:17:00 +00:00
scribu 9c918c6a05 Trigger activation hooks for netork plugins when new site is created. See #14170
git-svn-id: https://develop.svn.wordpress.org/trunk@16021 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-27 19:41:59 +00:00
scribu 665b15790d Make comment clauses more similar to post clauses. See #15019
git-svn-id: https://develop.svn.wordpress.org/trunk@16020 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-27 19:05:39 +00:00
scribu 1f23d12a79 Add filters to WP_Comment_Query. Props sc0ttkclark. Fixes #15019
git-svn-id: https://develop.svn.wordpress.org/trunk@16019 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-27 18:49:45 +00:00
scribu 174c0acfb4 Move get() and set() methods from WP_Query to WP_Object_Query. See #15032
git-svn-id: https://develop.svn.wordpress.org/trunk@16018 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-27 18:16:52 +00:00
scribu 9cc035e926 Fix inconsistencies in metadata filters. Props sc0ttkclark. See #14766
git-svn-id: https://develop.svn.wordpress.org/trunk@16017 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-27 17:45:08 +00:00
Peter Westwood c33811d3e7 First pass at 'wp.getMediaItem' and
'wp.getMediaLibrary'. See #15151 props koke.

git-svn-id: https://develop.svn.wordpress.org/trunk@16016 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-27 17:20:46 +00:00
Peter Westwood 91d456e319 Restore the (at most 15) on the Recent Posts Widgets UI - Accidentally removed as part of [14483].
git-svn-id: https://develop.svn.wordpress.org/trunk@16013 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-27 14:10:47 +00:00
Andrew Nacin dfa3d5561d Improve the line height on div.updated, div.error. props joelhardi, fixes #14891.
git-svn-id: https://develop.svn.wordpress.org/trunk@16010 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-27 11:57:55 +00:00
Andrew Nacin 8db82e5ea1 Move registration.php functions to user.php. Deprecate registration.php, everything is now included by default. fixes #13761.
git-svn-id: https://develop.svn.wordpress.org/trunk@16009 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-27 10:46:24 +00:00
Andrew Nacin 8e7e99047e Fix some encoding issues. props hakre, fixes #14735.
git-svn-id: https://develop.svn.wordpress.org/trunk@16005 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-27 09:54:17 +00:00
Andrew Nacin 71c59b865a Add a 'Sticky' filter on the edit posts page. Add post_in and post_not_in as private query vars in the WP class to support this. fixes #8466.
git-svn-id: https://develop.svn.wordpress.org/trunk@16003 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-27 08:27:45 +00:00
Peter Westwood b4818a8af8 Remove the ghetto code and use the script loader properly on the login page.
Ensure that we actually have convertEntities available on the login page.
Introduce a login_footer action.
Hook in the script loader to the login_header and login_footer actions.
See #5919, #15124.

git-svn-id: https://develop.svn.wordpress.org/trunk@16000 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-27 06:57:10 +00:00
Peter Westwood b138a1b60a Bring back a seperate js file for the password strength meter and correctly mark it as a dependancy of the user profile code. See #5919.
git-svn-id: https://develop.svn.wordpress.org/trunk@15998 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-27 06:39:20 +00:00
Andrew Nacin bcbb15ca21 Return empty array in wp_get_sidebars_widgets() if no sidebars are defined. fixes #14876.
git-svn-id: https://develop.svn.wordpress.org/trunk@15994 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-27 01:56:54 +00:00
Andrew Nacin ad18a5dc4b Standardize on 'Display as dropdown' and list those before post counts in default widgets. fixes #15096.
git-svn-id: https://develop.svn.wordpress.org/trunk@15993 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-27 01:52:59 +00:00
Andrew Nacin e7f4600080 jQuery 1.4.4 preview as of Wed Oct 27 00:55:02 2010. see #15227.
git-svn-id: https://develop.svn.wordpress.org/trunk@15991 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-27 00:58:41 +00:00
Andrew Nacin 8b0d9c5856 More pedantry.
git-svn-id: https://develop.svn.wordpress.org/trunk@15990 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-27 00:33:29 +00:00
Andrew Nacin a484cb25a0 Bool cast preg_match, in readable form. see #9824.
git-svn-id: https://develop.svn.wordpress.org/trunk@15989 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-27 00:30:49 +00:00
Andrew Nacin 2fa2485d20 Bool cast preg_match. see #9824.
git-svn-id: https://develop.svn.wordpress.org/trunk@15988 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-27 00:27:08 +00:00
scribu f196a4932c Don't trigger verbose page rules if permalink begins with fixed string. Fixes #9824
git-svn-id: https://develop.svn.wordpress.org/trunk@15987 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-27 00:25:03 +00:00
scribu f9fa7ecc39 Round bottom-right corner of the screen options dropdown. Fixes #15226
git-svn-id: https://develop.svn.wordpress.org/trunk@15986 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-26 22:15:58 +00:00
Andrew Nacin 2fb5876e7e Specify feed type in the_category_rss() call. props benward, fixes #14451.
git-svn-id: https://develop.svn.wordpress.org/trunk@15984 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-26 20:15:18 +00:00
scribu d9abf82f7c Add filters to *_metadata() functions. Props sc0ttkclark. Fixes #14766
git-svn-id: https://develop.svn.wordpress.org/trunk@15983 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-26 19:11:27 +00:00
scribu 1c9a241148 Introduce 'fields' query var to WP_Query. See #14777
git-svn-id: https://develop.svn.wordpress.org/trunk@15982 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-26 19:01:55 +00:00
Andrew Nacin fb3a8f92bf Don't sort plugin descriptions column. Make on state for sortable columns black, not the typical link orange. fixes #15224.
git-svn-id: https://develop.svn.wordpress.org/trunk@15981 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-26 18:15:47 +00:00
Peter Westwood 4b88dd0f93 Expose the media options over XML-RPC. Fixes #15153 props koke.
git-svn-id: https://develop.svn.wordpress.org/trunk@15980 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-26 17:46:29 +00:00
Peter Westwood dd57d9fd93 4th argument of wp.getOptions is optional so don't notice if it's not supplied.
git-svn-id: https://develop.svn.wordpress.org/trunk@15975 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-26 14:43:20 +00:00
Ryan Boren c9d26cd5b3 Refactor wp_get_recent_posts to use get_posts(). Props blepoxp. fixes #14389
git-svn-id: https://develop.svn.wordpress.org/trunk@15973 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-26 13:50:38 +00:00
Ryan Boren 06780d1fb0 Fix infinite recursion caused by malformed URLs. Props mdawaffe. fixes #14655
git-svn-id: https://develop.svn.wordpress.org/trunk@15972 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-26 13:44:03 +00:00
Andrew Nacin 90b2bbe16e Allow page rewrites to be disabled. see #13818.
git-svn-id: https://develop.svn.wordpress.org/trunk@15970 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-26 07:12:06 +00:00
Andrew Nacin fcb14d6104 Also look for SUBDOMAIN_INSTALL in is_multisite(). props wpmuguru, fixes #14536 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@15968 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-26 03:45:13 +00:00
Andrew Nacin 9c39f8bcf2 Fix custom background selector for IE7. props duck_, fixes #14152.
git-svn-id: https://develop.svn.wordpress.org/trunk@15966 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-26 03:42:14 +00:00
Andrew Nacin f48506bb8f Remove redundant filter. props coffee2code. fixes #14285.
git-svn-id: https://develop.svn.wordpress.org/trunk@15964 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-26 03:34:28 +00:00
Ryan Boren ae76af21a9 Generalize seletion for h2 and h3 tabs. Props chrisbliss18 fixes #15154
git-svn-id: https://develop.svn.wordpress.org/trunk@15962 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-25 20:45:58 +00:00
Andrew Nacin b0208b5a8c Importer and exporter overhaul, mega props duck.
Exporter overhaul:
 * Add author information to export
 * Greater usage of slug identifiers
 * Don't export auto-drafts, spam comments, or edit lock/last meta keys
 * Inline documentation improvements
 * Remove filtering for now (@todo)
 * Bump WXR version to 1.1, but remain back compat in the importer

Importer overhaul (http://plugins.trac.wordpress.org/changeset/304249):
 * Use an XML parser where available (SimpleXML, XML Parser)
 * Proper import support for navigation menus
 * Many bug fixes, specifically improvements to category and custom taxonomy handling
 * Better author/user mapping

Fixes #5447 #5460 #7400 #7973 #8471 #9237 #10319 #11118 #11144 #11354 #11574 #12685 #13364 #13394 #13453 #13454 #13627 #14306 #14442 #14524 #14750 #15055 #15091 #15108.

See #15197.


git-svn-id: https://develop.svn.wordpress.org/trunk@15961 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-25 20:43:52 +00:00
Peter Westwood 8913638185 Attempt at a fix for url encoding issues with UTF8 chars. See #10249.
git-svn-id: https://develop.svn.wordpress.org/trunk@15960 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-25 14:50:58 +00:00
Andrew Nacin d8672ca5d8 Pass comment ID from comment_text to get_comment_text. Also add the comment object as context to the filter. fixes #14261
git-svn-id: https://develop.svn.wordpress.org/trunk@15957 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-25 03:11:01 +00:00
Ryan Boren 8df8490fde Idempotence for sanitize_user(). Make sanitize_key() match its phpdoc. Props duck_ fixes #15198
git-svn-id: https://develop.svn.wordpress.org/trunk@15948 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-24 20:33:54 +00:00
Andrew Nacin 787da5c464 Allow fields with a paragraph tag to align to top in the form-table on settings pages. see #15205.
git-svn-id: https://develop.svn.wordpress.org/trunk@15945 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-24 18:07:20 +00:00
Andrew Nacin a719899fca Rearrange wp-load include. see #11420.
git-svn-id: https://develop.svn.wordpress.org/trunk@15943 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-24 03:56:10 +00:00
Andrew Nacin 4738e732ae Remove dead arguments. see [15937], see #13818, props dd32.
git-svn-id: https://develop.svn.wordpress.org/trunk@15942 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-24 03:27:01 +00:00
Andrew Nacin 46458ec3ca Compress scripts and bump for [15939] [15940]. see #11420.
git-svn-id: https://develop.svn.wordpress.org/trunk@15941 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-24 03:03:52 +00:00
Andrew Nacin f34a8de8ec Internal linking, first pass. props koopersmith, see #11420.
git-svn-id: https://develop.svn.wordpress.org/trunk@15940 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-24 02:58:42 +00:00
Andrew Nacin cd50525faa Don't show the admin bar in the plugin/theme installers. Inserts condition directly into iframe_header(). Allows show_admin_bar() to be called after init by unsetting wp_admin_bar, thus preventing render once those hooks are fired. see #14772.
git-svn-id: https://develop.svn.wordpress.org/trunk@15938 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-23 19:49:25 +00:00
Andrew Nacin 6eb9fbbd39 Remove post_type params from is_archive(). use is_post_type_archive() for full context. see #13818.
git-svn-id: https://develop.svn.wordpress.org/trunk@15937 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-23 19:20:47 +00:00
Andrew Nacin 6d7366d5fc Move the CPT archive flag outside of the rewrite argument, into its own has_archive. has_archive controls more than just URL rewriting, it also handles whether ?post_type= is treated as a CPT archive. feeds remain in rewrite as ?feed= would work regardless. see #13818.
git-svn-id: https://develop.svn.wordpress.org/trunk@15936 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-23 18:29:22 +00:00
Andrew Nacin 4d0164db91 Remove some capability_type code in WP_Query. Only build faux caps if we're querying for multiple post types or if the post type object can't be found. see #14122.
git-svn-id: https://develop.svn.wordpress.org/trunk@15935 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-23 18:16:41 +00:00
Andrew Nacin 7a0720ec5e Allow capability_type to be an array, for odd plural situations such as story/storys/stories. After registration it reverts to a singular string. Lots of documentation for meta capabilities and post types, also some cleanups for register_post_type documentation. see #14122.
git-svn-id: https://develop.svn.wordpress.org/trunk@15934 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-23 18:03:26 +00:00
Andrew Nacin 234efcf413 Use a consistent variable.
git-svn-id: https://develop.svn.wordpress.org/trunk@15933 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-23 17:51:18 +00:00
Andrew Nacin cfde537391 Don't make redundant str_replace calls in link-template. props duck_.
git-svn-id: https://develop.svn.wordpress.org/trunk@15932 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-23 17:13:52 +00:00
scribu f61e045d4d Also convert uppercase letters in Latin Extended-B. See #9591
git-svn-id: https://develop.svn.wordpress.org/trunk@15931 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-23 15:36:16 +00:00
scribu e05be05ad8 remove_accents(): Nordic characters fixes. Props einare. Fixes #4739. See #9591
git-svn-id: https://develop.svn.wordpress.org/trunk@15930 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-23 13:00:21 +00:00
scribu ed9a39abab Introduce sanitize_title_for_query(). See #9591
git-svn-id: https://develop.svn.wordpress.org/trunk@15929 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-23 12:55:55 +00:00
scribu 3081a12de2 Introduce _qv_basename() and apply it to hierarchical taxonomies. See #9591.
git-svn-id: https://develop.svn.wordpress.org/trunk@15923 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-22 22:54:05 +00:00
scribu c87a8235ca Remove debugging code in wp_check_term_hierarchy_for_loops(). See #14662
git-svn-id: https://develop.svn.wordpress.org/trunk@15922 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-22 21:31:57 +00:00
scribu 890c0ead1c Remove misplaced code in WP_Query::parse_tax_query(). See #12659
git-svn-id: https://develop.svn.wordpress.org/trunk@15921 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-22 21:17:09 +00:00
Ryan Boren efdb066697 Do not set role if it is the same. Props nickmomrik. fixes #14708
git-svn-id: https://develop.svn.wordpress.org/trunk@15919 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-22 19:38:20 +00:00
Ryan Boren f2dbc7d273 Fix media dialog keyPress handling. Props mdawaffe. fixes #14394
git-svn-id: https://develop.svn.wordpress.org/trunk@15918 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-22 19:23:00 +00:00
Ryan Boren fc73604019 Actions for adding and deleting meta. Props wojtek.szkutnik mitchoyoshitaka. fixes #14173
git-svn-id: https://develop.svn.wordpress.org/trunk@15917 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-22 19:18:33 +00:00
Ryan Boren 3e32b5318a Use underscore separator
git-svn-id: https://develop.svn.wordpress.org/trunk@15916 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-22 19:10:23 +00:00
Ryan Boren 1926094622 Fix attribute spacing. Props Utkarsh. see #14772
git-svn-id: https://develop.svn.wordpress.org/trunk@15915 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-22 18:59:06 +00:00
Ryan Boren 3507043ba1 Remove redundant logged in check. Props neoxx. see #14772
git-svn-id: https://develop.svn.wordpress.org/trunk@15914 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-22 18:42:26 +00:00
Dion Hulse 80fc91b2ed Support wildcard domains in WP_PROXY_BYPASS_HOSTS and WP_ACCESSIBLE_HOSTS. Fixes #14636
git-svn-id: https://develop.svn.wordpress.org/trunk@15911 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-22 10:27:35 +00:00
Andrew Nacin 146a8cf16c Revisions and attachments should also generate meta capabilities as part of their cap object. see #14122.
git-svn-id: https://develop.svn.wordpress.org/trunk@15909 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-22 00:25:14 +00:00
Andrew Nacin 7e48ac3e78 Pruning shears.
git-svn-id: https://develop.svn.wordpress.org/trunk@15904 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-21 19:55:28 +00:00
Andrew Nacin 6a5a1b338b s/ms-options/settings. props PeteMall, fixes #14826.
git-svn-id: https://develop.svn.wordpress.org/trunk@15899 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-21 17:09:15 +00:00
Andrew Nacin 96052a12a5 Only dumb down delete_others_posts if it deserves to exist. fixes a notice. see #14122.
git-svn-id: https://develop.svn.wordpress.org/trunk@15897 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-21 16:28:35 +00:00
Andrew Nacin 6d20960c97 Pass user object through _wp_get_user_contactmethods() to the user_contactmethods filter. props aaroncampbell, fixes #15186.
git-svn-id: https://develop.svn.wordpress.org/trunk@15896 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-21 15:42:06 +00:00
Andrew Nacin c5b02e9685 Clean up get_post_type_capabilities. Don't bother with new capabilities for edit_others_posts and delete_others_posts if the post type does not support authors.
git-svn-id: https://develop.svn.wordpress.org/trunk@15892 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-21 15:05:10 +00:00
Andrew Nacin 3732810a25 Only check the post author if the post type supports authors. see #14122.
git-svn-id: https://develop.svn.wordpress.org/trunk@15891 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-21 14:55:15 +00:00
Andrew Nacin 71ebaa6170 Rough first pass on map_meta_cap for custom post types. see #14122.
git-svn-id: https://develop.svn.wordpress.org/trunk@15890 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-21 14:40:04 +00:00
scribu 8315655230 Revert accidental changes to WP_Query made in [15887]. See #14163
git-svn-id: https://develop.svn.wordpress.org/trunk@15888 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-21 14:06:52 +00:00
scribu a3ef15ffc0 Allow filtering comments by user_id via URL. Props neoxx. Fixes #14163
git-svn-id: https://develop.svn.wordpress.org/trunk@15887 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-21 14:03:25 +00:00
Andrew Nacin 142fcc3a35 Fix html in WP_Object_Cache::stats. props Utkarsh, fixes #15183.
git-svn-id: https://develop.svn.wordpress.org/trunk@15884 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-21 13:15:24 +00:00
Andrew Nacin f77e992298 Kill off get_users_of_blog args argument.
git-svn-id: https://develop.svn.wordpress.org/trunk@15883 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-21 13:12:05 +00:00
Ryan Boren 682376a2ae Use get_users() instead of get_users_of_blog(). Props scribu. see #15053
git-svn-id: https://develop.svn.wordpress.org/trunk@15882 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-21 13:08:47 +00:00
Mark Jaquith 9a7f5ef8df Push capital P filter back behind the wpautop one to catch Wordpress after opening HTML tag
git-svn-id: https://develop.svn.wordpress.org/trunk@15877 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-20 22:44:15 +00:00
Ryan Boren 76b207939d Add query args argument to get_users_of_blog(). Limit number of users fetched for user lists in sites table and edit blog form. see #15053
git-svn-id: https://develop.svn.wordpress.org/trunk@15876 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-20 20:43:32 +00:00
Ryan Boren 4c3535a58d Update network-wide active user and blog counts via a cron job to avoid costly count queries. see #15170
git-svn-id: https://develop.svn.wordpress.org/trunk@15875 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-20 20:22:14 +00:00
scribu 188f3458f9 Fix tax=term1+term2 queries. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@15874 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-20 19:00:57 +00:00
Andrew Nacin 4568da6764 Make get_users arg optional. props duck_. see #14572.
git-svn-id: https://develop.svn.wordpress.org/trunk@15873 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-20 17:21:06 +00:00
Ryan Boren 386694bb79 Schedule update checks from an init hook. see #15148
git-svn-id: https://develop.svn.wordpress.org/trunk@15872 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-20 16:50:57 +00:00
Peter Westwood 18fb594129 Fix variable mis-name.
git-svn-id: https://develop.svn.wordpress.org/trunk@15865 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-20 13:38:50 +00:00
Ryan Boren debdb6e258 Equal equal equal. see #14772
git-svn-id: https://develop.svn.wordpress.org/trunk@15864 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-20 13:27:55 +00:00
Ryan Boren 74ef68d6ce show_admin_bar(). see #14772
git-svn-id: https://develop.svn.wordpress.org/trunk@15863 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-20 13:23:39 +00:00
Ryan Boren 8dcf52eeec admin_bar_init action. see #14772
git-svn-id: https://develop.svn.wordpress.org/trunk@15862 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-20 13:07:54 +00:00
scribu 49a2a5e3dd Get rid of $taxonomy_query_vars altogether. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@15861 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-20 12:12:31 +00:00
scribu 2b08f69b50 Fix 'taxonomy' and 'term' query var logic. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@15860 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-20 12:07:23 +00:00
Andrew Nacin 0aba879b95 Remove Lucida Grande from the sans serif font stack. fixes #8352, props iammattthomas.
git-svn-id: https://develop.svn.wordpress.org/trunk@15858 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-20 10:30:28 +00:00
Andrew Nacin 95ac3fc067 Body classes for custom taxonomies and terms. props nkuttler, fixes #15017.
git-svn-id: https://develop.svn.wordpress.org/trunk@15856 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-20 09:32:16 +00:00
scribu 5242abafb1 Make $id arg optional in the_terms(). Fixes #15160
git-svn-id: https://develop.svn.wordpress.org/trunk@15855 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-19 22:46:26 +00:00
scribu 3b3a5e8461 Correct dockblock for the_terms()
git-svn-id: https://develop.svn.wordpress.org/trunk@15854 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-19 22:41:34 +00:00
scribu c5520dab32 Don't stomp on posts_per_page in get_posts(). Props bobbyblade. Fixes #15150
git-svn-id: https://develop.svn.wordpress.org/trunk@15852 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-19 17:08:32 +00:00
Ryan Boren 15cda12c28 Lose get_ordered_blogs_of_user() and set_visibility(). Not using them yet. see #14772
git-svn-id: https://develop.svn.wordpress.org/trunk@15851 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-19 15:32:33 +00:00
scribu 6b80426cfa Re-add the ability to filter by 'taxonomy' and 'term' query vars. Fixes #13582. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@15850 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-19 14:41:30 +00:00
Dion Hulse 1027248cee Limit wp_old_slug_redirect() to redirecting to only posts of the same post_type kind. See #15140
git-svn-id: https://develop.svn.wordpress.org/trunk@15848 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-19 10:27:34 +00:00
Dion Hulse f5b6addcdb Fix current-cat & current-cat-parent classes for Category listings for non-category taxonomies. General cleanup of wp_list_categories() sanity checking. Props TheDeadMedic for the initial taxonomy patch. Fixes #15143
git-svn-id: https://develop.svn.wordpress.org/trunk@15847 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-19 10:10:11 +00:00
Andrew Nacin 443d5fc7d8 Doc fixes for wp_find_hierarchy_loop. props mdawaffe, fixes #14662.
git-svn-id: https://develop.svn.wordpress.org/trunk@15846 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-19 08:16:10 +00:00
Andrew Nacin 22ba9295bf Introduce show_in_menu for register_post_type. Allows post types to be a submenu. Accepts boolean and also a parent base. With help from duck_. fixes #14145.
git-svn-id: https://develop.svn.wordpress.org/trunk@15844 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-19 07:58:02 +00:00
Andrew Nacin fb4e38b0e7 Pinking shears.
git-svn-id: https://develop.svn.wordpress.org/trunk@15843 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-19 07:48:22 +00:00
Andrew Nacin fc71934f11 Full @since's for 3.1.0.
git-svn-id: https://develop.svn.wordpress.org/trunk@15842 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-19 07:38:42 +00:00
Andrew Nacin 44bf886cb9 Inline docs for _get_last_post_time helper.
git-svn-id: https://develop.svn.wordpress.org/trunk@15841 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-19 07:35:12 +00:00
Andrew Nacin 8a4fe8b2a0 Restore jQ noConflict. props filosofo, fixes #15147.
git-svn-id: https://develop.svn.wordpress.org/trunk@15840 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-19 07:26:52 +00:00
scribu dfbe420d9c Get rid of wp_cache_key(), as it's not really that useful. See [15838]
git-svn-id: https://develop.svn.wordpress.org/trunk@15839 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-18 21:54:39 +00:00
scribu e62f41c374 Fix custom post type feed when no regular posts present. Props aaroncampbell for initial patch. Fixes #14922
git-svn-id: https://develop.svn.wordpress.org/trunk@15838 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-18 21:06:49 +00:00
Ryan Boren d5bd0ffd71 Introduce schedule_event filter. fixes #15146
git-svn-id: https://develop.svn.wordpress.org/trunk@15837 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-18 20:50:35 +00:00
Ryan Boren 122a2981c4 Allow flagging of a blog as mature via a URL. Move some actions into update_blog_status(). Props Viper007Bond. fixes #14385
git-svn-id: https://develop.svn.wordpress.org/trunk@15836 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-18 18:53:47 +00:00
Ryan Boren 77b8718db9 Remove get_current_screen() call
git-svn-id: https://develop.svn.wordpress.org/trunk@15835 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-18 18:23:46 +00:00
Ryan Boren 8b610e7c83 Allow turning off the admin bar via WP_SHOW_ADMIN_BAR constant, no_admin_bar() function, or show_admin_bar filter. see #14772
git-svn-id: https://develop.svn.wordpress.org/trunk@15834 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-18 17:58:36 +00:00
Ryan Boren cdafd5fe89 Cache invalidation for get_blogs_of_user(). fixes #14379
git-svn-id: https://develop.svn.wordpress.org/trunk@15833 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-18 17:11:00 +00:00
Dion Hulse 5a1373ddd6 Use $wpdb->prepare in wp_old_slug_redirect(). See #15140
git-svn-id: https://develop.svn.wordpress.org/trunk@15832 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-18 11:44:19 +00:00
Dion Hulse 846ef7d8c3 Save _wp_old_slug for all published post_type's, brings old-slug redirection to Posts and CPT's. See #15140
git-svn-id: https://develop.svn.wordpress.org/trunk@15831 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-18 11:24:29 +00:00
scribu 9cd7bdec08 Apply filter in plugin_basename(). Props vladimir_kolesnikov. Fixes #13550
git-svn-id: https://develop.svn.wordpress.org/trunk@15829 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-17 13:47:40 +00:00
Andrew Nacin b7ffec08f8 Allow disabling of custom header uploads via remove_theme_support. props jorbin, fixes #14837.
git-svn-id: https://develop.svn.wordpress.org/trunk@15828 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-17 07:12:34 +00:00
Dion Hulse a5da762a4e Prevent notices on non-existent Term locations (such as /tag/404-non-existant-term/)
git-svn-id: https://develop.svn.wordpress.org/trunk@15827 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-17 06:14:58 +00:00
Dion Hulse 20e3b23a80 Remove missed tokens in [15825]. See #12659
git-svn-id: https://develop.svn.wordpress.org/trunk@15826 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-17 06:10:53 +00:00
Dion Hulse d7b230ca26 Merge Category/Tag URL creation/rewriting into general Taxonomy system. Removes the legacy handling for these url's. See #12659
git-svn-id: https://develop.svn.wordpress.org/trunk@15825 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-17 05:41:22 +00:00
Dion Hulse a47b78e95b Move hierarchical_url to $args['rewrite']['hierarchical']
git-svn-id: https://develop.svn.wordpress.org/trunk@15824 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-17 04:36:26 +00:00
Andrew Ozz 839bad194f Editor: stop inserting empty paragraphs before/after captioned images, see #15095
git-svn-id: https://develop.svn.wordpress.org/trunk@15822 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-16 22:11:31 +00:00
Andrew Nacin e2ecc45d62 jQuery 1.4.3. props demetris. fixes #15135.
git-svn-id: https://develop.svn.wordpress.org/trunk@15821 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-16 14:05:58 +00:00
Andrew Nacin 38092bb128 Custom post type archives, second pass. see #13818.
git-svn-id: https://develop.svn.wordpress.org/trunk@15819 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-15 19:44:57 +00:00
Ryan Boren 227e02298a nav_menu and post_format taxonomies should not be public. fixes #15107
git-svn-id: https://develop.svn.wordpress.org/trunk@15818 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-15 14:53:55 +00:00
Ryan Boren fe2b97b594 Remove dead code from get_next_posts_link(). Props filosofo. fixes #14850
git-svn-id: https://develop.svn.wordpress.org/trunk@15817 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-15 14:43:31 +00:00
Ryan Boren d66fa94a75 Improve regex performance in wptexturize(). Props mdawaffe. fixes #15093
git-svn-id: https://develop.svn.wordpress.org/trunk@15816 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-15 14:34:38 +00:00
Peter Westwood 8e5e7a83aa Group the quicktags js. Fixes #15124.
git-svn-id: https://develop.svn.wordpress.org/trunk@15814 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-15 13:43:34 +00:00
Andrew Nacin 85d1a2b5b4 Remove debug cruft.
git-svn-id: https://develop.svn.wordpress.org/trunk@15813 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-15 08:55:06 +00:00
Andrew Nacin dde4381c70 Use map_meta_cap for multisite super admins in current_user_can_for_blog. props jamescollins, see #15122.
git-svn-id: https://develop.svn.wordpress.org/trunk@15812 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-15 06:47:40 +00:00
Peter Westwood 1da3c94e55 Display mysql_connect errors when WP_DEBUG is enabled. Fixes #14654 props lloydbudd and hakre
Always die if we can't connect to the db no point in going any futher.

git-svn-id: https://develop.svn.wordpress.org/trunk@15808 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-14 18:47:39 +00:00
Ryan Boren 8e1da911a2 Prevent post and term hierarchy loops. Props mdawaffe. fixes #14662
git-svn-id: https://develop.svn.wordpress.org/trunk@15806 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-14 15:09:04 +00:00
Andrew Nacin cb3396d39c Use correct variable. see #13818.
git-svn-id: https://develop.svn.wordpress.org/trunk@15804 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-14 11:31:48 +00:00
Andrew Nacin 86ab32a196 Custom post type archives. see #13818.
git-svn-id: https://develop.svn.wordpress.org/trunk@15803 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-14 10:39:47 +00:00
scribu ba394c63a4 Rename get_edit_term_url() to get_edit_term_link() for consistency. See #9702
git-svn-id: https://develop.svn.wordpress.org/trunk@15801 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-14 08:47:41 +00:00
scribu 2e0bd92a09 get_edit_term_link() improvements:
* add optional $object_type parameter
	* make $term_id and $taxonomy parameters mandatory
	* pass all relevant information to the filter
	* use in WP_Terms_Table
See #9702


git-svn-id: https://develop.svn.wordpress.org/trunk@15800 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-14 07:35:13 +00:00
Ryan Boren cd1fc3faa2 Don't hide empty terms when determing exclude trees. Props layotte. fixes #14446
git-svn-id: https://develop.svn.wordpress.org/trunk@15797 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-13 20:12:20 +00:00
scribu 50a6be80d4 Don't look in in WP->parse_request(). See #15112
git-svn-id: https://develop.svn.wordpress.org/trunk@15796 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-13 16:55:58 +00:00
scribu ea756a6b40 Sacrifice DRY for readability in WP_Query. Props nacin for initial patch. See #14997
git-svn-id: https://develop.svn.wordpress.org/trunk@15795 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-13 16:37:01 +00:00
scribu d5e50c918b Add posts_clauses_request filter too. Props hakre. See #14997
git-svn-id: https://develop.svn.wordpress.org/trunk@15794 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-13 15:49:26 +00:00
scribu 0ed3d0b176 Don't attempt to convert objects to strings in WP->parse_request(). Fixes #14330
git-svn-id: https://develop.svn.wordpress.org/trunk@15793 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-13 15:21:19 +00:00
scribu 057abe87e0 Introduce edit_term_link() and get_term_url(). Props yoast. Fixes #9702
git-svn-id: https://develop.svn.wordpress.org/trunk@15792 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-13 14:54:21 +00:00
scribu 6d33bb68e9 Restore previous filter order in WP_Query. See #14997
git-svn-id: https://develop.svn.wordpress.org/trunk@15791 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-13 13:45:53 +00:00
Andrew Nacin 5e37bb785a s/showposts/posts_per_page/
git-svn-id: https://develop.svn.wordpress.org/trunk@15788 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-13 05:25:00 +00:00
scribu e87af16398 first pass at strength indicator on password reset. see #5919
git-svn-id: https://develop.svn.wordpress.org/trunk@15782 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-12 21:37:01 +00:00
scribu 33077f83fa move password-strength-meter.js into user-profile.js. See #5919
git-svn-id: https://develop.svn.wordpress.org/trunk@15780 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-12 20:29:19 +00:00
Ryan Boren 40dade4c0e Allow deleting a format. see #14746
git-svn-id: https://develop.svn.wordpress.org/trunk@15779 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-12 19:43:54 +00:00
Ryan Boren 0ccec0d6f1 has_post_format(). see #14746
git-svn-id: https://develop.svn.wordpress.org/trunk@15778 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-12 19:25:58 +00:00
Ryan Boren b1beb9c211 Post formats, take one. see #14746
git-svn-id: https://develop.svn.wordpress.org/trunk@15777 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-12 18:33:14 +00:00
scribu 53d8aaf3fc Introduce wp_query_clauses filter. Fixes #14997
git-svn-id: https://develop.svn.wordpress.org/trunk@15775 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-11 15:04:44 +00:00
scribu b3bcb5f77e Remove redundant call to function_exists() in wp_nav_menu(). Fixes #15094
git-svn-id: https://develop.svn.wordpress.org/trunk@15774 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-11 13:21:08 +00:00
scribu 253cc18443 don't re-urlencode taxonomy query vars. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@15773 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-11 12:18:42 +00:00
Andrew Nacin 2657fa5a5b Make it explicit that you can set fallback_cb to false in wp_nav_menu.
git-svn-id: https://develop.svn.wordpress.org/trunk@15772 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-11 03:16:45 +00:00
scribu e5354a9e00 Allow string as first parameter to locate_template(). Props chrisbliss18 for initial patch. Fixes #15061
git-svn-id: https://develop.svn.wordpress.org/trunk@15771 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-10 22:10:36 +00:00
scribu 6e89ca7bff Make parse_reques() set empty variables. Props filosofo for initial patch. Fixes #10710
git-svn-id: https://develop.svn.wordpress.org/trunk@15770 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-10 20:02:26 +00:00
Andrew Nacin e47fb410bc s/blog/site/ on the admin bar code. props markmcwilliams, see #14772.
git-svn-id: https://develop.svn.wordpress.org/trunk@15769 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-09 12:22:00 +00:00
scribu a080a0a289 Fix warning caused by empty meta query. See #14645
git-svn-id: https://develop.svn.wordpress.org/trunk@15768 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-09 12:18:52 +00:00
Andrew Nacin 69b3664fe0 esc_html in WP_Object_Cache::stats(). fixes #15003.
git-svn-id: https://develop.svn.wordpress.org/trunk@15767 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-09 11:38:12 +00:00
scribu a3ee8cac1a Get rid of redundant $this->meta_query. See #14645
git-svn-id: https://develop.svn.wordpress.org/trunk@15766 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-09 10:48:13 +00:00
scribu c4a14ee8d9 Get rid of redundant ->tax_query. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@15765 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-09 10:19:15 +00:00
Dion Hulse f8be3f9fd1 Standardise on ->user->domain and ->user->account_domain being trailingslash'd. See #14772
git-svn-id: https://develop.svn.wordpress.org/trunk@15760 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-09 05:25:09 +00:00
Ryan Boren 3a8fb669cb Some more hierarchy loop detection.
git-svn-id: https://develop.svn.wordpress.org/trunk@15758 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-08 16:22:14 +00:00
Andrew Nacin a1cd90933d s/Wether/Whether/
git-svn-id: https://develop.svn.wordpress.org/trunk@15756 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-08 02:35:06 +00:00
Andrew Nacin b040a1790a Add NOT LIKE/BETWEEN/IN. props AaronCampbell, fixes #9124.
git-svn-id: https://develop.svn.wordpress.org/trunk@15755 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-08 02:27:22 +00:00
scribu ccbf85c82d Remove debug cruft introduced by [15751]. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@15752 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-07 21:50:32 +00:00
scribu f4ed3e239c Add 'tax_query' as public query var. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@15751 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-07 21:47:52 +00:00
Peter Westwood 3e66b217cc Avoid Notice if the query doesn't have a post set e.g. on a 404 . Fixes #15059 props chrisbliss18.
git-svn-id: https://develop.svn.wordpress.org/trunk@15750 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-07 21:23:50 +00:00
Peter Westwood bf878cad07 Ensure we don't generate incorrect content types when files are requested with query strings. Fixes #14450 props chrisbliss18.
git-svn-id: https://develop.svn.wordpress.org/trunk@15749 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-07 21:00:45 +00:00
Ryan Boren 1b7b0e1d7f Unset global variables when they are no longer needed.
git-svn-id: https://develop.svn.wordpress.org/trunk@15747 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-07 20:12:49 +00:00
Ryan Boren 9ee8b20f30 First pass of user admin. Network admin and screen cleanups. see #14696
git-svn-id: https://develop.svn.wordpress.org/trunk@15746 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-07 19:34:18 +00:00
scribu eb178ad876 More specific selector for checkbox columns. Props Cimmo for initial patch. Fixes #15051
git-svn-id: https://develop.svn.wordpress.org/trunk@15743 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-07 09:53:37 +00:00
Andrew Nacin d8596259e2 Sticky post support for post types, first pass. see #12702, props azizur.
git-svn-id: https://develop.svn.wordpress.org/trunk@15742 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-07 09:10:35 +00:00
Mark Jaquith 4689663e64 Revert accidental inclusion in last commit... [15740]
git-svn-id: https://develop.svn.wordpress.org/trunk@15741 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-07 08:06:31 +00:00
Mark Jaquith dfa0e20a64 Fix an English fail.
git-svn-id: https://develop.svn.wordpress.org/trunk@15740 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-07 08:04:15 +00:00
Andrew Nacin 07fca17d6d Some doc updates. see #15048.
git-svn-id: https://develop.svn.wordpress.org/trunk@15739 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-07 05:59:50 +00:00
Andrew Nacin 6c9318e763 Verify that a widget is draggable before stripping its draggability. props filosofo, see #12863. Fixes widget creation for jQUI 1.8.5; should be fixed in jQUI 1.8.6.
git-svn-id: https://develop.svn.wordpress.org/trunk@15738 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-07 04:20:19 +00:00
scribu b6c2c3003c Proper handling of array query variables. Props loushou. Fixes #14330
git-svn-id: https://develop.svn.wordpress.org/trunk@15737 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-06 23:18:42 +00:00
Andrew Nacin 202ec80a4d Shift theme mods to be reliant on the theme slug instead of name. fixes #15048.
git-svn-id: https://develop.svn.wordpress.org/trunk@15736 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-06 21:00:17 +00:00
scribu bfacb144ae Prevent db error when dealing with unexistant parent term. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@15734 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-06 12:06:23 +00:00
scribu 7cd352d4b8 Better way of settings tax related query flags. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@15733 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-06 11:13:37 +00:00
scribu d6e6296b89 Make hierarchical URLs work for any hierarchical taxonomy. See #12659
git-svn-id: https://develop.svn.wordpress.org/trunk@15732 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-06 11:04:03 +00:00
scribu 448f74675a Generalize taxonomy queries:
* transform wp_tax_query() into WP_Object_Query::get_tax_sql()
	* create parse_tax_query() method in WP_Query
	* add doc-block for $tax_query and $meta_query
See #15032. See #12891.


git-svn-id: https://develop.svn.wordpress.org/trunk@15731 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-06 10:40:30 +00:00
scribu 5a14ba3fa3 further meta query optimization. props aaroncampbell. fixes #9124
git-svn-id: https://develop.svn.wordpress.org/trunk@15730 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-05 23:06:20 +00:00
scribu 39d1200d5c Revert part of [15713] to prevent notices. See #14645
git-svn-id: https://develop.svn.wordpress.org/trunk@15729 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-05 22:42:47 +00:00
Andrew Ozz dc54187c8a Properly reference tinyMCEPreInit in wp-tinymce.js.gz, fixes #15027
git-svn-id: https://develop.svn.wordpress.org/trunk@15728 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-05 17:43:20 +00:00
scribu 73261c879f Don't revalidate $meta_type in get_meta_sql(). Props Viper007Bond. See #9124
git-svn-id: https://develop.svn.wordpress.org/trunk@15726 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-04 22:51:31 +00:00
scribu ee22465376 Use elseif in get_meta_sql(). Props Viper007Bond. See #9124
git-svn-id: https://develop.svn.wordpress.org/trunk@15725 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-04 22:47:04 +00:00
scribu 4685506671 Enhance get_meta_sql. Props aaroncampbell. Fixes #9124
git-svn-id: https://develop.svn.wordpress.org/trunk@15724 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-04 21:37:08 +00:00
scribu 12fdf54fdd Move _wp_search_sql() into WP_Object_Query. Introduce WP_Comment_Search. See #15032
git-svn-id: https://develop.svn.wordpress.org/trunk@15723 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-04 21:05:31 +00:00
Andrew Nacin 4360f8c1a4 Use separate ajax spinners for the Save Draft and Publish buttons on the post form. fixes #14582 with initial patch from wojtek.szkutnik.
git-svn-id: https://develop.svn.wordpress.org/trunk@15722 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-04 20:53:04 +00:00
scribu 7b01cbcc6e Put the simple meta query first, so that orderby=meta_value works even when using 'meta_query'. See #15031
git-svn-id: https://develop.svn.wordpress.org/trunk@15721 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-04 20:19:21 +00:00
Andrew Nacin 24294c1c83 Account for Twenty Ten in theme name collisions and properly fall back to TT in get_current_theme(). fixes #15719, props tonyf12.
git-svn-id: https://develop.svn.wordpress.org/trunk@15720 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-04 19:50:13 +00:00
scribu a811171a0c Introduce WP_Object_Query. See #15032
git-svn-id: https://develop.svn.wordpress.org/trunk@15715 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-04 18:57:13 +00:00
scribu ec8503802e Strip redundant 'meta_' from 'meta_query' keys. See #14645
git-svn-id: https://develop.svn.wordpress.org/trunk@15714 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-04 18:26:26 +00:00
scribu 68f22e028e Recognize meta_query as a query var. Props aaroncampbell. Fixes #14645
git-svn-id: https://develop.svn.wordpress.org/trunk@15713 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-04 17:51:17 +00:00
Andrew Nacin 7cac913b3b Restore wp_delete_category. props blepoxp, fixes #15008.
git-svn-id: https://develop.svn.wordpress.org/trunk@15712 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-04 16:28:01 +00:00
Ryan Boren 27d9e24a11 jQuery UI 1.8.5. Props demetris. fixes #12863
git-svn-id: https://develop.svn.wordpress.org/trunk@15711 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-04 16:19:18 +00:00
scribu 078cda9275 Fix menu box search. Fixes #14335
git-svn-id: https://develop.svn.wordpress.org/trunk@15709 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-04 14:17:34 +00:00
Dion Hulse 21bf2e613d Fix canonical redirection for permalinks containing %category% with nested categories and paging. Fixes #13471 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@15707 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-04 11:30:11 +00:00
Dion Hulse 9f034ad032 Revert part of [15703]. The Metadata API doesnt unserialize everything.
git-svn-id: https://develop.svn.wordpress.org/trunk@15706 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-04 11:00:36 +00:00
Dion Hulse 6ace731ac8 Introduce hierarchical taxonomy URL's, Can be enabled by setting 'hierarchical_url' to true upon taxonomy registration. See #12659
git-svn-id: https://develop.svn.wordpress.org/trunk@15705 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-04 10:37:25 +00:00
Dion Hulse 996e0020b2 Forgot to change a variable name in [15703]
git-svn-id: https://develop.svn.wordpress.org/trunk@15704 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-04 10:03:05 +00:00
Dion Hulse 6c9b29e6f3 Simplify get_user_metavalues() to entirely rely upon the Metadata API, Removes a direct SQL Query. de-serializing is handled by the Metadata API now.
git-svn-id: https://develop.svn.wordpress.org/trunk@15703 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-04 09:59:53 +00:00
Dion Hulse 761ad85a17 Fix a hard-coded database table typo. s/wp_users/$wpdb->users/
git-svn-id: https://develop.svn.wordpress.org/trunk@15702 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-04 09:43:02 +00:00
Dion Hulse 3d2e3625d4 Do not load Taxonomy cache & Postmeta cache in get_boundary_post(). Fixes #15028
git-svn-id: https://develop.svn.wordpress.org/trunk@15701 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-04 09:17:18 +00:00
Dion Hulse d837eb9f8f Cache terms under more scenario's in update_post_caches(). Fixes #15026
git-svn-id: https://develop.svn.wordpress.org/trunk@15700 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-04 08:56:04 +00:00
Dion Hulse 5255794ad1 get_user_metavalues(): Use cached user objects when querying for a single user, Prevents duplicate usermeta queries from Adminbar. Whitespace & s/AS/as/. See #14772
git-svn-id: https://develop.svn.wordpress.org/trunk@15698 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-04 07:38:32 +00:00
Dion Hulse c20a7fc441 Do not load adminbar css in media uploader. See #14772
git-svn-id: https://develop.svn.wordpress.org/trunk@15696 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-04 04:16:33 +00:00
Dion Hulse 57f3dab19d Do not show admin bar in update iframes. See #14772
git-svn-id: https://develop.svn.wordpress.org/trunk@15695 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-04 04:11:34 +00:00
Dion Hulse 7feec6e344 Fix return false; for Adminbar Blog info.
git-svn-id: https://develop.svn.wordpress.org/trunk@15694 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-04 03:15:35 +00:00
Dion Hulse b10f73b4bc Fix profile link in admin bar. Props mellertime. Fixes #15022
git-svn-id: https://develop.svn.wordpress.org/trunk@15693 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-04 03:04:28 +00:00
Dion Hulse b5e7866d16 Sanitize meta keynames used as object properties on retrieval. Fixes #14924
git-svn-id: https://develop.svn.wordpress.org/trunk@15692 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-04 02:55:11 +00:00
Andrew Nacin d2cfd1f678 wp_quickpress_form, first pass. props jorbin. see #14966.
git-svn-id: https://develop.svn.wordpress.org/trunk@15691 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-03 07:41:48 +00:00
Andrew Nacin 6d07d415ec Have wp_delete_category wrap wp_delete_term. Move wp_delete_category into wp-includes scope for consistency. fixes #15008, props blepoxp.
git-svn-id: https://develop.svn.wordpress.org/trunk@15690 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-03 07:29:44 +00:00
Andrew Nacin 6fd30d36ea Docs and breathing room for get_media_buttons() and friends. see #14966.
git-svn-id: https://develop.svn.wordpress.org/trunk@15689 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-03 03:08:39 +00:00
Andrew Nacin ea2f90c70e Move some post and taxonomy functions from admin/includes to wp-includes in preparation for QuickPress template tag. Moves get_tags_to_edit, get_terms_to_edit, get_default_post_to_edit, media_buttons, _media_button, get_upload_iframe_src. Also introduce get_media_buttons as a wrapper for media_buttons. props jorbin, see #14966.
git-svn-id: https://develop.svn.wordpress.org/trunk@15688 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-03 02:58:59 +00:00
scribu 3791a39615 Allow search in archive pages. Fixes #14831
git-svn-id: https://develop.svn.wordpress.org/trunk@15687 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-02 22:52:15 +00:00
scribu c063cc13bb Split wp_filter_object_list() into wp_list_filter() and wp_list_pluck(). Fixes #15016
git-svn-id: https://develop.svn.wordpress.org/trunk@15686 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-02 18:48:51 +00:00
scribu 455d7463c1 Set 'cat' query var for backwards compatibility. Fixes #15007
git-svn-id: https://develop.svn.wordpress.org/trunk@15685 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-02 18:03:06 +00:00
Andrew Ozz 7636689e49 Properly align all buttons in the TinyMCE dialogs, see #12574
git-svn-id: https://develop.svn.wordpress.org/trunk@15684 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-02 05:31:42 +00:00
Andrew Ozz 358c7e1885 TinyMCE 3.3 first run
git-svn-id: https://develop.svn.wordpress.org/trunk@15683 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-02 05:14:12 +00:00
Dion Hulse f96d26ff97 Retire IIS 3,4,5 Set-Cookie redirection workaround. See [2436] for original implementation. See #10187
git-svn-id: https://develop.svn.wordpress.org/trunk@15682 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-02 04:02:24 +00:00
Dion Hulse c9ab260ab4 utilise wp_guess_url() in installation redirection to provide an Absolute URL. See #14062. See #14904
git-svn-id: https://develop.svn.wordpress.org/trunk@15680 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-02 03:08:02 +00:00
Ryan Boren 4c2c9bc17d Remove wordpressmu_wp_mail_from(). fixes #14586
git-svn-id: https://develop.svn.wordpress.org/trunk@15678 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-01 18:32:47 +00:00
Ryan Boren 0cfb13ac25 has_term(). Props ptahdunbar. fixes #12526
git-svn-id: https://develop.svn.wordpress.org/trunk@15677 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-01 17:44:53 +00:00
scribu 6dd0736429 Add inline documentation for ms-blogs.php. See #14953
git-svn-id: https://develop.svn.wordpress.org/trunk@15676 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-01 01:32:31 +00:00
Andrew Nacin c5de43dced Some phpdoc for ms-functions.php. props boonebgorges. see #14953.
git-svn-id: https://develop.svn.wordpress.org/trunk@15675 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-29 23:44:34 +00:00
scribu 898ba9b2b2 Do thorough resets in init() and init_query_flags(). Props coffee2code. Fixes #14976
git-svn-id: https://develop.svn.wordpress.org/trunk@15672 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-27 23:48:03 +00:00
Ryan Boren 733af07765 Admin bar, first pass. see #14772
git-svn-id: https://develop.svn.wordpress.org/trunk@15671 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-27 20:26:36 +00:00
Andrew Nacin f445cbf975 Have get_boundary_post sort by post_date, not ID. props scribu, jk0. fixes #14035.
git-svn-id: https://develop.svn.wordpress.org/trunk@15660 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-26 08:31:16 +00:00
Dion Hulse ff7ef3edd4 Only show the Password Strength Meter when JavaScript is available. Fixes #14943
git-svn-id: https://develop.svn.wordpress.org/trunk@15659 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-25 10:58:01 +00:00
Ryan Boren 36d2d868d5 Feature filter visuals. First pass. see #14936
git-svn-id: https://develop.svn.wordpress.org/trunk@15656 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-24 18:50:31 +00:00
scribu d4eecd8787 get_objects_in_term(): include term children when querying by slug. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@15654 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-24 14:08:07 +00:00
Dion Hulse b5f0bf47ac Do not generate invalid SQL for empty term archives. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@15652 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-24 12:09:44 +00:00
Dion Hulse a59d598281 Use the correct term_id field in get_body_class().
git-svn-id: https://develop.svn.wordpress.org/trunk@15651 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-24 11:58:21 +00:00
scribu d004c99ea6 Consistently set $post_type to 'any' when a taxonomy query is involved. See [15649]. See #14589
git-svn-id: https://develop.svn.wordpress.org/trunk@15650 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-23 23:19:47 +00:00
scribu 9e37c78da3 Set $post_type to 'any' when taxonomies are involved (code resqued from r15613). See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@15649 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-23 23:11:49 +00:00
Peter Westwood bf13c1921f Complete the move to a seperate class file for #14820 props filosofo.
Add support for replacing the class used. Fixes #14814 props filosofo.

git-svn-id: https://develop.svn.wordpress.org/trunk@15648 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-23 21:38:28 +00:00
Peter Westwood 620f094eb7 First part of #14820. Copy the file to preserve history. Props filosofo.
git-svn-id: https://develop.svn.wordpress.org/trunk@15647 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-23 21:22:21 +00:00
scribu b7be962c6b Make login css more flexible. Props joelhardi. Fixes #7763
git-svn-id: https://develop.svn.wordpress.org/trunk@15643 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-22 15:26:16 +00:00
Ryan Boren 6121bb1234 Don't fetch theme_roots transient on every page load. Avoid it altogether if there is only one theme dir. fixes #14911
git-svn-id: https://develop.svn.wordpress.org/trunk@15641 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-21 19:41:35 +00:00
Andrew Nacin 6131f69f23 Provide an example for add_role() capabilities argument. props simonwheatley, fixes #14918.
git-svn-id: https://develop.svn.wordpress.org/trunk@15640 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-21 14:52:03 +00:00
Ryan Boren 1b0446409c Revert [15637]. Still needed for PHP4.
git-svn-id: https://develop.svn.wordpress.org/trunk@15639 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-20 19:17:47 +00:00
Andrew Nacin 5963feeca6 Always include wp-db.php. Prevents a conditional include and allows db dropins to cleanly extend the wpdb class. Move require_wp_db() to load.php for consistency with bootloader helpers. fixes #14508.
git-svn-id: https://develop.svn.wordpress.org/trunk@15638 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-20 19:13:47 +00:00
Ryan Boren 5207524203 Remove annoying, useless construcotrs. Props Rasmus. http://talks.php.net/show/confoo10/8
git-svn-id: https://develop.svn.wordpress.org/trunk@15637 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-20 18:53:03 +00:00
Ryan Boren d46e7dbfc0 Speed up is_serialized() with strpbrk(). Props Rasmus. see #14429
git-svn-id: https://develop.svn.wordpress.org/trunk@15636 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-20 18:11:06 +00:00
Ryan Boren df6d5550db Simplify sanitize_key() and use it in more places. see #14910
git-svn-id: https://develop.svn.wordpress.org/trunk@15635 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-20 15:28:58 +00:00
scribu a6d9954621 Clarify code in wp_load_alloptions(). Props joelhardi. Fixes #14896
git-svn-id: https://develop.svn.wordpress.org/trunk@15634 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-19 11:08:20 +00:00
scribu b55b06e466 Introduce get_ancestors(). Props filosofo. Fixes #12443
git-svn-id: https://develop.svn.wordpress.org/trunk@15631 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-18 19:20:16 +00:00
Andrew Nacin 17e249f359 Fix logic inversion in r15626. see #14892. Also note that r15626 fixed a s/is_category/is_tag/ typo introduced in r6011, on line 1340.
git-svn-id: https://develop.svn.wordpress.org/trunk@15627 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-17 22:35:05 +00:00
scribu 03a3e5c1d9 Don't require category__in, tag__in etc. to be arrays necessarily. Fixes #14892
git-svn-id: https://develop.svn.wordpress.org/trunk@15626 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-17 22:27:22 +00:00
scribu c1ce7ddc38 Remove extraneous sanitization of category_name. Leave it to wp_tax_query(). See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@15625 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-17 17:07:11 +00:00
scribu 89382ae313 Allow plugins to manipulate the meta query args. See #14645
git-svn-id: https://develop.svn.wordpress.org/trunk@15624 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-17 16:08:35 +00:00
scribu d9039c38d7 Apply filter to wp_get_current_commenter(). Fixes #14878
git-svn-id: https://develop.svn.wordpress.org/trunk@15623 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-16 20:48:18 +00:00
scribu 98d1045606 use get_user_count() in get_sitestats()
git-svn-id: https://develop.svn.wordpress.org/trunk@15621 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-15 20:13:31 +00:00
scribu 322e323b26 Clean up wp_list_authors(). See #10329
git-svn-id: https://develop.svn.wordpress.org/trunk@15620 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-15 19:52:25 +00:00
scribu 30581c2d4d Fix border radius in login form. Props filosofo. Fixes #14872
git-svn-id: https://develop.svn.wordpress.org/trunk@15619 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-15 09:24:11 +00:00
Andrew Nacin 003a617439 Some docs and corrections to _wp_link_page().
git-svn-id: https://develop.svn.wordpress.org/trunk@15617 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-14 16:48:38 +00:00
Andrew Nacin b75eb167cd Make note of an optional argument. props hakre, fixes #14870.
git-svn-id: https://develop.svn.wordpress.org/trunk@15616 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-14 16:22:55 +00:00
scribu 6ffb0e718e Calculate term count using $wp_query->tax_query. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@15615 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-14 11:34:40 +00:00
scribu 5c95616ce8 Clean up taxonomy queries in WP_Query. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@15613 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-13 16:44:14 +00:00
scribu 3e1de4ae9a Update Incutio XML-RPC Library to latest version (1.7.4). Props hakre. Fixes #14703
git-svn-id: https://develop.svn.wordpress.org/trunk@15612 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-13 16:36:08 +00:00
scribu 0b09ec156f Apply filters consistently in get_*_template() functions. Fixes #14310
git-svn-id: https://develop.svn.wordpress.org/trunk@15611 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-12 18:46:18 +00:00
Andrew Nacin fc00e5842f More efficient is_super_admin(). Don't call new WP_User on the current user. props mdawaffe, fixes #14842.
git-svn-id: https://develop.svn.wordpress.org/trunk@15608 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-10 23:24:34 +00:00
Andrew Nacin be0b363c5c Fix UPLOADS constant. see #14840.
git-svn-id: https://develop.svn.wordpress.org/trunk@15607 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-10 20:29:19 +00:00
Mark Jaquith 80055bcec2 wp_dequeue_script() and wp_dequeue_style(). fixes #14815. props scribu
git-svn-id: https://develop.svn.wordpress.org/trunk@15601 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-09 04:42:47 +00:00
Andrew Nacin 5c05a437a9 Add force_filtered_html_on_import filter. fixes #14818.
git-svn-id: https://develop.svn.wordpress.org/trunk@15600 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-09 02:43:18 +00:00
scribu 23850cf615 Replace is_term() with is_tax(). See #14161
git-svn-id: https://develop.svn.wordpress.org/trunk@15599 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-08 16:58:58 +00:00
scribu 14a8208e07 Clean up single_cat_title(), single_tag_title() and wp_title(). Fixes #14161
git-svn-id: https://develop.svn.wordpress.org/trunk@15598 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-08 16:21:13 +00:00
scribu b1def7dad8 Introduce 'edit_comment' meta cap. Fixes #14520
git-svn-id: https://develop.svn.wordpress.org/trunk@15596 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-07 23:35:28 +00:00
Andrew Nacin 7845df0f09 Return the character range removed in [15594]. fixes #14633, props demetris.
git-svn-id: https://develop.svn.wordpress.org/trunk@15595 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-07 17:52:43 +00:00
Andrew Nacin 50194d0c51 Speak in full, clear sentences. props mrmist, fixes #14633.
git-svn-id: https://develop.svn.wordpress.org/trunk@15594 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-07 15:28:56 +00:00
Andrew Nacin ab35b9ca6d Pass some context to the pre_comment_approved hook. props coffee2code, fixes #14802.
git-svn-id: https://develop.svn.wordpress.org/trunk@15592 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-07 14:36:35 +00:00
Andrew Nacin 9f77e4b6a0 Only run update checks on the main site. fixes #14554.
git-svn-id: https://develop.svn.wordpress.org/trunk@15591 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-07 13:43:32 +00:00
Andrew Nacin 9494e4ce7e Phpdoc argument/@param cleanups. props duck_, see #14783.
git-svn-id: https://develop.svn.wordpress.org/trunk@15590 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-07 11:21:11 +00:00
Mark Jaquith 93680ad646 Rename caller_get_posts WP_Query flag to ignore_sticky_posts, because that is the only thing it does. fixes #14624. props scribu
git-svn-id: https://develop.svn.wordpress.org/trunk@15589 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-07 04:46:08 +00:00
Mark Jaquith d901f3af6b Duplicate Save button for nav menus at the bottom. fixes #14265. props duck_
git-svn-id: https://develop.svn.wordpress.org/trunk@15588 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-07 04:40:53 +00:00
Mark Jaquith d07572b3e4 Support custom post type links in wp_list_pages(). fixes #14177. props scribu
git-svn-id: https://develop.svn.wordpress.org/trunk@15587 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-07 04:31:07 +00:00
Mark Jaquith e0c7c93fa0 Make the second (taxonomy) parameter for get_term_link() optional if you pass in a term object as the first argument (which has the taxonomy in it). fixes #13081. props scribu
git-svn-id: https://develop.svn.wordpress.org/trunk@15586 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-07 04:29:00 +00:00
Mark Jaquith ad682bb2dd More efficient calendar queries. fixes #8351. props vladimir_kolesnikov
git-svn-id: https://develop.svn.wordpress.org/trunk@15585 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-07 04:22:56 +00:00
Mark Jaquith b98d713f62 When doing current page highlighting logic, apply untrailingslashit() to everything so that slash additions or omissions still match. fixes #14208. props filosofo
git-svn-id: https://develop.svn.wordpress.org/trunk@15584 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-07 04:17:37 +00:00
Mark Jaquith 400a42ffea Do not cache terms indefinitely... use TTL of one day. fixes #11431. props Denis-de-Bernardy
git-svn-id: https://develop.svn.wordpress.org/trunk@15583 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-07 04:13:01 +00:00
scribu bfb520f616 Don't hardcode the pagination base. Fixes #12507
git-svn-id: https://develop.svn.wordpress.org/trunk@15582 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-07 01:18:42 +00:00
scribu 7ddd031d75 Use _wp_meta_sql() in WP_Query. See #14572. See #14645
git-svn-id: https://develop.svn.wordpress.org/trunk@15581 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-06 11:28:59 +00:00
scribu 8747d3d214 Use multiple JOINs instead of CASE in _wp_meta_sql(). See #14572
git-svn-id: https://develop.svn.wordpress.org/trunk@15580 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-06 11:04:50 +00:00
scribu 7168dd09dd Rewrite WP_User_Query to use JOIN instead of subquery. See #14572
git-svn-id: https://develop.svn.wordpress.org/trunk@15579 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-06 08:09:41 +00:00
scribu a258200257 Use get_users() in wp_dropdown_users(). See #14572
git-svn-id: https://develop.svn.wordpress.org/trunk@15574 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-05 18:47:25 +00:00
scribu 54cafea37d Fix meta query in WP_User_Query. See #14572
git-svn-id: https://develop.svn.wordpress.org/trunk@15570 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-05 15:30:10 +00:00
scribu abe62a803f Don't suppress errors in _wp_meta_sql(). See #14572
git-svn-id: https://develop.svn.wordpress.org/trunk@15568 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-05 14:54:55 +00:00
scribu 9344ecc8b5 fix wp_getAuthors in xmlrpc.php. See #14572 and [15566]
git-svn-id: https://develop.svn.wordpress.org/trunk@15567 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-05 14:49:52 +00:00
scribu ef3ee6e841 call get_users() from get_users_of_blog()
git-svn-id: https://develop.svn.wordpress.org/trunk@15566 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-05 14:35:55 +00:00
scribu 529a40e2b8 introduce _wp_meta_sql(). Preparation for adding blog_id to WP_User_Query. See #14572
git-svn-id: https://develop.svn.wordpress.org/trunk@15565 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-05 13:31:33 +00:00
Andrew Nacin af29b5d5cf phpdoc, @since, whitespace. Also require an argument in wp_insert_post(). props duck_, see #14783.
git-svn-id: https://develop.svn.wordpress.org/trunk@15564 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-05 02:45:39 +00:00
Andrew Nacin 457c37ff01 Adjustments to [15549]. See #11624.
git-svn-id: https://develop.svn.wordpress.org/trunk@15563 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-04 15:51:04 +00:00
Andrew Nacin 65fdbfec3f Fix the delete_user meta cap.
git-svn-id: https://develop.svn.wordpress.org/trunk@15561 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-04 12:24:43 +00:00
Andrew Nacin d62e022459 Add a note about REMOTE_ADDR behind proxies.
git-svn-id: https://develop.svn.wordpress.org/trunk@15560 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-03 10:18:32 +00:00
Ryan Boren 21dd6b285a Do not run kses on display filters for front page views. see #14758
git-svn-id: https://develop.svn.wordpress.org/trunk@15559 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-02 15:06:07 +00:00
Ryan Boren b2351693de is_blog_admin(). fixes #14763
git-svn-id: https://develop.svn.wordpress.org/trunk@15558 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-02 15:03:39 +00:00
Ryan Boren a17a25fcef Make smilies links SSL aware. Props tech163. fixes #14360
git-svn-id: https://develop.svn.wordpress.org/trunk@15554 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-31 18:26:18 +00:00
Ryan Boren 98e7f76197 Link directly to comment in email notification. Props lancewillett. fixes #12797
git-svn-id: https://develop.svn.wordpress.org/trunk@15553 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-31 18:24:41 +00:00
Ryan Boren 6267682e7f Pass more info to notification filters. Props mdawaffe. fixes #14743
git-svn-id: https://develop.svn.wordpress.org/trunk@15552 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-31 18:19:15 +00:00
Ryan Boren 54bfddfbfa Cache to site_name instead of current_site_name. Props benward. fixes #14461
git-svn-id: https://develop.svn.wordpress.org/trunk@15551 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-31 18:17:20 +00:00
Ryan Boren 954dd7f59d Update last_changed when cleaning comment cache. fixes #14713
git-svn-id: https://develop.svn.wordpress.org/trunk@15550 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-30 19:59:16 +00:00
scribu b3ef955990 Don't use the global anymore. Fixes #11624
git-svn-id: https://develop.svn.wordpress.org/trunk@15549 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-28 11:57:28 +00:00
scribu fbdaa80fde Always set no_found_rows = true in get_posts(). Fixes #14528
git-svn-id: https://develop.svn.wordpress.org/trunk@15548 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-28 11:51:02 +00:00
scribu ad904f3307 update WP_Query docs. See #14600
git-svn-id: https://develop.svn.wordpress.org/trunk@15547 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-28 11:09:18 +00:00
Ryan Boren 9b99bf5f5f Fix typo in [15544]
git-svn-id: https://develop.svn.wordpress.org/trunk@15545 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-27 16:53:26 +00:00
Nikolay Bachiyski 33cd9f11dd Make menus manipulation easier for plugin developers
* Add a wp_nav_menu_objects filter, which gets a sorted list of all menu node objects in the currently rendered menu
 * Add current, current_item_ancestor and current_item_parent boolean member variables to each menu node object, which are true when the item has the current-menu-item, current-menu-ancestor or current-menu-parent CSS class respectively


git-svn-id: https://develop.svn.wordpress.org/trunk@15544 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-27 16:13:39 +00:00
scribu 22640aa231 WP_User_Query constructor improvements. Props filosofo. Fixes #14709
git-svn-id: https://develop.svn.wordpress.org/trunk@15543 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-27 15:41:32 +00:00
scribu 8993abd1be use get_users() in get_editable_user_ids() and cache result. See #14572
git-svn-id: https://develop.svn.wordpress.org/trunk@15539 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-27 00:18:57 +00:00
scribu 072ea8728b Fix weird wrapping of sorting arrow in Chrome. Fixes #14706
git-svn-id: https://develop.svn.wordpress.org/trunk@15538 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-26 22:11:04 +00:00
Ryan Boren b03d626909 Remove WP_USE_MULTIPLE_DB. Introduce init_charset() and set_charset(). fixes #14672
git-svn-id: https://develop.svn.wordpress.org/trunk@15537 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-26 18:34:18 +00:00
Mark Jaquith ae2f607f53 Leonard Lin was kind enough to relicense his balanceTags() function as "GPL (any version)" instead of "GPL v2.0." http://github.com/lhl/balanceTags/blob/master/README
git-svn-id: https://develop.svn.wordpress.org/trunk@15536 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-26 15:43:32 +00:00
Ryan Boren a4ce5b114b is_* WP_Query methods. Props mdawaffe. fixes #14494
git-svn-id: https://develop.svn.wordpress.org/trunk@15531 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-25 18:05:33 +00:00
scribu 4b4c95799a Rename admin-table.js to list-table.js
git-svn-id: https://develop.svn.wordpress.org/trunk@15530 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-25 01:59:13 +00:00
scribu b14febd290 munge admin-table.js & minify jquery.query
git-svn-id: https://develop.svn.wordpress.org/trunk@15526 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-23 21:44:25 +00:00
scribu 83d019c1d9 Move list table deprecated functions to wp-admin/includes/deprecated.php
git-svn-id: https://develop.svn.wordpress.org/trunk@15515 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-21 16:33:56 +00:00
scribu 7bbfb4b5f1 Deprecate get_hidden_columns(). Fixes #14651
git-svn-id: https://develop.svn.wordpress.org/trunk@15514 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-21 16:30:18 +00:00
scribu b8eb1b6863 Add register_column_headers() and print_column_headers() to deprecated.php to prevent fatal errors in plugins. See #14579
git-svn-id: https://develop.svn.wordpress.org/trunk@15510 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-19 00:26:48 +00:00
scribu 2c7897bd78 Use adminTable to refill #the-extra-comment-list. See #14637
git-svn-id: https://develop.svn.wordpress.org/trunk@15509 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-19 00:06:51 +00:00
scribu 9685e25bad refactor admin-table.js code
git-svn-id: https://develop.svn.wordpress.org/trunk@15507 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-18 21:02:24 +00:00
Mark Jaquith ad944bb822 Do not attempt to clear post cache for post ID 0... that will recursively destroy your server
git-svn-id: https://develop.svn.wordpress.org/trunk@15503 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-18 06:50:53 +00:00
scribu 6d510588aa Safer hierarchical display check. Fixes #14600; See #14579
git-svn-id: https://develop.svn.wordpress.org/trunk@15501 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-16 01:36:21 +00:00
scribu aa7117dfe5 Round th corners. Based on patch by wedsxcrfv. Fixes #14613
git-svn-id: https://develop.svn.wordpress.org/trunk@15498 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-15 11:02:31 +00:00
scribu 37401689c5 Introduce WP_List_Table::check_permissions() and WP_List_Table::prepare_items(). Fixes #14596; See #14579
git-svn-id: https://develop.svn.wordpress.org/trunk@15496 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-12 23:21:05 +00:00
scribu d570886128 Fix ajaxification in network area by using ajaxurl. See #14579
git-svn-id: https://develop.svn.wordpress.org/trunk@15495 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-12 00:45:40 +00:00
scribu fb9394167f Ajaxify list-type screens in the admin. See #14579
git-svn-id: https://develop.svn.wordpress.org/trunk@15491 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-11 21:54:51 +00:00
Ryan Boren 27806b68d9 Add user_meta to global groups. see #14475
git-svn-id: https://develop.svn.wordpress.org/trunk@15482 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-30 21:30:06 +00:00
Ryan Boren edd48280e3 Network Admin, first pass. see #14435
git-svn-id: https://develop.svn.wordpress.org/trunk@15481 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-30 20:34:54 +00:00
Andrew Nacin 2c326f0a87 Ensure we're checking when looking for is_super_admin() in map_meta_cap(). Bump DB version.
fixes #14454 for trunk.

git-svn-id: https://develop.svn.wordpress.org/trunk@15480 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-29 21:58:58 +00:00
Mark Jaquith 59f6264c64 These are not verbs. http://notaverb.com/badbad_verbs
git-svn-id: https://develop.svn.wordpress.org/trunk@15473 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-27 18:02:45 +00:00
Andrew Nacin 85394e795e More curses on PHP 5.0.5. see #13757, fixes #14160. for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@15471 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-25 07:35:59 +00:00
Andrew Nacin 7c3292bb4a Add unregister_nav_menu(). props jorbin, fixes #14001 for 3.1.
git-svn-id: https://develop.svn.wordpress.org/trunk@15467 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-22 20:50:11 +00:00
Ryan Boren 5b9d2135e6 Temp fix for canonical redirects of taxonomy links containing non-ASCII bases. Props nbachiyski. see #14201
git-svn-id: https://develop.svn.wordpress.org/trunk@15462 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-22 20:08:21 +00:00
Andrew Nacin 77d5cf7160 Disable the visual editor in iOS. props azaozz, simonwheatley. fixes #13326 for 3.1.
git-svn-id: https://develop.svn.wordpress.org/trunk@15460 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-22 17:23:44 +00:00
Ryan Boren 9b6a14db22 Clean up wp_update_themes(). Fix reporting of active theme. Props josephscott. fixes #14381 for 3.1
git-svn-id: https://develop.svn.wordpress.org/trunk@15455 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-22 13:24:41 +00:00
Andrew Nacin c9d4749ed7 Doc update for [15402]. fixes #14301.
git-svn-id: https://develop.svn.wordpress.org/trunk@15449 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-21 00:50:01 +00:00
Nikolay Bachiyski e1e6ce1e97 Do not include newline character in the beginning if the database error string
git-svn-id: https://develop.svn.wordpress.org/trunk@15447 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-19 20:35:15 +00:00
Ryan Boren 8915af45b3 Remove rededundant code. see #14292
git-svn-id: https://develop.svn.wordpress.org/trunk@15444 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-18 14:06:14 +00:00
Ryan Boren 02580f7b0b Hex octets are case-insenstive. Don't 301 when the only octet case differs. Props hakre. fixes #14292 for 3.1
git-svn-id: https://develop.svn.wordpress.org/trunk@15437 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-18 13:46:35 +00:00
Peter Westwood 785c20b082 Remove debug cruft. See #14315 props scribu.
git-svn-id: https://develop.svn.wordpress.org/trunk@15435 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-17 11:13:35 +00:00
Peter Westwood 8d72c5172c Fix the theme compat file require paths to be fully absolute so they don't rely on a particular php path to work. Fixes #14315 for trunk props dougal.
git-svn-id: https://develop.svn.wordpress.org/trunk@15433 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-16 09:40:09 +00:00
Ryan Boren 70358dc160 If category already exists, return its ID. Restores previous behavior. fixes #14067 for 3.1
git-svn-id: https://develop.svn.wordpress.org/trunk@15425 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-14 14:12:23 +00:00
Andrew Nacin 0d687968ef get_post_permalink() should take a post ID and pass the post object to the filter. Note that the filter received a post object previously as the variable. props filosofo, fixes #14299 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@15411 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-13 21:56:49 +00:00
Andrew Nacin 6e5abae06a Don't throw 404 in the backend. fixes #14088 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@15409 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-13 21:47:12 +00:00
Andrew Nacin 0e2a53e8c9 Prevent the same menu item from receiving duplicate IDs if the menu is used twice. All menu items now get a class with their post ID; only the first item now gets an ID. fixes #13976 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@15407 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-13 21:30:59 +00:00
Ryan Boren 4fb68cd5e8 Sanity check properties in wp_get_single_post(). Props filosofo. fixes #13904 for 3.1
git-svn-id: https://develop.svn.wordpress.org/trunk@15405 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-13 21:30:09 +00:00
Andrew Nacin 97366f31f0 Fix checking for whether WP_User object is actually a user. props filosofo, fixes #13903 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@15404 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-13 21:27:05 +00:00
Andrew Nacin dc3140a664 Have wp_set_post_terms return wp_set_object_terms. fixes #14301.
git-svn-id: https://develop.svn.wordpress.org/trunk@15402 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-13 21:01:48 +00:00
Ryan Boren d079129f86 Perform strict equality comparison. Props shawnparker. fixes #13350 for 3.1
git-svn-id: https://develop.svn.wordpress.org/trunk@15389 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-12 15:28:31 +00:00
Ryan Boren 8d9d4817a3 Add equal sign to blacklist. Props Pádraic Brady. for 3.1
git-svn-id: https://develop.svn.wordpress.org/trunk@15383 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-12 14:30:39 +00:00
Mark Jaquith 15b414837c More judicious Wordpress-to-WordPress correction, to avoid bungling reasonable URLs. fixes #13971
git-svn-id: https://develop.svn.wordpress.org/trunk@15377 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-08 19:35:29 +00:00
Andrew Nacin 60c561889b Pass feed type from the_content_feed to get_the_content_feed. props peaceablewhale, fixes #14214.
git-svn-id: https://develop.svn.wordpress.org/trunk@15371 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-06 20:41:07 +00:00
Andrew Nacin fb83a22b94 Restore trackback_rdf(). reverts [13991]. fixes #11139 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@15363 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-03 05:55:04 +00:00
Dion Hulse fd8152d074 Remove redundant strtolower() in WP_HTTP. Props rmccue. Fixes #14168
git-svn-id: https://develop.svn.wordpress.org/trunk@15362 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-02 07:52:14 +00:00
Ryan Boren c6f385ea6a Don't use deprecated function. Blacklist curlies.
git-svn-id: https://develop.svn.wordpress.org/trunk@15356 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-30 17:46:37 +00:00
Dion Hulse 7efc4efdaa Alot more tabs. Props jacobsantos & Viper007bond. See #14147
git-svn-id: https://develop.svn.wordpress.org/trunk@15355 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-30 00:05:18 +00:00
Dion Hulse 3562ac632d And the rest of r15353. See #14147
git-svn-id: https://develop.svn.wordpress.org/trunk@15354 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-29 23:54:39 +00:00
Dion Hulse d12bd7a07e Tabs are so much nicer than spaces.. Props jorbin. Fixes #14147
git-svn-id: https://develop.svn.wordpress.org/trunk@15353 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-29 23:52:33 +00:00
Ryan Boren 44a502207a Use get_post_types() to create list of hierarchical post types. fixes #14079 for 3.1
git-svn-id: https://develop.svn.wordpress.org/trunk@15348 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-29 14:10:54 +00:00
Andrew Nacin 1a1a241eb3 Deprecated doc cleanup.
git-svn-id: https://develop.svn.wordpress.org/trunk@15344 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-28 10:11:41 +00:00
Andrew Nacin 1dcaee88f4 Remove a @todo. see #14014.
git-svn-id: https://develop.svn.wordpress.org/trunk@15333 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-25 16:25:29 +00:00
Ryan Boren 01443b68b3 Fix inverted logic in [15331]. see #13934
git-svn-id: https://develop.svn.wordpress.org/trunk@15332 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-25 16:17:33 +00:00
Ryan Boren f338e835a2 Don't perform current user ops in switch_to_blog() or restore_current_blog() if init hasn't fired. Avoids wp_get_current_user() not defined error when those functions are run before init. Ops on current user prior to init are meaningless anyway. see #13934
git-svn-id: https://develop.svn.wordpress.org/trunk@15331 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-25 16:16:06 +00:00
Andrew Nacin 8c3323da0a WPMU->Network Codex link updates. props wpmuguru, see #14014 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@15330 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-25 16:15:43 +00:00
Ryan Boren d397a1c20d Fix is_site_admin() when passing a username. Props francescolaffi. fixes #14046
git-svn-id: https://develop.svn.wordpress.org/trunk@15328 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-25 15:11:36 +00:00
Andrew Nacin 8a0c54e243 Fix typo in php comment. props Utkarsh, fixes #14072.
git-svn-id: https://develop.svn.wordpress.org/trunk@15325 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-25 06:26:40 +00:00
Ryan Boren e8b8d9773a Fix current page detection for home when index.php is in the requested URL. Props filosofo. fixes #13977 for 3.1
git-svn-id: https://develop.svn.wordpress.org/trunk@15320 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-24 17:39:29 +00:00
Ryan Boren fdc775d75e Filter title for Custom Menu widget. Props jorbin. fixes #14009 for 3.1
git-svn-id: https://develop.svn.wordpress.org/trunk@15316 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-24 15:07:11 +00:00
Ryan Boren 494ee995b5 Use get_current_user() and get_current_user_id() instead of global . Props filofo. see #13934 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@15315 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-24 15:01:29 +00:00
Ryan Boren 58fb5bb514 Pass ID to is_super_admin(). Props bigdawggi. fixes #14066 for 3.1
git-svn-id: https://develop.svn.wordpress.org/trunk@15311 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-24 14:49:23 +00:00
Andrew Nacin 6611e799ea Some whitespace in WP_HTTP. props hakre, see #13897.
git-svn-id: https://develop.svn.wordpress.org/trunk@15309 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-23 14:26:57 +00:00
Andrew Nacin c118ae7ec8 Assign menu-item-home also when menu item isn't current. props filosofo, see #14053 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@15302 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-22 22:05:43 +00:00
Dion Hulse e22a4707bf Fix typo in wpmu_signup_blog_notification() and wpmu_signup_user_notification(). Props mdawaffe. Fixes #14002 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@15290 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-20 04:12:03 +00:00
Dion Hulse b690dd5bfe Some coding standards cleanups for WP_HTTP. Props hakre for initial patch. See #13897
git-svn-id: https://develop.svn.wordpress.org/trunk@15285 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-19 07:02:09 +00:00
Dion Hulse ef753d5a64 Fix typo in HTTP Class. Props filosofo. Fixes #13897 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@15284 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-19 06:54:21 +00:00
Andrew Nacin 84ff7671a8 Blacklist remove_theme_support('menus'), used internally. fixes #13935 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@15277 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-18 05:37:45 +00:00
Ryan Boren 99e5c267c4 Bump
git-svn-id: https://develop.svn.wordpress.org/trunk@15275 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-17 19:27:56 +00:00
Ryan Boren d34dbc8791 3.0
git-svn-id: https://develop.svn.wordpress.org/trunk@15272 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-17 15:59:07 +00:00
Ryan Boren 509ea7fb71 Bump
git-svn-id: https://develop.svn.wordpress.org/trunk@15270 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-16 22:21:08 +00:00
Ryan Boren 58a038d2ad Avoid var name collision. see #13929
git-svn-id: https://develop.svn.wordpress.org/trunk@15269 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-16 21:46:42 +00:00
Ryan Boren 61ac7c90b0 Bump
git-svn-id: https://develop.svn.wordpress.org/trunk@15267 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-16 19:45:57 +00:00
Ryan Boren dbbc8adb90 Make dbh parameter to select optional for plugin back compat. Don't pass by ref to preserve PHP 4 support. fixes #13914
git-svn-id: https://develop.svn.wordpress.org/trunk@15266 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-16 19:28:01 +00:00
Ryan Boren 7def07393e Retern variable to avoid notice in PHP 4.
git-svn-id: https://develop.svn.wordpress.org/trunk@15265 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-16 19:11:44 +00:00
Andrew Nacin 3e337cf0fb Two birds with one stone. fixes #13902, props ocean90, wahgnube. fixes #13555, props hakre.
git-svn-id: https://develop.svn.wordpress.org/trunk@15264 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-15 20:31:44 +00:00
Mark Jaquith 8abb12ffc6 Make the number of taxonomies to display per page setting actually stick. props nacin. fixes #13899
git-svn-id: https://develop.svn.wordpress.org/trunk@15263 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-15 20:07:02 +00:00
Ryan Boren ab9c5796b3 Remove trailing whites
git-svn-id: https://develop.svn.wordpress.org/trunk@15259 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-14 23:39:35 +00:00
Ryan Boren 6bb32c81fc Bump
git-svn-id: https://develop.svn.wordpress.org/trunk@15258 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-14 21:41:11 +00:00
Ryan Boren 1a56928cf9 Menu ancestor fixes. Props filosofo. fixes #12812
git-svn-id: https://develop.svn.wordpress.org/trunk@15257 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-14 21:19:55 +00:00
Andrew Nacin 3ba32595f1 Add missing filter to wp_get_nav_menu_items(). props filosofo, fixes #13858.
git-svn-id: https://develop.svn.wordpress.org/trunk@15256 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-14 20:50:55 +00:00
Andrew Nacin 42ee42dee0 Fix IE8 line-height of title input. props ocean90, fixes #13890.
git-svn-id: https://develop.svn.wordpress.org/trunk@15255 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-14 20:48:24 +00:00
Andrew Nacin 09f7a954bf Revert [15219], [15250], some of [15249] for 3.0, revisit in 3.0.1. see #13822.
git-svn-id: https://develop.svn.wordpress.org/trunk@15254 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-14 19:52:30 +00:00
Andrew Nacin eb1311849e Treat trash/untrash of posts associated with media items the same as other stati changes. props koopersmith, see #13822.
git-svn-id: https://develop.svn.wordpress.org/trunk@15249 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-14 08:33:48 +00:00
Dion Hulse 0242479630 Fix PHP Notice in Revisions comparison. Props filosofo. Fixes #13853
git-svn-id: https://develop.svn.wordpress.org/trunk@15246 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-14 01:34:18 +00:00
Mark Jaquith 35e4e2e6c5 Update jQuery UI to 1.7.3 (small maintenance update with three little changes). props aaroncampbell. fixes #13868
git-svn-id: https://develop.svn.wordpress.org/trunk@15243 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-13 10:39:20 +00:00
Peter Westwood 8192256e85 bump
git-svn-id: https://develop.svn.wordpress.org/trunk@15241 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-12 21:25:48 +00:00
Andrew Nacin 10e6b2fbcd Fix two sprintf placeholders in a WP_I18N string. props demetris, fixes #13865.
git-svn-id: https://develop.svn.wordpress.org/trunk@15240 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-12 21:00:08 +00:00
Ryan Boren cd762781bd RC3
git-svn-id: https://develop.svn.wordpress.org/trunk@15237 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-11 20:30:04 +00:00
Ryan Boren 82be9621ec Trim trailing whitespace.
git-svn-id: https://develop.svn.wordpress.org/trunk@15235 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-11 20:19:35 +00:00
Ryan Boren 895e6c5dfe Bump
git-svn-id: https://develop.svn.wordpress.org/trunk@15234 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-11 18:17:23 +00:00
Ryan Boren 7b7115867e Bump
git-svn-id: https://develop.svn.wordpress.org/trunk@15232 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-11 18:07:15 +00:00
Peter Westwood 2eb10a9ab8 Fell the dead wood. No point keeping a function as deprecated we only just introduced. See #13747
git-svn-id: https://develop.svn.wordpress.org/trunk@15230 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-11 17:55:08 +00:00
Andrew Nacin ec9f6d34cb Don't use deprecated functions. props filosofo, fixes #13854.
git-svn-id: https://develop.svn.wordpress.org/trunk@15229 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-11 17:49:35 +00:00
Andrew Nacin e45ec0a52c Fix warnings related to static pages. props zeo for initial patch. fixes #13830.
git-svn-id: https://develop.svn.wordpress.org/trunk@15227 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-11 17:04:06 +00:00
Ron Rennick f08169848f fix warning when page on front missing, see #13830
git-svn-id: https://develop.svn.wordpress.org/trunk@15224 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-11 16:30:59 +00:00
Ron Rennick f99bbae9b2 add ancestor classes for taxonomy objects, props filosofo, fixes #13831
git-svn-id: https://develop.svn.wordpress.org/trunk@15221 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-11 16:00:29 +00:00
Ryan Boren fc2793bd46 Deprecate is_term, is_taxonomy, is_post_type for *_exists(). Props nacin. fixes #13747
git-svn-id: https://develop.svn.wordpress.org/trunk@15220 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-11 15:53:41 +00:00
Ron Rennick 9c74b84590 hide unpublished items on frontend nav menus, props filosofo, fixes #13822
git-svn-id: https://develop.svn.wordpress.org/trunk@15219 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-11 15:34:32 +00:00
Dion Hulse 6c71a5d1e4 re-minify wp-admin.dev.css after r15215. See #12225
git-svn-id: https://develop.svn.wordpress.org/trunk@15216 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-11 12:42:40 +00:00
Andrew Nacin e8f7f12adf Horizontal scrolling/resizing fixes for nav menu UI. Also some RTL fixes. props koopersmith, see #13525
git-svn-id: https://develop.svn.wordpress.org/trunk@15214 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-11 05:19:36 +00:00
Andrew Nacin 28d8b1a98e Fix admin menu background for long names. props JohnONolan, fixes #13803.
git-svn-id: https://develop.svn.wordpress.org/trunk@15206 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-11 00:42:09 +00:00
Peter Westwood fe819901bb O'Malley sez bump me pls
git-svn-id: https://develop.svn.wordpress.org/trunk@15204 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-10 21:43:47 +00:00
Ron Rennick 4a03295c8d allow custom content dir in WP 3.0 main site, fixes #13733
git-svn-id: https://develop.svn.wordpress.org/trunk@15197 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-10 19:37:51 +00:00
Andrew Nacin 2621ba04fe Improve the custom background front-end callback. Also, background-attachment should default to scroll, not fixed. fixes #13751.
git-svn-id: https://develop.svn.wordpress.org/trunk@15196 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-10 18:28:25 +00:00
Andrew Nacin a53e7e3018 Switch to current_theme_supports(menus) internally. Adding theme support for 'nav-menus' is deprecated in favor of register_nav_menu(s). fixes #13825.
git-svn-id: https://develop.svn.wordpress.org/trunk@15193 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-10 17:57:30 +00:00
Andrew Nacin 646aaa1d62 Don't specify a background for the default RSS widget's icon. props lancewillet, fixes #13719.
git-svn-id: https://develop.svn.wordpress.org/trunk@15192 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-10 17:49:55 +00:00
Andrew Nacin 9d38c0af9e Move 'helps' argument to the taxonomy labels object. Also move over help_nojs and help_cloud, both introduced in 3.0. This adds three new core labels for non-hierarchical taxonomies, for tweaking the meta box strings. fixes #13805.
git-svn-id: https://develop.svn.wordpress.org/trunk@15190 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-10 16:07:33 +00:00
Ryan Boren 9319e06698 Fix global post stomping in get_post(). Turn get_page() into an alias of get_post(). Props westi. fixes #13753
git-svn-id: https://develop.svn.wordpress.org/trunk@15188 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-10 14:55:26 +00:00
Ryan Boren d61154542c Remove old hidden columns usermeta keys. fixes #13783
git-svn-id: https://develop.svn.wordpress.org/trunk@15187 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-10 14:41:51 +00:00
Ron Rennick d6d9bf32ff removed unused validation from activation process, see #13760
git-svn-id: https://develop.svn.wordpress.org/trunk@15186 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-10 00:10:12 +00:00
Ryan Boren 64eb8f7159 Allow assigning an empty menu to a location. fixes #13787
git-svn-id: https://develop.svn.wordpress.org/trunk@15184 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-09 22:05:27 +00:00
Peter Westwood 4842b87cf9 Mr Bump says hai!
git-svn-id: https://develop.svn.wordpress.org/trunk@15182 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-09 21:02:48 +00:00
Andrew Nacin 5d8d6a9095 Script bump for [15176] and use existing naming convention.
git-svn-id: https://develop.svn.wordpress.org/trunk@15177 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-09 04:01:12 +00:00
Ryan Boren 1a68c0e8bb Update get_current_user_id() and move to user.php. Props filosofo. fixes #13785
git-svn-id: https://develop.svn.wordpress.org/trunk@15174 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-08 15:12:15 +00:00
Ryan Boren 1006d5b101 Don't force post_status to publish for custom taxonomy queries. fixes #13755
git-svn-id: https://develop.svn.wordpress.org/trunk@15173 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-08 14:08:33 +00:00
Ryan Boren 33e3846eb6 bump
git-svn-id: https://develop.svn.wordpress.org/trunk@15172 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-08 14:02:44 +00:00
Ryan Boren ce41df6dd6 Resurrect get_blog_list() and get_most_active_blogs() but leave deprecated. Props ocean90. fixes #13773
git-svn-id: https://develop.svn.wordpress.org/trunk@15170 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-08 13:56:20 +00:00
Ryan Boren c0570f3494 phpdoc fix. Props duck_
git-svn-id: https://develop.svn.wordpress.org/trunk@15169 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-08 13:24:20 +00:00
Ryan Boren c7be6ba80f Deprecate get_most_active_blogs() and get_blog_list(). Props ocean90. fixes #13773
git-svn-id: https://develop.svn.wordpress.org/trunk@15168 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-08 13:00:09 +00:00
Dion Hulse e4b69457fb Use the correct variable name. See #13778
git-svn-id: https://develop.svn.wordpress.org/trunk@15167 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-08 11:04:51 +00:00
Dion Hulse f178115189 Use the correct variable name. Props ScottMac. Fixes #13778
git-svn-id: https://develop.svn.wordpress.org/trunk@15166 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-08 11:02:17 +00:00
Andrew Nacin 1752cea413 Fix phpdoc typo. props demetris, fixes #13781.
git-svn-id: https://develop.svn.wordpress.org/trunk@15165 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-08 07:44:50 +00:00
Andrew Nacin 13d99f9a4b ++;
git-svn-id: https://develop.svn.wordpress.org/trunk@15161 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-07 17:41:39 +00:00
Ryan Boren e8b955bd48 Typo fix. Props pedger, mattsains. fixes #13740
git-svn-id: https://develop.svn.wordpress.org/trunk@15149 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-06 14:44:48 +00:00
Andrew Nacin 6f57a1a3ec s/echos/echoes/ in phpdoc. props demetris, fixes #13742.
git-svn-id: https://develop.svn.wordpress.org/trunk@15148 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-06 05:16:32 +00:00
Andrew Nacin a7ba59dbf1 Script bumps for [15146].
git-svn-id: https://develop.svn.wordpress.org/trunk@15147 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-05 21:09:55 +00:00
Ryan Boren 92fe0bb5b6 Fix logic
git-svn-id: https://develop.svn.wordpress.org/trunk@15143 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-04 20:11:06 +00:00
Andrew Nacin 628f5ab5fc Remove 'popular_items' label for hierarchical taxonomies. see [15140], [15141]
git-svn-id: https://develop.svn.wordpress.org/trunk@15142 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-04 19:21:06 +00:00
Ryan Boren baa954e82e Make upgrading global so maintenance_nag() can see it. see #13721
git-svn-id: https://develop.svn.wordpress.org/trunk@15139 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-04 15:16:17 +00:00
Ryan Boren b58a019e87 Better ms lang file check. Props ocean90. fixes #13706
git-svn-id: https://develop.svn.wordpress.org/trunk@15138 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-04 12:59:44 +00:00
Ryan Boren c8db4219ea Fix ms lang file check. Props ocean90. fixes #13706
git-svn-id: https://develop.svn.wordpress.org/trunk@15137 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-04 12:53:44 +00:00
Peter Westwood e607e13040 bumpity
git-svn-id: https://develop.svn.wordpress.org/trunk@15136 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-04 07:27:18 +00:00
Andrew Nacin 17a51607a5 Bump.
git-svn-id: https://develop.svn.wordpress.org/trunk@15133 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-03 21:54:59 +00:00
Andrew Nacin d5a2b82b96 Prevent 'Enter menu name here' menus, and offer some feedback. props koopersmith, fixes #13703.
git-svn-id: https://develop.svn.wordpress.org/trunk@15124 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-03 03:33:54 +00:00
Andrew Nacin 46c0c97c06 Hide the 'Close' link in nav menu no-JS. The Cancel link should suitably handle the modified workflow. props ocean90, see #13525.
git-svn-id: https://develop.svn.wordpress.org/trunk@15122 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-02 22:47:42 +00:00
Andrew Nacin 285213f7ae Let's not emphasize that multisite might as well be its own language. fixes #13706.
git-svn-id: https://develop.svn.wordpress.org/trunk@15118 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-02 21:11:37 +00:00
Peter Westwood c8dae44e09 Let the filters know its a sample permalink. Props yoast.
git-svn-id: https://develop.svn.wordpress.org/trunk@15117 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-02 20:52:22 +00:00
Ryan Boren 0922715668 Cut 'em out, move 'em on, trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@15116 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-02 20:04:07 +00:00
Ryan Boren 87b18f33d2 Whitespace cleanup. Props zeo. fixes #13678
git-svn-id: https://develop.svn.wordpress.org/trunk@15115 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-02 19:56:19 +00:00
Ryan Boren 197becc54d Bump
git-svn-id: https://develop.svn.wordpress.org/trunk@15114 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-02 17:58:57 +00:00
Andrew Nacin 7128d1984b Add menu_id to wp_nav_menu() and move container_id to the container. Set the container arg to false to not use a container. fixes #13669
git-svn-id: https://develop.svn.wordpress.org/trunk@15113 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-02 17:04:07 +00:00
Ryan Boren dea561c819 wp_get_nav_menus filter. Props filosofo. fixes #13702
git-svn-id: https://develop.svn.wordpress.org/trunk@15112 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-02 16:31:42 +00:00
Andrew Nacin b94b5ece42 Ensure we're only auto-adding root pages to menus. fixes #13447.
git-svn-id: https://develop.svn.wordpress.org/trunk@15111 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-02 15:08:03 +00:00
Ryan Boren 00e5134460 Remove debug. fixes #13670
git-svn-id: https://develop.svn.wordpress.org/trunk@15110 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-02 15:00:09 +00:00
Ryan Boren ad175650ea IIS rewrite fixes. Props duck_, ruslany. fixes #13679
git-svn-id: https://develop.svn.wordpress.org/trunk@15109 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-02 14:58:36 +00:00
Ryan Boren f0ab192369 Make _pad_term_counts custom post type aware. Props reko. fixes #13670
git-svn-id: https://develop.svn.wordpress.org/trunk@15108 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-02 14:55:33 +00:00
Ryan Boren cf4521e441 Pass args to wp_list_categories filter. Props momo360modena. fixes #13682
git-svn-id: https://develop.svn.wordpress.org/trunk@15107 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-02 14:02:54 +00:00
Ryan Boren a5dbd0e164 clearstatcache() after writing files. Props momo360modena. fixes #13683
git-svn-id: https://develop.svn.wordpress.org/trunk@15106 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-02 14:01:21 +00:00
Ryan Boren 88f326d1c8 Consolidate nav menu class assignments. Props filosofo. fixes #13664
git-svn-id: https://develop.svn.wordpress.org/trunk@15105 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-02 13:48:26 +00:00
Ryan Boren a6e58d85bf Nav menu API cleanups. Props filosofo. fixes #13696
git-svn-id: https://develop.svn.wordpress.org/trunk@15104 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-02 13:43:46 +00:00
Ryan Boren ba0dab7090 Use import cap. Add old edit_files cap to list of caps to shutdown if DISALLOW_FILE_EDIT. see #13681
git-svn-id: https://develop.svn.wordpress.org/trunk@15097 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-01 18:08:27 +00:00
Ryan Boren 171d6811cc Add export capability. fixes #13681
git-svn-id: https://develop.svn.wordpress.org/trunk@15096 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-01 18:02:05 +00:00
Ryan Boren 5ca16149e2 Bump
git-svn-id: https://develop.svn.wordpress.org/trunk@15093 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-01 17:29:42 +00:00
Andrew Nacin 5b3b2aaee1 Introduce has_nav_menu(). Returns boolean whether the theme's registered nav menu location has a menu assigned to it. props greenshady for the idea.
git-svn-id: https://develop.svn.wordpress.org/trunk@15091 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-01 16:40:14 +00:00
Ryan Boren 24f53ef665 Remove login-header.png. Use CSS3 with fallback color. Login RTL fix. Props ocean90. fixes #13587
git-svn-id: https://develop.svn.wordpress.org/trunk@15090 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-01 15:54:00 +00:00
Ryan Boren e2407a19fc Don't add sticky class if is_paged(). Props iandstewart. fixes #13666
git-svn-id: https://develop.svn.wordpress.org/trunk@15088 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-01 15:03:49 +00:00
Ryan Boren 87ea4f3f2c Add colors-fresh and colors-classic to rtl_styles so that suffixes are handled properly. fixes #13676
git-svn-id: https://develop.svn.wordpress.org/trunk@15087 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-01 14:23:56 +00:00
Andrew Nacin f90f5c86e5 /me bumps versions.
git-svn-id: https://develop.svn.wordpress.org/trunk@15084 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-31 21:49:13 +00:00
Ron Rennick e5bd1500f0 add rewrites for registration pages, fixes #13638
git-svn-id: https://develop.svn.wordpress.org/trunk@15081 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-31 20:50:27 +00:00
Andrew Nacin e21a5a1b24 Nav menu improvements. props koopersmith. RTL support for tabs, better tab handling, other improvements. see #13525.
git-svn-id: https://develop.svn.wordpress.org/trunk@15080 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-31 20:22:49 +00:00
Andrew Nacin 4a0f1ff357 Use correct element in jQuery selector. props ocean90, see #12186.
git-svn-id: https://develop.svn.wordpress.org/trunk@15079 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-31 16:30:02 +00:00
Andrew Nacin d45fc420f4 Cleanups.
git-svn-id: https://develop.svn.wordpress.org/trunk@15078 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-31 16:11:20 +00:00
Andrew Nacin d5dd6a6aec Move the Walker_Nav_Menu_Checklist class to admin/includes.
git-svn-id: https://develop.svn.wordpress.org/trunk@15077 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-31 15:47:53 +00:00
Andrew Nacin b19e242aa5 Remove vestigial 'context' code for wp_nav_menu. This was used when we used to use the same function as a theme template tag and admin template function (now we don't.) fixes #13656.
git-svn-id: https://develop.svn.wordpress.org/trunk@15075 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-31 14:54:50 +00:00
Andrew Nacin ef2a9bacc1 Don't fall back to pages list in the menus widget. props filosofo, fixes #13634.
git-svn-id: https://develop.svn.wordpress.org/trunk@15074 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-31 14:15:28 +00:00
Mark Jaquith 29a6333a1f Add ?ver=DATE query strings to all images that changed since 2.9, to expire browser cache. Bump versions on all CSS/JS files modified in that process. fixes #13562.
git-svn-id: https://develop.svn.wordpress.org/trunk@15072 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-31 06:33:46 +00:00
Peter Westwood 15a5c6120a Bumpity
git-svn-id: https://develop.svn.wordpress.org/trunk@15069 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-30 21:37:19 +00:00
Mark Jaquith 8484570814 Default Google Gears ignoreQuery to true in manifest. see #13562
git-svn-id: https://develop.svn.wordpress.org/trunk@15068 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-30 08:45:50 +00:00
Andrew Nacin 075859cb0c Fix a default taxonomy label. props michaelh, fixes #13624.
git-svn-id: https://develop.svn.wordpress.org/trunk@15065 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-29 20:45:31 +00:00
Nikolay Bachiyski ea4293b291 Better detection whether we are on the Network page. Use custom constant to tell us. See #13565, props nacin
We used to load multisite translations each time WP_ALLOW_MULTISITE was defined, but
it could lead to alot of false positives. Generic config files can include to allow
users to updgrade to multisite without further editing the config file.


git-svn-id: https://develop.svn.wordpress.org/trunk@15064 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-29 20:35:19 +00:00
Andrew Nacin 45057df1ae Full no-JS and IE support for [15062]. fixes #13615.
git-svn-id: https://develop.svn.wordpress.org/trunk@15063 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-29 20:33:48 +00:00
Mark Jaquith b5cd195f68 Do not load window.onbeforeonload event if we are not on an existing nav menu. props filosofo. Reduce opacity on nav menu postboxes if we are not on an existing nav menu, and for JS users, deactivate all links and form elements, to make it obvious that those UI elements are not usable at this stage. fixes #13615
git-svn-id: https://develop.svn.wordpress.org/trunk@15062 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-29 19:39:40 +00:00
Ron Rennick f2b7384e9c bump
git-svn-id: https://develop.svn.wordpress.org/trunk@15060 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-29 18:23:47 +00:00
Andrew Nacin 60b96042f2 Use show_in_nav_menus for attachments. Also add it to register_taxonomy for consistency and have it default to public, not show_ui, like post types. see #13621.
git-svn-id: https://develop.svn.wordpress.org/trunk@15056 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-29 16:46:46 +00:00
Nikolay Bachiyski df34727db8 Load multisite strings POT file only on multisite requests. Fixes #13565
git-svn-id: https://develop.svn.wordpress.org/trunk@15053 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-29 15:32:43 +00:00
Ron Rennick bd7ccea9ee strip www before adding subdomain when creating new site
git-svn-id: https://develop.svn.wordpress.org/trunk@15050 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-29 00:32:10 +00:00
Andrew Nacin 51cc204001 Sanity check menu item parents and fix HTML issues. props filosofo, fixes #13600.
git-svn-id: https://develop.svn.wordpress.org/trunk@15049 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-28 23:04:00 +00:00
Andrew Nacin 1614d124ba Allow the text labels in the multisite elements of the Right Now dashboard widget. Fixes display with narrow columns due to screen options or browser window width. props ocean90.
git-svn-id: https://develop.svn.wordpress.org/trunk@15048 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-28 22:40:56 +00:00
Andrew Nacin 5ff8d718f2 Don't show double-AYS for deleting a menu. props filosofo, duck_. see #13525.
git-svn-id: https://develop.svn.wordpress.org/trunk@15046 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-28 20:38:19 +00:00
Andrew Nacin 83a4da5d7b Give translators a little more room with nav menu meta box tabs. see #13525.
git-svn-id: https://develop.svn.wordpress.org/trunk@15044 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-28 20:34:27 +00:00
Ron Rennick 2df4a9451a don't clobber term if sitecategories doesn't exist, fixes 13482
git-svn-id: https://develop.svn.wordpress.org/trunk@15042 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-28 20:03:29 +00:00
Ryan Boren aa561cd06c Unique menu container ids. Props filosofo. fixes #13597
git-svn-id: https://develop.svn.wordpress.org/trunk@15034 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-28 16:32:57 +00:00
Andrew Nacin b8820a2537 Bump.
git-svn-id: https://develop.svn.wordpress.org/trunk@15023 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-28 02:36:49 +00:00
Andrew Nacin 7baec4f576 RC 1.
git-svn-id: https://develop.svn.wordpress.org/trunk@15021 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-28 01:38:29 +00:00
Andrew Nacin 28c54a5e20 Custom background UI tweaks. Make 'Select Color' a link instead of a button, move color below the background image options, standardize screen reader text.
git-svn-id: https://develop.svn.wordpress.org/trunk@15016 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-28 00:01:59 +00:00
Andrew Nacin d7607a4cdd Menu touchups. see #13525.
git-svn-id: https://develop.svn.wordpress.org/trunk@15010 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-27 22:45:52 +00:00
Andrew Nacin 29ccf1ec31 New pending menu item behavior. props filosofo, see #13579.
git-svn-id: https://develop.svn.wordpress.org/trunk@15008 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-27 22:22:09 +00:00
Peter Westwood f0f29d7f44 ↑↑↓↓←→←→BA
git-svn-id: https://develop.svn.wordpress.org/trunk@15006 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-27 21:44:07 +00:00
Mark Jaquith 05e2e9b2c4 Initialize instead of using isset(). props nacin. see #13556
git-svn-id: https://develop.svn.wordpress.org/trunk@15003 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-27 20:41:36 +00:00
Mark Jaquith 3c7a2a3cb8 Tweaks to wp_constrain_dimensions() for better fits and consistency. fixes #13556
git-svn-id: https://develop.svn.wordpress.org/trunk@15002 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-27 20:37:42 +00:00
Andrew Nacin 70fb7342c7 Add JS var isRtl to admin-header and remove unused JS localized vars for nav-menu. see #13525.
git-svn-id: https://develop.svn.wordpress.org/trunk@14999 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-27 18:57:07 +00:00
Andrew Nacin 592434afb5 Forever eliminate 'Wordpress' from the planet (or at least the little bit we can influence). props matt.
git-svn-id: https://develop.svn.wordpress.org/trunk@14996 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-27 16:11:27 +00:00
Andrew Nacin 7679315725 Some minor IE6/7 tweaks for menus. props ocean90, see #13525.
git-svn-id: https://develop.svn.wordpress.org/trunk@14993 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-27 13:54:14 +00:00
Andrew Nacin ac048dfbd8 Some inline doc updates for get_post_type_capabilities and get_post_type_labels. props MichaelH, fixes #13573.
git-svn-id: https://develop.svn.wordpress.org/trunk@14991 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-27 12:44:08 +00:00
Andrew Nacin 08b0fd1a03 Use word-wrap:break-word in the nav menus. props ocean90, fixes #13574.
git-svn-id: https://develop.svn.wordpress.org/trunk@14990 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-27 12:42:09 +00:00
Dion Hulse a6194f1e0c Fully implement the 'delete_themes' capability. See also r13547
git-svn-id: https://develop.svn.wordpress.org/trunk@14984 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-27 09:49:38 +00:00
Peter Westwood b98c14cc34 Improved translation of the comment count in theme-compat. Props zeo.
git-svn-id: https://develop.svn.wordpress.org/trunk@14983 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-27 08:52:14 +00:00
Andrew Nacin ae9acca74d Add some educational tips. Suggest using add_image_size() in the inline docs for image_get_intermediate_size() and wp_get_attachment_image(). props jorbin. see #13556.
git-svn-id: https://develop.svn.wordpress.org/trunk@14981 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-27 05:03:46 +00:00
Andrew Nacin 4e04b51d7b Use orange for the plugin install thickbox button, not the new gray for update notification bubbles. fixes #13474.
git-svn-id: https://develop.svn.wordpress.org/trunk@14980 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-27 04:50:11 +00:00
Mark Jaquith b499437681 Use the correct array members of image_resize_dimensions() result when calculating best match for dynamic HTML image resize. fixes #13556
git-svn-id: https://develop.svn.wordpress.org/trunk@14979 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-27 04:40:14 +00:00
Andrew Nacin 9b8998cb46 Clean up the menu name/actions section. see #13525.
git-svn-id: https://develop.svn.wordpress.org/trunk@14977 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-27 04:19:23 +00:00
Andrew Nacin 4bcefca0ca Fix order of params to strpos. props ampt, fixes #12115.
git-svn-id: https://develop.svn.wordpress.org/trunk@14976 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-27 04:14:35 +00:00
Andrew Nacin e549305dd4 Don't show expand/collapse menu bit for menu meta boxes except on hover. props duck_, see #13525.
git-svn-id: https://develop.svn.wordpress.org/trunk@14972 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-27 02:28:23 +00:00
Andrew Nacin 9b4a85cdaf Move the "Add Home Link" functionality to a checkbox on the View All tab of the Pages metabox. Also makes it work non-JS. props filosofo, fixes #13213.
git-svn-id: https://develop.svn.wordpress.org/trunk@14971 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-27 02:24:33 +00:00
Andrew Nacin f5f97a46d3 Always pass post ID to the_title filter. props dndrnkrd, fixes #13558
git-svn-id: https://develop.svn.wordpress.org/trunk@14964 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-26 21:30:00 +00:00
Peter Westwood 7ea705db5b tick tock
git-svn-id: https://develop.svn.wordpress.org/trunk@14960 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-26 20:55:51 +00:00
Mark Jaquith 10ceba3686 Properly redirect custom post type URLs in redirect_canonical(). fixes #13561
git-svn-id: https://develop.svn.wordpress.org/trunk@14954 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-26 19:56:26 +00:00
Andrew Nacin 42bad1e654 Final bit of escaping in feeds. fixes #13555
git-svn-id: https://develop.svn.wordpress.org/trunk@14952 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-26 18:30:51 +00:00
Peter Westwood de09357409 Some more url escaping in feeds. See #13555.
git-svn-id: https://develop.svn.wordpress.org/trunk@14950 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-26 17:47:29 +00:00
Peter Westwood 31be303930 Move the escaping into get_guid() so we don't have to repeat ourselves. See #13555.
git-svn-id: https://develop.svn.wordpress.org/trunk@14949 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-26 17:27:18 +00:00
Andrew Nacin 12a45498b6 Consider 'auto-draft' a draft in get_post_permalink(). prevents custom post types from getting borked GUIDs. see #13555
git-svn-id: https://develop.svn.wordpress.org/trunk@14948 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-26 17:25:57 +00:00
Peter Westwood 41a560ec0b Escape the guid urls when placing them in feeds and other xml locations. See #13555.
git-svn-id: https://develop.svn.wordpress.org/trunk@14947 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-26 17:01:21 +00:00
Ryan Boren 22cb105416 No default value for pass by ref. Props filosofo. fixes #13553
git-svn-id: https://develop.svn.wordpress.org/trunk@14945 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-26 16:25:29 +00:00
Ryan Boren 6c79e1395d Make classes property for menus an array. Props filosofo. fixes #13551
git-svn-id: https://develop.svn.wordpress.org/trunk@14944 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-26 15:41:21 +00:00
Ryan Boren f333c16f10 More menu class back compat. Props filosofo. fixes #13543
git-svn-id: https://develop.svn.wordpress.org/trunk@14942 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-26 14:18:46 +00:00
Nikolay Bachiyski f4084990ea Focus on category field when adding a new category in the write panel
git-svn-id: https://develop.svn.wordpress.org/trunk@14940 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-26 09:17:40 +00:00
Andrew Nacin 20597ef3f8 Ensure auto-added pages are both published and sent to the end of the menu. Tiny enhancement and optimization to wp_update_nav_menu_item come with it. fixes #13447.
git-svn-id: https://develop.svn.wordpress.org/trunk@14937 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-26 06:59:14 +00:00
Andrew Nacin e0630f2a93 Don't store nonexistent (deleted) menus in the auto-add option. see #13447.
git-svn-id: https://develop.svn.wordpress.org/trunk@14934 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-26 05:11:46 +00:00
Andrew Nacin b8a0634d79 Validation in wp_dropdown_users and the non-hierarchical taxonomy meta box. props ocean90, see #13383.
git-svn-id: https://develop.svn.wordpress.org/trunk@14931 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-26 04:01:14 +00:00
Andrew Nacin f26024e7b6 Prevent super admins from shooting themselves in the foot. props jorbin. Checks blog names against an array (filterable) of reserved keywords for subdirectory installs. fixes #13304.
git-svn-id: https://develop.svn.wordpress.org/trunk@14928 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-26 03:13:16 +00:00
Ryan Boren aec821c651 Strip trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@14924 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-26 02:42:15 +00:00
Andrew Nacin 46d962dfb8 Handle current menu item classes for post pages. props filosofo, fixes #13543.
git-svn-id: https://develop.svn.wordpress.org/trunk@14923 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-26 02:38:31 +00:00
Andrew Nacin b254d508fe New admin menu notification bubble color. props JohnONolan, fixes #13474.
git-svn-id: https://develop.svn.wordpress.org/trunk@14918 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-26 00:59:15 +00:00
Andrew Nacin 1db01f2c56 Don't hide early nav menu instructions until the menu is no longer empty. props koopersmith, see #13525
git-svn-id: https://develop.svn.wordpress.org/trunk@14917 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-26 00:41:18 +00:00
Ron Rennick ca9f9c1086 allow main site 404 URL to be filtered, fixes #12758
git-svn-id: https://develop.svn.wordpress.org/trunk@14911 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-25 23:41:36 +00:00
Ryan Boren 7ba92c31a4 Menu notice and stlying fixes. Props filosofo. fixes #12812
git-svn-id: https://develop.svn.wordpress.org/trunk@14905 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-25 21:44:34 +00:00
Andrew Nacin 855bc34ad9 Remove unused/duplicated/undocumented post type object label. see #13539
git-svn-id: https://develop.svn.wordpress.org/trunk@14903 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-25 19:25:27 +00:00
Andrew Nacin ad59625e7f Fix typo. props rovo89, fixes #13494.
git-svn-id: https://develop.svn.wordpress.org/trunk@14902 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-25 18:59:20 +00:00
Andrew Nacin 7efaa581d3 Use a post type object label for edit_post_link's title attribute. props sc0ttkclark.
git-svn-id: https://develop.svn.wordpress.org/trunk@14901 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-25 18:55:51 +00:00
Ryan Boren b18836e3f9 Back compat menu classes. see #12812 #13379
git-svn-id: https://develop.svn.wordpress.org/trunk@14900 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-25 18:54:42 +00:00
Andrew Nacin 75e66fcb9c Use a filter instead of a new NO404REDIRECT constant. see #12758.
git-svn-id: https://develop.svn.wordpress.org/trunk@14899 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-25 18:12:14 +00:00
Ryan Boren b417ff2148 Bump
git-svn-id: https://develop.svn.wordpress.org/trunk@14896 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-25 17:47:52 +00:00
Donncha O Caoimh 7c28c554a6 Cast "public" as an int to ensure it gets set correctly.
git-svn-id: https://develop.svn.wordpress.org/trunk@14892 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-25 16:57:32 +00:00
Ryan Boren ca7b6498d7 Classes for posts and terms in the menus. see #13379
git-svn-id: https://develop.svn.wordpress.org/trunk@14891 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-25 16:51:09 +00:00
Andrew Nacin 5bc3a62137 Give is_singular the ability to provide awareness/context for custom post types. props ryan, scribu. Usage: is_singular('book') or is_singular( array( 'newspapers', 'books' ) ). fixes #12588.
git-svn-id: https://develop.svn.wordpress.org/trunk@14887 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-25 15:36:23 +00:00
Ron Rennick a9dee7eba7 cleanup $indents, props filosofo, see #12758
git-svn-id: https://develop.svn.wordpress.org/trunk@14885 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-25 15:31:28 +00:00
Ryan Boren e63b2b97be Don't set default category when saving an auto-draft. fixes #13531
git-svn-id: https://develop.svn.wordpress.org/trunk@14883 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-25 14:43:39 +00:00
Ryan Boren 7cafd15b07 Add ancestor classes. Props filosofo. see #12812
git-svn-id: https://develop.svn.wordpress.org/trunk@14881 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-25 14:25:06 +00:00
Andrew Nacin 00fda9f10b Allow pages to be added automattically to menus. see #13447.
git-svn-id: https://develop.svn.wordpress.org/trunk@14878 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-25 13:49:56 +00:00
Ryan Boren ae2d4eba15 Add parent classes to nav menu. Props filosofo. see #12812
git-svn-id: https://develop.svn.wordpress.org/trunk@14876 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-25 13:30:10 +00:00
Ron Rennick 7fdb99dbb5 ensure unique term_id when global terms enabled, see #13482
git-svn-id: https://develop.svn.wordpress.org/trunk@14872 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-25 07:24:10 +00:00
Ron Rennick aa8a5ab580 update rewrite rules for IIS, props Frumph, see #12758
git-svn-id: https://develop.svn.wordpress.org/trunk@14871 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-25 05:12:47 +00:00
Andrew Nacin 6ab4f52e79 New 'on' state for admin menus. props JohnONolan, see #13486.
git-svn-id: https://develop.svn.wordpress.org/trunk@14870 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-25 02:47:43 +00:00
Ryan Boren 51e11b64d6 Allow searching custom post types when attaching media. Props markoheijnen. fixes #13229
git-svn-id: https://develop.svn.wordpress.org/trunk@14869 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-25 02:18:07 +00:00
Ron Rennick e59cbd9ac4 give static var initial value, fixes #13517
git-svn-id: https://develop.svn.wordpress.org/trunk@14867 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-25 00:31:07 +00:00
Ron Rennick 9aef526ca3 eliminate warning in global_terms(), global to static, fixes #13517
git-svn-id: https://develop.svn.wordpress.org/trunk@14866 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-25 00:13:03 +00:00
Peter Westwood affec163db New high score!
git-svn-id: https://develop.svn.wordpress.org/trunk@14860 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-24 21:28:37 +00:00
Peter Westwood 545c432776 phpDoc updates.
git-svn-id: https://develop.svn.wordpress.org/trunk@14858 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-24 21:26:49 +00:00
Andrew Nacin 0e7af12e41 Remove now-unused post_type_object->labels>edit, which was 'Edit' (with context). see #12968, see #11274.
git-svn-id: https://develop.svn.wordpress.org/trunk@14857 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-24 21:19:29 +00:00
Andrew Nacin a8db275646 Even better, remove all UI for global terms. Add a filter to global_terms_enabled() and also allow the site option to simply be deleted. fixes #12666.
git-svn-id: https://develop.svn.wordpress.org/trunk@14854 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-24 20:45:59 +00:00
Andrew Nacin d617ca0f94 First pass on better UX for menu item save. props koopersmith, see #13525.
git-svn-id: https://develop.svn.wordpress.org/trunk@14852 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-24 19:50:20 +00:00
Andrew Nacin b074c7be02 Invalidate header/background images for the current theme when the attachment is deleted. props ocean90, fixes #12467.
git-svn-id: https://develop.svn.wordpress.org/trunk@14850 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-24 19:42:43 +00:00
Andrew Nacin 5e0a7abf5c s/navigation menu/custom menu/. props jane, duck_. fixes #13519.
git-svn-id: https://develop.svn.wordpress.org/trunk@14849 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-24 19:31:31 +00:00
Donncha O Caoimh 56e498c517 Added $meta to "wpmu_new_blog" action
git-svn-id: https://develop.svn.wordpress.org/trunk@14844 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-24 17:26:21 +00:00
Ryan Boren b97b898d80 Fix update label for link categories. Props duck_. fixes #13515
git-svn-id: https://develop.svn.wordpress.org/trunk@14841 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-24 16:09:52 +00:00
Ryan Boren 1cb798cf91 Remove already exists check for passed in slug. fixes #12349
git-svn-id: https://develop.svn.wordpress.org/trunk@14840 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-24 15:56:50 +00:00
Ryan Boren fad9b719a1 Don't issue dupe slug error if provided slug matches name derived slug. fixes #12349
git-svn-id: https://develop.svn.wordpress.org/trunk@14839 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-24 15:49:12 +00:00
Andrew Nacin 0aa0cde880 Menu tweaks. Save menu locations when saving the menu. Also, centralize theme support checks and add them to menu.php. Improve some branching. Remove some old JS vars, add a missing semicolon, etc. props koopersmith. see #13378.
git-svn-id: https://develop.svn.wordpress.org/trunk@14831 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-24 09:23:56 +00:00
Andrew Nacin aceae2cfef Properly format menu item title attributes and descriptions. props ryan, fixes #12864.
git-svn-id: https://develop.svn.wordpress.org/trunk@14826 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-23 22:56:51 +00:00
Andrew Nacin ec0823ce3e Proper checks for current-menu-item. props duck_, fixes #13409.
git-svn-id: https://develop.svn.wordpress.org/trunk@14824 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-23 22:01:08 +00:00
Peter Westwood 17eb59e79e roll on tomorrow
git-svn-id: https://develop.svn.wordpress.org/trunk@14822 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-23 21:05:36 +00:00
Dion Hulse ce9cca9dd0 Provide some Before/After strings for Bulk Upgrades, Add a spinner whilst a upgrade is in process, Remove scrollbars on update iframe. Props ocean90. See #11232
git-svn-id: https://develop.svn.wordpress.org/trunk@14819 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-23 12:29:00 +00:00
Dion Hulse 87c99854d6 Increase height of Theme install thickbox to remove useless scrollbars. Props ocean90
git-svn-id: https://develop.svn.wordpress.org/trunk@14818 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-23 12:04:24 +00:00
Dion Hulse bc726afc10 Better display handling of error messages during swfupload uploading. Fixes #12225
git-svn-id: https://develop.svn.wordpress.org/trunk@14816 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-23 10:59:52 +00:00
Peter Westwood ca3fead69d Ensure that QuickPress media uploads get attached to the auto-draft we create for new posts correctly. Fixes #10917 props ocean90.
git-svn-id: https://develop.svn.wordpress.org/trunk@14815 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-23 07:58:06 +00:00
Dion Hulse b93faecc52 Introduce a 'post_updated' action, Fires when a post is updated, Post ID, Current and Previous post objects are passed. Updatewp_check_for_changed_slugs() to use new hook. See #12473
git-svn-id: https://develop.svn.wordpress.org/trunk@14814 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-23 07:49:21 +00:00
Peter Westwood cd7f4dfaa7 bump bump bump
git-svn-id: https://develop.svn.wordpress.org/trunk@14805 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-22 21:11:03 +00:00
Ryan Boren c219c46cbb Use filters instead of action in wp_login_form(). see #11172
git-svn-id: https://develop.svn.wordpress.org/trunk@14804 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-22 13:52:25 +00:00
Ryan Boren e939bd4e55 Email messages should be plain text. Props arena. see #13488
git-svn-id: https://develop.svn.wordpress.org/trunk@14803 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-22 13:48:38 +00:00
Andrew Nacin 6d0ed6f1ea Pixel sanity check. props filosofo, fixes #13470.
git-svn-id: https://develop.svn.wordpress.org/trunk@14799 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-21 23:35:37 +00:00
Andrew Nacin e39ffe967d Script loader bump, and revert new orange that snuck in. see #13441.
git-svn-id: https://develop.svn.wordpress.org/trunk@14796 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-21 23:32:02 +00:00
Ryan Boren 6d183a8505 Don't look for a fallback menu when a specific location is requested. Props tinkerpriest. see #13378
git-svn-id: https://develop.svn.wordpress.org/trunk@14793 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-21 20:28:11 +00:00
Andrew Nacin 5b7ecb587d Notice sanity check. fixes #13484, props etiger13.
git-svn-id: https://develop.svn.wordpress.org/trunk@14788 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-21 19:02:36 +00:00
Ryan Boren 55ef03d2fd Update phpdoc for wp_insert_term(). Props prettyboymp. fixes #12482
git-svn-id: https://develop.svn.wordpress.org/trunk@14785 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-21 18:19:56 +00:00
Ryan Boren 90ae6fa7f8 If slug and name match an existing term in the same taxonomy at the same hieararchy level return error. fixes #13481
git-svn-id: https://develop.svn.wordpress.org/trunk@14784 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-21 18:03:53 +00:00
Ryan Boren b7f90a2046 Check for siblings only if term already exists in the same taxonomy. see #13119
git-svn-id: https://develop.svn.wordpress.org/trunk@14783 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-21 16:03:35 +00:00
Andrew Nacin 43d4f742b9 Some sanity checks -- make sure we have a valid post author user object before checking if the current user is the author.
git-svn-id: https://develop.svn.wordpress.org/trunk@14782 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-21 15:15:32 +00:00
Andrew Nacin 3dd5d1edd4 False alarm, something else is going on here. Revert [14780], restore [14695]. see #13317.
git-svn-id: https://develop.svn.wordpress.org/trunk@14781 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-21 15:08:07 +00:00
Andrew Nacin b5ce43f348 Revert [14695]. We need to be a bit less strict. see #13317.
git-svn-id: https://develop.svn.wordpress.org/trunk@14780 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-21 15:03:54 +00:00
Ryan Boren ffed6e8554 Fix showing selected for none. Props johnbillion. fixes #13468
git-svn-id: https://develop.svn.wordpress.org/trunk@14779 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-21 14:35:39 +00:00
Dion Hulse 6f7e81416b Clone Objects in add_option()/update_option() to prevent storing PHP5 object references in memory cache. See [9740]. Fixes #13480
git-svn-id: https://develop.svn.wordpress.org/trunk@14777 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-21 14:15:59 +00:00
Andrew Nacin f9de14b1a7 Custom background UI updates. Add padding to radio buttons, also convert repeat/title to radio buttons. props JohnONolan, see #12186.
git-svn-id: https://develop.svn.wordpress.org/trunk@14775 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-21 03:31:35 +00:00
Andrew Nacin fc29f5f077 New screen options tab design. props JohnONolan, fixes #13477.
git-svn-id: https://develop.svn.wordpress.org/trunk@14774 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-21 03:20:25 +00:00
Andrew Nacin fd3a2be9dd Fix nav menu locations sorting. props jorbin, koopersmith with assists. see #13378.
git-svn-id: https://develop.svn.wordpress.org/trunk@14772 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-20 22:43:14 +00:00
Peter Westwood 46f12c5a8b First pass of conversion of theme-compat to the I18N version of the files. See #12425
git-svn-id: https://develop.svn.wordpress.org/trunk@14771 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-20 21:53:11 +00:00
Andrew Nacin 48b57724dd Shake away old files during the upgrade process. see #13307.
git-svn-id: https://develop.svn.wordpress.org/trunk@14770 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-20 21:44:33 +00:00
Peter Westwood 02e53f9a8f bumpity
git-svn-id: https://develop.svn.wordpress.org/trunk@14769 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-20 21:43:18 +00:00
Peter Westwood 82a44c5a3b Attempt to make stripslashes_deep object safe. See #12860
git-svn-id: https://develop.svn.wordpress.org/trunk@14766 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-20 21:16:44 +00:00
Andrew Nacin 1356037d95 Remove non-gzipped version of tinymce. Brace for impact. props azaozz. see #13307.
git-svn-id: https://develop.svn.wordpress.org/trunk@14765 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-20 21:05:16 +00:00
Andrew Nacin 89bc55a218 Remove AYS for deleting a menu item. fixes #13330.
git-svn-id: https://develop.svn.wordpress.org/trunk@14756 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-20 14:55:11 +00:00
Andrew Nacin 1db32f4b9f Context and translator comments for revisions column names. props dimadin, fixes #13434.
git-svn-id: https://develop.svn.wordpress.org/trunk@14753 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-19 19:20:22 +00:00
Ryan Boren b6d8dbf426 Order menu tabs by name. Allow passing args to wp_get_nav_menus() which are passed on to get_terms(). Default orderby for wo_get_nav_menus() to none since most requests won't care about order. fixes #13334
git-svn-id: https://develop.svn.wordpress.org/trunk@14751 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-19 18:52:37 +00:00
Ryan Boren 8203d22175 Fix pages setup in setup_postdata(). Props misterbisson. fixes #12651
git-svn-id: https://develop.svn.wordpress.org/trunk@14750 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-19 18:39:48 +00:00
Ryan Boren efff0fe8bb Fix viewing autosave revision for custom post types. Props duck_. fixes #13110
git-svn-id: https://develop.svn.wordpress.org/trunk@14749 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-19 18:36:52 +00:00
Peter Westwood cfa9702197 Mark the ULs containing child pages in the page Walker. Fixes #13254 props GDragoN.
git-svn-id: https://develop.svn.wordpress.org/trunk@14747 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-19 17:24:28 +00:00
Ryan Boren d97fc1a61a Add docs for ->insert_id. Props scribu. fixes #13439
git-svn-id: https://develop.svn.wordpress.org/trunk@14745 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-19 16:07:42 +00:00
Mark Jaquith c3ba440221 Add AYS notice on unsaved menu changes. see #12472
git-svn-id: https://develop.svn.wordpress.org/trunk@14741 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-19 09:56:02 +00:00
Mark Jaquith bb442c8899 Add missing border to media upload frame. fixes #13430. props ocean90
git-svn-id: https://develop.svn.wordpress.org/trunk@14739 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-19 07:03:24 +00:00
Mark Jaquith dafdd33220 Add nonce protection for setting/removing featured post image. fixes #13438
git-svn-id: https://develop.svn.wordpress.org/trunk@14730 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-18 22:08:49 +00:00
Ryan Boren b8a9ec8972 Bump
git-svn-id: https://develop.svn.wordpress.org/trunk@14729 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-18 20:14:03 +00:00
Ryan Boren 683beac99a Remove interface.js. Unmaintained, doesn't work with jQuery 1.3, old, crusty, starting to smell like Miss Havisham's cake. fixes #13442
git-svn-id: https://develop.svn.wordpress.org/trunk@14728 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-18 18:34:36 +00:00
Ryan Boren c61dc41101 Remove old metaboxorder settings. see #13424
git-svn-id: https://develop.svn.wordpress.org/trunk@14726 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-18 15:30:05 +00:00
Ryan Boren bc086f5cad Add nonce to menu-locations-save. Props koopersmith. see #13378
git-svn-id: https://develop.svn.wordpress.org/trunk@14725 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-18 15:16:58 +00:00
Andrew Nacin e005e28966 Inline docs for menu location functions. props jorbin, see #13378.
git-svn-id: https://develop.svn.wordpress.org/trunk@14721 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-18 05:59:25 +00:00
Andrew Nacin cb75ebbb54 Remove autocomplete and codepress. for autocomplete, see #13283. for codepress, see #13307.
git-svn-id: https://develop.svn.wordpress.org/trunk@14718 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-18 03:48:22 +00:00
Andrew Nacin 560acd7b63 Save menu locations meta box via ajax. see #13378.
git-svn-id: https://develop.svn.wordpress.org/trunk@14715 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-17 23:58:56 +00:00
Ryan Boren e88dc2d87d Set show_ui to true for post and page. Exclude _builtin = true from areas where we need to special case builtin types. fixes #13403
git-svn-id: https://develop.svn.wordpress.org/trunk@14713 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-17 16:39:36 +00:00
Ryan Boren 77ab66972b Update _fill_many_users() phpdoc. Props miqrogroove. see #13319
git-svn-id: https://develop.svn.wordpress.org/trunk@14712 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-17 16:23:35 +00:00
Ryan Boren 1c93bc2006 Introduce get_term_feed_link(). Use it in wp_list_categories(). Props blepoxp. see #13058
git-svn-id: https://develop.svn.wordpress.org/trunk@14711 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-17 16:21:12 +00:00
Ron Rennick cff1c00885 use network_home_url in get_blogaddress_by_name, see #12735
git-svn-id: https://develop.svn.wordpress.org/trunk@14703 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-16 22:21:06 +00:00
Ron Rennick 179273030a improvements to get_home/site_url, props andreasnrb + code cleanup, see #12735
git-svn-id: https://develop.svn.wordpress.org/trunk@14702 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-16 21:58:31 +00:00
Peter Westwood a0740155c5 Make get_attachment_metadata() loop safe.
git-svn-id: https://develop.svn.wordpress.org/trunk@14699 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-16 21:00:00 +00:00
Peter Westwood b0ff90ab6f Bumpity
git-svn-id: https://develop.svn.wordpress.org/trunk@14697 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-16 20:48:09 +00:00
Peter Westwood fd4a9ffa86 Switch to checking on tt_ids for the category lookup to ensure in_array call is PHP4 compatible. See #13410
git-svn-id: https://develop.svn.wordpress.org/trunk@14696 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-16 20:47:18 +00:00
Peter Westwood 8d94af2efd Don't return data for user 1 when passed in junk like an array. See #13317.
git-svn-id: https://develop.svn.wordpress.org/trunk@14695 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-16 20:34:02 +00:00
Peter Westwood 2702a216c4 Fix remaining notice when using closures. Fixes #10493 props scribu.
git-svn-id: https://develop.svn.wordpress.org/trunk@14691 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-16 13:41:02 +00:00
Peter Westwood bfb56d204b Fix notices/usage of closures as action/filter handlers. Fixes #10493 based on patch from scribu.
git-svn-id: https://develop.svn.wordpress.org/trunk@14690 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-16 08:10:39 +00:00
Andrew Nacin 542dea5b25 Use p instead of definition list for allowed tags in comment_form(). props demetris. Style the new markup in Twenty Ten. see #10910.
git-svn-id: https://develop.svn.wordpress.org/trunk@14689 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-16 06:38:58 +00:00
Andrew Nacin 5f287dcb6d Clarify that link_before and link_after text for wp_list_pages also applies to the current page which doesn't actually have a link. fixes #12247.
git-svn-id: https://develop.svn.wordpress.org/trunk@14687 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-16 06:11:43 +00:00
Andrew Nacin 2839ecfd01 First pass at fixing search for add menu item boxes. props koopersmith, see #13283.
git-svn-id: https://develop.svn.wordpress.org/trunk@14686 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-16 05:39:53 +00:00
Andrew Nacin ae5af53f10 Custom background UI updates. props ocean90 for initial patch, see #12186.
git-svn-id: https://develop.svn.wordpress.org/trunk@14684 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-16 05:17:57 +00:00
Ron Rennick 95694cb813 show upload limit in media upload UI, see #12853
git-svn-id: https://develop.svn.wordpress.org/trunk@14682 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 23:57:32 +00:00
Ron Rennick 9ad643991f don't check upload_path in upgraded MU install, see #12549
git-svn-id: https://develop.svn.wordpress.org/trunk@14680 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 21:53:18 +00:00
Andrew Nacin e6fcc1df7c Don't show unapproved comments in comments widget. props jshreve, fixes #10615.
git-svn-id: https://develop.svn.wordpress.org/trunk@14679 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 21:44:12 +00:00
Peter Westwood 6979d55fbe Don't trim whitespace from sections of the response in IXR_Client. Fixes #12559 props apeatling.
git-svn-id: https://develop.svn.wordpress.org/trunk@14677 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 21:04:26 +00:00
Peter Westwood 01b1ae4e39 Bumpity
git-svn-id: https://develop.svn.wordpress.org/trunk@14676 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 20:59:02 +00:00
Andrew Nacin 23d6bf302c More validation fixes. Escape some preview=true URLs, also clean up tags in edit-attachment-rows. Slight CSS tweak to match presentation to the formerly invalid HTML. props zeo, see #13383.
git-svn-id: https://develop.svn.wordpress.org/trunk@14673 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 20:36:49 +00:00
Andrew Nacin 317abe4473 Remove p tag from allowed nav menu container tags. Cannot validly contain block level elements. props Jorbin, fixes #13349.
git-svn-id: https://develop.svn.wordpress.org/trunk@14666 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 15:05:57 +00:00
Ryan Boren 14d8731a49 Don't update_post_caches if a persistent object cache is installed. fixes #12611
git-svn-id: https://develop.svn.wordpress.org/trunk@14665 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 15:00:53 +00:00
Ryan Boren afc24755fc autosave_update_post_ID() no longer needed. Fix button enable lag. Props duck_. fixes #13400
git-svn-id: https://develop.svn.wordpress.org/trunk@14663 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 14:03:46 +00:00
Mark Jaquith cb34d30d8e Update media upload window tabs CSS to support wrapping of tabs when they exceed the available width. props edward mindreantre. fixes #10242
git-svn-id: https://develop.svn.wordpress.org/trunk@14661 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 10:21:10 +00:00
Mark Jaquith 45dec2e4e8 Do not show dummy default category output when calling the_category on a post_type that does not support the category taxonomy (like pages). Fix TwentyTen theme to not display wrapping text if there are no categories. fixes #10333
git-svn-id: https://develop.svn.wordpress.org/trunk@14660 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 09:59:15 +00:00
Andrew Nacin 43c09c9587 Also return raw author name and URI from get_theme_data and get_themes. props blepoxp, fixes #12275.
git-svn-id: https://develop.svn.wordpress.org/trunk@14658 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 06:28:35 +00:00
Andrew Nacin e6ae8c05e8 Always pass post ID, not post object, to the_title filter. Original the_title filter in get_the_title() uses ID only. props filosofo, fixes #12631.
git-svn-id: https://develop.svn.wordpress.org/trunk@14653 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 05:26:25 +00:00
Andrew Nacin 7d118a4628 Remove default_comment_status_pages setting from the options table. see #12991.
git-svn-id: https://develop.svn.wordpress.org/trunk@14651 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 05:01:04 +00:00
Andrew Nacin f92765c934 Remove default_comment_status_pages setting. Reverts [14451], [14448] for 3.0. see #12991.
git-svn-id: https://develop.svn.wordpress.org/trunk@14650 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 04:56:56 +00:00
Andrew Nacin 5aa7280d6a Introduce wp_check_filetype_and_ext() to handle mime/ext image comparisons and corrections for upload and sideload. props Viper007Bond, see #11946.
git-svn-id: https://develop.svn.wordpress.org/trunk@14649 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 04:47:03 +00:00
Ryan Boren 35cd94b58c register_post_type phpdoc updates. Props michaelh. fixes #13398
git-svn-id: https://develop.svn.wordpress.org/trunk@14648 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 22:26:07 +00:00
Andrew Nacin 47136b319f Introduce _ex(), a hybrid between _e() and _x() -- translate with context, then echo. props westi, see #13395.
git-svn-id: https://develop.svn.wordpress.org/trunk@14647 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 21:46:25 +00:00
Peter Westwood 7d675404ca Restore the correct behaviour of bloginfo('text_direction'). Fixes #13360. See #13206.
git-svn-id: https://develop.svn.wordpress.org/trunk@14646 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 21:22:14 +00:00
Ryan Boren 28f42b1b8b Don't output empty title. Props mattwiebe, ptahdunbar. fixes #13240
git-svn-id: https://develop.svn.wordpress.org/trunk@14644 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 18:52:59 +00:00
Peter Westwood 4b3be4e693 Introduce __return_empty_array() and use it instead of create_function in the theme preview.
git-svn-id: https://develop.svn.wordpress.org/trunk@14641 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 16:55:26 +00:00
Peter Westwood 9b6d7bb63a Bumpity Bump
git-svn-id: https://develop.svn.wordpress.org/trunk@14640 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 16:48:29 +00:00
Peter Westwood 81b12ac87e Introduce __return_zero() and use it instead of create_function in the login header.
Also add version info to __return_true and __return_false.

git-svn-id: https://develop.svn.wordpress.org/trunk@14639 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 16:46:53 +00:00
Andrew Nacin 1164a4276b Use valid HTML in the theme editor. span instead of div inside an anchor. props Utkarsh, see #13383.
git-svn-id: https://develop.svn.wordpress.org/trunk@14625 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 07:04:17 +00:00
Andrew Nacin 4db10bf0d7 First pass on 'Theme Locations' for navigation menus. Themes need to specify a location when calling wp_nav_menu and register locations in functions.php. Users then map menus to locations in the nav menu admin. Subject to review. see #13378.
git-svn-id: https://develop.svn.wordpress.org/trunk@14620 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 06:20:30 +00:00
Nikolay Bachiyski 8a95987fad Keep label as a quick way to set up a taxonomy/post type, without diving into the labels array. Deprecate singular_label while there. Props nacin. Fixes #13357
git-svn-id: https://develop.svn.wordpress.org/trunk@14619 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 02:13:49 +00:00
Andrew Nacin 0d472228a2 Add closing tr tag to custom-background.php. Close paragraph tags in the recent comments and posts widget controls. props jshreve, see #13383.
git-svn-id: https://develop.svn.wordpress.org/trunk@14617 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 01:50:46 +00:00
Andrew Nacin ae2148a866 Only save menu item positions on save. Had implications for draft items otherwise. see #13337, props koopersmith.
git-svn-id: https://develop.svn.wordpress.org/trunk@14615 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 01:32:48 +00:00
Nikolay Bachiyski 599c19481e I18n for custom taxonomies. Fixes #13357
git-svn-id: https://develop.svn.wordpress.org/trunk@14614 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 00:34:04 +00:00
Ron Rennick 05b0578c06 add menu slots/theme_menus, props ryan, see #13378
git-svn-id: https://develop.svn.wordpress.org/trunk@14611 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-13 22:14:54 +00:00
Andrew Nacin 98a20461dc Check if HEADER_ constants are defined before continuing. props ocean90, fixes #13367.
git-svn-id: https://develop.svn.wordpress.org/trunk@14610 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-13 21:44:37 +00:00
Ron Rennick ddcf72d638 block ms-files.php when not multisite, see #11742
git-svn-id: https://develop.svn.wordpress.org/trunk@14609 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-13 21:40:42 +00:00
Peter Westwood 728b90a13b Introduce wp_reset_postdata(). Use it to reset the post global for the current query_posts() call after using a loop with a new WP_Query object. Fixes #12320 props scribu.
git-svn-id: https://develop.svn.wordpress.org/trunk@14607 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-13 20:39:54 +00:00
Ryan Boren e35fe8d6d9 get_term_by('id') -> get_term(). Add get_term filters to get_term_by.
git-svn-id: https://develop.svn.wordpress.org/trunk@14606 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-13 19:16:09 +00:00
Andrew Nacin 6e9e34fb52 More wp_navMore inline doc clarifications for wp_nav_menu. fixes #13370, props jorbin.
git-svn-id: https://develop.svn.wordpress.org/trunk@14605 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-13 19:07:08 +00:00
Andrew Nacin 96d6225aa1 More inline doc clarifications for wp_nav_menu. fixes #13370, props jorbin.
git-svn-id: https://develop.svn.wordpress.org/trunk@14604 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-13 18:47:35 +00:00
Peter Westwood f782838830 Add commentary about the posts_search filter. See #10667.
git-svn-id: https://develop.svn.wordpress.org/trunk@14603 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-13 17:34:43 +00:00
Ryan Boren 3c7ca79f6e Add show_in_nav_menus flag to post type registration. Props williamsba1. fixes #13144
git-svn-id: https://develop.svn.wordpress.org/trunk@14602 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-13 17:29:45 +00:00
Ryan Boren e628d300b0 s/wp_get_nav_menu_item/walker_nav_menu_start_el/ to be more specific. Pass all start_el() args to the filter. Props tomtomp. fixes #13366
git-svn-id: https://develop.svn.wordpress.org/trunk@14600 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-13 16:44:12 +00:00
Ryan Boren 0a38355cce Check for WP_Error. Props ptahdunbar. fixes #12949
git-svn-id: https://develop.svn.wordpress.org/trunk@14599 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-13 16:34:14 +00:00
Ryan Boren c212288b6f Bump
git-svn-id: https://develop.svn.wordpress.org/trunk@14597 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-13 16:00:16 +00:00
Ryan Boren 84b91a7ede Delete more bad screen options from usermeta. like_escape() blog prefix. fixes #13032
git-svn-id: https://develop.svn.wordpress.org/trunk@14596 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-13 15:59:17 +00:00
Ryan Boren 402b875b3d Attempt canonical redirect only for public post types. Props solarissmoke. see #13125
git-svn-id: https://develop.svn.wordpress.org/trunk@14595 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-13 15:09:43 +00:00
Andrew Nacin 4f689c8309 Move taxonomy object properties for capabilities into a cap object. Capabilities can be specified via ['capabilities'] (an array keyed by the generic cap name) for register_taxonomy. fixes #13358.
git-svn-id: https://develop.svn.wordpress.org/trunk@14593 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-13 04:10:17 +00:00
Andrew Nacin 39edf881e0 Allow wp_nav_menu_items filters to run on the backend as well. props NathanRice, fixes #13371.
git-svn-id: https://develop.svn.wordpress.org/trunk@14592 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-13 03:50:26 +00:00
Andrew Nacin a523060469 Nav menu inline doc fixes. props NathanRice, fixes #13370.
git-svn-id: https://develop.svn.wordpress.org/trunk@14591 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-13 03:46:35 +00:00
Ryan Boren 6648182c8c Don't pass a slug when creating anew menu. This prevents creating a menu whose slug matches a different term in another taxonomy. Props filosofo. fixes #13345
git-svn-id: https://develop.svn.wordpress.org/trunk@14590 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-12 21:23:29 +00:00
Andrew Nacin 7c0dcdca6b Unset capabilities property when we're done. see #13358.
git-svn-id: https://develop.svn.wordpress.org/trunk@14589 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-12 21:17:38 +00:00
Andrew Nacin 490a0a99cd More typos. see #13358.
git-svn-id: https://develop.svn.wordpress.org/trunk@14588 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-12 21:03:33 +00:00
Andrew Nacin 4a19ba4f0f Fix typos. see #13358.
git-svn-id: https://develop.svn.wordpress.org/trunk@14587 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-12 20:57:47 +00:00
Ryan Boren 686cd3b696 Pass menu id instead of name. Allows menus with commas in the name. Props filosofo. fixes #13368
git-svn-id: https://develop.svn.wordpress.org/trunk@14586 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-12 20:47:08 +00:00
Andrew Nacin 323342deec Move post type object capabilities to a 'cap' object. Allow them to be initialized via the 'capabilities' key (an array) when registering support for the post type. Caps are now referred to by the name of the cap as if it was a post, i.e. ->cap->edit_post. see #13358.
git-svn-id: https://develop.svn.wordpress.org/trunk@14585 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-12 20:45:18 +00:00
Andrew Nacin 4b6c5c65c6 Use correct cap check. see #13358.
git-svn-id: https://develop.svn.wordpress.org/trunk@14584 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-12 19:39:30 +00:00
Andrew Nacin 6f8142acd3 Blue scheme for nav menu admin UI. props kpdesign, duck_. fixes #13190.
git-svn-id: https://develop.svn.wordpress.org/trunk@14583 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-12 19:31:11 +00:00
Andrew Nacin a687ece1a8 Don't nest p tag inside the opening table tag in the new right now box. fixes IE display, and validation. fixes #12202, props ocean90.
git-svn-id: https://develop.svn.wordpress.org/trunk@14582 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-12 19:29:35 +00:00
Andrew Nacin 49e4cad78c Use the edit_theme_options capability. fixes #13290.
git-svn-id: https://develop.svn.wordpress.org/trunk@14581 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-12 19:19:57 +00:00
Andrew Nacin 3ad374984a Whitespace and standards in get_userdata. fixes #13317.
git-svn-id: https://develop.svn.wordpress.org/trunk@14579 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-12 18:59:03 +00:00
Ryan Boren 9e8a9b7b2a Bumpity bump bump
git-svn-id: https://develop.svn.wordpress.org/trunk@14576 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-12 15:24:31 +00:00
Andrew Nacin 92d97fad12 Allow for multiple classes and XFN relationships in menu items.
git-svn-id: https://develop.svn.wordpress.org/trunk@14574 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-11 23:58:26 +00:00
Ryan Boren ee1bdf9c7a Setup user globals for user id 0. Props mdawaffe. fixes #13362
git-svn-id: https://develop.svn.wordpress.org/trunk@14573 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-11 23:02:40 +00:00
Nikolay Bachiyski ad3881470e I18n for custom post type labels. Props demetris, dimadin. Fixes #12968
git-svn-id: https://develop.svn.wordpress.org/trunk@14571 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-11 19:52:50 +00:00
Andrew Nacin 691fc01761 Bump the version alot.
git-svn-id: https://develop.svn.wordpress.org/trunk@14566 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-11 18:34:20 +00:00
Andrew Nacin d620c50f96 Remove apparent debug cruft committed in [14401]. fixes #13355
git-svn-id: https://develop.svn.wordpress.org/trunk@14565 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-11 18:28:12 +00:00
Ryan Boren 364194617a Don't update meta data when the new value matches the old value. fixes #13350
git-svn-id: https://develop.svn.wordpress.org/trunk@14564 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-11 17:35:07 +00:00
Ryan Boren 0adf04d6db Don't order term count queries.
git-svn-id: https://develop.svn.wordpress.org/trunk@14563 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-11 16:50:25 +00:00
Ryan Boren d5308265cd Don't set/get tags or categories for post types that do not support them. fixes #13346
git-svn-id: https://develop.svn.wordpress.org/trunk@14561 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-11 16:28:00 +00:00
Ryan Boren 5d13bccc69 Don't prime menu item cache if a persistent cache is being used. Prime the menu item cache only on the first call to wp_get_nav_menu_items(). Avoids unneeded queries when wp_get_nav_menu_items() is called repeatedly. see #12734
git-svn-id: https://develop.svn.wordpress.org/trunk@14560 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-11 15:55:17 +00:00
Ryan Boren b726ce95dc Unset some vars when done with them to reduce peak memory usage. see #12734
git-svn-id: https://develop.svn.wordpress.org/trunk@14559 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-11 14:39:00 +00:00
Ryan Boren c0e02a6677 No need to setup the nav menu items again. wp_get_nav_menu_items() handles it. see #12734
git-svn-id: https://develop.svn.wordpress.org/trunk@14558 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-11 14:25:10 +00:00
Ryan Boren 6588f852fa Reduce number of queries in wp_get_nav_menu_items() by fetching posts and terms with batch queries. see #12734
git-svn-id: https://develop.svn.wordpress.org/trunk@14557 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-11 14:21:03 +00:00
Ryan Boren dd9c60ef64 Force reauth when auth_redirect() redirects to login. see #12142
git-svn-id: https://develop.svn.wordpress.org/trunk@14556 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-11 13:44:40 +00:00
Peter Westwood e8c4ed229f Kick the version up some more.
git-svn-id: https://develop.svn.wordpress.org/trunk@14550 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-10 21:13:35 +00:00
Andrew Nacin e98ddd7bd6 Revert patch for expecting unslashed data in the metadata API. Had snuck in with [14546]. see #12416.
git-svn-id: https://develop.svn.wordpress.org/trunk@14547 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-10 20:51:58 +00:00
Andrew Nacin 8235a24f35 Fix double-tabbing in get_dropins.
git-svn-id: https://develop.svn.wordpress.org/trunk@14546 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-10 20:41:14 +00:00
Andrew Nacin 5c149c17ae Use correct field name in a query in do_enclose(). fixes #12074, mtdewvirus.
git-svn-id: https://develop.svn.wordpress.org/trunk@14539 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-10 09:02:15 +00:00
Andrew Nacin 384cd5a9d3 Fix typos in phpdoc for comment_form(). props demetris, fixes #10910.
git-svn-id: https://develop.svn.wordpress.org/trunk@14538 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-10 08:47:13 +00:00
Andrew Nacin 4b48de9c08 Remove unused global var. props filosofo, fixes #13316.
git-svn-id: https://develop.svn.wordpress.org/trunk@14536 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-10 06:06:37 +00:00
Andrew Nacin 3dd93e488b Some sortable improvements in the nav menu UI. props koopersmith, see #13220.
git-svn-id: https://develop.svn.wordpress.org/trunk@14531 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-10 04:51:57 +00:00
Ryan Boren 581779a30d Don't call wp_get_nav_menu_items() twice.
git-svn-id: https://develop.svn.wordpress.org/trunk@14529 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-10 01:11:04 +00:00
Ryan Boren ee0b76261b Allow turning off object_term and postmeta cache updates. Turn off object_term updates in the wp_get_nav_menu_items() get_posts() query to avoid useless taxonomy query.
git-svn-id: https://develop.svn.wordpress.org/trunk@14528 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-10 00:58:39 +00:00
Andrew Nacin 58837ee989 Remove codepress dir. see #13307.
git-svn-id: https://develop.svn.wordpress.org/trunk@14527 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-09 22:53:25 +00:00
Peter Westwood 14ea78ffa3 Bump Bump Bump.
git-svn-id: https://develop.svn.wordpress.org/trunk@14526 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-09 20:54:12 +00:00
Mark Jaquith e69e6856e8 Omit extraneous argument. props coffee2code. fixes #10057
git-svn-id: https://develop.svn.wordpress.org/trunk@14522 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-09 07:22:10 +00:00
Andrew Nacin fd9b4855e6 Simplify is_post_type and is_post_type_hierarchical. Make them work like their taxonomy counterparts. see #12588.
git-svn-id: https://develop.svn.wordpress.org/trunk@14521 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-08 22:10:28 +00:00
Andrew Nacin 7ea215494e Allow menu items to be dropped on a parent item in addition to just being dragged to the right. props koopersmith, see #13220.
git-svn-id: https://develop.svn.wordpress.org/trunk@14520 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-08 21:56:53 +00:00
Peter Westwood 2e1947d51c Bumpity
git-svn-id: https://develop.svn.wordpress.org/trunk@14519 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-08 21:16:17 +00:00
Andrew Nacin f04386cca0 Don't use WP_SITEURL and WP_HOME in multisite. fixes #13191.
git-svn-id: https://develop.svn.wordpress.org/trunk@14517 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-08 19:31:42 +00:00
Ron Rennick 74a627a09d consistency & simplicity in get_option(), see #12140
git-svn-id: https://develop.svn.wordpress.org/trunk@14515 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-08 18:05:16 +00:00
Ron Rennick 9d47e01b62 add upload dir support to switch to blog, props ocean90, see #11998
git-svn-id: https://develop.svn.wordpress.org/trunk@14510 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-07 22:50:05 +00:00
Peter Westwood d670421940 I like alot of version numbers.
git-svn-id: https://develop.svn.wordpress.org/trunk@14508 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-07 21:07:19 +00:00
Peter Westwood 5b4e507d7d Restore the strtotime(). See #9285.
git-svn-id: https://develop.svn.wordpress.org/trunk@14507 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-07 20:57:23 +00:00
Andrew Nacin 2bead5daeb Allow duplicate emails (generally empty) if WP_IMPORTING to restore 2.9 behavior. props blepoxp, yoavf. fixes #13130. see r12778.
git-svn-id: https://develop.svn.wordpress.org/trunk@14504 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-07 20:35:04 +00:00
Peter Westwood f5d0ab2f21 Don't cache option values while installing. See #12140.
git-svn-id: https://develop.svn.wordpress.org/trunk@14502 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-07 18:32:20 +00:00
Andrew Nacin c100b80c20 Fix start of week and SQL WEEK handling. props mdawaffe, fixes #10397.
git-svn-id: https://develop.svn.wordpress.org/trunk@14499 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-07 05:01:29 +00:00
Andrew Nacin ec9d233b8b Fix to is_post_type. props scribu, fixes #12588.
git-svn-id: https://develop.svn.wordpress.org/trunk@14498 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-07 04:57:23 +00:00
Andrew Nacin 12985d307f Standardize returned array keys when output = 'names'. Return numeric keys. Standardizes get_object_taxonomies with get_taxonomies, get_post_types, and get_post_stati. props scribu. fixes #13109.
git-svn-id: https://develop.svn.wordpress.org/trunk@14495 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-07 03:24:47 +00:00
Peter Westwood 85e9d665ee Make wp_get_shortlink() loop friendly. Fixes #13212 props ryan.
git-svn-id: https://develop.svn.wordpress.org/trunk@14490 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-06 21:20:17 +00:00
Peter Westwood 8e2343b6ba Bump the rev some more for the next nightly
git-svn-id: https://develop.svn.wordpress.org/trunk@14489 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-06 21:09:54 +00:00
Peter Westwood db366b0732 Bump
git-svn-id: https://develop.svn.wordpress.org/trunk@14488 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-06 20:54:05 +00:00
Peter Westwood dacd1c5623 Improve cross DST future post publishing behaviour to try and publish at the correct time if we have PHP5 timezone support available to help. Fixes #9285 props technosailor.
git-svn-id: https://develop.svn.wordpress.org/trunk@14487 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-06 20:40:29 +00:00
Andrew Nacin 7fcb6fef4b Use wp_cache_set instead of wp_cache_add in recent posts and archives widgets. props Denis-de-Bernardy, fixes #11580.
git-svn-id: https://develop.svn.wordpress.org/trunk@14486 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-06 20:40:10 +00:00
Andrew Nacin 910c8e8bc9 Remove WP_FALLBACK_THEME, use WP_DEFAULT_THEME instead. We now only fall back to the default theme if the theme is broken. Incomplete themes that need to inherit templates will inherit them from wp-includes/theme-compat -- this behavior is deprecated. fixes #12846.
git-svn-id: https://develop.svn.wordpress.org/trunk@14485 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-06 19:53:40 +00:00
Peter Westwood 51aa71c394 Pass extra context to wpmu_new_blog.
git-svn-id: https://develop.svn.wordpress.org/trunk@14484 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-06 19:36:20 +00:00
Peter Westwood ebbb23e25b Make the recent comments widget use the get_comments() api and cache the result. Fixes #10615 props filosofo and blepoxp.
git-svn-id: https://develop.svn.wordpress.org/trunk@14483 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-06 19:31:45 +00:00
Andrew Nacin b6d274e817 Small fix to r14479. see #13109.
git-svn-id: https://develop.svn.wordpress.org/trunk@14480 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-06 18:16:39 +00:00
Andrew Nacin 934d7c5580 Allow get_object_taxonomies to return taxonomy objects. props scribu, fixes #13109.
git-svn-id: https://develop.svn.wordpress.org/trunk@14479 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-06 18:07:50 +00:00
Andrew Nacin cba25aba7e Prevent ambiguous table aliases in wp_post_mime_type_where. props stephdau, jfarthing84, fixes #12750.
git-svn-id: https://develop.svn.wordpress.org/trunk@14478 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-06 18:03:05 +00:00
Andrew Nacin 0b3e082d6e Remove duplicated query var. props lriggle, fixes #13280.
git-svn-id: https://develop.svn.wordpress.org/trunk@14477 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-06 17:49:54 +00:00
Andrew Nacin 04919ebe8b Adopt WP's general JS structure. Remove last of trailing commas. Remove dead code. props koopersmith, see #13220.
git-svn-id: https://develop.svn.wordpress.org/trunk@14475 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-06 17:11:52 +00:00
Andrew Nacin 8cf4e1051f Remove trailing comma in common.js that IE is known to choke on. props ocean90, fixes #13260.
git-svn-id: https://develop.svn.wordpress.org/trunk@14472 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-06 14:13:31 +00:00
Andrew Nacin 465cce3e6a Revert [14434] et al. Going back to checkboxes in the nav menus, holding drag-drop for future release. see #13247.
git-svn-id: https://develop.svn.wordpress.org/trunk@14471 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-06 14:09:10 +00:00
Andrew Nacin 971d337bd3 Consolidate nav menu item ajax. Other misc fixes. props koopersmith, see #13204.
git-svn-id: https://develop.svn.wordpress.org/trunk@14464 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-05 20:29:50 +00:00
Ron Rennick e4fd58acb4 use same salts/keys across network, see #12142
git-svn-id: https://develop.svn.wordpress.org/trunk@14458 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-04 22:08:53 +00:00
Andrew Nacin 1ec3a58cd1 Check custom links, including a home link, against the current URL to see if we should add current-menu-item. props ptahdunbar, fixes #13213, see #13220.
git-svn-id: https://develop.svn.wordpress.org/trunk@14457 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-04 22:01:56 +00:00
Nikolay Bachiyski 53e65714a1 Cast the result of glob(), because on some systems it returns false on empty result set. Props ipstenu, fixes #13252
git-svn-id: https://develop.svn.wordpress.org/trunk@14456 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-04 21:55:34 +00:00
Andrew Nacin 8d6694a68d Revert part of r14429 as it broke HTTP in setup-config. Revisit when we decide to fully deprecate get_bloginfo(url). see #9008.
git-svn-id: https://develop.svn.wordpress.org/trunk@14455 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-04 21:41:45 +00:00
Andrew Nacin 42e9ce36fc Deprecate VHOST in favor of a boolean, SUBDOMAIN_INSTALL. Core will keep VHOST defined for plugins' sake, but you should only define SUBDOMAIN_INSTALL. Throws a notice if VHOST is defined, and a warning if they somehow conflict. Sunrise can still handle them. fixes #11796.
git-svn-id: https://develop.svn.wordpress.org/trunk@14452 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-04 20:48:28 +00:00
Andrew Nacin 6034c105d6 Non-JS menu ordering fixes, also parent handling fixes. props filosofo, fixes #13135, fixes #13249
git-svn-id: https://develop.svn.wordpress.org/trunk@14450 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-04 19:40:04 +00:00
Ron Rennick bdb89ac091 add default comment status setting for pages, props messenlehner, see #12991
git-svn-id: https://develop.svn.wordpress.org/trunk@14448 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-04 19:31:24 +00:00
Ron Rennick 3dea05d10c use reset vs offset 0, props scribu, see #13246
git-svn-id: https://develop.svn.wordpress.org/trunk@14447 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-04 18:41:38 +00:00
Dion Hulse 12196261a4 Handle $wp_query->query being a string in r14341. See #12391, #12047. Fixes #13241
git-svn-id: https://develop.svn.wordpress.org/trunk@14445 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-04 18:08:03 +00:00
Andrew Nacin 84578d128b Add trailing slash to some home_url() calls. props zeo, fixes #13245.
git-svn-id: https://develop.svn.wordpress.org/trunk@14443 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-04 17:13:11 +00:00
Ron Rennick 5ac6893996 add export property to post types, see #10317
git-svn-id: https://develop.svn.wordpress.org/trunk@14441 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-04 16:23:25 +00:00
Andrew Nacin 0593984cba Remove re-adding of filter. see #11742
git-svn-id: https://develop.svn.wordpress.org/trunk@14440 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-04 16:00:30 +00:00
Andrew Nacin 16d48e323b More menu improvements. Add link that adds a menu item to the home page, make empty menu dropzone slightly larger, limit selected items to the active tab. props koopersmith and ptahdunbar. see #13220.
git-svn-id: https://develop.svn.wordpress.org/trunk@14439 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-04 10:01:15 +00:00
Andrew Nacin a87ced35aa Add ability to drag objects from meta boxes and drop them into your menu. Includes multiple-select before dragging. Select all is todo. Checkboxes remain non-JS fallback. props koopersmith, see #13247.
git-svn-id: https://develop.svn.wordpress.org/trunk@14434 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-04 07:24:49 +00:00
Andrew Nacin 23ce2f4151 Clean up whitespace in status/PT/tax registration.
git-svn-id: https://develop.svn.wordpress.org/trunk@14432 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-04 06:13:28 +00:00
Dion Hulse a8feef50fc Remove accidental code. See #10122
git-svn-id: https://develop.svn.wordpress.org/trunk@14431 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-04 05:48:08 +00:00
Andrew Nacin 3d3322c1d6 Revert accidental removal of parse_url(). see #9008, props PeteMall.
git-svn-id: https://develop.svn.wordpress.org/trunk@14430 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-04 04:57:22 +00:00
Ron Rennick c2b89e7330 use homeurl(), props PeteMall, see #9008
git-svn-id: https://develop.svn.wordpress.org/trunk@14429 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-04 00:28:29 +00:00
Ryan Boren 56e95f24c5 Fix user validation feedback. Props sivel. fixes #13162
git-svn-id: https://develop.svn.wordpress.org/trunk@14428 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-03 23:46:42 +00:00
Dion Hulse 52cdae0385 Handle $_POST containing an empty term array, Fixes saving of deselecting all hierarchical terms. Fixes #10122
git-svn-id: https://develop.svn.wordpress.org/trunk@14426 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-03 23:35:22 +00:00
Ron Rennick 01822efabb use filter vs action in 14420, see #12853
git-svn-id: https://develop.svn.wordpress.org/trunk@14421 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-03 22:58:04 +00:00
Ron Rennick e35e6165ab limit upload size to site's available limit, see #12853
git-svn-id: https://develop.svn.wordpress.org/trunk@14420 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-03 22:40:02 +00:00
Ryan Boren d2b4e092aa White list instead of black list post types when searching. Props sivel. fixes #13183
git-svn-id: https://develop.svn.wordpress.org/trunk@14419 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-03 22:22:34 +00:00
Nikolay Bachiyski c094caee61 Refactor get_available_languages() to use glob() instead of *dir functions. See #13023
git-svn-id: https://develop.svn.wordpress.org/trunk@14417 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-03 22:07:31 +00:00
Andrew Nacin f01af5fefd Bail when there is neither a menu, or a fallback. props ptahdunbar, fixes #13006.
git-svn-id: https://develop.svn.wordpress.org/trunk@14415 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-03 22:03:52 +00:00
Ryan Boren eee631b773 Don't suppress errors when including cron if WP_DEBUG. Props sivel. fixes #11507
git-svn-id: https://develop.svn.wordpress.org/trunk@14414 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-03 21:46:19 +00:00
Mark Jaquith fb6501cae0 Add some new protocols for KSES. Make the list of protocols filterable. Start esc_url() with the same list. fixes #10914. props technosailor
git-svn-id: https://develop.svn.wordpress.org/trunk@14412 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-03 21:20:20 +00:00
Andrew Nacin b3b0c727fc Use get_row instead of get_var in get_site_option, aligning it with get_option, due to funkiness with 0/false/null. fixes #13043. props laceous.
git-svn-id: https://develop.svn.wordpress.org/trunk@14410 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-03 21:02:32 +00:00