WordPress.org

Plugin Directory

Changeset 1596311


Ignore:
Timestamp:
02/15/17 08:10:08 (13 months ago)
Author:
xiaoxu125634
Message:

1.8

  • 2017-02-15
  • geekzu资源使用优化。
Location:
useso-take-over-google/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • useso-take-over-google/trunk/readme.txt

    r1497761 r1596311  
    44Tags: Open Sans, Google Fonts, Google Web Fonts, useso, 360前端公共库, Google字体库, Google公共库, Useso公共库, Useso字体库 
    55Requires at least: 3.0 
    6 Tested up to: 4.6.1 
     6Tested up to: 4.7.2 
    77Stable tag: trunk 
    88 
     
    3131 
    3232== Changelog == 
     33 
     34= 1.8 = 
     35* 2017-02-15 
     36* geekzu资源使用优化。 
    3337 
    3438= 1.7 = 
  • useso-take-over-google/trunk/useso-take-over-google.php

    r1497761 r1596311  
    66Author: Bruno Xu 
    77Author URI: http://www.brunoxu.com/ 
    8 Version: 1.7 
     8Version: 1.8 
    99License: GNU General Public License v2 or later 
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    157157    $str = $matches[0]; 
    158158 
     159    $is_ssl = false; 
     160    if (stristr($str, 'https://')) { 
     161        $is_ssl = true; 
     162    } else { 
     163        if (!stristr($str, 'http://') && is_ssl()) { 
     164            $is_ssl = true; 
     165        } 
     166    } 
     167 
    159168    $regexp = "/(\d+|www|secure|cn|s).gravatar.com\/avatar/i"; 
    160     $str = preg_replace($regexp, 'sdn.geekzu.org/avatar', $str); 
     169 
     170    if ($is_ssl) { 
     171        $str = preg_replace($regexp, 'sdn.geekzu.org/avatar', $str); 
     172    } else { 
     173        $str = preg_replace($regexp, 'fdn.geekzu.org/avatar', $str); 
     174    } 
    161175 
    162176    return $str; 
Note: See TracChangeset for help on using the changeset viewer.