Commit Graph

5661 Commits

Author SHA1 Message Date
Ryan Boren 1dd06602d4 Remove debug cruft
git-svn-id: https://develop.svn.wordpress.org/trunk@6272 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-18 22:09:56 +00:00
Ryan Boren 73bc9fb9ba Catch WP_Error. Props tellyworth. fixes #5226
git-svn-id: https://develop.svn.wordpress.org/trunk@6271 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-18 15:55:15 +00:00
Ryan Boren 643d2a8cb5 Group results when selecting from post2cat and link2cat to avoid dupes. fixes #5223 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@6269 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-17 21:09:54 +00:00
Mark Jaquith a42beabd86 Stripslashes tag names to prevent double slashing in wp_insert_term(). fixes #5202
git-svn-id: https://develop.svn.wordpress.org/trunk@6267 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-17 20:41:43 +00:00
Peter Westwood c4dc37ef75 Set the Sender on emails as well as from. Fixes #5007 for trunk props mattyrob
git-svn-id: https://develop.svn.wordpress.org/trunk@6265 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-17 20:17:01 +00:00
Mark Jaquith 89417fbaf0 Explicitly exclude previews from canonicalization. fixes #5203 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@6263 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-17 20:14:38 +00:00
Peter Westwood eba9681b84 Add Atom to the RSD. Fixes #5213 props rubys.
git-svn-id: https://develop.svn.wordpress.org/trunk@6262 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-17 19:50:56 +00:00
Peter Westwood 81cf36f253 Fix atom version number in the classic theme. Relates #5213 props rubys
git-svn-id: https://develop.svn.wordpress.org/trunk@6261 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-17 19:37:21 +00:00
Ryan Boren 427ba98610 Remove refs to old, dead caches.
git-svn-id: https://develop.svn.wordpress.org/trunk@6260 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-17 17:37:21 +00:00
Ryan Boren 79d46bfaa9 activate_plugin(), deactivate_plugins(), and deactivate_all_plugins() from Quandary. fixes #5210
git-svn-id: https://develop.svn.wordpress.org/trunk@6259 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-17 17:14:58 +00:00
Ryan Boren 37f91c8bb1 Prevent direct load of edit-post-rows.
git-svn-id: https://develop.svn.wordpress.org/trunk@6257 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-17 16:51:31 +00:00
Ryan Boren f283e26138 Add current_user_can() checks to link.php. Props DD32. fixes #4627
git-svn-id: https://develop.svn.wordpress.org/trunk@6255 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-16 16:09:01 +00:00
Ryan Boren 9c014dca4e More taxonomy phpdoc from darkdragon. see #4742
git-svn-id: https://develop.svn.wordpress.org/trunk@6254 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-15 22:49:31 +00:00
Ryan Boren 9c62c77bd7 Move all page and post caches to 'posts' cache group.
git-svn-id: https://develop.svn.wordpress.org/trunk@6252 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-15 20:11:30 +00:00
Peter Westwood 0596a0e504 Fix typo in call to $wpdb->update. Fixes #5206 props zamoose
git-svn-id: https://develop.svn.wordpress.org/trunk@6251 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-15 20:07:29 +00:00
Ryan Boren a5d56b0264 Kill unused var.
git-svn-id: https://develop.svn.wordpress.org/trunk@6250 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-14 09:38:12 +00:00
Ryan Boren c77a783d55 Just cache the is_blog_installed value. If the options table goes away while the value is still cached, oh well. Very edge-case.
git-svn-id: https://develop.svn.wordpress.org/trunk@6249 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-14 07:57:56 +00:00
Ryan Boren c061823bb4 Add some clean cache hooks
git-svn-id: https://develop.svn.wordpress.org/trunk@6248 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-14 04:55:33 +00:00
Ryan Boren dd54d8ffe6 Allow single post ID and comma delimited list of post IDs to be passed to update_postmeta_cache(). Fix default cache to allow storage of empty array. see #5194
git-svn-id: https://develop.svn.wordpress.org/trunk@6247 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-14 01:08:07 +00:00
Ryan Boren 2fe73132c6 If checking for term within taxonomy, just do the taxonomy specific query. Saves one query.
git-svn-id: https://develop.svn.wordpress.org/trunk@6246 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-13 19:04:39 +00:00
Ryan Boren cf584c357f Eliminate extra query.
git-svn-id: https://develop.svn.wordpress.org/trunk@6245 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-13 18:53:28 +00:00
Ryan Boren 27bc4a130f Set global is_blog_installed flag so we don't query the DB more than once per load.
git-svn-id: https://develop.svn.wordpress.org/trunk@6244 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-13 18:39:28 +00:00
Ryan Boren 44c5526505 Eliminate object_term_cache array. see #5182
git-svn-id: https://develop.svn.wordpress.org/trunk@6243 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-13 18:23:59 +00:00
Mark Jaquith 23666ca104 Some foreach array casting
git-svn-id: https://develop.svn.wordpress.org/trunk@6242 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-13 05:33:39 +00:00
Mark Jaquith 00a44f580a prepare(), insert(), update() for wp-includes/ taxonomy.php, rss.php, registration.php
git-svn-id: https://develop.svn.wordpress.org/trunk@6241 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-13 03:51:11 +00:00
Mark Jaquith 13758c870e Forget about 4th update() param -- only accept named array. Roll out more insert()/update() and various cleanups.
git-svn-id: https://develop.svn.wordpress.org/trunk@6240 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-13 02:36:38 +00:00
Mark Jaquith 05f7b9d773 Allow wpdb->update() to optionally take a named array of where column/value pairs (which will be ANDed)
git-svn-id: https://develop.svn.wordpress.org/trunk@6239 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-13 01:44:25 +00:00
Mark Jaquith 48c555d637 Remove redundant "db_" from db_insert() and db_update() methods. Now just insert() and update(). see #5178
git-svn-id: https://develop.svn.wordpress.org/trunk@6238 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-13 00:54:26 +00:00
Mark Jaquith ac2a4ed5dc More use of db_insert()/db_update(). see #5178
git-svn-id: https://develop.svn.wordpress.org/trunk@6237 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-13 00:48:52 +00:00
Mark Jaquith 1140390e17 Oops, within the class here.
git-svn-id: https://develop.svn.wordpress.org/trunk@6236 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-13 00:45:34 +00:00
Ryan Boren 94c4c00308 Use filename if no title. Props tellyworth. fixes #5080 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@6235 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-12 22:15:54 +00:00
Ryan Boren a6076f7083 Fix category assigment during link import. fixes #5107 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@6233 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-12 21:47:34 +00:00
Ryan Boren 8b8777ffba Fix category assigment during link import. fixes #5107 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@6230 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-12 21:23:39 +00:00
Ryan Boren 770c20562c Eliminate , , and . see #5182
git-svn-id: https://develop.svn.wordpress.org/trunk@6229 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-12 21:12:34 +00:00
Peter Westwood 789b65933e Add is_page_template() function to allow theme developers to detect that they are is a page template. Fixes #3335
git-svn-id: https://develop.svn.wordpress.org/trunk@6228 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-12 20:01:16 +00:00
Peter Westwood c0e3dc42d7 Translation fix for wp_tag_cloud(). Fixes #5131 props webrocker
git-svn-id: https://develop.svn.wordpress.org/trunk@6227 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-12 19:49:25 +00:00
Ryan Boren f5c0b18865 Lose Convert All Categories button. It is confusing people. Props foolswisdom. fixes #5058
git-svn-id: https://develop.svn.wordpress.org/trunk@6225 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-11 17:50:56 +00:00
Ryan Boren b6905da933 Use inner joins instead of left joins for taxonomy. Inner is faster. fixes #5179
git-svn-id: https://develop.svn.wordpress.org/trunk@6224 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-11 17:43:49 +00:00
Mark Jaquith f1f150fd50 Code cleanup and standardization for functions.php
git-svn-id: https://develop.svn.wordpress.org/trunk@6223 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-11 05:46:57 +00:00
Mark Jaquith 3cf979dd42 Introducing absint() for casting to an absolute integer. see #4762
git-svn-id: https://develop.svn.wordpress.org/trunk@6222 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-10 22:11:18 +00:00
Mark Jaquith 67cb7b99ef Introducing db_insert() and db_update(), with immediate usage in wp_insert_post(). fixes #5178
git-svn-id: https://develop.svn.wordpress.org/trunk@6221 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-10 22:01:40 +00:00
Mark Jaquith 000bbba87b check for a match against a lowercase host in wp_safe_redirect(). props BoltClock. fixes #5114 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@6219 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-10 19:25:23 +00:00
Ryan Boren 3df52cab4b Output localized strings before outputting js. Props mdawaffe. fixes #5177 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@6218 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-10 18:51:12 +00:00
Mark Jaquith 93014f5c00 Strip From/Reply-To from e-mail before sanitizing in wp-mail.php. Props Bobcat. fixes #5169
git-svn-id: https://develop.svn.wordpress.org/trunk@6217 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-10 16:46:20 +00:00
Mark Jaquith b467f930fd Revert partial prepare() implementation. Needs to be all or nothing. Props xknown. fixes #5145
git-svn-id: https://develop.svn.wordpress.org/trunk@6216 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-09 23:16:35 +00:00
Ryan Boren 5b7fffb348 Propset eol-style on new files
git-svn-id: https://develop.svn.wordpress.org/trunk@6215 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-09 23:13:24 +00:00
Ryan Boren 63299130a8 jquery for list manipulation. Round one, fight. Props mdawaffe. fixes #4805
git-svn-id: https://develop.svn.wordpress.org/trunk@6214 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-09 22:51:25 +00:00
Ryan Boren 490789554f jquery for list manipulation. Round one, fight. Props mdawaffe. fixes #4805
git-svn-id: https://develop.svn.wordpress.org/trunk@6213 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-09 22:49:42 +00:00
Mark Jaquith 1e41dc0c9e Properly sanitize e-mail addresses in wp-mail.php. Props giannis1. fixes #5169 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@6212 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-09 22:15:37 +00:00
Ryan Boren 0fb24b1a07 Force prototype to load before jquery. Props mdawaffe. fixes #5067 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@6209 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-09 21:04:26 +00:00