Changeset 1797124
- Timestamp:
- 01/04/2018 04:53:00 PM (8 years ago)
- Location:
- contact-form-7-sms-addon
- Files:
-
- 9 edited
- 10 copied
-
tags/2.4.3 (copied) (copied from contact-form-7-sms-addon/trunk)
-
tags/2.4.3/contact-form-7-sms-addon.php (copied) (copied from contact-form-7-sms-addon/trunk/contact-form-7-sms-addon.php) (1 diff)
-
tags/2.4.3/images/logo_16px_16px.png (modified) (previous)
-
tags/2.4.3/images/logo_32px_32px.png (modified) (previous)
-
tags/2.4.3/lib/class-clockwork-plugin.php (copied) (copied from contact-form-7-sms-addon/trunk/lib/class-clockwork-plugin.php)
-
tags/2.4.3/lib/clockwork/class-Clockwork.php (copied) (copied from contact-form-7-sms-addon/trunk/lib/clockwork/class-Clockwork.php)
-
tags/2.4.3/lib/clockwork/class-WordPressClockwork.php (modified) (10 diffs)
-
tags/2.4.3/main.php (copied) (copied from contact-form-7-sms-addon/trunk/main.php) (1 diff)
-
tags/2.4.3/readme.txt (copied) (copied from contact-form-7-sms-addon/trunk/readme.txt) (2 diffs)
-
tags/2.4.3/templates/clockwork-options.php (copied) (copied from contact-form-7-sms-addon/trunk/templates/clockwork-options.php)
-
tags/2.4.3/templates/clockwork-test-message.php (copied) (copied from contact-form-7-sms-addon/trunk/templates/clockwork-test-message.php)
-
tags/2.4.3/templates/form-options-4.2.php (copied) (copied from contact-form-7-sms-addon/trunk/templates/form-options-4.2.php)
-
tags/2.4.3/templates/form-options.php (copied) (copied from contact-form-7-sms-addon/trunk/templates/form-options.php)
-
trunk/contact-form-7-sms-addon.php (modified) (1 diff)
-
trunk/images/logo_16px_16px.png (modified) (previous)
-
trunk/images/logo_32px_32px.png (modified) (previous)
-
trunk/lib/clockwork/class-WordPressClockwork.php (modified) (10 diffs)
-
trunk/main.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
contact-form-7-sms-addon/tags/2.4.3/contact-form-7-sms-addon.php
r1785297 r1797124 4 4 Plugin URI: http://wordpress.org/extend/plugins/contact-form-7-sms-addon/ 5 5 Description: Send SMS notifications when somebody submits your contact form 6 Version: 2.4. 26 Version: 2.4.3 7 7 Author: Mediaburst 8 8 Author URI: http://www.mediaburst.co.uk/ -
contact-form-7-sms-addon/tags/2.4.3/lib/clockwork/class-WordPressClockwork.php
r600594 r1797124 9 9 * 10 10 * @package Clockwork 11 * @subpackage WordPressClockwork 11 * @subpackage WordPressClockwork 12 12 * @since 1.0 13 13 */ … … 29 29 */ 30 30 const API_GET_KEY_METHOD = 'get_key'; 31 31 32 32 /** 33 33 * Mapping of country dialing codes to ISO codes … … 301 301 'ZW' => '263', 302 302 ); 303 304 /** 303 304 /** 305 305 * Legacy username 306 * 306 * 307 307 * @var string 308 308 */ 309 309 private $username; 310 311 /** 310 311 /** 312 312 * Legacy password 313 * 313 * 314 314 * @var string 315 315 */ 316 316 public $password; 317 317 318 318 /** 319 319 * Create a new instance of the Clockwork wrapper 320 320 * 321 * Also supports passing a username and a password as first and second parameter, but ONLY when 321 * Also supports passing a username and a password as first and second parameter, but ONLY when 322 322 * used in WordPressClockwork for the purposes of converting to an API key. 323 323 * … … 334 334 } 335 335 } 336 336 337 337 public function createAPIKey( $name = 'WordPress API Key' ) { 338 338 // Create XML doc for request … … 355 355 $err_no = null; 356 356 $err_desc = null; 357 357 358 358 foreach( $resp_doc->documentElement->childNodes as $doc_child ) { 359 359 switch( $doc_child->nodeName ) { … … 371 371 } 372 372 } 373 373 374 374 if( isset( $err_no ) ) { 375 375 throw new ClockworkException( $err_desc, $err_no ); 376 376 } 377 377 378 378 $this->key = $key; 379 379 return $key; 380 380 } 381 381 382 382 /** 383 383 * Check if the WordPress HTTP API can support SSL … … 400 400 'body' => $data, 401 401 'headers' => array( 'Content-Type' => 'text/xml' ), 402 'user-agent' => 'Clockwork Wordpress-ContactForm7 Wrapper', 402 403 'timeout' => 10, // Seconds 403 404 ); 404 405 405 406 // Check whether WordPress should veryify the SSL certificate 406 407 if( stristr( $url, 'https://' ) ) { … … 419 420 * Verify SSL conectivity to the remote host 420 421 * 421 * If the request fails store a flag so that we 422 * If the request fails store a flag so that we 422 423 * don't need to do the check again 423 424 */ … … 427 428 $opt = array(); 428 429 } 429 430 430 431 if( !array_key_exists( 'sslverify', $opt ) ) { 431 432 $args = array( 432 433 'timeout' => 10 // Seconds 433 434 ); 434 435 435 436 $result = wp_remote_post( $url, $args ); 436 437 437 438 if( is_wp_error( $result ) ) { 438 439 $opt['sslverify'] = false; … … 440 441 $opt['sslverify'] = true; 441 442 } 442 443 443 444 update_option( self::SSL_OPTIONS_KEY, $opt ); 444 445 } -
contact-form-7-sms-addon/tags/2.4.3/main.php
r1781426 r1797124 138 138 * @author James Inman 139 139 */ 140 public function save_form( $form ) { 141 update_option( 'wpcf7_sms_' . (method_exists($form, 'id') ? $form->id() : $form->id), sanitize_text_field($_POST['wpcf7-sms']) ); 142 } 140 public function save_form( $form ) { 141 $id = method_exists($form, 'id') ? $form->id() : $form->id; 142 $form = $_POST['wpcf7-sms']; 143 144 $form["phone"] = sanitize_text_field(stripslashes($form["phone"])); 145 $form["message"] = sanitize_textarea_field(stripslashes($form["message"])); 146 147 update_option('wpcf7_sms_' . $id, $form); 148 } 143 149 144 150 /** -
contact-form-7-sms-addon/tags/2.4.3/readme.txt
r1785297 r1797124 7 7 Requires at least: 3.0.0 8 8 Tested up to: 4.2.2 9 Stable tag: 2.4. 29 Stable tag: 2.4.3 10 10 11 11 Works with the Contact Form 7 plugin to send SMS notifications when somebody … … 67 67 68 68 == Changelog == 69 70 = 2.4.3 = 71 * Remove old branding 72 * Fix form save bug 69 73 70 74 = 2.4.2 = -
contact-form-7-sms-addon/trunk/contact-form-7-sms-addon.php
r1785297 r1797124 4 4 Plugin URI: http://wordpress.org/extend/plugins/contact-form-7-sms-addon/ 5 5 Description: Send SMS notifications when somebody submits your contact form 6 Version: 2.4. 26 Version: 2.4.3 7 7 Author: Mediaburst 8 8 Author URI: http://www.mediaburst.co.uk/ -
contact-form-7-sms-addon/trunk/lib/clockwork/class-WordPressClockwork.php
r600594 r1797124 9 9 * 10 10 * @package Clockwork 11 * @subpackage WordPressClockwork 11 * @subpackage WordPressClockwork 12 12 * @since 1.0 13 13 */ … … 29 29 */ 30 30 const API_GET_KEY_METHOD = 'get_key'; 31 31 32 32 /** 33 33 * Mapping of country dialing codes to ISO codes … … 301 301 'ZW' => '263', 302 302 ); 303 304 /** 303 304 /** 305 305 * Legacy username 306 * 306 * 307 307 * @var string 308 308 */ 309 309 private $username; 310 311 /** 310 311 /** 312 312 * Legacy password 313 * 313 * 314 314 * @var string 315 315 */ 316 316 public $password; 317 317 318 318 /** 319 319 * Create a new instance of the Clockwork wrapper 320 320 * 321 * Also supports passing a username and a password as first and second parameter, but ONLY when 321 * Also supports passing a username and a password as first and second parameter, but ONLY when 322 322 * used in WordPressClockwork for the purposes of converting to an API key. 323 323 * … … 334 334 } 335 335 } 336 336 337 337 public function createAPIKey( $name = 'WordPress API Key' ) { 338 338 // Create XML doc for request … … 355 355 $err_no = null; 356 356 $err_desc = null; 357 357 358 358 foreach( $resp_doc->documentElement->childNodes as $doc_child ) { 359 359 switch( $doc_child->nodeName ) { … … 371 371 } 372 372 } 373 373 374 374 if( isset( $err_no ) ) { 375 375 throw new ClockworkException( $err_desc, $err_no ); 376 376 } 377 377 378 378 $this->key = $key; 379 379 return $key; 380 380 } 381 381 382 382 /** 383 383 * Check if the WordPress HTTP API can support SSL … … 400 400 'body' => $data, 401 401 'headers' => array( 'Content-Type' => 'text/xml' ), 402 'user-agent' => 'Clockwork Wordpress-ContactForm7 Wrapper', 402 403 'timeout' => 10, // Seconds 403 404 ); 404 405 405 406 // Check whether WordPress should veryify the SSL certificate 406 407 if( stristr( $url, 'https://' ) ) { … … 419 420 * Verify SSL conectivity to the remote host 420 421 * 421 * If the request fails store a flag so that we 422 * If the request fails store a flag so that we 422 423 * don't need to do the check again 423 424 */ … … 427 428 $opt = array(); 428 429 } 429 430 430 431 if( !array_key_exists( 'sslverify', $opt ) ) { 431 432 $args = array( 432 433 'timeout' => 10 // Seconds 433 434 ); 434 435 435 436 $result = wp_remote_post( $url, $args ); 436 437 437 438 if( is_wp_error( $result ) ) { 438 439 $opt['sslverify'] = false; … … 440 441 $opt['sslverify'] = true; 441 442 } 442 443 443 444 update_option( self::SSL_OPTIONS_KEY, $opt ); 444 445 } -
contact-form-7-sms-addon/trunk/main.php
r1781426 r1797124 138 138 * @author James Inman 139 139 */ 140 public function save_form( $form ) { 141 update_option( 'wpcf7_sms_' . (method_exists($form, 'id') ? $form->id() : $form->id), sanitize_text_field($_POST['wpcf7-sms']) ); 142 } 140 public function save_form( $form ) { 141 $id = method_exists($form, 'id') ? $form->id() : $form->id; 142 $form = $_POST['wpcf7-sms']; 143 144 $form["phone"] = sanitize_text_field(stripslashes($form["phone"])); 145 $form["message"] = sanitize_textarea_field(stripslashes($form["message"])); 146 147 update_option('wpcf7_sms_' . $id, $form); 148 } 143 149 144 150 /** -
contact-form-7-sms-addon/trunk/readme.txt
r1785297 r1797124 7 7 Requires at least: 3.0.0 8 8 Tested up to: 4.2.2 9 Stable tag: 2.4. 29 Stable tag: 2.4.3 10 10 11 11 Works with the Contact Form 7 plugin to send SMS notifications when somebody … … 67 67 68 68 == Changelog == 69 70 = 2.4.3 = 71 * Remove old branding 72 * Fix form save bug 69 73 70 74 = 2.4.2 =
Note: See TracChangeset
for help on using the changeset viewer.