Commit Graph

7519 Commits

Author SHA1 Message Date
scribu 5a2a86f84a Allow mix of 'taxonomy' => 'foo', 'term' => 'bar' and 'foo2' => 'bar2'. Props filosofo. Fixes #15363
git-svn-id: https://develop.svn.wordpress.org/trunk@16259 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-09 16:45:51 +00:00
scribu 4754dbd2c6 Set 'operator' field. Fixes #15350. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@16258 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-09 12:27:03 +00:00
Peter Westwood 3f01db9dd9 Better message.
git-svn-id: https://develop.svn.wordpress.org/trunk@16257 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-09 10:45:30 +00:00
Peter Westwood e2379fdd7e Switch the following XMLRPC api calls to support an optional number of posts.
blogger.getRecentPosts
metaWeblog.getRecentPosts
mt.getRecentPostTitles

git-svn-id: https://develop.svn.wordpress.org/trunk@16256 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-09 10:16:23 +00:00
Peter Westwood 29da3d7730 Mark the calling of wp_get_recent_posts() with just a count as deprecated - only use in core was from XMLRPC.
git-svn-id: https://develop.svn.wordpress.org/trunk@16255 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-09 10:14:38 +00:00
Andrew Nacin c165557b3e Introduce menu_name label for taxonomies and post types. Defaults to name. fixes #14832.
git-svn-id: https://develop.svn.wordpress.org/trunk@16251 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-09 02:09:00 +00:00
Andrew Nacin 07522b17d1 Confirm that the queried term object is of the requested taxonomy in wp_list_categories. fixes #15347.
git-svn-id: https://develop.svn.wordpress.org/trunk@16250 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-09 01:20:38 +00:00
Andrew Nacin 7be12299b7 Merge two strings in JS, which were merged elsewhere some time ago.
git-svn-id: https://develop.svn.wordpress.org/trunk@16248 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-09 00:52:02 +00:00
Ryan Boren e4a21e0527 Resurrect nav-tab-wrapper. Lost in [16136]. see #15154
git-svn-id: https://develop.svn.wordpress.org/trunk@16243 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-08 22:12:46 +00:00
Peter Westwood 163f1b0d9c Fix typo in error message. Props PeteMall
git-svn-id: https://develop.svn.wordpress.org/trunk@16233 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-08 10:08:51 +00:00
scribu fc764ebc45 Remove nofollow on comment reply links. Fixes #10550
git-svn-id: https://develop.svn.wordpress.org/trunk@16230 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-07 01:06:37 +00:00
Ryan Boren 94839a3f17 Prime blogs of user cache from old cache to avoid mass DB requests on upgrade. see #14379
git-svn-id: https://develop.svn.wordpress.org/trunk@16225 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-06 18:45:20 +00:00
Ryan Boren 56a6f6f060 Send moderation emails to post author. see #6286
git-svn-id: https://develop.svn.wordpress.org/trunk@16223 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-06 15:20:50 +00:00
Peter Westwood 1626139659 Remove WP_SHOW_ADMIN_BAR and go off existing and new defines on page type. See #15315
git-svn-id: https://develop.svn.wordpress.org/trunk@16221 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-06 09:41:03 +00:00
scribu 441237a5f4 Uncheck mass select checkbox when updating rows via ajax. See #14579
git-svn-id: https://develop.svn.wordpress.org/trunk@16218 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-05 23:07:00 +00:00
scribu b3d19ecb16 Make get_file_data() regex more precise. Fixes #15193
git-svn-id: https://develop.svn.wordpress.org/trunk@16215 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-05 22:22:28 +00:00
Andrew Nacin 6a8c5b337b Revert [16021]. See #14170.
git-svn-id: https://develop.svn.wordpress.org/trunk@16213 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-05 21:35:28 +00:00
Andrew Nacin 30ada3d17d Add missing arguments to post_type_archive_title. props greenshady, see #13818.
git-svn-id: https://develop.svn.wordpress.org/trunk@16211 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-05 21:14:43 +00:00
Ryan Boren b8b7810f52 Introduce user_can(). Props simonwheatley. fixes #14602
git-svn-id: https://develop.svn.wordpress.org/trunk@16209 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-05 17:04:46 +00:00
Ryan Boren 20131f4e62 Don't fire wp_notify_postauthor() when the author moderated the comment. Props mrmist. fixes #12774
git-svn-id: https://develop.svn.wordpress.org/trunk@16208 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-05 15:36:04 +00:00
Ryan Boren b7ed18e2ec Don't anchor regex. Props ozh. fixes #14628
git-svn-id: https://develop.svn.wordpress.org/trunk@16207 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-05 15:29:50 +00:00
Ryan Boren d73a826715 Eliminate some queries in get_page_by_path() by consulting cache. Props Denis-de-Bernardy, wojtek.szkutnik. fixes #11373
git-svn-id: https://develop.svn.wordpress.org/trunk@16206 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-05 15:26:15 +00:00
scribu a1c670189d remove leading <li> from get_views() and add it later. Fixes #15321
git-svn-id: https://develop.svn.wordpress.org/trunk@16205 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-05 14:34:09 +00:00
scribu 79c38419bf Skip category/tag queries if post type doesn't support them. Props mfields. Fixes #15322
git-svn-id: https://develop.svn.wordpress.org/trunk@16204 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-05 12:47:19 +00:00
Peter Westwood 432fa1921c Restore the functionality of some of the other timezone format modifiers in date_i18n props nbachiyski.
git-svn-id: https://develop.svn.wordpress.org/trunk@16203 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-05 11:19:06 +00:00
Mark Jaquith 85957ff289 Allow get_post_format() to assume current post if none passed in. see #14746
git-svn-id: https://develop.svn.wordpress.org/trunk@16202 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-05 09:40:36 +00:00
Mark Jaquith 205c412afd Post Formats generate output in post_class() (format-foo), and body_class() (for single... single-format-foo). Now themers can support Post Formats with one line of PHP and by adding CSS! see #14746
git-svn-id: https://develop.svn.wordpress.org/trunk@16200 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-05 06:48:56 +00:00
Mark Jaquith 32ac7d22a6 get_post_format_string() to get nice version of a post format slug. Try appending post format as a post-status label. Enclose in square brackets to help it stand out. Remove post format strings filter. If this is going to be standard, it should be standard. see #14746
git-svn-id: https://develop.svn.wordpress.org/trunk@16198 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-05 03:04:13 +00:00
Mark Jaquith c44eb74f66 Use post_type_supports() to check for whether a post type supports post formats. Only posts support it by default. props mikeschinkel. see #14746
git-svn-id: https://develop.svn.wordpress.org/trunk@16196 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-05 02:04:22 +00:00
Mark Jaquith 6648c30823 Translate and prettify post formats for display. Also, filterable by themes/plugins to add new ones. see #14746
git-svn-id: https://develop.svn.wordpress.org/trunk@16191 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-04 18:33:50 +00:00
Mark Jaquith 6c266a561d Bump the post.js version
git-svn-id: https://develop.svn.wordpress.org/trunk@16189 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-04 18:11:29 +00:00
Ryan Boren 44b87921bd jQuery 1.4.4rc2. see #15227
git-svn-id: https://develop.svn.wordpress.org/trunk@16186 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-04 17:56:13 +00:00
Ryan Boren 2bc9ef93c1 Use bool not string. Props TobiasBg. see #15170
git-svn-id: https://develop.svn.wordpress.org/trunk@16181 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-04 14:43:10 +00:00
scribu ef025261e7 Allow tag cloud using multiple taxonomies. Props sorich87. Fixes #15313
git-svn-id: https://develop.svn.wordpress.org/trunk@16180 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-04 10:45:14 +00:00
Peter Westwood 75dc7c8c37 Don't mangle the primary_blog option when trying to fix it. Don't set people to be a subscriber on a blog they already have a role for. See #15316
git-svn-id: https://develop.svn.wordpress.org/trunk@16179 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-04 09:31:58 +00:00
Peter Westwood 3c5457259b When adding a user to the blog pass in the current blog id. See #15316.
git-svn-id: https://develop.svn.wordpress.org/trunk@16178 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-04 09:06:45 +00:00
Mark Jaquith ef54c47f7a add_theme_support( 'post-formats', array( 'aside', 'image', 'etc' ) ); Add UI for choosing a post format, and save the choice. see #14746
git-svn-id: https://develop.svn.wordpress.org/trunk@16174 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-04 07:41:07 +00:00
Andrew Nacin 8b0f87ebfd Blue tweaks. props saracannon, see #15207.
git-svn-id: https://develop.svn.wordpress.org/trunk@16173 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-04 01:59:58 +00:00
Ryan Boren 85e4a4a434 Allow trailing wildcard user searches by appending *. see #15170
git-svn-id: https://develop.svn.wordpress.org/trunk@16170 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-03 19:31:11 +00:00
Ryan Boren 42d5904377 Anchor user search queries to the front. Limit columns searched based on what the search string looks like. see #15170
git-svn-id: https://develop.svn.wordpress.org/trunk@16168 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-03 19:02:42 +00:00
Ryan Boren c055a78ae1 jQuery UI 1.8.6. Props demetris. fixes #15303
git-svn-id: https://develop.svn.wordpress.org/trunk@16165 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-03 16:22:24 +00:00
Ryan Boren 1261493fa1 Lose super admin bar css. No longer used. see #14772
git-svn-id: https://develop.svn.wordpress.org/trunk@16162 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-03 14:22:54 +00:00
Ryan Boren 0ffd5e3012 Show latest x users with no paging if on a large network. see #15170
git-svn-id: https://develop.svn.wordpress.org/trunk@16160 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-03 13:34:04 +00:00
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