Jon Cave
|
82c0f09c09
|
Fix typos in documentation (wp-includes/[i-z]). See #18560.
git-svn-id: https://develop.svn.wordpress.org/trunk@18639 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-09-05 19:08:15 +00:00 |
|
Dion Hulse
|
8fc9270239
|
Clarify %d is an integer in wpdb documentation. See #18407
git-svn-id: https://develop.svn.wordpress.org/trunk@18573 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-08-19 15:01:35 +00:00 |
|
Ryan Boren
|
cdd05b3c9f
|
Sanitize sort_column and sort_order in get_pages(). Escape search_term in WP_User_Search. Cast blog_id to int in get_blog_prefix(). Props duck_
git-svn-id: https://develop.svn.wordpress.org/trunk@18350 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-06-27 20:47:04 +00:00 |
|
Andrew Nacin
|
36f1805ec4
|
Take that, PHP 5.0.5. Good riddens. see #14160.
git-svn-id: https://develop.svn.wordpress.org/trunk@18110 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-06-01 22:03:36 +00:00 |
|
Ryan Boren
|
6cde0d88f9
|
Properly handle return value of DDL statements. Props scribu, marcis20. fixes #11372
git-svn-id: https://develop.svn.wordpress.org/trunk@18063 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-05-27 15:46:56 +00:00 |
|
Ryan Boren
|
413723f08e
|
Correct phpdoc for replacing/extending thewpdb class. Props johnbillion. fixes #17533
git-svn-id: https://develop.svn.wordpress.org/trunk@18011 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-05-23 23:37:16 +00:00 |
|
Ryan Boren
|
d470b22d59
|
Remove PHP4 constructors. Props hakre. see #16768
git-svn-id: https://develop.svn.wordpress.org/trunk@17604 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-04-05 17:25:08 +00:00 |
|
Ryan Boren
|
04aea0e128
|
Don't die inside db_connect() if connection fails. Let dead_db() handle it. fixes #16640 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17546 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-03-23 19:57:35 +00:00 |
|
Andrew Nacin
|
21c2c70e25
|
Remove dead globals. props mitchoyoshitaka. fixes #16571.
git-svn-id: https://develop.svn.wordpress.org/trunk@17538 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-03-23 18:39:16 +00:00 |
|
Ryan Boren
|
43b0ccccbc
|
Don't die for failed db connects during install. Props westi. fixes #16640 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17536 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-03-23 17:46:40 +00:00 |
|
Ryan Boren
|
75028c8b48
|
@since additions and updates. Props demetris. fixes #15867
git-svn-id: https://develop.svn.wordpress.org/trunk@17079 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-20 12:49:18 +00:00 |
|
Andrew Nacin
|
24b60aee0d
|
Don't improperly whitescreen on incorrect DB credentials during setup-config. Show error message with an opportunity to try again. fixes #15682.
git-svn-id: https://develop.svn.wordpress.org/trunk@16788 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-08 07:12:44 +00:00 |
|
Ryan Boren
|
36a4508140
|
Update since phpdoc. Props demetris. fixes #15445
git-svn-id: https://develop.svn.wordpress.org/trunk@16660 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-01 19:24:38 +00:00 |
|
Peter Westwood
|
f8f48b0f24
|
Revert [16320] and [16321] for now. Breaks things
git-svn-id: https://develop.svn.wordpress.org/trunk@16336 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-12 22:44:16 +00:00 |
|
Andrew Nacin
|
92b8c22e03
|
Only mysql_free_result if we have a valid resource, and remove error suppression there. see #15402.
git-svn-id: https://develop.svn.wordpress.org/trunk@16321 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-12 10:40:43 +00:00 |
|
Andrew Nacin
|
9404ce9a12
|
Memory usage and execution improvements in wpdb. Store and work with resources directly, rather than full copies of results. Plugins which incorrectly used wpdb->last_result (a private property) will need to shift to wpdb->get_results() with no \$query. Magic getter is introduced for back compat when using PHP5. props joelhardi, fixes #12257.
git-svn-id: https://develop.svn.wordpress.org/trunk@16320 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-12 10:15:18 +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
|
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 |
|
Peter Westwood
|
1da3c94e55
|
Display mysql_connect errors when WP_DEBUG is enabled. Fixes #14654 props lloydbudd and hakre
Always die if we can't connect to the db no point in going any futher.
git-svn-id: https://develop.svn.wordpress.org/trunk@15808 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-14 18:47:39 +00:00 |
|
Andrew Nacin
|
5963feeca6
|
Always include wp-db.php. Prevents a conditional include and allows db dropins to cleanly extend the wpdb class. Move require_wp_db() to load.php for consistency with bootloader helpers. fixes #14508.
git-svn-id: https://develop.svn.wordpress.org/trunk@15638 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-09-20 19:13:47 +00:00 |
|
Andrew Nacin
|
af29b5d5cf
|
phpdoc, @since, whitespace. Also require an argument in wp_insert_post(). props duck_, see #14783.
git-svn-id: https://develop.svn.wordpress.org/trunk@15564 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-09-05 02:45:39 +00:00 |
|
Ryan Boren
|
b03d626909
|
Remove WP_USE_MULTIPLE_DB. Introduce init_charset() and set_charset(). fixes #14672
git-svn-id: https://develop.svn.wordpress.org/trunk@15537 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-08-26 18:34:18 +00:00 |
|
Andrew Nacin
|
85394e795e
|
More curses on PHP 5.0.5. see #13757, fixes #14160. for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@15471 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-07-25 07:35:59 +00:00 |
|
Nikolay Bachiyski
|
e1e6ce1e97
|
Do not include newline character in the beginning if the database error string
git-svn-id: https://develop.svn.wordpress.org/trunk@15447 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-07-19 20:35:15 +00:00 |
|
Dion Hulse
|
7efc4efdaa
|
Alot more tabs. Props jacobsantos & Viper007bond. See #14147
git-svn-id: https://develop.svn.wordpress.org/trunk@15355 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-06-30 00:05:18 +00:00 |
|
Ryan Boren
|
dbbc8adb90
|
Make dbh parameter to select optional for plugin back compat. Don't pass by ref to preserve PHP 4 support. fixes #13914
git-svn-id: https://develop.svn.wordpress.org/trunk@15266 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-06-16 19:28:01 +00:00 |
|
Ryan Boren
|
d97fc1a61a
|
Add docs for ->insert_id. Props scribu. fixes #13439
git-svn-id: https://develop.svn.wordpress.org/trunk@14745 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-19 16:07:42 +00:00 |
|
Andrew Nacin
|
42e9ce36fc
|
Deprecate VHOST in favor of a boolean, SUBDOMAIN_INSTALL. Core will keep VHOST defined for plugins' sake, but you should only define SUBDOMAIN_INSTALL. Throws a notice if VHOST is defined, and a warning if they somehow conflict. Sunrise can still handle them. fixes #11796.
git-svn-id: https://develop.svn.wordpress.org/trunk@14452 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-04 20:48:28 +00:00 |
|
Andrew Nacin
|
b57d8d1714
|
Some wpdb cleanups.
git-svn-id: https://develop.svn.wordpress.org/trunk@14058 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-10 12:39:25 +00:00 |
|
Ron Rennick
|
3a9d10480d
|
have get_blog_prefix() default to the prefix of the current blog, see #12820
git-svn-id: https://develop.svn.wordpress.org/trunk@13949 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-02 22:47:51 +00:00 |
|
Mark Jaquith
|
8bca8131a6
|
More pedantry. "Setup" is not a verb. http://notaverb.com/setup
git-svn-id: https://develop.svn.wordpress.org/trunk@13725 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-03-17 04:39:50 +00:00 |
|
Peter Westwood
|
fe8462294a
|
Ensure that wpdb::get_results() always returns an array when it should. Fixes #10607 props miqrogroove.
git-svn-id: https://develop.svn.wordpress.org/trunk@13671 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-03-11 21:30:29 +00:00 |
|
Andrew Nacin
|
7b7554b34d
|
Fix notice. See #12362
git-svn-id: https://develop.svn.wordpress.org/trunk@13578 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-03-03 23:07:23 +00:00 |
|
Andrew Nacin
|
44051cfdb6
|
Add wpdb::replace() for replace queries. props AaronCampbell fixes #10864
git-svn-id: https://develop.svn.wordpress.org/trunk@13454 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-02-27 15:45:09 +00:00 |
|
Andrew Nacin
|
9a033bf679
|
@since version numbers and other docs for wp-db. props hakre see #12362
git-svn-id: https://develop.svn.wordpress.org/trunk@13426 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-02-26 06:14:26 +00:00 |
|
Ron Rennick
|
fcabf2c9df
|
database code cleanup, See #12362
git-svn-id: https://develop.svn.wordpress.org/trunk@13387 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-02-24 21:30:13 +00:00 |
|
Andrew Nacin
|
c9dfb91763
|
Spelling and grammar fun. Fixes #11875 props cnorris23
git-svn-id: https://develop.svn.wordpress.org/trunk@13382 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-02-24 20:13:23 +00:00 |
|
Andrew Nacin
|
686c7fa0e4
|
More wpdb cleanups, see #12362
git-svn-id: https://develop.svn.wordpress.org/trunk@13376 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-02-24 18:58:52 +00:00 |
|
Ryan Boren
|
ab58e705b9
|
Don't quote escaped strings. Props dd32. see #11608
git-svn-id: https://develop.svn.wordpress.org/trunk@13357 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-02-24 05:30:34 +00:00 |
|
Andrew Nacin
|
0c2fa545cd
|
More wpdb cleanups, docs. see #11644 props hakre
git-svn-id: https://develop.svn.wordpress.org/trunk@13343 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-02-23 22:04:29 +00:00 |
|
Andrew Nacin
|
19db2cc569
|
Fall back to $wpdb::blogid, not main blog id, in wpdb->tables(). See #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@13341 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-02-23 20:38:41 +00:00 |
|
Andrew Nacin
|
4bad9d635f
|
Ensure we have MS global tables defined during network install. See #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@13337 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-02-23 19:58:53 +00:00 |
|
Andrew Nacin
|
59701fcaec
|
Use sprintf() in hard-coded string. Use same comment and error code as other identical message. See #11644 props hakre
git-svn-id: https://develop.svn.wordpress.org/trunk@13327 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-02-23 09:44:27 +00:00 |
|
Andrew Nacin
|
c4449c4cb2
|
Change inline docs to reflect [13324]
git-svn-id: https://develop.svn.wordpress.org/trunk@13325 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-02-23 09:08:50 +00:00 |
|
Andrew Nacin
|
8282ad9bfa
|
Improvements and fixes to wpdb::tables(). See #12083 see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@13324 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-02-23 09:06:50 +00:00 |
|
Andrew Nacin
|
8ca4dceb9e
|
Docs and code convention cleanups. see #11644 props hakre
git-svn-id: https://develop.svn.wordpress.org/trunk@13314 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-02-22 22:53:54 +00:00 |
|
Andrew Nacin
|
ea9e869ea8
|
Fix wpdb::tables() prefix handling. Ensures PHP4 compat. See #12083
git-svn-id: https://develop.svn.wordpress.org/trunk@13245 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-02-20 10:50:57 +00:00 |
|
Dion Hulse
|
468d0d7cff
|
Variable Cleanup, Unused variables, Typo'd variables, unused code blocks. Fixes #12299
git-svn-id: https://develop.svn.wordpress.org/trunk@13242 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-02-20 02:01:46 +00:00 |
|
Andrew Nacin
|
d543b36622
|
Introduce wpdb::tables() to fetch table names on a global or blog scope. Remove very old and long deprecated $table{table} globals, fixes #11614. See #12083
git-svn-id: https://develop.svn.wordpress.org/trunk@13229 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-02-19 19:57:03 +00:00 |
|
Andrew Nacin
|
4d2c75d785
|
Assume WP_DEBUG is defined in wpdb. Remove unnecessary constant() calls. Ensure DB_COLLATE defined as empty string doesn't override default Multisite collation. fixes #12041, see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@13209 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-02-19 01:03:58 +00:00 |
|