tablesettings no longer used
git-svn-id: http://svn.automattic.com/wordpress/trunk@229 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b08123af2c
commit
a5f01a4928
|
@ -471,7 +471,7 @@ function get_usernumposts($userid) {
|
|||
}
|
||||
|
||||
function get_settings($setting) {
|
||||
global $tablesettings, $wpdb, $cache_settings, $use_cache, $querycount;
|
||||
global $wpdb, $cache_settings, $use_cache, $querycount;
|
||||
if ((empty($cache_settings)) OR (!$use_cache)) {
|
||||
$settings = get_alloptions();
|
||||
$cache_settings = $settings;
|
||||
|
@ -497,7 +497,7 @@ function get_alloptions() {
|
|||
}
|
||||
|
||||
function get_postdata($postid) {
|
||||
global $tableusers, $tablesettings, $tablecategories, $tableposts, $tablecomments, $querycount, $wpdb;
|
||||
global $tableusers, $tablecategories, $tableposts, $tablecomments, $querycount, $wpdb;
|
||||
$post = $wpdb->get_row("SELECT * FROM $tableposts WHERE ID = $postid");
|
||||
++$querycount;
|
||||
|
||||
|
|
|
@ -15,17 +15,12 @@ timer_start();
|
|||
|
||||
get_currentuserinfo();
|
||||
|
||||
$request = "SELECT * FROM $tablesettings";
|
||||
$result = mysql_query($request);
|
||||
$querycount++;
|
||||
while($row = mysql_fetch_object($result)) {
|
||||
$posts_per_page=$row->posts_per_page;
|
||||
$what_to_show=$row->what_to_show;
|
||||
$archive_mode=$row->archive_mode;
|
||||
$time_difference=$row->time_difference;
|
||||
$date_format=stripslashes($row->date_format);
|
||||
$time_format=stripslashes($row->time_format);
|
||||
}
|
||||
$posts_per_page=get_settings('posts_per_page');
|
||||
$what_to_show=get_settings('what_to_show');
|
||||
$archive_mode=get_settings('archive_mode');
|
||||
$time_difference=get_settings('time_difference');
|
||||
$date_format=stripslashes(get_settings('date_format'));
|
||||
$time_format=stripslashes(get_settings('time_format'));
|
||||
|
||||
// let's deactivate quicktags on IE Mac and Lynx, because they don't work there.
|
||||
if (($is_macIE) || ($is_lynx))
|
||||
|
|
|
@ -20,11 +20,7 @@ $is_IE = (($is_macIE) || ($is_winIE));
|
|||
if ($user_level == 0)
|
||||
die ("Cheatin' uh ?");
|
||||
|
||||
$request = " SELECT * FROM $tablesettings ";
|
||||
$result = mysql_query($request);
|
||||
while($row = mysql_fetch_object($result)) {
|
||||
$time_difference=$row->time_difference;
|
||||
}
|
||||
$time_difference=get_settings('time_difference');
|
||||
|
||||
if ($a=="b") {
|
||||
|
||||
|
|
Loading…
Reference in New Issue