Changeset 4741
- Timestamp:
- 01/19/2017 11:32:45 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/handbook.php
r4695 r4741 149 149 */ 150 150 function add_body_class( $classes ) { 151 if ( wporg_is_handbook( $this->post_type ) ) {151 if ( is_singular() && wporg_is_handbook( $this->post_type ) ) { 152 152 $classes[] = 'single-handbook'; 153 153 } … … 395 395 */ 396 396 function disable_o2_processing( $process_with_o2 ) { 397 return ( $this->post_type === get_post_type() ) ? false : $process_with_o2;397 return ( is_singular() && $this->post_type === get_post_type() ) ? false : $process_with_o2; 398 398 } 399 399 … … 405 405 */ 406 406 function o2_application_container( $container ) { 407 return ( $this->post_type === get_post_type() ) ? '#primary' : $container;407 return ( is_singular() && $this->post_type === get_post_type() ) ? '#primary' : $container; 408 408 } 409 409 … … 416 416 */ 417 417 function o2_view_type( $view_type ) { 418 return ( $this->post_type === get_post_type() ) ? 'single' : $view_type;418 return ( is_singular() && $this->post_type === get_post_type() ) ? 'single' : $view_type; 419 419 } 420 420
Note: See TracChangeset
for help on using the changeset viewer.