@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | * @return void |
93 | 93 | */ |
94 | 94 | public static function connected_form_warning( $form_id = 0 ) { |
95 | - global $pagenow; |
|
95 | + global $pagenow; |
|
96 | 96 | |
97 | 97 | if ( empty( $form_id ) || $pagenow === 'post-new.php' ) { |
98 | 98 | return; |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | <?php |
120 | 120 | } |
121 | 121 | |
122 | - remove_action( 'gravityview/metaboxes/data-source/before', array( 'GravityView_Admin', 'connected_form_warning' ) ); |
|
122 | + remove_action( 'gravityview/metaboxes/data-source/before', array( 'GravityView_Admin', 'connected_form_warning' ) ); |
|
123 | 123 | } |
124 | 124 | |
125 | 125 | /** |
@@ -241,7 +241,7 @@ discard block |
||
241 | 241 | 7 => sprintf(__( 'View saved. %sView on website.%s', 'gravityview' ), '<a href="'.get_permalink( $post_id ).'">', '</a>') . $new_form_text, |
242 | 242 | 8 => __( 'View submitted.', 'gravityview' ), |
243 | 243 | 9 => sprintf( |
244 | - /* translators: Date and time the View is scheduled to be published */ |
|
244 | + /* translators: Date and time the View is scheduled to be published */ |
|
245 | 245 | __( 'View scheduled for: %1$s.', 'gravityview' ), |
246 | 246 | // translators: Publish box date format, see http://php.net/date |
247 | 247 | date_i18n( __( 'M j, Y @ G:i', 'gravityview' ), strtotime( ( isset( $post->post_date ) ? $post->post_date : NULL ) ) ) |
@@ -298,7 +298,6 @@ discard block |
||
298 | 298 | * |
299 | 299 | * @deprecated since 1.12 |
300 | 300 | * @see GravityView_Compatibility::get_plugin_status() |
301 | - |
|
302 | 301 | * @return boolean|string True: plugin is active; False: plugin file doesn't exist at path; 'inactive' it's inactive |
303 | 302 | */ |
304 | 303 | static function get_plugin_status( $location = '' ) { |
@@ -104,11 +104,11 @@ discard block |
||
104 | 104 | |
105 | 105 | /** Call all lazy callbacks. */ |
106 | 106 | foreach ( $this->callbacks as $callback ) { |
107 | - if ( $callback[0] != 'count' ) { |
|
107 | + if ( $callback[ 0 ] != 'count' ) { |
|
108 | 108 | continue; |
109 | 109 | } |
110 | 110 | |
111 | - $total += $callback[1]( $this->filters ); |
|
111 | + $total += $callback[ 1 ]( $this->filters ); |
|
112 | 112 | } |
113 | 113 | |
114 | 114 | if ( ! $total ) { |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | |
149 | 149 | foreach ( $this->all() as $entry ) { |
150 | 150 | $entry = $entry->as_entry(); |
151 | - $result[] = Utils::get( $entry, $key, null ); |
|
151 | + $result[ ] = Utils::get( $entry, $key, null ); |
|
152 | 152 | } |
153 | 153 | |
154 | 154 | return $result; |
@@ -206,11 +206,11 @@ discard block |
||
206 | 206 | |
207 | 207 | /** Call all lazy callbacks. */ |
208 | 208 | foreach ( $this->callbacks as $i => $callback ) { |
209 | - if ( $callback[0] != 'fetch' ) { |
|
209 | + if ( $callback[ 0 ] != 'fetch' ) { |
|
210 | 210 | continue; |
211 | 211 | } |
212 | 212 | |
213 | - $this->merge( $callback[1]( $this->filters, $this->sorts, $offset ) ); |
|
213 | + $this->merge( $callback[ 1 ]( $this->filters, $this->sorts, $offset ) ); |
|
214 | 214 | } |
215 | 215 | |
216 | 216 | $this->fetched = parent::count(); |
@@ -366,7 +366,7 @@ discard block |
||
366 | 366 | return; |
367 | 367 | } |
368 | 368 | |
369 | - $this->callbacks []= array( $type, $callback ); |
|
369 | + $this->callbacks [ ] = array( $type, $callback ); |
|
370 | 370 | } |
371 | 371 | |
372 | 372 | /** |