Changeset 1785297
- Timestamp:
- 12/12/2017 10:54:03 AM (8 years ago)
- Location:
- contact-form-7-sms-addon
- Files:
-
- 3 edited
- 9 copied
-
tags/2.4.2 (copied) (copied from contact-form-7-sms-addon/trunk)
-
tags/2.4.2/contact-form-7-sms-addon.php (modified) (4 diffs)
-
tags/2.4.2/lib/class-clockwork-plugin.php (copied) (copied from contact-form-7-sms-addon/trunk/lib/class-clockwork-plugin.php)
-
tags/2.4.2/lib/clockwork/class-Clockwork.php (copied) (copied from contact-form-7-sms-addon/trunk/lib/clockwork/class-Clockwork.php)
-
tags/2.4.2/main.php (copied) (copied from contact-form-7-sms-addon/trunk/main.php)
-
tags/2.4.2/readme.txt (copied) (copied from contact-form-7-sms-addon/trunk/readme.txt) (2 diffs)
-
tags/2.4.2/templates/clockwork-options.php (copied) (copied from contact-form-7-sms-addon/trunk/templates/clockwork-options.php)
-
tags/2.4.2/templates/clockwork-test-message.php (copied) (copied from contact-form-7-sms-addon/trunk/templates/clockwork-test-message.php)
-
tags/2.4.2/templates/form-options-4.2.php (copied) (copied from contact-form-7-sms-addon/trunk/templates/form-options-4.2.php)
-
tags/2.4.2/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) (4 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
contact-form-7-sms-addon/tags/2.4.2/contact-form-7-sms-addon.php
r1185570 r1785297 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. 3.06 Version: 2.4.2 7 7 Author: Mediaburst 8 8 Author URI: http://www.mediaburst.co.uk/ 9 9 */ 10 10 11 11 /* Copyright 2012, Mediaburst Limited. 12 12 … … 39 39 $versions = array_reverse( $versions ); 40 40 $first_plugin = reset( $versions ); 41 41 42 42 // Require Clockwork plugin architecture 43 43 if( !class_exists( 'Clockwork_Plugin' ) ) { 44 44 require_once( dirname( dirname( __FILE__ ) ) . '/' . $first_plugin . '/lib/class-clockwork-plugin.php' ); 45 45 } 46 46 47 47 // Require each plugin, unless major version doesn't match 48 48 $version_nums = array_keys($versions); 49 49 preg_match( '/([0-9]+)\./', reset($version_nums), $matches ); 50 50 $major_version = intval( $matches[1] ); 51 51 52 52 foreach( $GLOBALS['clockwork_plugins'] as $plugin => $version ) { 53 53 preg_match( '/([0-9]+)\./', $version, $matches ); 54 54 55 55 if( intval( $matches[1] ) < $major_version ) { 56 56 // If it's a major version behind, automatically deactivate it … … 59 59 $plugin_data = get_plugin_data( $plugin_path ); 60 60 deactivate_plugins( $plugin_path ); 61 61 62 62 // Output a message to tell the admin what's going on 63 63 $message = '<div id="message" class="error"><p><strong>The plugin ' . $plugin_data['Name'] . ' has an important update available. It has been disabled until it has been updated.</strong></p></div>'; … … 66 66 require_once( dirname( dirname( __FILE__ ) ) . '/' . $plugin . '/main.php' ); 67 67 } 68 68 69 69 } 70 70 } 71 71 72 72 } 73 73 -
contact-form-7-sms-addon/tags/2.4.2/readme.txt
r1781426 r1785297 7 7 Requires at least: 3.0.0 8 8 Tested up to: 4.2.2 9 Stable tag: 2.4. 19 Stable tag: 2.4.2 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.2 = 71 * Security Hardening 69 72 70 73 = 2.4.0 = -
contact-form-7-sms-addon/trunk/contact-form-7-sms-addon.php
r1185570 r1785297 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. 3.06 Version: 2.4.2 7 7 Author: Mediaburst 8 8 Author URI: http://www.mediaburst.co.uk/ 9 9 */ 10 10 11 11 /* Copyright 2012, Mediaburst Limited. 12 12 … … 39 39 $versions = array_reverse( $versions ); 40 40 $first_plugin = reset( $versions ); 41 41 42 42 // Require Clockwork plugin architecture 43 43 if( !class_exists( 'Clockwork_Plugin' ) ) { 44 44 require_once( dirname( dirname( __FILE__ ) ) . '/' . $first_plugin . '/lib/class-clockwork-plugin.php' ); 45 45 } 46 46 47 47 // Require each plugin, unless major version doesn't match 48 48 $version_nums = array_keys($versions); 49 49 preg_match( '/([0-9]+)\./', reset($version_nums), $matches ); 50 50 $major_version = intval( $matches[1] ); 51 51 52 52 foreach( $GLOBALS['clockwork_plugins'] as $plugin => $version ) { 53 53 preg_match( '/([0-9]+)\./', $version, $matches ); 54 54 55 55 if( intval( $matches[1] ) < $major_version ) { 56 56 // If it's a major version behind, automatically deactivate it … … 59 59 $plugin_data = get_plugin_data( $plugin_path ); 60 60 deactivate_plugins( $plugin_path ); 61 61 62 62 // Output a message to tell the admin what's going on 63 63 $message = '<div id="message" class="error"><p><strong>The plugin ' . $plugin_data['Name'] . ' has an important update available. It has been disabled until it has been updated.</strong></p></div>'; … … 66 66 require_once( dirname( dirname( __FILE__ ) ) . '/' . $plugin . '/main.php' ); 67 67 } 68 68 69 69 } 70 70 } 71 71 72 72 } 73 73 -
contact-form-7-sms-addon/trunk/readme.txt
r1781426 r1785297 7 7 Requires at least: 3.0.0 8 8 Tested up to: 4.2.2 9 Stable tag: 2.4. 19 Stable tag: 2.4.2 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.2 = 71 * Security Hardening 69 72 70 73 = 2.4.0 =
Note: See TracChangeset
for help on using the changeset viewer.