mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00:00
Changed to superglobals, and eliminated $use_cache (since we always do).
git-svn-id: https://develop.svn.wordpress.org/trunk@1108 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -308,7 +308,7 @@ function get_archives($type='', $limit='', $format='html', $before = "", $after
|
||||
}
|
||||
|
||||
function get_calendar($daylength = 1) {
|
||||
global $wpdb, $HTTP_GET_VARS, $m, $monthnum, $year, $timedifference, $month, $weekday, $tableposts, $posts;
|
||||
global $wpdb, $m, $monthnum, $year, $timedifference, $month, $weekday, $tableposts, $posts;
|
||||
|
||||
// Quick check. If we have no posts at all, abort!
|
||||
if (!$posts) {
|
||||
@@ -317,8 +317,8 @@ function get_calendar($daylength = 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (isset($HTTP_GET_VARS['w'])) {
|
||||
$w = ''.intval($HTTP_GET_VARS['w']);
|
||||
if (isset($_GET['w'])) {
|
||||
$w = ''.intval($_GET['w']);
|
||||
}
|
||||
$time_difference = get_settings('time_difference');
|
||||
$add_hours = intval($time_difference);
|
||||
|
||||
Reference in New Issue
Block a user