Changeset 1350674
- Timestamp:
- 02/15/2016 04:11:22 AM (10 years ago)
- Location:
- wp-sitemanager/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
wp-sitemanager.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-sitemanager/trunk/readme.txt
r1345834 r1350674 3 3 Tags: cms, mobile, sitemap, pager, page navi, breadcrumb 4 4 Requires at least: 4.2 5 Tested up to: 4.4. 16 Stable tag: 1.1. 95 Tested up to: 4.4.2 6 Stable tag: 1.1.10 7 7 8 8 WP SiteManager is an integrated package comprising of necessary functions for using WordPress as a CMS. … … 34 34 35 35 == Changelog == 36 = 1.1.10 = 37 * add : if defined "WPSM_DISABLE_DEVICE" as true , disable multi device functions. 38 * add : if defined "WPSM_DISABLE_CACHE" as true, disable cahce functions . 39 36 40 = 1.1.9 = 37 41 * add : add 2 args( $with, $height ) for 'wp_sitemanager_open_graph_image' filter -
wp-sitemanager/trunk/wp-sitemanager.php
r1345834 r1350674 5 5 Description: WP SiteManager is an integrated package comprising of necessary functions for using WordPress as a CMS. 6 6 Author: Prime Strategy Co.,LTD. 7 Version: 1.1. 97 Version: 1.1.10 8 8 Author URI: http://www.prime-strategy.co.jp/ 9 9 License: GPLv2 or later … … 100 100 $installed_modules = $this->get_modules(); 101 101 $disabled_modules = $this->get_disabled_modules(); 102 102 103 foreach ( $installed_modules as $slug => $module ) { 103 104 if ( ! in_array( $slug, $disabled_modules ) ) { … … 288 289 */ 289 290 private function get_disabled_modules() { 290 return apply_filters( 'wp-sitemanager/disabled_modules', get_option( 'disabled_modules', array() ) ); 291 $disabled_modules = apply_filters( 'wp-sitemanager/disabled_modules', get_option( 'disabled_modules', array() ) ); 292 if ( defined( 'WPSM_DISABLE_DEVICE' ) && WPSM_DISABLE_DEVICE ) { 293 if ( ! in_array( 'theme_switcher', $disabled_modules ) ) { 294 $disabled_modules[] = 'theme_switcher'; 295 } 296 } 297 298 if ( defined( 'WPSM_DISABLE_CACHE' ) && WPSM_DISABLE_DEVICE ) { 299 if ( ! in_array( 'site-cache', $disabled_modules ) ) { 300 $disabled_modules[] = 'site-cache'; 301 } 302 } 303 return $disabled_modules; 291 304 } 292 305 … … 318 331 if ( $files ) { 319 332 foreach ( $files as $file ) { 333 if ( defined( 'WPSM_DISABLE_DEVICE' ) && WPSM_DISABLE_DEVICE ) { 334 if ( 'theme_switcher.php' == basename( $file ) ) { 335 continue; 336 } 337 } 338 339 if ( defined( 'WPSM_DISABLE_CACHE' ) && WPSM_DISABLE_DEVICE ) { 340 if ( 'site-cache.php' == basename( $file ) ) { 341 continue; 342 } 343 } 320 344 $headers = $this->get_module_headers( $file ); 321 345
Note: See TracChangeset
for help on using the changeset viewer.