@@ 132-141 (lines=10) @@ | ||
129 | } |
|
130 | } |
|
131 | } elseif ( 0 === strpos( $type, 'template_' ) && ! $is_front_page ) { |
|
132 | if ( is_page_template( substr( $type, 9 ) ) ) { |
|
133 | if ( 'none' != $_ccss_contents ) { |
|
134 | if ( $ao_ccss_debug ) { |
|
135 | $_ccss_contents = '/* TYPES: ' . $type . ' hash: ' . $rule['hash'] . ' file: ' . $rule['file'] . ' */ ' . $_ccss_contents; |
|
136 | } |
|
137 | return apply_filters( 'autoptimize_filter_ccss_core_ccss', $_ccss_contents . $ao_ccss_additional ); |
|
138 | } else { |
|
139 | $no_ccss = 'none'; |
|
140 | } |
|
141 | } |
|
142 | } elseif ( ! $is_front_page ) { |
|
143 | // all "normal" conditional tags, core + woo + buddypress + edd + bbpress |
|
144 | // but we have to remove the prefix for the non-core ones for them to function. |
|
@@ 146-155 (lines=10) @@ | ||
143 | // all "normal" conditional tags, core + woo + buddypress + edd + bbpress |
|
144 | // but we have to remove the prefix for the non-core ones for them to function. |
|
145 | $type = str_replace( array( 'woo_', 'bp_', 'bbp_', 'edd_' ), '', $type ); |
|
146 | if ( function_exists( $type ) && call_user_func( $type ) ) { |
|
147 | if ( 'none' != $_ccss_contents ) { |
|
148 | if ( $ao_ccss_debug ) { |
|
149 | $_ccss_contents = '/* TYPES: ' . $type . ' hash: ' . $rule['hash'] . ' file: ' . $rule['file'] . ' */ ' . $_ccss_contents; |
|
150 | } |
|
151 | return apply_filters( 'autoptimize_filter_ccss_core_ccss', $_ccss_contents . $ao_ccss_additional ); |
|
152 | } else { |
|
153 | $no_ccss = 'none'; |
|
154 | } |
|
155 | } |
|
156 | } |
|
157 | } |
|
158 | } |