Changeset 4590
- Timestamp:
- 12/24/2016 10:13:06 PM (9 years ago)
- Location:
- sites/trunk/wordcamp.org/public_html/wp-content/themes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-base-v2/lib/structure/class-wcb-structure.php
r3275 r4590 1 1 <?php 2 3 use WordCamp\RemoteCSS; 2 4 3 5 class WCB_Structure extends WCB_Loader { … … 41 43 $grid = wcb_get_option('grid'); 42 44 43 // Check whethec Custom CSS mode is set to Add or Replace. 44 if ( class_exists( 'Jetpack_Custom_CSS' ) && method_exists( 'Jetpack_Custom_CSS', 'get_current_revision' ) ) { 45 $safecss_post = Jetpack_Custom_CSS::get_current_revision(); 46 if ( get_post_meta( $safecss_post['ID'], 'custom_css_add', true ) == 'no' ) 47 return; 45 // Don't output CSS if Jetpack Custom CSS/RemoteCSS is set to 'replace' mode 46 if ( 'replace' === RemoteCSS\get_output_mode() ) { 47 return; 48 48 } 49 49 -
sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-base/lib/structure/class-wcb-structure.php
r3275 r4590 1 1 <?php 2 3 use WordCamp\RemoteCSS; 2 4 3 5 class WCB_Structure extends WCB_Loader { … … 41 43 $grid = wcb_get_option('grid'); 42 44 43 // Check whethec Custom CSS mode is set to Add or Replace. 44 if ( class_exists( 'Jetpack_Custom_CSS' ) && method_exists( 'Jetpack_Custom_CSS', 'get_current_revision' ) ) { 45 $safecss_post = Jetpack_Custom_CSS::get_current_revision(); 46 if ( get_post_meta( $safecss_post['ID'], 'custom_css_add', true ) == 'no' ) 47 return; 45 // Don't output CSS if Jetpack Custom CSS/RemoteCSS is set to 'replace' mode 46 if ( 'replace' === RemoteCSS\get_output_mode() ) { 47 return; 48 48 } 49 49
Note: See TracChangeset
for help on using the changeset viewer.