Changeset 3626549
- Timestamp:
- 07/29/2026 12:29:53 AM (3 months ago)
- Location:
- restore-paypal-standard-for-woocommerce
- Files:
-
- 34 added
- 11 edited
-
tags/3.1.2 (added)
-
tags/3.1.2/assets (added)
-
tags/3.1.2/assets/css (added)
-
tags/3.1.2/assets/css/paypal-standard-admin.css (added)
-
tags/3.1.2/assets/images (added)
-
tags/3.1.2/assets/images/paypal-cards.jpg (added)
-
tags/3.1.2/assets/images/paypal-logo.png (added)
-
tags/3.1.2/assets/images/paypal-logo.svg (added)
-
tags/3.1.2/assets/js (added)
-
tags/3.1.2/assets/js/blocks (added)
-
tags/3.1.2/assets/js/blocks/paypal-standard-blocks.asset.php (added)
-
tags/3.1.2/assets/js/blocks/paypal-standard-blocks.js (added)
-
tags/3.1.2/assets/js/deactivation-survey.js (added)
-
tags/3.1.2/assets/js/paypal-standard-admin.js (added)
-
tags/3.1.2/includes (added)
-
tags/3.1.2/includes/admin (added)
-
tags/3.1.2/includes/admin/migration.php (added)
-
tags/3.1.2/includes/admin/settings.php (added)
-
tags/3.1.2/includes/blocks-support.php (added)
-
tags/3.1.2/includes/class-wc-gateway-paypal-standard-blocks-support.php (added)
-
tags/3.1.2/includes/diagnostics.php (added)
-
tags/3.1.2/includes/functions.php (added)
-
tags/3.1.2/includes/paypal-standard (added)
-
tags/3.1.2/includes/paypal-standard-settings.php (added)
-
tags/3.1.2/includes/paypal-standard.php (added)
-
tags/3.1.2/includes/paypal-standard/paypal-standard-api-handler.php (added)
-
tags/3.1.2/includes/paypal-standard/paypal-standard-ipn-handler.php (added)
-
tags/3.1.2/includes/paypal-standard/paypal-standard-pdt-handler.php (added)
-
tags/3.1.2/includes/paypal-standard/paypal-standard-request.php (added)
-
tags/3.1.2/includes/paypal-standard/paypal-standard-response.php (added)
-
tags/3.1.2/languages (added)
-
tags/3.1.2/languages/restore-paypal-standard-for-woocommerce.pot (added)
-
tags/3.1.2/readme.txt (added)
-
tags/3.1.2/restore-paypal-standard-for-woocommerce.php (added)
-
trunk/includes/admin/migration.php (modified) (1 diff)
-
trunk/includes/admin/settings.php (modified) (3 diffs)
-
trunk/includes/functions.php (modified) (1 diff)
-
trunk/includes/paypal-standard-settings.php (modified) (2 diffs)
-
trunk/includes/paypal-standard.php (modified) (2 diffs)
-
trunk/includes/paypal-standard/paypal-standard-api-handler.php (modified) (1 diff)
-
trunk/includes/paypal-standard/paypal-standard-ipn-handler.php (modified) (2 diffs)
-
trunk/includes/paypal-standard/paypal-standard-pdt-handler.php (modified) (4 diffs)
-
trunk/includes/paypal-standard/paypal-standard-request.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/restore-paypal-standard-for-woocommerce.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
restore-paypal-standard-for-woocommerce/trunk/includes/admin/migration.php
r3626543 r3626549 310 310 data: { 311 311 action: 'rpsfw_dismiss_migration_notice', 312 nonce: '<?php echo wp_create_nonce( 'rpsfw_dismiss_migration_notice'); ?>',312 nonce: '<?php echo esc_js( wp_create_nonce( 'rpsfw_dismiss_migration_notice' ) ); ?>', 313 313 notice_count: <?php echo esc_js( $notice_count ); ?> 314 314 } -
restore-paypal-standard-for-woocommerce/trunk/includes/admin/settings.php
r3292178 r3626549 63 63 'title' => __( 'Sandbox PayPal Email', 'restore-paypal-standard-for-woocommerce' ), 64 64 'type' => 'email', 65 /* translators: %s: link to the sandbox mode documentation. */ 65 66 'description' => sprintf( __( 'Enter the email of your PayPal sandbox account for testing. %s', 'restore-paypal-standard-for-woocommerce' ), '<a href="https://wpplugin.org/documentation/sandbox-mode/" target="_blank">' . __( 'Learn more about sandbox mode', 'restore-paypal-standard-for-woocommerce' ) . '</a>' ), 66 67 'default' => '', … … 171 172 'title' => __( 'API Credentials', 'restore-paypal-standard-for-woocommerce' ), 172 173 'type' => 'title', 174 /* translators: %s: link to the PayPal API credentials documentation. */ 173 175 'description' => sprintf( __( 'Enter your PayPal API credentials to process refunds via PayPal. Learn how to access your %s.', 'restore-paypal-standard-for-woocommerce' ), '<a href="https://wpplugin.org/documentation/how-to-request-paypal-api-signature-credentials/" target="_blank" rel="noopener noreferrer">' . __( 'PayPal API Credentials', 'restore-paypal-standard-for-woocommerce' ) . '</a>' ), 174 176 'class' => 'rpsfw-section-title', … … 254 256 'type' => 'title', 255 257 'description' => sprintf( 258 /* translators: %s: URL of the WooCommerce status logs page. */ 256 259 __( 'You can view PayPal Standard logs in the <a href="%s">WooCommerce Status > Logs</a> section.', 'restore-paypal-standard-for-woocommerce' ), 257 260 esc_url( admin_url( 'admin.php?page=wc-status&tab=logs' ) ) -
restore-paypal-standard-for-woocommerce/trunk/includes/functions.php
r3626543 r3626549 219 219 220 220 echo '<div class="notice notice-info is-dismissible">'; 221 echo '<p>' . sprintf(222 /* translators: %s: settings URL*/221 echo '<p>' . wp_kses_post( sprintf( 222 /* translators: %s: link reading "configure your settings". */ 223 223 __( 'Thank you for installing Restore PayPal Standard for WooCommerce. Please %s to start accepting payments.', 'restore-paypal-standard-for-woocommerce' ), 224 '<a href="' . esc_url( $settings_url ) . '">' . __( 'configure your settings', 'restore-paypal-standard-for-woocommerce' ) . '</a>'225 ) . '</p>';224 '<a href="' . esc_url( $settings_url ) . '">' . esc_html__( 'configure your settings', 'restore-paypal-standard-for-woocommerce' ) . '</a>' 225 ) ) . '</p>'; 226 226 echo '</div>'; 227 227 -
restore-paypal-standard-for-woocommerce/trunk/includes/paypal-standard-settings.php
r3421414 r3626549 260 260 $url = admin_url('admin.php?page=wc-settings&tab=checkout§ion=restore_paypal_standard&sub_section=' . $id); 261 261 $class = ($current_sub_section === $id) ? 'current' : ''; 262 echo '<li><a href="' . esc_url($url) . '" class="' . $class. '">' . esc_html($label) . '</a>';262 echo '<li><a href="' . esc_url($url) . '" class="' . esc_attr($class) . '">' . esc_html($label) . '</a>'; 263 263 if (++$i < $total) { 264 264 echo ' | '; … … 269 269 } 270 270 271 // Output the settings, but skip the title as we've already displayed it 272 echo '<table class="form-table">' . $this->gateway->generate_settings_html( $this->gateway->get_form_fields(), false ) . '</table>'; 271 // Output the settings, but skip the title as we've already displayed it. 272 // generate_settings_html() echoes the markup itself when its second argument is true, 273 // which keeps the unescaped output inside WooCommerce rather than here - the fields 274 // contain form markup that an escaping function would strip. 275 echo '<table class="form-table">'; 276 $this->gateway->generate_settings_html( $this->gateway->get_form_fields(), true ); 277 echo '</table>'; 273 278 } else { 274 279 ?> -
restore-paypal-standard-for-woocommerce/trunk/includes/paypal-standard.php
r3421414 r3626549 144 144 // Add sandbox messaging if in test mode 145 145 if ( $this->testmode ) { 146 /* translators: %s: link to the PayPal Sandbox Testing Guide. */ 146 147 $this->description .= '<br><br>' . sprintf( __( 'SANDBOX ENABLED. You can use sandbox testing accounts only. See the %s for more details.', 'restore-paypal-standard-for-woocommerce' ), '<a target="_blank" href="https://wpplugin.org/documentation/sandbox-mode/">' . __( 'PayPal Sandbox Testing Guide', 'restore-paypal-standard-for-woocommerce' ) . '</a>' ); 147 148 $this->description = trim( $this->description ); … … 405 406 case 'successwithwarning': 406 407 $order->add_order_note( 408 /* translators: %1$s: refunded amount, %2$s: PayPal refund transaction ID. */ 407 409 sprintf( __( 'Refunded %1$s - Refund ID: %2$s', 'restore-paypal-standard-for-woocommerce' ), $result['GROSSREFUNDAMT'], $result['REFUNDTRANSACTIONID'] ) 408 410 ); -
restore-paypal-standard-for-woocommerce/trunk/includes/paypal-standard/paypal-standard-api-handler.php
r3292178 r3626549 170 170 if ( 200 !== $code ) { 171 171 rpsfw_Gateway_PayPal_Standard::log( 'API response code: ' . $code ); 172 /* translators: %d: HTTP response code. */ 172 173 return new WP_Error( 'api-error', sprintf( __( 'Invalid API response (Code: %d)', 'restore-paypal-standard-for-woocommerce' ), $code ) ); 173 174 } -
restore-paypal-standard-for-woocommerce/trunk/includes/paypal-standard/paypal-standard-ipn-handler.php
r3626543 r3626549 223 223 } 224 224 } else { 225 /* translators: %s: pending reason. */ 225 226 $this->payment_on_hold( $order, sprintf( __( 'Payment pending: %s', 'restore-paypal-standard-for-woocommerce' ), $posted['pending_reason'] ) ); 226 227 } … … 244 245 */ 245 246 protected function payment_status_failed( $order, $posted ) { 247 /* translators: %s: payment status. */ 246 248 $order->update_status( 'failed', sprintf( __( 'Payment failed via IPN. Status: %s.', 'restore-paypal-standard-for-woocommerce' ), $posted['payment_status'] ) ); 247 249 } -
restore-paypal-standard-for-woocommerce/trunk/includes/paypal-standard/paypal-standard-pdt-handler.php
r3626543 r3626549 203 203 $order->add_order_note( 204 204 sprintf( 205 /* translators: %s: PayPal transaction ID. */ 205 206 __( 'PayPal PDT: Payment verified (ID: %s)', 'restore-paypal-standard-for-woocommerce' ), 206 207 $transaction_id … … 233 234 $order->add_order_note( 234 235 sprintf( 236 /* translators: %s: PayPal transaction ID. */ 235 237 __( 'PayPal PDT: Payment completed (ID: %s)', 'restore-paypal-standard-for-woocommerce' ), 236 238 $transaction_id … … 245 247 $order->add_order_note( 246 248 sprintf( 247 __( 'PayPal PDT: Payment pending (%s). Reason: %s', 'restore-paypal-standard-for-woocommerce' ), 249 /* translators: %1$s: PayPal transaction ID, %2$s: pending reason. */ 250 __( 'PayPal PDT: Payment pending (%1$s). Reason: %2$s', 'restore-paypal-standard-for-woocommerce' ), 248 251 $transaction_id, 249 252 $pending_reason … … 259 262 $order->add_order_note( 260 263 sprintf( 264 /* translators: %1$s: payment status, %2$s: PayPal transaction ID. */ 261 265 __( 'PayPal PDT: Payment status: %1$s. Transaction ID: %2$s', 'restore-paypal-standard-for-woocommerce' ), 262 266 $payment_status, -
restore-paypal-standard-for-woocommerce/trunk/includes/paypal-standard/paypal-standard-request.php
r3292178 r3626549 99 99 // If no line items were added, add the full amount as a single item to prevent AMOUNT_MISSING error 100 100 if ( empty($this->line_items) ) { 101 /* translators: %s: order number. */ 101 102 $paypal_args['item_name_1'] = sprintf( __( 'Order %s', 'restore-paypal-standard-for-woocommerce' ), $order->get_order_number() ); 102 103 $paypal_args['quantity_1'] = 1; -
restore-paypal-standard-for-woocommerce/trunk/readme.txt
r3626543 r3626549 5 5 Tested up to: 7.0 6 6 Requires PHP: 5.6 7 Stable tag: 3.1. 17 Stable tag: 3.1.2 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 42 42 43 43 == Changelog == 44 45 = 3.1.2 = 46 * 7/28/26 47 * Fix - Coding standards and translation fixes. 44 48 45 49 = 3.1.1 = -
restore-paypal-standard-for-woocommerce/trunk/restore-paypal-standard-for-woocommerce.php
r3626543 r3626549 3 3 * Plugin Name: Restore Paypal Standard For WooCommerce 4 4 * Description: Restore PayPal Standard payment gateway for WooCommerce 5 * Version: 3.1. 15 * Version: 3.1.2 6 6 * Author: Scott Paterson 7 7 * Author URI: https://wpplugin.org … … 23 23 24 24 // Define plugin constants 25 define( 'RPSFW_VERSION', '3.1. 1' );25 define( 'RPSFW_VERSION', '3.1.2' ); 26 26 define( 'RPSFW_PLUGIN_FILE', __FILE__ ); 27 27 define( 'RPSFW_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)