@@ 679-681 (lines=3) @@ | ||
676 | default: |
|
677 | if ( substr( $rule['minor'], 0, 10 ) == 'post_type-' ) { |
|
678 | $condition_result = is_singular( substr( $rule['minor'], 10 ) ); |
|
679 | } elseif ( substr( $rule['minor'], 0, 18 ) == 'post_type_archive-' ) { |
|
680 | $condition_result = is_post_type_archive( substr( $rule['minor'], 18 ) ); |
|
681 | } elseif ( $rule['minor'] == get_option( 'page_for_posts' ) ) { |
|
682 | // If $rule['minor'] is a page ID which is also the posts page |
|
683 | $condition_result = $wp_query->is_posts_page; |
|
684 | } else { |
|
@@ 770-772 (lines=3) @@ | ||
767 | case 'post_type': |
|
768 | if ( substr( $rule['minor'], 0, 10 ) == 'post_type-' ) { |
|
769 | $condition_result = is_singular( substr( $rule['minor'], 10 ) ); |
|
770 | } elseif ( substr( $rule['minor'], 0, 18 ) == 'post_type_archive-' ) { |
|
771 | $condition_result = is_post_type_archive( substr( $rule['minor'], 18 ) ); |
|
772 | } |
|
773 | break; |
|
774 | case 'taxonomy': |
|
775 | // All taxonomy pages. |