@@ -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' ); |
@@ -363,8 +363,8 @@ |
||
| 363 | 363 | 'ajax_search_msg' => __( 'Searching results for match {search_term}', 'give' ), |
| 364 | 364 | ), |
| 365 | 365 | 'db_update_confirmation_msg' => __( 'The following process will make updates to your site\'s database. Please create a database backup before proceeding with updates.', 'give' ), |
| 366 | - 'error_message' => __( 'Something went wrong kindly try again!','give' ), |
|
| 367 | - 'give_donation_import' => 'give_donation_import', |
|
| 366 | + 'error_message' => __( 'Something went wrong kindly try again!','give' ), |
|
| 367 | + 'give_donation_import' => 'give_donation_import', |
|
| 368 | 368 | ) ); |
| 369 | 369 | |
| 370 | 370 | if ( function_exists( 'wp_enqueue_media' ) && version_compare( get_bloginfo( 'version' ), '3.5', '>=' ) ) { |
@@ -165,16 +165,16 @@ discard block |
||
| 165 | 165 | * |
| 166 | 166 | * @since 1.0 |
| 167 | 167 | * @access public |
| 168 | - * |
|
| 169 | - * @param int $column Column ID. |
|
| 170 | - * @param string $column_where Column name. |
|
| 171 | - * @param string $column_value Column value. |
|
| 172 | - * |
|
| 168 | + * |
|
| 169 | + * @param int $column Column ID. |
|
| 170 | + * @param string $column_where Column name. |
|
| 171 | + * @param string $column_value Column value. |
|
| 172 | + * |
|
| 173 | 173 | * @return string |
| 174 | 174 | */ |
| 175 | 175 | public function get_column_by( $column, $column_where, $column_value ) { |
| 176 | - /* @var WPDB $wpdb */ |
|
| 177 | - global $wpdb; |
|
| 176 | + /* @var WPDB $wpdb */ |
|
| 177 | + global $wpdb; |
|
| 178 | 178 | |
| 179 | 179 | // Bailout. |
| 180 | 180 | if ( empty( $column ) || empty( $column_where ) || empty( $column_value ) ) { |
@@ -191,15 +191,15 @@ discard block |
||
| 191 | 191 | * |
| 192 | 192 | * @since 1.0 |
| 193 | 193 | * @access public |
| 194 | - * |
|
| 195 | - * @param array $data |
|
| 196 | - * @param string $type |
|
| 197 | - * |
|
| 194 | + * |
|
| 195 | + * @param array $data |
|
| 196 | + * @param string $type |
|
| 197 | + * |
|
| 198 | 198 | * @return int |
| 199 | 199 | */ |
| 200 | 200 | public function insert( $data, $type = '' ) { |
| 201 | - /* @var WPDB $wpdb */ |
|
| 202 | - global $wpdb; |
|
| 201 | + /* @var WPDB $wpdb */ |
|
| 202 | + global $wpdb; |
|
| 203 | 203 | |
| 204 | 204 | // Set default values. |
| 205 | 205 | $data = wp_parse_args( $data, $this->get_column_defaults() ); |
@@ -246,16 +246,16 @@ discard block |
||
| 246 | 246 | * |
| 247 | 247 | * @since 1.0 |
| 248 | 248 | * @access public |
| 249 | - * |
|
| 250 | - * @param int $row_id Column ID |
|
| 251 | - * @param array $data |
|
| 252 | - * @param string $where Column value |
|
| 253 | - * |
|
| 249 | + * |
|
| 250 | + * @param int $row_id Column ID |
|
| 251 | + * @param array $data |
|
| 252 | + * @param string $where Column value |
|
| 253 | + * |
|
| 254 | 254 | * @return bool |
| 255 | 255 | */ |
| 256 | 256 | public function update( $row_id, $data = array(), $where = '' ) { |
| 257 | - /* @var WPDB $wpdb */ |
|
| 258 | - global $wpdb; |
|
| 257 | + /* @var WPDB $wpdb */ |
|
| 258 | + global $wpdb; |
|
| 259 | 259 | |
| 260 | 260 | // Row ID must be positive integer |
| 261 | 261 | $row_id = absint( $row_id ); |
@@ -293,14 +293,14 @@ discard block |
||
| 293 | 293 | * |
| 294 | 294 | * @since 1.0 |
| 295 | 295 | * @access public |
| 296 | - * |
|
| 297 | - * @param int $row_id Column ID. |
|
| 298 | - * |
|
| 296 | + * |
|
| 297 | + * @param int $row_id Column ID. |
|
| 298 | + * |
|
| 299 | 299 | * @return bool |
| 300 | 300 | */ |
| 301 | 301 | public function delete( $row_id = 0 ) { |
| 302 | - /* @var WPDB $wpdb */ |
|
| 303 | - global $wpdb; |
|
| 302 | + /* @var WPDB $wpdb */ |
|
| 303 | + global $wpdb; |
|
| 304 | 304 | |
| 305 | 305 | // Row ID must be positive integer |
| 306 | 306 | $row_id = absint( $row_id ); |
@@ -321,13 +321,13 @@ discard block |
||
| 321 | 321 | * |
| 322 | 322 | * @since 1.3.2 |
| 323 | 323 | * @access public |
| 324 | - * |
|
| 324 | + * |
|
| 325 | 325 | * @param string $table The table name. |
| 326 | - * |
|
| 326 | + * |
|
| 327 | 327 | * @return bool If the table name exists. |
| 328 | 328 | */ |
| 329 | 329 | public function table_exists( $table ) { |
| 330 | - /* @var WPDB $wpdb */ |
|
| 330 | + /* @var WPDB $wpdb */ |
|
| 331 | 331 | global $wpdb; |
| 332 | 332 | |
| 333 | 333 | $table = sanitize_text_field( $table ); |
@@ -95,13 +95,13 @@ |
||
| 95 | 95 | 'disabled' => __( 'Head', 'give' ), |
| 96 | 96 | ) |
| 97 | 97 | ), |
| 98 | - array( |
|
| 99 | - 'name' => __( 'Advanced Settings Docs Link', 'give' ), |
|
| 100 | - 'id' => 'advanced_settings_docs_link', |
|
| 101 | - 'url' => esc_url( 'http://docs.givewp.com/settings-advanced' ), |
|
| 102 | - 'title' => __( 'Advanced Settings', 'give' ), |
|
| 103 | - 'type' => 'give_docs_link', |
|
| 104 | - ), |
|
| 98 | + array( |
|
| 99 | + 'name' => __( 'Advanced Settings Docs Link', 'give' ), |
|
| 100 | + 'id' => 'advanced_settings_docs_link', |
|
| 101 | + 'url' => esc_url( 'http://docs.givewp.com/settings-advanced' ), |
|
| 102 | + 'title' => __( 'Advanced Settings', 'give' ), |
|
| 103 | + 'type' => 'give_docs_link', |
|
| 104 | + ), |
|
| 105 | 105 | array( |
| 106 | 106 | 'id' => 'give_title_data_control_2', |
| 107 | 107 | 'type' => 'sectionend' |
@@ -107,9 +107,9 @@ |
||
| 107 | 107 | // Handle sanitize database values. |
| 108 | 108 | $number_parts = explode( '.', $number ); |
| 109 | 109 | $is_db_sanitize_val = ( 2 === count( $number_parts ) && |
| 110 | - is_numeric( $number_parts[0] ) && |
|
| 111 | - is_numeric( $number_parts[1] ) && |
|
| 112 | - ( 6 === strlen( $number_parts[1] ) ) ); |
|
| 110 | + is_numeric( $number_parts[0] ) && |
|
| 111 | + is_numeric( $number_parts[1] ) && |
|
| 112 | + ( 6 === strlen( $number_parts[1] ) ) ); |
|
| 113 | 113 | |
| 114 | 114 | if( $is_db_sanitize_val ) { |
| 115 | 115 | // Sanitize database value. |
@@ -1012,7 +1012,7 @@ |
||
| 1012 | 1012 | // Find a match between price_id and level_id. |
| 1013 | 1013 | // First verify array keys exists THEN make the match. |
| 1014 | 1014 | if ( ( isset( $args['price_id'] ) && isset( $price['_give_id']['level_id'] ) ) |
| 1015 | - && $args['price_id'] == $price['_give_id']['level_id'] |
|
| 1015 | + && $args['price_id'] == $price['_give_id']['level_id'] |
|
| 1016 | 1016 | ) { |
| 1017 | 1017 | $donation_amount = $price['_give_amount']; |
| 1018 | 1018 | } |
@@ -67,27 +67,27 @@ |
||
| 67 | 67 | <td class="give-donation-amount"> |
| 68 | 68 | <span class="give-donation-amount"> |
| 69 | 69 | <?php |
| 70 | - $donation_amount = give_currency_filter( give_format_amount( give_get_payment_amount( $post->ID ), array( 'sanitize' => false ) ) ); |
|
| 70 | + $donation_amount = give_currency_filter( give_format_amount( give_get_payment_amount( $post->ID ), array( 'sanitize' => false ) ) ); |
|
| 71 | 71 | |
| 72 | - /** |
|
| 73 | - * Filters the donation amount on Donation History Page. |
|
| 74 | - * |
|
| 75 | - * @param int $donation_amount Donation Amount. |
|
| 76 | - * @param int $post->ID Donation ID. |
|
| 77 | - * |
|
| 78 | - * @since 1.8.13 |
|
| 79 | - * |
|
| 80 | - * @return int |
|
| 81 | - */ |
|
| 82 | - echo apply_filters( 'give_donation_history_row_amount', $donation_amount, $post->ID ); |
|
| 83 | - ?> |
|
| 72 | + /** |
|
| 73 | + * Filters the donation amount on Donation History Page. |
|
| 74 | + * |
|
| 75 | + * @param int $donation_amount Donation Amount. |
|
| 76 | + * @param int $post->ID Donation ID. |
|
| 77 | + * |
|
| 78 | + * @since 1.8.13 |
|
| 79 | + * |
|
| 80 | + * @return int |
|
| 81 | + */ |
|
| 82 | + echo apply_filters( 'give_donation_history_row_amount', $donation_amount, $post->ID ); |
|
| 83 | + ?> |
|
| 84 | 84 | </span> |
| 85 | 85 | </td> |
| 86 | 86 | <td class="give-donation-details"> |
| 87 | 87 | <?php |
| 88 | 88 | // Display View Receipt or |
| 89 | 89 | if ( 'publish' !== $post->post_status |
| 90 | - && 'subscription' !== $post->post_status |
|
| 90 | + && 'subscription' !== $post->post_status |
|
| 91 | 91 | ) : ?> |
| 92 | 92 | <a href="<?php echo esc_url( add_query_arg( 'payment_key', give_get_payment_key( $post->ID ), give_get_history_page_uri() ) ); ?>"><span |
| 93 | 93 | class="give-donation-status <?php echo $post->post_status; ?>"><?php echo esc_html__( 'View', 'give' ) . ' ' . give_get_payment_status( $post, true ) . ' »'; ?></span></a> |