Plugin Directory

Changeset 656131


Ignore:
Timestamp:
01/21/2013 08:05:59 AM (13 years ago)
Author:
rukbat
Message:

Upgrade to version 1.3.4.4

Location:
nginx-manager/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • nginx-manager/trunk/admin/admin.php

    r484363 r656131  
    9494                   
    9595                    // Custom post types, @since Nginx Manager 1.3.4
    96                     $nginxm->options['nginxm_custom_post_types']                    = $_POST['nginxm_custom_post_types'];
     96                    $nginxm->options['nginxm_custom_post_types']                    = str_replace(' ','',$_POST['nginxm_custom_post_types']);
    9797                   
    9898                    // Update site and blog options
  • nginx-manager/trunk/admin/overview.php

    r326618 r656131  
    8585        <?php
    8686        if ($_custom_types = get_post_types(array('public' => true, '_builtin' => false))) {
    87            
    88             if ( count($_custom_types) != count($nginxm->options['custom_post_types_recognized']) ) {
    89                 ?><span class="error fade" style="display : block">
    90                     <p><strong><?php echo "Hey, give a higher priority (<15) to your custom post types!!! (e.g. <code>add_action('init', 'my_custom_post_type_register', 5)</code> or <code>add_action('init', 'my_custom_post_type_register')</code>)"; ?></strong></p>
    91                 </span><?php
    92             }
    93            
    9487            if ( count( $_custom_types ) > 0 && is_array( $_custom_types ) ) {
    9588                echo "<p>Custom post types defined: <b>".implode($_custom_types, "</b>, <b>")."</b></p>";
    96             }
    97             if ( count( $nginxm->options['custom_post_types_recognized'] ) > 0 && is_array( $nginxm->options['custom_post_types_recognized'] ) ) {
    98                 echo "<p>Custom post types recognized by Nginx Manager: <b>".implode($nginxm->options['custom_post_types_recognized'], "</b>, <b>")."</b></p>";
    99             } else {
    100                 echo "<p><b>No</b> custom post types recognized by Nginx Manager!</p>";
    10189            }
    10290        } else {
  • nginx-manager/trunk/nginx-manager.php

    r560602 r656131  
    55Description: Manage Nginx cache
    66Author: Simone Fumagalli & Marco Zanzottera
    7 Version: 1.3.4.3
     7Version: 1.3.4.4
    88Author URI: http://www.iliveinperego.com
    99Network: true
     
    4444    class nginxmLoader {
    4545       
    46         var $version            = '1.3.4.3'; // Plugin version
     46        var $version            = '1.3.4.4'; // Plugin version
    4747        var $db_version         = '1.3.4'; // DB version, change it to show the upgrade page
    4848        var $minium_WP          = '3.0';
     
    222222           
    223223            if ($new_status == 'future') {
     224               
     225                $post_types = array('post', 'page');
     226               
     227                $nginxm_custom_post_types = ($this->options['nginxm_custom_post_types']) ? $this->options['nginxm_custom_post_types']: '';
     228               
     229                if ($nginxm_custom_post_types) {
     230                    $custom_post_types = explode(',', $nginxm_custom_post_types);
     231                    if (is_array($custom_post_types)) {
     232                        $post_types = array_merge($post_types, $custom_post_types);
     233                    }
     234                }
    224235               
    225236                // check if param is a post with status 'future'
    226                 if ( $post && $post->post_status == 'future' && ( ( $post->post_type == 'post' || $post->post_type == 'page' ) || ( in_array($post->post_type, $this->options['custom_post_types_recognized']) ) ) ) {
     237                if ( $post && $post->post_status == 'future' && in_array($post->post_type, $post_types) ) {
    227238                   
    228239                    $nginxmNginx->log( "Set/update future_posts option (post id = ".$post->ID." and blog id = ".$blog_id.")" );
  • nginx-manager/trunk/readme.txt

    r560602 r656131  
    33Tags: cache, nginx, purge, performance
    44Requires at least: 3.0
    5 Tested up to: 3.4
     5Tested up to: 3.5
    66Stable tag: trunk
    77
     
    6262
    6363== Changelog ==
     64
     65= 1.3.4.4 (2013 01 21) =
     66* BUG : Remove old plugin option "custom_post_types_recognized" for future post script (thx retroriff)
    6467
    6568= 1.3.4.3 (2012 06 19) =
Note: See TracChangeset for help on using the changeset viewer.