|
@@ -92,7 +92,7 @@ discard block |
|
|
block discarded – undo |
|
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 |
|
|
block discarded – undo |
|
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 |
|
|
block discarded – undo |
|
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 |
|
|
block discarded – undo |
|
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 = '' ) { |