Commit Graph

15822 Commits

Author SHA1 Message Date
Ryan Boren 81a1787248 Return empty strings instead of WP_Errro from get_category_link(), get_term_link(), and get_tag_link() when passed an invalid term. Clarify phpdoc. Props nacin. fixes #16521 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17437 602fd350-edb4-49c9-b593-d223f7449a82
2011-02-10 20:17:54 +00:00
Ryan Boren 451d7d8ffb Pink the whites.
git-svn-id: https://develop.svn.wordpress.org/trunk@17435 602fd350-edb4-49c9-b593-d223f7449a82
2011-02-09 17:35:36 +00:00
Andrew Nacin 683912a877 Cleanup crew.
git-svn-id: https://develop.svn.wordpress.org/trunk@17434 602fd350-edb4-49c9-b593-d223f7449a82
2011-02-09 17:35:24 +00:00
Ryan Boren 7c37c82691 Add additional promote_users checks. Show Add existing button only for multisite. Don't show bulk actions if user can't promote users. Show add new user menu if user has create_users but not promote_users. Props nacin. fixes #16501 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17431 602fd350-edb4-49c9-b593-d223f7449a82
2011-02-09 17:30:26 +00:00
Ryan Boren 4d95849968 Don't query the post format for post types that don't support formats. Props nacin. fixes #16503 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17429 602fd350-edb4-49c9-b593-d223f7449a82
2011-02-09 17:13:28 +00:00
Ryan Boren 40ef969983 Return early if list is not an array. Props nacin. fixes #16499 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17427 602fd350-edb4-49c9-b593-d223f7449a82
2011-02-09 17:06:22 +00:00
Andrew Nacin bc17de6453 Akismet 2.5.3 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@17425 602fd350-edb4-49c9-b593-d223f7449a82
2011-02-09 10:03:30 +00:00
Andrew Nacin 15ea5342e5 Use wp_kses_post instead of wp_kses_data for a better balance between security and flexibility. fixes #16489 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@17422 602fd350-edb4-49c9-b593-d223f7449a82
2011-02-08 20:17:09 +00:00
Ryan Boren 2adf4a0f7f RC4
git-svn-id: https://develop.svn.wordpress.org/trunk@17417 602fd350-edb4-49c9-b593-d223f7449a82
2011-02-07 23:01:06 +00:00
Mark Jaquith a701db272d Skip authors that no longer exist when doing an export. props nacin. fixes #16479
git-svn-id: https://develop.svn.wordpress.org/trunk@17415 602fd350-edb4-49c9-b593-d223f7449a82
2011-02-07 19:58:41 +00:00
Ryan Boren e3c732da0c Bump
git-svn-id: https://develop.svn.wordpress.org/trunk@17413 602fd350-edb4-49c9-b593-d223f7449a82
2011-02-07 19:19:41 +00:00
Mark Jaquith fd3c1fd8e3 A little escaping paranoia, just to be safe. (Already sanitized, higher up). for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17410 602fd350-edb4-49c9-b593-d223f7449a82
2011-02-07 19:11:17 +00:00
Ryan Boren f98f93f137 Bump
git-svn-id: https://develop.svn.wordpress.org/trunk@17409 602fd350-edb4-49c9-b593-d223f7449a82
2011-02-06 19:20:00 +00:00
Ryan Boren 579eb2ab28 Run sanitize_key() on post_status, comment_status, and ping_status on the way into the DB. Props duck_. For trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17404 602fd350-edb4-49c9-b593-d223f7449a82
2011-02-06 18:37:20 +00:00
Mark Jaquith 118fb7f8ed Do not use PHP5-only array_combine. props duck_. see #16459 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17402 602fd350-edb4-49c9-b593-d223f7449a82
2011-02-05 18:46:07 +00:00
Ryan Boren 777b15311d Preserve tag escaping. Props koopersmith, Nils Jueneman. For trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17398 602fd350-edb4-49c9-b593-d223f7449a82
2011-02-05 18:31:05 +00:00
Ryan Boren 9aa164cfc8 Properly encode the post title. Props koopersmith, nacin. For trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17395 602fd350-edb4-49c9-b593-d223f7449a82
2011-02-05 18:26:46 +00:00
Mark Jaquith acfa8f4e60 No translation for post format slugs. Too fragile for the future. fixes #16459 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17391 602fd350-edb4-49c9-b593-d223f7449a82
2011-02-05 18:24:01 +00:00
Ryan Boren e83b5ac2ea Add cap and type checks to media item fetch. For trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17390 602fd350-edb4-49c9-b593-d223f7449a82
2011-02-05 18:22:53 +00:00
Mark Jaquith 04ab78140f Improvement to check_admin_referer() when called without first argument (PLUGIN AUTHORS: STOP DOING THAT). props indie-ulf. fixes #16449 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17385 602fd350-edb4-49c9-b593-d223f7449a82
2011-02-03 20:42:00 +00:00
Ryan Boren b625dbb1bb Remove debug cruft. Props markmcwilliams. fixes #15530
git-svn-id: https://develop.svn.wordpress.org/trunk@17383 602fd350-edb4-49c9-b593-d223f7449a82
2011-02-03 20:00:21 +00:00
Mark Jaquith 0c02c273cb Remove unused/non-functional code with old-style CSRF checking. see #16499
git-svn-id: https://develop.svn.wordpress.org/trunk@17381 602fd350-edb4-49c9-b593-d223f7449a82
2011-02-03 07:23:05 +00:00
Mark Jaquith 5b5b5e7747 restore_current_blog() in add_user_to_blog() and remove_user_from_blog() before early return, to avoid being stuck in a switched state. props mdawaffe. fixes #16444 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@17379 602fd350-edb4-49c9-b593-d223f7449a82
2011-02-03 00:17:30 +00:00
Mark Jaquith 17c837ee67 Remove admin bar CSS cruft that darkened the bar in RTL languages. props ocean90. fixes #16427 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17377 602fd350-edb4-49c9-b593-d223f7449a82
2011-02-01 01:42:09 +00:00
Andrew Nacin 0e87bd1f4d D'oh.
git-svn-id: https://develop.svn.wordpress.org/trunk@17375 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-31 17:28:27 +00:00
Andrew Nacin a8c4559c38 Keep trunk and branches/3.1 in sync for now, for the beta tester plugin. Bump.
git-svn-id: https://develop.svn.wordpress.org/trunk@17374 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-31 17:27:29 +00:00
Andrew Nacin 861b32c855 Add context to 'Format' string. props scribu, SergeyBiryukov, fixes #16423 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@17372 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-31 12:18:57 +00:00
Mark Jaquith ad5baf38be Please switch to branches/3.1! See: http://wp.me/pbNCB-lf for background.
git-svn-id: https://develop.svn.wordpress.org/trunk@17371 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-30 21:23:55 +00:00
Andrew Nacin cea40dfbeb Use array_intersec_assoc. props duck_, fixes #16378.
git-svn-id: https://develop.svn.wordpress.org/trunk@17369 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-27 19:37:38 +00:00
Ryan Boren 0d8d463048 Admin bar CSS fix; removes unnecessary scrollbars. Props WraithKenny. fixes #15507
git-svn-id: https://develop.svn.wordpress.org/trunk@17368 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-27 15:18:22 +00:00
Ryan Boren 900cee7dc9 Use get_dashboard_url() to redirect to the active blog if the user doesn't have access to the current blog. fixes #16297
git-svn-id: https://develop.svn.wordpress.org/trunk@17367 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-26 16:35:04 +00:00
Peter Westwood c4d608db4f Don't redirect continually on empty search results pages. Fixes #16357 props garyc40
git-svn-id: https://develop.svn.wordpress.org/trunk@17366 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-26 09:56:17 +00:00
Ryan Boren 10cd8cb856 Bump
git-svn-id: https://develop.svn.wordpress.org/trunk@17365 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-25 20:04:24 +00:00
Ryan Boren 7a4c821757 Fix theme filtering when no JS. Props dd32. fixes #14936
git-svn-id: https://develop.svn.wordpress.org/trunk@17364 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-25 20:00:42 +00:00
Ryan Boren 363faf4eba Add name to reassign user dropdown. Props nacin. fixes #16361
git-svn-id: https://develop.svn.wordpress.org/trunk@17363 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-25 19:36:50 +00:00
Ryan Boren b84defcda1 Fix redirects for trashed post bulk ops. Props nacin, SergeyBiryukov. fixes #16355
git-svn-id: https://develop.svn.wordpress.org/trunk@17362 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-25 19:30:24 +00:00
Ryan Boren e131cde02f Pagination fixes. Props garyc40. fixes #16357
git-svn-id: https://develop.svn.wordpress.org/trunk@17361 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-25 19:20:20 +00:00
Ryan Boren fd7c566154 Don't pass deprecated arg to update_blog_status(). Props PeteMall. fixes #15605
git-svn-id: https://develop.svn.wordpress.org/trunk@17360 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-25 17:39:10 +00:00
Peter Westwood 87da8df4f1 Fix the bulk actions on Network > Sites and Network > Users. Fixes #16364
git-svn-id: https://develop.svn.wordpress.org/trunk@17359 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-25 14:34:41 +00:00
Mark Jaquith e51e83d0c9 Get is_post_type_archive( 'my-post-type' ) working properly outside of the loop. props bit4. fixes #16347
git-svn-id: https://develop.svn.wordpress.org/trunk@17358 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-24 21:15:50 +00:00
Mark Jaquith daecb5d36d Revert [16832]. see #9591. fixes #16282
git-svn-id: https://develop.svn.wordpress.org/trunk@17357 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-24 06:26:38 +00:00
Mark Jaquith e0f37101f7 Make sure we don't double-add -user or -network suffixes in convert_to_screen(). props SergeyBiryukov. fixes #16348
git-svn-id: https://develop.svn.wordpress.org/trunk@17356 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-24 04:16:55 +00:00
Andrew Nacin b5de468b5b RC3.
git-svn-id: https://develop.svn.wordpress.org/trunk@17355 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-22 18:50:23 +00:00
Ryan Boren bdd25aad05 Update counts and pagination when trashing and moderating comments. Props garyc40, koopersmith, mdawaffe, nacin. fixes #15530
git-svn-id: https://develop.svn.wordpress.org/trunk@17354 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-22 18:47:42 +00:00
Andrew Nacin 3b7734f41a Add orderby and order hidden fields to each list form, to allow for state. props SergeyBiryukov, fixes #16341.
git-svn-id: https://develop.svn.wordpress.org/trunk@17353 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-22 18:36:54 +00:00
Andrew Nacin 3949bb8c60 doaction buttons don't need a name, only an ID. fixes #16345.
git-svn-id: https://develop.svn.wordpress.org/trunk@17352 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-22 18:31:35 +00:00
Ryan Boren e6ef3c9d5a Don't try to redirect to user admin for unpriv users unless a site admin redirect was requested. fixes #16297
git-svn-id: https://develop.svn.wordpress.org/trunk@17351 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-22 18:29:43 +00:00
Andrew Nacin d59f1e165e Global comment_type in WP_Comments_List_Table::prepare_items(). props jorbin, fixes #16344.
git-svn-id: https://develop.svn.wordpress.org/trunk@17350 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-22 18:27:04 +00:00
Andrew Nacin a399fa0529 Use only an ID, no name, on the 'Filter' buttons on list screens. see #16345.
git-svn-id: https://develop.svn.wordpress.org/trunk@17349 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-22 18:25:32 +00:00
Ryan Boren 9ab413e3fc Admin bar RTL fixes. Props ocean90. fixes #16340
git-svn-id: https://develop.svn.wordpress.org/trunk@17348 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-22 13:40:58 +00:00