Changeset 656131
- Timestamp:
- 01/21/2013 08:05:59 AM (13 years ago)
- Location:
- nginx-manager/trunk
- Files:
-
- 4 edited
-
admin/admin.php (modified) (1 diff)
-
admin/overview.php (modified) (1 diff)
-
nginx-manager.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
nginx-manager/trunk/admin/admin.php
r484363 r656131 94 94 95 95 // 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']); 97 97 98 98 // Update site and blog options -
nginx-manager/trunk/admin/overview.php
r326618 r656131 85 85 <?php 86 86 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><?php92 }93 94 87 if ( count( $_custom_types ) > 0 && is_array( $_custom_types ) ) { 95 88 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>";101 89 } 102 90 } else { -
nginx-manager/trunk/nginx-manager.php
r560602 r656131 5 5 Description: Manage Nginx cache 6 6 Author: Simone Fumagalli & Marco Zanzottera 7 Version: 1.3.4. 37 Version: 1.3.4.4 8 8 Author URI: http://www.iliveinperego.com 9 9 Network: true … … 44 44 class nginxmLoader { 45 45 46 var $version = '1.3.4. 3'; // Plugin version46 var $version = '1.3.4.4'; // Plugin version 47 47 var $db_version = '1.3.4'; // DB version, change it to show the upgrade page 48 48 var $minium_WP = '3.0'; … … 222 222 223 223 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 } 224 235 225 236 // 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) ) { 227 238 228 239 $nginxmNginx->log( "Set/update future_posts option (post id = ".$post->ID." and blog id = ".$blog_id.")" ); -
nginx-manager/trunk/readme.txt
r560602 r656131 3 3 Tags: cache, nginx, purge, performance 4 4 Requires at least: 3.0 5 Tested up to: 3. 45 Tested up to: 3.5 6 6 Stable tag: trunk 7 7 … … 62 62 63 63 == 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) 64 67 65 68 = 1.3.4.3 (2012 06 19) =
Note: See TracChangeset
for help on using the changeset viewer.