@@ -66,7 +66,7 @@ |
||
66 | 66 | $table_name = GFFormsModel::get_lead_meta_table_name(); |
67 | 67 | } |
68 | 68 | |
69 | - $sql = "UPDATE {$table_name} SET `meta_value` = %s WHERE `meta_key` = 'is_approved' AND `meta_value` = %s"; |
|
69 | + $sql = "update {$table_name} SET `meta_value` = %s WHERE `meta_key` = 'is_approved' AND `meta_value` = %s"; |
|
70 | 70 | |
71 | 71 | $approved_result = $wpdb->query( $wpdb->prepare( $sql, GravityView_Entry_Approval_Status::APPROVED, 'Approved' ) ); |
72 | 72 |
@@ -526,7 +526,7 @@ |
||
526 | 526 | $column = 'lead_id'; |
527 | 527 | } |
528 | 528 | |
529 | - $results = $wpdb->get_results( $wpdb->prepare( "SELECT $column, meta_value FROM $table WHERE form_id = (SELECT form_id FROM $table WHERE $column = %d LIMIT 1) AND meta_key = 'gravityview_unique_id'", $id_or_string ) ); |
|
529 | + $results = $wpdb->get_results( $wpdb->prepare( "select $column, meta_value FROM $table WHERE form_id = (SELECT form_id FROM $table WHERE $column = %d LIMIT 1) AND meta_key = 'gravityview_unique_id'", $id_or_string ) ); |
|
530 | 530 | |
531 | 531 | if ( $results ) { |
532 | 532 | $cache = array_replace( $cache, array_combine( wp_list_pluck( $results, $column ), wp_list_pluck( $results, 'meta_value' ) ) ); |
@@ -326,6 +326,6 @@ |
||
326 | 326 | <a href="#" data-approved="{$choices['approved']['value']}" aria-role="button" aria-live="polite" class="gv-approval-toggle gv-approval-approved popover" title="{$choices['approved']['action']}"><span class="screen-reader-text">{$choices['approved']['action']}</span></a> |
327 | 327 | <a href="#" data-approved="{$choices['disapproved']['value']}" aria-role="button" aria-live="polite" class="gv-approval-toggle gv-approval-disapproved popover" title="{$choices['disapproved']['action']}"><span class="screen-reader-text">{$choices['disapproved']['action']}</span></a> |
328 | 328 | <a href="#" data-approved="{$choices['unapproved']['value']}" aria-role="button" aria-live="polite" class="gv-approval-toggle gv-approval-unapproved popover" title="{$choices['unapproved']['action']}"><span class="screen-reader-text">{$choices['unapproved']['action']}</span></a> |
329 | -TEMPLATE; |
|
329 | +template; |
|
330 | 330 | } |
331 | 331 | } |
@@ -421,7 +421,7 @@ |
||
421 | 421 | </header> |
422 | 422 | <div class="gform-settings-panel__content" style="padding: 0 1rem 1.25rem"> |
423 | 423 | |
424 | -HTML; |
|
424 | +html; |
|
425 | 425 | } else { |
426 | 426 | echo '<div class="gv-uninstall-form-wrapper" style="font-size: 110%; padding: 15px 0;">'; |
427 | 427 | } |
@@ -308,7 +308,7 @@ |
||
308 | 308 | {{field_settings}} |
309 | 309 | {{hidden_fields}} |
310 | 310 | </div> |
311 | -EOD; |
|
311 | +eod; |
|
312 | 312 | |
313 | 313 | $output = $template; |
314 | 314 |
@@ -1130,7 +1130,7 @@ |
||
1130 | 1130 | <button id="tl-%1\$s-copy" class="tl-%1\$s-auth__accesskey_copy button" aria-live="off" title="%7\$s"><span class="screen-reader-text">%5\$s</span></button> |
1131 | 1131 | </div> |
1132 | 1132 | </%6\$s> |
1133 | -EOD; |
|
1133 | +eod; |
|
1134 | 1134 | |
1135 | 1135 | |
1136 | 1136 | $access_key_output = sprintf( |
@@ -245,7 +245,7 @@ |
||
245 | 245 | |
246 | 246 | add_rewrite_endpoint( $endpoint, EP_ROOT ); |
247 | 247 | |
248 | - $this->logging->log( "Endpoint {$endpoint} added.", __METHOD__, 'debug' ); |
|
248 | + $this->logging->log( "endpoint {$endpoint} added.", __METHOD__, 'debug' ); |
|
249 | 249 | |
250 | 250 | if ( get_site_option( self::PERMALINK_FLUSH_OPTION_NAME ) ) { |
251 | 251 | return; |
@@ -213,7 +213,7 @@ |
||
213 | 213 | |
214 | 214 | <p class="gv-notice-admin-message"><em>{admin_message}</em></p> |
215 | 215 | </div> |
216 | -EOD; |
|
216 | +eod; |
|
217 | 217 | |
218 | 218 | $notice_title = _n( |
219 | 219 | esc_html__( 'There is an unapproved entry that is not being shown.', 'gravityview' ), |