| @@ -42,16 +42,16 @@ | ||
| 42 | 42 | 'minWidth' => 320, | 
| 43 | 43 | 'tooltip' => esc_attr__( 'Enter an URL here to redirect to after login.', 'give' ), | 
| 44 | 44 | ), | 
| 45 | - array( | |
| 46 | - 'type' => 'container', | |
| 47 | - 'html' => sprintf( '<p class="no-margin">%s</p>', esc_html__( 'Logout Redirect URL (optional):', 'give' ) ), | |
| 48 | - ), | |
| 49 | - array( | |
| 50 | - 'type' => 'textbox', | |
| 51 | - 'name' => 'logout-redirect', | |
| 52 | - 'minWidth' => 320, | |
| 53 | - 'tooltip' => esc_attr__( 'Enter an URL here to redirect to after logout.', 'give' ), | |
| 54 | - ), | |
| 45 | + array( | |
| 46 | + 'type' => 'container', | |
| 47 | + 'html' => sprintf( '<p class="no-margin">%s</p>', esc_html__( 'Logout Redirect URL (optional):', 'give' ) ), | |
| 48 | + ), | |
| 49 | + array( | |
| 50 | + 'type' => 'textbox', | |
| 51 | + 'name' => 'logout-redirect', | |
| 52 | + 'minWidth' => 320, | |
| 53 | + 'tooltip' => esc_attr__( 'Enter an URL here to redirect to after logout.', 'give' ), | |
| 54 | + ), | |
| 55 | 55 | ); | 
| 56 | 56 | } | 
| 57 | 57 | } | 
| @@ -248,8 +248,8 @@ | ||
| 248 | 248 | |
| 249 | 249 | // do not reindex array! | 
| 250 | 250 | $field['options'] = array( | 
| 251 | - '' => ( $field['placeholder'] ? $field['placeholder'] : esc_attr__( '- Select -', 'give' ) ), | |
| 252 | - ) + $field['options']; | |
| 251 | + '' => ( $field['placeholder'] ? $field['placeholder'] : esc_attr__( '- Select -', 'give' ) ), | |
| 252 | + ) + $field['options']; | |
| 253 | 253 | |
| 254 | 254 |  			foreach ( $field['options'] as $value => $text ) { | 
| 255 | 255 | $new_listbox['values'][] = array( | 
| @@ -586,9 +586,9 @@ | ||
| 586 | 586 | } | 
| 587 | 587 | |
| 588 | 588 | echo ' – ' | 
| 589 | - . sprintf( _x( 'by %s', 'by author', 'give' ), wp_kses( $author_name, wp_kses_allowed_html( 'post' ) ) ) | |
| 590 | - . ' – ' | |
| 591 | - . esc_html( $plugin_data['Version'] ); | |
| 589 | + . sprintf( _x( 'by %s', 'by author', 'give' ), wp_kses( $author_name, wp_kses_allowed_html( 'post' ) ) ) | |
| 590 | + . ' – ' | |
| 591 | + . esc_html( $plugin_data['Version'] ); | |
| 592 | 592 | ?> | 
| 593 | 593 | </td> | 
| 594 | 594 | </tr> | 
| @@ -138,8 +138,8 @@ | ||
| 138 | 138 | |
| 139 | 139 | // Only run in admin post/page creation and edit screens | 
| 140 | 140 | if ( in_array( $screen->parent_file, $shortcode_button_pages ) | 
| 141 | - && apply_filters( 'give_shortcode_button_condition', true ) | |
| 142 | - && ! empty( self::$shortcodes ) | |
| 141 | + && apply_filters( 'give_shortcode_button_condition', true ) | |
| 142 | + && ! empty( self::$shortcodes ) | |
| 143 | 143 |  		) { | 
| 144 | 144 | |
| 145 | 145 | $shortcodes = array(); | 
| @@ -812,10 +812,10 @@ discard block | ||
| 812 | 812 | } | 
| 813 | 813 | |
| 814 | 814 | if ( ! is_int( $params[1] ) | 
| 815 | - && ! is_float( $params[1] ) | |
| 816 | - && ! is_string( $params[1] ) | |
| 817 | - && $params[1] !== null | |
| 818 | - && ! ( is_object( $params[1] ) && method_exists( $params[1], '__toString' ) ) | |
| 815 | + && ! is_float( $params[1] ) | |
| 816 | + && ! is_string( $params[1] ) | |
| 817 | + && $params[1] !== null | |
| 818 | + && ! ( is_object( $params[1] ) && method_exists( $params[1], '__toString' ) ) | |
| 819 | 819 |  		) { | 
| 820 | 820 | trigger_error( esc_html__( 'array_column(): The column key should be either a string or an integer.', 'give' ), E_USER_WARNING ); | 
| 821 | 821 | |
| @@ -823,10 +823,10 @@ discard block | ||
| 823 | 823 | } | 
| 824 | 824 | |
| 825 | 825 | if ( isset( $params[2] ) | 
| 826 | - && ! is_int( $params[2] ) | |
| 827 | - && ! is_float( $params[2] ) | |
| 828 | - && ! is_string( $params[2] ) | |
| 829 | - && ! ( is_object( $params[2] ) && method_exists( $params[2], '__toString' ) ) | |
| 826 | + && ! is_int( $params[2] ) | |
| 827 | + && ! is_float( $params[2] ) | |
| 828 | + && ! is_string( $params[2] ) | |
| 829 | + && ! ( is_object( $params[2] ) && method_exists( $params[2], '__toString' ) ) | |
| 830 | 830 |  		) { | 
| 831 | 831 | trigger_error( esc_html__( 'array_column(): The index key should be either a string or an integer.', 'give' ), E_USER_WARNING ); | 
| 832 | 832 | |
| @@ -254,8 +254,8 @@ | ||
| 254 | 254 | $args = array( | 
| 255 | 255 | 'id' => 'give-api-user-search', | 
| 256 | 256 | 'name' => 'user_id', | 
| 257 | - ); | |
| 258 | - echo Give()->html->ajax_user_search($args); ?> | |
| 257 | + ); | |
| 258 | + echo Give()->html->ajax_user_search($args); ?> | |
| 259 | 259 | <?php submit_button( esc_html__( 'Generate New API Keys', 'give' ), 'secondary', 'submit', false ); ?> | 
| 260 | 260 | <?php | 
| 261 | 261 | $give_api_is_bottom = true; | 
| @@ -249,10 +249,10 @@ | ||
| 249 | 249 |  	$admin_message .= '<strong>' . __( 'Amount:', 'give' ) . '</strong> {amount}' . "\n\n"; | 
| 250 | 250 | |
| 251 | 251 | $admin_message .= sprintf( | 
| 252 | - '<a href="%1$s">%2$s</a>', | |
| 253 | - admin_url( 'edit.php?post_type=give_forms&page=give-payment-history&view=view-payment-details&id=' . $payment_id ), | |
| 254 | - __( 'View Donation Details »', 'give' ) | |
| 255 | - ) . "\n\n"; | |
| 252 | + '<a href="%1$s">%2$s</a>', | |
| 253 | + admin_url( 'edit.php?post_type=give_forms&page=give-payment-history&view=view-payment-details&id=' . $payment_id ), | |
| 254 | + __( 'View Donation Details »', 'give' ) | |
| 255 | + ) . "\n\n"; | |
| 256 | 256 | |
| 257 | 257 | $admin_message = apply_filters( 'give_offline_admin_donation_notification', $admin_message, $payment_id ); | 
| 258 | 258 | $admin_message = give_do_email_tags( $admin_message, $payment_id ); | 
| @@ -245,7 +245,7 @@ | ||
| 245 | 245 | |
| 246 | 246 | // Continue if donor already included. | 
| 247 | 247 | if ( empty( $payment->customer_id ) || | 
| 248 | - in_array( $payment->customer_id, $cached_donor_ids ) | |
| 248 | + in_array( $payment->customer_id, $cached_donor_ids ) | |
| 249 | 249 |  					) { | 
| 250 | 250 | continue; | 
| 251 | 251 | } | 
| @@ -39,8 +39,8 @@ | ||
| 39 | 39 | } | 
| 40 | 40 | |
| 41 | 41 | if ( ( is_plugin_active( 'wordpress-seo/wp-seo.php' ) | 
| 42 | - || is_plugin_active( 'wordpress-seo-premium/wp-seo-premium.php' ) ) | |
| 43 | - && class_exists( 'WPSEO_Sitemaps_Cache' ) | |
| 42 | + || is_plugin_active( 'wordpress-seo-premium/wp-seo-premium.php' ) ) | |
| 43 | + && class_exists( 'WPSEO_Sitemaps_Cache' ) | |
| 44 | 44 |  	) { | 
| 45 | 45 | |
| 46 | 46 | $forms_singular_option = give_get_option( 'forms_singular' ); |