@@ 611-613 (lines=3) @@ | ||
608 | default: |
|
609 | if ( substr( $rule['minor'], 0, 10 ) == 'post_type-' ) { |
|
610 | $condition_result = is_singular( substr( $rule['minor'], 10 ) ); |
|
611 | } elseif ( substr( $rule['minor'], 0, 18 ) == 'post_type_archive-' ) { |
|
612 | $condition_result = is_post_type_archive( substr( $rule['minor'], 18 ) ); |
|
613 | } elseif ( $rule['minor'] == get_option( 'page_for_posts' ) ) { |
|
614 | // If $rule['minor'] is a page ID which is also the posts page |
|
615 | $condition_result = $wp_query->is_posts_page; |
|
616 | } else { |
|
@@ 704-706 (lines=3) @@ | ||
701 | case 'post_type': |
|
702 | if ( substr( $rule['minor'], 0, 10 ) == 'post_type-' ) { |
|
703 | $condition_result = is_singular( substr( $rule['minor'], 10 ) ); |
|
704 | } elseif ( substr( $rule['minor'], 0, 18 ) == 'post_type_archive-' ) { |
|
705 | $condition_result = is_post_type_archive( substr( $rule['minor'], 18 ) ); |
|
706 | } |
|
707 | break; |
|
708 | case 'taxonomy': |
|
709 | // All taxonomy pages. |