Commit Graph

5652 Commits

Author SHA1 Message Date
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
Mark Jaquith d260446047 IIS REQUEST_URI-setting fixes from snakefoot. fixes #5160 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@6208 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-09 17:38:25 +00:00
Mark Jaquith b307377ea1 use type="text/javascript", not lang="javascript". Props dsiemon. fixes #5168
git-svn-id: https://develop.svn.wordpress.org/trunk@6207 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-09 04:13:36 +00:00
Ryan Boren 50ecbab7df Add some cache clearing to cat to tag converter.
git-svn-id: https://develop.svn.wordpress.org/trunk@6206 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-08 22:39:20 +00:00
Ryan Boren 15bfa9d2fb Apply filteres when returning empty array from get_pages. Props epper. fixes #4712 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@6204 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-08 22:25:33 +00:00
Mark Jaquith 64270523e9 Check for ORIG_PATH_INFO on IIS. props brh, fixes #5160
git-svn-id: https://develop.svn.wordpress.org/trunk@6203 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-08 20:48:29 +00:00
Peter Westwood 1a0fc27afc Move the WLW manifest related files to have proper WordPress naming scheme.
git-svn-id: https://develop.svn.wordpress.org/trunk@6202 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-08 20:21:29 +00:00
Peter Westwood d36d0756e3 Define $constaint is all cases in get_attachment_icon() to fix E_NOTICE. Fixed #5159 props richcon.
git-svn-id: https://develop.svn.wordpress.org/trunk@6201 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-07 07:35:20 +00:00
Peter Westwood 6234be8d22 Add documentation of _wp_filter_build_unique_id(). Fixed #5053 props darkdragon.
git-svn-id: https://develop.svn.wordpress.org/trunk@6200 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-07 07:31:14 +00:00
Peter Westwood 8fe6767f3b Move all calls to mysql_ functions to withiWPDB so that t we don't expect any mysql stuff when we are using a custo$wpdb class. Fixes #5127
props ComputerGuru.


git-svn-id: https://develop.svn.wordpress.org/trunk@6199 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-06 08:40:54 +00:00