WordPress.org

Plugin Directory

Changeset 410330


Ignore:
Timestamp:
07/15/11 16:24:08 (3 years ago)
Author:
neoxx
Message:

2.41

Location:
timezonecalculator/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • timezonecalculator/trunk/readme.txt

    r397918 r410330  
    261261 
    262262== Changelog == 
     263 
     264= 2.41 = 
     265 
     266* fixed a bug with Ajax-update functionality in a SSL-environment. Thanks to huyz who has mentioned this in the forum http://wordpress.org/support/topic/plugin-generalstats-makes-https-call-to-admin-ajax-even-if-site-is-http 
     267* adopted Admin Header Clock to WordPress 3.2 Admin Menu 
    263268 
    264269= 2.40 = 
  • timezonecalculator/trunk/timezonecalculator.php

    r397918 r410330  
    66Description: Calculates, displays and automatically updates times and dates in different timezones with respect to daylight saving. 
    77Author: Dr. Bernhard Riedl 
    8 Version: 2.40 
     8Version: 2.41 
    99Author URI: http://www.bernhard.riedl.name/ 
    1010*/ 
     
    18591859 
    18601860    function head_meta() { 
    1861         echo("<meta name=\"".$this->get_nicename()."\" content=\"2.40\"/>\n"); 
     1861        echo("<meta name=\"".$this->get_nicename()."\" content=\"2.41\"/>\n"); 
    18621862    } 
    18631863 
     
    19601960        $admin_css_colors=$this->get_admin_colors(); 
    19611961 
    1962         $format_container="position:absolute;padding:3px 5px;top:1.15em;$x:400px;font-size:11px;background-color:$admin_css_colors[1];color:$admin_css_colors[3];-moz-border-radius:8px;line-height:15px"; 
     1962        $top='1.15em'; 
     1963 
     1964        global $wp_version; 
     1965 
     1966        /* 
     1967        we need to adjust the top-position 
     1968        for WordPress >= 3.2 
     1969        */ 
     1970 
     1971        if (version_compare($wp_version, '3.2', '>=')) 
     1972            $top='0.5em'; 
     1973 
     1974        $format_container="position:absolute;padding:3px 5px;top:$top;$x:400px;font-size:11px;background-color:$admin_css_colors[1];color:$admin_css_colors[3];-moz-border-radius:8px;line-height:15px"; 
    19631975 
    19641976        $format_timezone='<span title="%name">%datetime</span> <abbr title="%name">%abbreviation</abbr>'; 
     
    20952107        $_ajax_nonce=wp_create_nonce($security_string); 
    20962108 
     2109        /* 
     2110        make sure that Ajax-queries use 
     2111        the same protocol as the site 
     2112        */ 
     2113 
     2114        $ajax_url=admin_url('admin-ajax.php', is_ssl() ? 'https' : 'http'); 
     2115 
    20972116        wp_localize_script( 
    20982117            $this->get_prefix().'refresh'.$ajax_refresh_lib, 
    20992118            $this->get_prefix().'refresh_settings', 
    21002119            array( 
    2101                 'ajax_url' => admin_url('admin-ajax.php'), 
     2120                'ajax_url' => $ajax_url, 
    21022121                '_ajax_nonce' => $_ajax_nonce, 
    21032122                'refresh_time' => $this->get_option('ajax_refresh_time') 
Note: See TracChangeset for help on using the changeset viewer.