diff --git a/includes/caching.php b/includes/caching.php index 7d1c8fa6..00ef2c10 100644 --- a/includes/caching.php +++ b/includes/caching.php @@ -41,8 +41,6 @@ function ws_ls_delete_cache_for_given_user($user_id = false) $user_id = get_current_user_id(); } - ws_ls_delete_cache($cache_key); - $sql = "Delete FROM $wpdb->options WHERE option_name LIKE '%transient_" . WE_LS_SLUG . $user_id ."%'"; diff --git a/includes/db.php b/includes/db.php index bb662b40..5216e4e8 100644 --- a/includes/db.php +++ b/includes/db.php @@ -129,7 +129,7 @@ function ws_ls_get_start_weight($user_id) } // No cache? hit the DB else { - echo $sql; + global $wpdb; $table_name = $wpdb->prefix . WE_LS_TABLENAME; $sql = $wpdb->prepare('SELECT weight_weight FROM ' . $table_name . ' where weight_user_id = %d order by weight_date asc limit 0, 1', $user_id); diff --git a/includes/globals.php b/includes/globals.php index 2cecef3f..e5938082 100644 --- a/includes/globals.php +++ b/includes/globals.php @@ -145,15 +145,7 @@ if (get_option('ws-ls-line-fill-colour')) { $globals['WE_LS_WEIGHT_FILL_COLOUR'] = get_option('ws-ls-line-fill-colour'); } - // ----------------------------------------------------------------------------------- - // Override plugin settings with user preferences (if enabled!) - // ----------------------------------------------------------------------------------- - // add_filter('ws-ls-user-perferences', ) - // - // if(WE_LS_ALLOW_USER_PREFERENCES) { - // $temp = ws_ls_get_user_preferences(); - // // var_Dump($temp);wp_die(); - // } + // ----------------------------------------------------------------------------------- // Loop through array and set defines! // ----------------------------------------------------------------------------------- diff --git a/pages/page.help.php b/pages/page.help.php index a0205d2e..1d43a532 100644 --- a/pages/page.help.php +++ b/pages/page.help.php @@ -18,9 +18,9 @@ function ws_ls_help_page() {
diff --git a/pages/page.pro.advertise.php b/pages/page.pro.advertise.php index 9e71decf..75aa9f7b 100644 --- a/pages/page.pro.advertise.php +++ b/pages/page.pro.advertise.php @@ -33,8 +33,9 @@ function ws_ls_advertise_pro() {Site Hash', WE_LS_SLUG); ?>:
-+
Display a chart and / or form for the current user. The widget will be hidden if the user is not logged in.