Changeset 808664
- Timestamp:
- 11/22/2013 07:02:54 AM (12 years ago)
- Location:
- plugin-beta-tester
- Files:
-
- 4 edited
- 1 copied
-
tags/0.5 (copied) (copied from plugin-beta-tester/trunk)
-
tags/0.5/plugin-beta-tester.php (modified) (3 diffs)
-
tags/0.5/readme.txt (modified) (2 diffs)
-
trunk/plugin-beta-tester.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plugin-beta-tester/tags/0.5/plugin-beta-tester.php
r629151 r808664 3 3 Plugin Name: Plugin Beta Tester 4 4 Description: Lets you easily beta test plugins by notifying you of beta versions. Also lets you upgrade to beta versions from within WordPress. 5 Version: 0. 45 Version: 0.5 6 6 Author: mitcho (Michael Yoshitaka Erlewine) 7 7 Author URI: http://mitcho.com/ … … 9 9 */ 10 10 11 define('PLUGIN_BETA_TESTER_VERSION','0. 4');11 define('PLUGIN_BETA_TESTER_VERSION','0.5'); 12 12 if ( !defined('PLUGIN_BETA_TESTER_EXPIRATION') ) 13 13 define('PLUGIN_BETA_TESTER_EXPIRATION', 60 * 60 * 24); … … 33 33 // This is how we hijack the upgrade info from wordpress.org 34 34 function http_filter($response,$r,$url) { 35 if ($url !== 'http://api.wordpress.org/plugins/update-check/1.0/') 35 if ( $url == 'http://api.wordpress.org/plugins/update-check/1.0/' ) { 36 $wpapi_response = unserialize($response['body']); 37 $response['body'] = serialize($this->upgradable( $wpapi_response )); 36 38 return $response; 37 38 $wpapi_response = unserialize($response['body']); 39 $response['body'] = serialize($this->upgradable( $wpapi_response )); 39 } 40 41 // For WordPress 3.7 and later: 42 // http://make.wordpress.org/core/2013/10/25/json-encoding-ssl-api-wordpress-3-7/ 43 if ( $url == 'https://api.wordpress.org/plugins/update-check/1.1/' ) { 44 $wpapi_response = json_decode( $response['body'] ); 45 $override = (object) $this->upgradable( $wpapi_response->plugins ); 46 $wpapi_response->plugins = $override; 47 $response['body'] = json_encode($wpapi_response); 48 return $response; 49 } 50 40 51 return $response; 41 52 } -
plugin-beta-tester/tags/0.5/readme.txt
r629151 r808664 3 3 Donate link: http://tinyurl.com/donatetomitcho 4 4 Contributors: mitchoyoshitaka 5 Tested up to: 3. 55 Tested up to: 3.8 6 6 Requires at least: 3.0 7 Stable Tag: 0. 47 Stable Tag: 0.5 8 8 9 9 == Description == … … 13 13 14 14 == Changelog == 15 16 = 0.5 = 17 * Updated for WordPress 3.7, which [changed the way plugin update checks happen](http://make.wordpress.org/core/2013/10/25/json-encoding-ssl-api-wordpress-3-7/). 15 18 16 19 = 0.4 = -
plugin-beta-tester/trunk/plugin-beta-tester.php
r629151 r808664 3 3 Plugin Name: Plugin Beta Tester 4 4 Description: Lets you easily beta test plugins by notifying you of beta versions. Also lets you upgrade to beta versions from within WordPress. 5 Version: 0. 45 Version: 0.5 6 6 Author: mitcho (Michael Yoshitaka Erlewine) 7 7 Author URI: http://mitcho.com/ … … 9 9 */ 10 10 11 define('PLUGIN_BETA_TESTER_VERSION','0. 4');11 define('PLUGIN_BETA_TESTER_VERSION','0.5'); 12 12 if ( !defined('PLUGIN_BETA_TESTER_EXPIRATION') ) 13 13 define('PLUGIN_BETA_TESTER_EXPIRATION', 60 * 60 * 24); …