Plugin Directory

Changeset 1851501

Timestamp:
04/03/2018 06:46:36 AM (6 years ago)
Author:
wokamoto
Message:

[nginx-champuru] update ver.3.3.0

Location:
nginx-champuru
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • nginx-champuru/tags/3.3.0/includes/caching.class.php

    r994908 r1851501  
    4949public function nonce_life($life)
    5050{
    51     $expires = get_option("nginxchampuru-cache_expires", array($life));
    52     $max = max(array_values($expires));
     51    $expires = get_option(NginxChampuru::OPTION_NAME_CACHE_EXPIRES, array($life));
     52    $max =
     53        is_array($expires) && is_array(array_values($expires))
     54        ? max(array_values($expires))
     55        : 0;
    5356    if ($max > $life) {
    5457        return $max;
     
    111114    if (is_singular() && comments_open()) {
    112115        wp_enqueue_script('jquery');
    113         wp_enqueue_script(
    114             'jquery.cookie',
    115             plugins_url('js/jquery.cookie.min.js', dirname(dirname(__FILE__)) . '/nginx-champuru.php'),
    116             array('jquery'),
    117             '1.3.1',
    118             true
    119         );
     116        wp_enqueue_script( 'js.cookie', plugins_url('js/js.cookie.js', dirname(dirname(__FILE__)) . '/nginx-champuru.php'), array('jquery'), '2.2.0', true );
    120117
    121118        add_action(
     
    139136<script type="text/javascript">
    140137(function($){
    141     $("#author").val($.cookie("comment_author_%1$s"));
    142     $("#email").val($.cookie("comment_author_email_%1$s"));
    143     $("#url").val($.cookie("comment_author_url_%1$s"));
     138    $("#author").val(("comment_author_%1$s"));
     139    $("#email").val(("comment_author_email_%1$s"));
     140    $("#url").val(("comment_author_url_%1$s"));
    144141})(jQuery);
    145142</script>
  • nginx-champuru/tags/3.3.0/includes/wp-cli.php

    r1357162 r1851501  
    3030     */
    3131    function flush($args, $assoc_args) {
    32         global $nginxchampuru;
     32        ;
    3333
    3434        if (isset($assoc_args['cache']) && $assoc_args['cache']) {
     
    5959     */
    6060    function _list($args, $assoc_args) {
    61         global $nginxchampuru;
     61        ;
    6262        $format = strtolower(isset($assoc_args['format']) ? $assoc_args['format'] : 'csv');
    6363        $items = (array)$nginxchampuru->get_cached_objects();
  • nginx-champuru/tags/3.3.0/nginx-champuru.php

    r1357162 r1851501  
    22/*
    33Plugin Name: Nginx Cache Controller
    4 Author: Ninjax Team (Takayuki Miyauchi)
     4Author:
    55Plugin URI: https://github.com/megumiteam/nginx-cache-controller
    66Description: Plugin for Nginx Reverse Proxy
    7 Version: 3.2.0
    8 Author URI: http://ninjax.cc/
     7Version: 3..0
     8Author URI: http:///
    99Domain Path: /languages
    1010Text Domain: nginxchampuru
  • nginx-champuru/tags/3.3.0/readme.txt

    r1357162 r1851501  
    11=== Nginx Cache Controller ===
    2 Contributors: miyauchi, wokamoto
     2Contributors: miyauchi, wokamoto
    33Donate link: http://ninjax.cc/
    44Tags: nginx, reverse proxy, cache
    55Requires at least: 3.4
    6 Tested up to: 4.4
    7 Stable tag: 3.2.0
     6Tested up to: 4.
     7Stable tag: 3..0
    88
    99Provides some functions of controlling Nginx proxy server cache.
     
    100100= 3.2.0 =
    101101
     102
     103
     104
     105
    102106* Bug fix for WP-CLI
    103107
  • nginx-champuru/trunk/includes/caching.class.php

    r994908 r1851501  
    4949public function nonce_life($life)
    5050{
    51     $expires = get_option("nginxchampuru-cache_expires", array($life));
    52     $max = max(array_values($expires));
     51    $expires = get_option(NginxChampuru::OPTION_NAME_CACHE_EXPIRES, array($life));
     52    $max =
     53        is_array($expires) && is_array(array_values($expires))
     54        ? max(array_values($expires))
     55        : 0;
    5356    if ($max > $life) {
    5457        return $max;
     
    111114    if (is_singular() && comments_open()) {
    112115        wp_enqueue_script('jquery');
    113         wp_enqueue_script(
    114             'jquery.cookie',
    115             plugins_url('js/jquery.cookie.min.js', dirname(dirname(__FILE__)) . '/nginx-champuru.php'),
    116             array('jquery'),
    117             '1.3.1',
    118             true
    119         );
     116        wp_enqueue_script( 'js.cookie', plugins_url('js/js.cookie.js', dirname(dirname(__FILE__)) . '/nginx-champuru.php'), array('jquery'), '2.2.0', true );
    120117
    121118        add_action(
     
    139136<script type="text/javascript">
    140137(function($){
    141     $("#author").val($.cookie("comment_author_%1$s"));
    142     $("#email").val($.cookie("comment_author_email_%1$s"));
    143     $("#url").val($.cookie("comment_author_url_%1$s"));
     138    $("#author").val(("comment_author_%1$s"));
     139    $("#email").val(("comment_author_email_%1$s"));
     140    $("#url").val(("comment_author_url_%1$s"));
    144141})(jQuery);
    145142</script>
  • nginx-champuru/trunk/includes/wp-cli.php

    r1357162 r1851501  
    3030     */
    3131    function flush($args, $assoc_args) {
    32         global $nginxchampuru;
     32        ;
    3333
    3434        if (isset($assoc_args['cache']) && $assoc_args['cache']) {
     
    5959     */
    6060    function _list($args, $assoc_args) {
    61         global $nginxchampuru;
     61        ;
    6262        $format = strtolower(isset($assoc_args['format']) ? $assoc_args['format'] : 'csv');
    6363        $items = (array)$nginxchampuru->get_cached_objects();
  • nginx-champuru/trunk/nginx-champuru.php

    r1357162 r1851501  
    22/*
    33Plugin Name: Nginx Cache Controller
    4 Author: Ninjax Team (Takayuki Miyauchi)
     4Author:
    55Plugin URI: https://github.com/megumiteam/nginx-cache-controller
    66Description: Plugin for Nginx Reverse Proxy
    7 Version: 3.2.0
    8 Author URI: http://ninjax.cc/
     7Version: 3..0
     8Author URI: http:///
    99Domain Path: /languages
    1010Text Domain: nginxchampuru
  • nginx-champuru/trunk/readme.txt

    r1357162 r1851501  
    11=== Nginx Cache Controller ===
    2 Contributors: miyauchi, wokamoto
     2Contributors: miyauchi, wokamoto
    33Donate link: http://ninjax.cc/
    44Tags: nginx, reverse proxy, cache
    55Requires at least: 3.4
    6 Tested up to: 4.4
    7 Stable tag: 3.2.0
     6Tested up to: 4.
     7Stable tag: 3..0
    88
    99Provides some functions of controlling Nginx proxy server cache.
     
    100100= 3.2.0 =
    101101
     102
     103
     104
     105
    102106* Bug fix for WP-CLI
    103107
Note: See TracChangeset for help on using the changeset viewer.