Commit Graph

156 Commits

Author SHA1 Message Date
Matt Mullenweg 5dfab7711f If you don't have anything nice to say, don't say anything at all. (And certainly don't return the results of a previous query to an empty query.)
git-svn-id: https://develop.svn.wordpress.org/trunk@5858 602fd350-edb4-49c9-b593-d223f7449a82
2007-08-10 01:33:56 +00:00
Mark Jaquith bd75df9d1e Undo pre-doublequoting in prepare(). Props JeremyVisser. see #4553
git-svn-id: https://develop.svn.wordpress.org/trunk@5791 602fd350-edb4-49c9-b593-d223f7449a82
2007-07-09 17:55:32 +00:00
Mark Jaquith 0ccba3e8bb Automatically quote strings in $wpdb->prepare(). Use vsprintf(). see #4553
git-svn-id: https://develop.svn.wordpress.org/trunk@5779 602fd350-edb4-49c9-b593-d223f7449a82
2007-07-05 17:32:46 +00:00
Mark Jaquith b0b9c7946b Introducing "prepare", a WPDB method for sprintf()-prepared SQL statements. see #4553. Implementation details to follow.
git-svn-id: https://develop.svn.wordpress.org/trunk@5778 602fd350-edb4-49c9-b593-d223f7449a82
2007-07-04 16:18:57 +00:00
Ryan Boren b046d67f41 Trim empty lines. Nothing but newline.
git-svn-id: https://develop.svn.wordpress.org/trunk@5700 602fd350-edb4-49c9-b593-d223f7449a82
2007-06-14 02:25:30 +00:00
Ryan Boren 523a3724bb Very rough initial commit of taxonomy for everyone's hacking pleasure. There be dragons. see #4189
git-svn-id: https://develop.svn.wordpress.org/trunk@5510 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-22 05:12:38 +00:00
rob1n 0aa8cebe86 Don't make useless status_header() call. fixes #4249
git-svn-id: https://develop.svn.wordpress.org/trunk@5458 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-12 19:30:38 +00:00
rob1n 6508eb9d47 Don't call the function if it doesn't exist yet. fixes #4249
git-svn-id: https://develop.svn.wordpress.org/trunk@5455 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-12 16:24:17 +00:00
rob1n 3deb0fe500 New status_header code, and WP-DB bail() errors send a 503 Service Unavailable. see #2409
Also, the new header code to text array has 302 as Found. fixes #4183


git-svn-id: https://develop.svn.wordpress.org/trunk@5446 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-11 03:34:50 +00:00
Ryan Boren f01644b6c6 Pass link indentifier to mymysql_affected_rows(). Props Doug Kaye.
git-svn-id: https://develop.svn.wordpress.org/trunk@5195 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-06 17:22:53 +00:00
Mark Jaquith 56368548ad Use strpos instead of strstr where ever possible, for speed. Props rob1n. fixes #3920
git-svn-id: https://develop.svn.wordpress.org/trunk@4990 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-07 05:29:15 +00:00
Mark Jaquith 5acfcd9fea trailing tabs and whitespace cleanup.
git-svn-id: https://develop.svn.wordpress.org/trunk@4953 602fd350-edb4-49c9-b593-d223f7449a82
2007-02-27 15:24:54 +00:00
Ryan Boren ab76209618 First cut at mysql utf-8 charset suport. Props to sehh, drupal, and textpattern. fixes #3517
git-svn-id: https://develop.svn.wordpress.org/trunk@4860 602fd350-edb4-49c9-b593-d223f7449a82
2007-02-02 00:04:35 +00:00
Ryan Boren 53b8aa18e4 Revert accidental commit.
git-svn-id: https://develop.svn.wordpress.org/trunk@4832 602fd350-edb4-49c9-b593-d223f7449a82
2007-01-30 01:46:05 +00:00
Ryan Boren b0f28a6dff Remove notoptions caching. Multile rewrite_rules options were being created. See #3692 #2268
git-svn-id: https://develop.svn.wordpress.org/trunk@4831 602fd350-edb4-49c9-b593-d223f7449a82
2007-01-30 01:43:39 +00:00
Ryan Boren 2a139cd3ca Pass resource to mysql_error. Props jgough. fixes #3544
git-svn-id: https://develop.svn.wordpress.org/trunk@4741 602fd350-edb4-49c9-b593-d223f7449a82
2007-01-16 02:32:42 +00:00
Ryan Boren 0f2b6b07b9 Cleanup link upgrade code. Drop linkcategories table.
git-svn-id: https://develop.svn.wordpress.org/trunk@4738 602fd350-edb4-49c9-b593-d223f7449a82
2007-01-16 01:54:50 +00:00
Ryan Boren a4ff55c30a Fiddle with object destruction and shutdown. Curses upon php 5.2. fixes #3354
git-svn-id: https://develop.svn.wordpress.org/trunk@4686 602fd350-edb4-49c9-b593-d223f7449a82
2007-01-06 23:36:51 +00:00
Mark Jaquith c0b9ade921 Add überpowerful "query" filter, for SQL queries. fixes #2721
git-svn-id: https://develop.svn.wordpress.org/trunk@4619 602fd350-edb4-49c9-b593-d223f7449a82
2006-12-07 00:02:03 +00:00
Ryan Boren e4faef3550 Inline docs for wpdb. Props masquerade and davidhouse. #2474
git-svn-id: https://develop.svn.wordpress.org/trunk@4549 602fd350-edb4-49c9-b593-d223f7449a82
2006-11-30 01:44:33 +00:00
Ryan Boren 54a03e22ab Fix logo link and use install.css in wpdb bail. Props Sewar. fixes #3209
git-svn-id: https://develop.svn.wordpress.org/trunk@4502 602fd350-edb4-49c9-b593-d223f7449a82
2006-11-20 04:07:34 +00:00
Ryan Boren e44ea1ff93 Remove trailing spaces and convert spaces to tabs. Props Nazgul. fixes #986
git-svn-id: https://develop.svn.wordpress.org/trunk@4495 602fd350-edb4-49c9-b593-d223f7449a82
2006-11-19 07:56:05 +00:00
Ryan Boren c227947744 Check if array index is set. Props Alex King. fixes #3156
git-svn-id: https://develop.svn.wordpress.org/trunk@4208 602fd350-edb4-49c9-b593-d223f7449a82
2006-09-22 14:40:40 +00:00
Ryan Boren 3e42d396bd Validation fix from Viper007Bond. fixes #3140
git-svn-id: https://develop.svn.wordpress.org/trunk@4193 602fd350-edb4-49c9-b593-d223f7449a82
2006-09-18 23:33:25 +00:00
Ryan Boren 44a1fe982d Instantiate wpdb only if not already set. #2721
git-svn-id: https://develop.svn.wordpress.org/trunk@4153 602fd350-edb4-49c9-b593-d223f7449a82
2006-09-01 18:44:13 +00:00
Ryan Boren 4213e51be1 Init last_result to an empty array. fixes #2913
git-svn-id: https://develop.svn.wordpress.org/trunk@4092 602fd350-edb4-49c9-b593-d223f7449a82
2006-08-11 22:23:03 +00:00
Ryan Boren da4045e886 No magic vals
git-svn-id: https://develop.svn.wordpress.org/trunk@4067 602fd350-edb4-49c9-b593-d223f7449a82
2006-07-29 01:45:17 +00:00
Ryan Boren 63089f57b4 htmlspecial
git-svn-id: https://develop.svn.wordpress.org/trunk@4065 602fd350-edb4-49c9-b593-d223f7449a82
2006-07-29 01:40:47 +00:00
Ryan Boren b15ddd4e0d specialchars DB error.
git-svn-id: https://develop.svn.wordpress.org/trunk@4061 602fd350-edb4-49c9-b593-d223f7449a82
2006-07-28 22:58:38 +00:00
Ryan Boren 1757f40e8e Remove unneeded php tags.
git-svn-id: https://develop.svn.wordpress.org/trunk@4019 602fd350-edb4-49c9-b593-d223f7449a82
2006-07-17 17:08:00 +00:00
Ryan Boren 3a8383fd2d bail() cannot use wp_die(). wp_die() isn't loaded when bail() runs. fixes #2941
git-svn-id: https://develop.svn.wordpress.org/trunk@4018 602fd350-edb4-49c9-b593-d223f7449a82
2006-07-16 15:41:36 +00:00
Ryan Boren 4591c517ce wp_die() improvements from Sewar. fixes #2902
git-svn-id: https://develop.svn.wordpress.org/trunk@4006 602fd350-edb4-49c9-b593-d223f7449a82
2006-07-10 05:29:10 +00:00
Ryan Boren 6008a133c4 Death to trailing tabs. Props Mark J. fixes #2405
git-svn-id: https://develop.svn.wordpress.org/trunk@3517 602fd350-edb4-49c9-b593-d223f7449a82
2006-02-12 07:53:23 +00:00
Matt Mullenweg 7af1145a9d It falls back to funky escaping that causes problems and is not reversible, so temporarily disabling.
git-svn-id: https://develop.svn.wordpress.org/trunk@2737 602fd350-edb4-49c9-b593-d223f7449a82
2005-07-26 20:11:41 +00:00
Ryan Boren 11c44b277c Typo.
git-svn-id: https://develop.svn.wordpress.org/trunk@2696 602fd350-edb4-49c9-b593-d223f7449a82
2005-07-04 06:27:04 +00:00
Matt Mullenweg 8ed932864f Better escaping from class, fixes #1394
git-svn-id: https://develop.svn.wordpress.org/trunk@2684 602fd350-edb4-49c9-b593-d223f7449a82
2005-07-02 23:31:43 +00:00
Matt Mullenweg 0fcdf99bae http://mosquito.wordpress.org/view.php?id=1353 - Hat tip MC_incubus
git-svn-id: https://develop.svn.wordpress.org/trunk@2598 602fd350-edb4-49c9-b593-d223f7449a82
2005-05-13 20:31:59 +00:00
Matt Mullenweg 399e9acf58 Be sure about encoding. Fixes http://mosquito.wordpress.org/view.php?id=1222
git-svn-id: https://develop.svn.wordpress.org/trunk@2548 602fd350-edb4-49c9-b593-d223f7449a82
2005-04-19 03:35:48 +00:00
Matt Mullenweg 2d24171b3a Better message.
git-svn-id: https://develop.svn.wordpress.org/trunk@2547 602fd350-edb4-49c9-b593-d223f7449a82
2005-04-19 03:25:14 +00:00
Matt Mullenweg fb26f2cb34 Don't cache pages with DB errors.
git-svn-id: https://develop.svn.wordpress.org/trunk@1865 602fd350-edb4-49c9-b593-d223f7449a82
2004-11-19 02:18:23 +00:00
Matt Mullenweg 46c39cd718 Escape from slashville
git-svn-id: https://develop.svn.wordpress.org/trunk@1545 602fd350-edb4-49c9-b593-d223f7449a82
2004-08-21 01:50:59 +00:00
Matt Mullenweg f5b015ecd3 Typo.
git-svn-id: https://develop.svn.wordpress.org/trunk@1544 602fd350-edb4-49c9-b593-d223f7449a82
2004-08-20 17:56:51 +00:00
Matt Mullenweg 13b77cd51b Some profiling info in $wpdb optionally.
git-svn-id: https://develop.svn.wordpress.org/trunk@1543 602fd350-edb4-49c9-b593-d223f7449a82
2004-08-20 17:52:49 +00:00
Matt Mullenweg 80bf1b51a4 Improved error messages.
git-svn-id: https://develop.svn.wordpress.org/trunk@1475 602fd350-edb4-49c9-b593-d223f7449a82
2004-07-23 01:35:56 +00:00
Matt Mullenweg 717855f007 Giant commit, sorry mailing list people. Move all table names to new $wpdb versions. Works but the whole app needs thorough testing now.
git-svn-id: https://develop.svn.wordpress.org/trunk@1355 602fd350-edb4-49c9-b593-d223f7449a82
2004-05-24 08:22:18 +00:00
Matt Mullenweg 02c3255824 No trace is being used.
git-svn-id: https://develop.svn.wordpress.org/trunk@1218 602fd350-edb4-49c9-b593-d223f7449a82
2004-05-01 00:44:11 +00:00
Matt Mullenweg d1b1856016 Updated to use the latest and greatest.
git-svn-id: https://develop.svn.wordpress.org/trunk@1180 602fd350-edb4-49c9-b593-d223f7449a82
2004-04-26 02:54:06 +00:00
Matt Mullenweg 5ab439325f Just an indenting thing that was bugging me.
git-svn-id: https://develop.svn.wordpress.org/trunk@1178 602fd350-edb4-49c9-b593-d223f7449a82
2004-04-26 02:28:06 +00:00
Matt Mullenweg 9a84126d9f Typo fixes from Cena.
git-svn-id: https://develop.svn.wordpress.org/trunk@964 602fd350-edb4-49c9-b593-d223f7449a82
2004-03-08 08:49:21 +00:00
Matt Mullenweg 22ed64e4ec Removed global $siteurl and $blogfilename, use get_settings. Syntax fix for wp-db.
git-svn-id: https://develop.svn.wordpress.org/trunk@945 602fd350-edb4-49c9-b593-d223f7449a82
2004-02-26 16:15:48 +00:00
Matt Mullenweg 203184b1f1 Fix for PHP5, formatting changes.
git-svn-id: https://develop.svn.wordpress.org/trunk@940 602fd350-edb4-49c9-b593-d223f7449a82
2004-02-26 15:18:16 +00:00
Matt Mullenweg 4209bebb6c Duplicate comment number queries.
git-svn-id: https://develop.svn.wordpress.org/trunk@681 602fd350-edb4-49c9-b593-d223f7449a82
2004-01-02 00:45:12 +00:00
Alex King 192fc9544f suppressing Notice messages and moving the use_cache setting higher in blog-header so that it actually gets used when getting settings
git-svn-id: https://develop.svn.wordpress.org/trunk@677 602fd350-edb4-49c9-b593-d223f7449a82
2004-01-01 21:12:22 +00:00
Matt Mullenweg 73c4bcdc7a Better error reporting.
git-svn-id: https://develop.svn.wordpress.org/trunk@635 602fd350-edb4-49c9-b593-d223f7449a82
2003-12-22 01:50:20 +00:00
Matt Mullenweg 0ddb4c1552 Now more sanely deals with bad connection data and offers useful suggestions, doesn't go on when it can't connect to the DB.
git-svn-id: https://develop.svn.wordpress.org/trunk@625 602fd350-edb4-49c9-b593-d223f7449a82
2003-12-18 09:18:57 +00:00
Matt Mullenweg 9c6a0a9403 The great renaming.
git-svn-id: https://develop.svn.wordpress.org/trunk@601 602fd350-edb4-49c9-b593-d223f7449a82
2003-12-11 00:22:36 +00:00