Changeset 2488939
- Timestamp:
- 03/07/2021 03:09:13 PM (5 years ago)
- Location:
- wp-proxy
- Files:
-
- 3 edited
- 17 copied
-
tags/1.3.99 (copied) (copied from wp-proxy/trunk)
-
tags/1.3.99/LICENSE (copied) (copied from wp-proxy/trunk/LICENSE)
-
tags/1.3.99/class-wp-proxy.php (copied) (copied from wp-proxy/trunk/class-wp-proxy.php) (4 diffs)
-
tags/1.3.99/languages (copied) (copied from wp-proxy/trunk/languages)
-
tags/1.3.99/languages/wp-proxy-de_DE.mo (copied) (copied from wp-proxy/trunk/languages/wp-proxy-de_DE.mo)
-
tags/1.3.99/languages/wp-proxy-de_DE.po (copied) (copied from wp-proxy/trunk/languages/wp-proxy-de_DE.po)
-
tags/1.3.99/languages/wp-proxy-ja_JP.mo (copied) (copied from wp-proxy/trunk/languages/wp-proxy-ja_JP.mo)
-
tags/1.3.99/languages/wp-proxy-ja_JP.po (copied) (copied from wp-proxy/trunk/languages/wp-proxy-ja_JP.po)
-
tags/1.3.99/languages/wp-proxy-ru_RU.mo (copied) (copied from wp-proxy/trunk/languages/wp-proxy-ru_RU.mo)
-
tags/1.3.99/languages/wp-proxy-ru_RU.po (copied) (copied from wp-proxy/trunk/languages/wp-proxy-ru_RU.po)
-
tags/1.3.99/languages/wp-proxy-zh_CN.mo (copied) (copied from wp-proxy/trunk/languages/wp-proxy-zh_CN.mo)
-
tags/1.3.99/languages/wp-proxy-zh_CN.po (copied) (copied from wp-proxy/trunk/languages/wp-proxy-zh_CN.po)
-
tags/1.3.99/languages/wp-proxy-zh_TW.mo (copied) (copied from wp-proxy/trunk/languages/wp-proxy-zh_TW.mo)
-
tags/1.3.99/languages/wp-proxy-zh_TW.po (copied) (copied from wp-proxy/trunk/languages/wp-proxy-zh_TW.po)
-
tags/1.3.99/languages/wp-proxy.pot (copied) (copied from wp-proxy/trunk/languages/wp-proxy.pot)
-
tags/1.3.99/readme.txt (copied) (copied from wp-proxy/trunk/readme.txt) (2 diffs)
-
tags/1.3.99/wp-proxy.php (copied) (copied from wp-proxy/trunk/wp-proxy.php) (1 diff)
-
trunk/class-wp-proxy.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wp-proxy.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-proxy/tags/1.3.99/class-wp-proxy.php
r2439215 r2488939 33 33 public function __construct() { 34 34 $this->load_plugin_textdomain(); 35 $options = get_option( 'wp_proxy_options' );35 $options = get_option( 'wp_proxy_options', false ); 36 36 if ( $options ) { 37 37 $this->options = wp_parse_args( $options, $this->defualt_options() ); … … 51 51 } else { 52 52 add_option( 'wp_proxy_options', $this->defualt_options() ); 53 $this->options = $this->defualt_options(); 53 54 } 54 55 if ( is_admin() ) { … … 130 131 if ( 0 === $port || 65535 < $port ) { 131 132 add_settings_error( 'wp_proxy', 500, esc_html__( 'Wrong port', 'wp-proxy' ), 'error' ); 132 $wp_proxy_options['proxy_port'] = $this->options['proxy_port'];133 133 } else { 134 134 $wp_proxy_options['proxy_port'] = intval( wp_unslash( $_POST['proxy_port'] ) ); … … 429 429 */ 430 430 public function wp_proxy_option() { 431 $wp_proxy_options = get_option( 'wp_proxy_options', $this->defualt_options() ); 432 $this->options = $wp_proxy_options; ?> 431 $this->options = wp_parse_args( get_option( 'wp_proxy_options', [] ), $this->defualt_options() ); ?> 433 432 <div class="wrap"> 434 433 <h1><?php esc_html_e( 'WP Proxy', 'wp-proxy' ); ?></h1> -
wp-proxy/tags/1.3.99/readme.txt
r2439215 r2488939 4 4 Tags: proxy 5 5 Requires at least: 5.0.0 6 Tested up to: 5. 6.07 Stable tag: 1.3.9 6 Tested up to: 5.7.0 7 Stable tag: 1.3.99 8 8 Requires PHP: 5.0.0 9 9 License: GPLv2 or later … … 31 31 32 32 == Changelog == 33 = 1.3.99 = 34 tested up to wordpress 5.7 35 tested support 'https://proxy_server' 36 fix bugs 33 37 34 38 = 1.3.9 = -
wp-proxy/tags/1.3.99/wp-proxy.php
r2439215 r2488939 4 4 * Plugin URI: https://xn--vkuk.org/blog/wp-proxy 5 5 * Description: manage proxy for WordPress 6 * Version: 1.3.9 6 * Version: 1.3.99 7 7 * Author: sleepm 8 8 * Author URI: https://xn--vkuk.org/blog/ -
wp-proxy/trunk/class-wp-proxy.php
r2439215 r2488939 33 33 public function __construct() { 34 34 $this->load_plugin_textdomain(); 35 $options = get_option( 'wp_proxy_options' );35 $options = get_option( 'wp_proxy_options', false ); 36 36 if ( $options ) { 37 37 $this->options = wp_parse_args( $options, $this->defualt_options() ); … … 51 51 } else { 52 52 add_option( 'wp_proxy_options', $this->defualt_options() ); 53 $this->options = $this->defualt_options(); 53 54 } 54 55 if ( is_admin() ) { … … 130 131 if ( 0 === $port || 65535 < $port ) { 131 132 add_settings_error( 'wp_proxy', 500, esc_html__( 'Wrong port', 'wp-proxy' ), 'error' ); 132 $wp_proxy_options['proxy_port'] = $this->options['proxy_port'];133 133 } else { 134 134 $wp_proxy_options['proxy_port'] = intval( wp_unslash( $_POST['proxy_port'] ) ); … … 429 429 */ 430 430 public function wp_proxy_option() { 431 $wp_proxy_options = get_option( 'wp_proxy_options', $this->defualt_options() ); 432 $this->options = $wp_proxy_options; ?> 431 $this->options = wp_parse_args( get_option( 'wp_proxy_options', [] ), $this->defualt_options() ); ?> 433 432 <div class="wrap"> 434 433 <h1><?php esc_html_e( 'WP Proxy', 'wp-proxy' ); ?></h1> -
wp-proxy/trunk/readme.txt
r2439215 r2488939 4 4 Tags: proxy 5 5 Requires at least: 5.0.0 6 Tested up to: 5. 6.07 Stable tag: 1.3.9 6 Tested up to: 5.7.0 7 Stable tag: 1.3.99 8 8 Requires PHP: 5.0.0 9 9 License: GPLv2 or later … … 31 31 32 32 == Changelog == 33 = 1.3.99 = 34 tested up to wordpress 5.7 35 tested support 'https://proxy_server' 36 fix bugs 33 37 34 38 = 1.3.9 = -
wp-proxy/trunk/wp-proxy.php
r2439215 r2488939 4 4 * Plugin URI: https://xn--vkuk.org/blog/wp-proxy 5 5 * Description: manage proxy for WordPress 6 * Version: 1.3.9 6 * Version: 1.3.99 7 7 * Author: sleepm 8 8 * Author URI: https://xn--vkuk.org/blog/
Note: See TracChangeset
for help on using the changeset viewer.