@@ -188,13 +188,13 @@ discard block |
||
188 | 188 | && get_class($wp_query->queried_object) == 'WP_Post' |
189 | 189 | ) { |
190 | 190 | $pid = $wp_query->queried_object_id; |
191 | - } else if ( $pid === null && $wp_query->is_home && isset($wp_query->queried_object_id) && $wp_query->queried_object_id ) { |
|
191 | + } else if ( $pid === null && $wp_query->is_home && isset($wp_query->queried_object_id) && $wp_query->queried_object_id ) { |
|
192 | 192 | //hack for static page as home page |
193 | 193 | $pid = $wp_query->queried_object_id; |
194 | 194 | } else if ( $pid === null ) { |
195 | 195 | $gtid = false; |
196 | 196 | $maybe_post = get_post(); |
197 | - if ( isset($maybe_post->ID) ){ |
|
197 | + if ( isset($maybe_post->ID) ) { |
|
198 | 198 | $gtid = true; |
199 | 199 | } |
200 | 200 | if ( $gtid ) { |
@@ -1028,7 +1028,7 @@ discard block |
||
1028 | 1028 | $post = $this; |
1029 | 1029 | $class_array = get_post_class($class, $this->ID); |
1030 | 1030 | $post = $old_global_post; |
1031 | - if ( is_array($class_array) ){ |
|
1031 | + if ( is_array($class_array) ) { |
|
1032 | 1032 | return implode(' ', $class_array); |
1033 | 1033 | } |
1034 | 1034 | return $class_array; |
@@ -1248,7 +1248,7 @@ discard block |
||
1248 | 1248 | /** |
1249 | 1249 | * @return string |
1250 | 1250 | */ |
1251 | - public function name(){ |
|
1251 | + public function name() { |
|
1252 | 1252 | return $this->title(); |
1253 | 1253 | } |
1254 | 1254 |