Plugin Directory

Changeset 2439215


Ignore:
Timestamp:
12/14/2020 04:47:51 PM (5 years ago)
Author:
sdffamt
Message:

tagging version 1.3.9

Location:
wp-proxy
Files:
25 edited
6 copied

Legend:

Unmodified
Added
Removed
  • wp-proxy/tags/1.3.9/class-wp-proxy.php

    r2308925 r2439215  
    3535        $options = get_option( 'wp_proxy_options' );
    3636        if ( $options ) {
    37             $this->options = $options;
     37            $this->options = wp_parse_args( $options, $this->defualt_options() );
    3838            if ( $options['enable'] ) {
    3939                add_filter( 'http_request_args', array( $this, 'http_request_args' ), 100, 2 );
     
    7575
    7676    /**
     77     * Magic call static
     78     *
     79     * @since 1.3.9
     80     */
     81    public static function __callStatic ( $name, $args ) {
     82        return call_user_func_array( array( new WP_Proxy, $name ), $args );
     83    }
     84
     85    /**
    7786     * I18n
    7887     *
     
    92101     */
    93102    protected function defualt_options() {
    94         $options               = array();
    95         $options['domains']    = '*.wordpress.org';
    96         $options['proxy_host'] = '127.0.0.1';
    97         $options['proxy_port'] = '1080';
    98         $options['username']   = '';
    99         $options['password']   = '';
    100         $options['type']       = '';
    101         $options['enable']     = false;
     103        $options                = array();
     104        $options['domains']     = '*.wordpress.org';
     105        $options['proxy_host']  = '127.0.0.1';
     106        $options['proxy_port']  = '1080';
     107        $options['username']    = '';
     108        $options['password']    = '';
     109        $options['type']        = '';
     110        $options['global_mode'] = false;
     111        $options['enable']      = false;
    102112        return $options;
    103113    }
     
    137147                    $wp_proxy_options['domains'] = str_replace( ' ', "\n", sanitize_text_field( wp_unslash( $_POST['domains'] ) ) );
    138148                }
     149                if ( isset( $_POST['global_mode'] ) ) {
     150                    if ( 'yes' === sanitize_text_field( wp_unslash( $_POST['global_mode'] ) ) ) {
     151                        $wp_proxy_options['global_mode'] = true;
     152                    } else {
     153                        $wp_proxy_options['global_mode'] = false;
     154                    }
     155                }
    139156                if ( isset( $_POST['enable'] ) ) {
    140157                    if ( 'yes' === sanitize_text_field( wp_unslash( $_POST['enable'] ) ) ) {
     
    159176        if ( isset( $_GET['wp_proxy'] ) && check_admin_referer( 'wp-proxy-quick-set', 'wp-proxy-quick-set' ) ) {
    160177            $wp_proxy_options = $this->options;
    161             if ( 'enable' === sanitize_text_field( wp_unslash( $_GET['wp_proxy'] ) ) ) {
     178            $val              = sanitize_text_field( wp_unslash( $_GET['wp_proxy'] ) );
     179            if ( 'enable' === $val ) {
    162180                $wp_proxy_options['enable'] = true;
    163             } else {
     181            } else if( 'disable' === $val ) {
     182                $wp_proxy_options['enable'] = false;
     183            } else if( 'enable_in_global_mode' === $val ) {
     184                $wp_proxy_options['global_mode'] = true;
     185                $wp_proxy_options['enable'] = true;
     186            } else if( 'disable_in_global_mode' === $val ) {
     187                $wp_proxy_options['global_mode'] = false;
    164188                $wp_proxy_options['enable'] = false;
    165189            }
     
    236260                );
    237261            }
     262            if ( $options['global_mode'] ) {
     263                $wp_admin_bar->add_node(
     264                    array(
     265                        'id'     => 'disable_wp_proxy_gloabl_mode',
     266                        'parent' => 'wp_proxy',
     267                        'title'  => __( 'Disabled' ) . ' ' . esc_html__( 'Global mode', 'wp-proxy' ),
     268                        'href'   => wp_nonce_url( add_query_arg( 'wp_proxy', 'disable_in_global_mode' ), 'wp-proxy-quick-set', 'wp-proxy-quick-set' ),
     269                    )
     270                );
     271            } else {
     272                $wp_admin_bar->add_node(
     273                    array(
     274                        'id'     => 'enable_wp_proxy_global_mode',
     275                        'parent' => 'wp_proxy',
     276                        'title'  => __( 'Enabled' ) . ' ' . esc_html__( 'Global mode', 'wp-proxy' ),
     277                        'href'   => wp_nonce_url( add_query_arg( 'wp_proxy', 'enable_in_global_mode' ), 'wp-proxy-quick-set', 'wp-proxy-quick-set' ),
     278                    )
     279                );
     280            }
    238281        }
    239282    }
     
    283326     */
    284327    public function send_through_proxy( $null, $url, $check, $home ) {
     328        if ( $this->options['global_mode'] ) {
     329            return true;
     330        }
    285331        $rules = explode( "\n", $this->options['domains'] );
    286332        $host  = false;
     
    358404            esc_html__( 'Proxy Domains', 'wp-proxy' ),
    359405            array( $this, 'proxy_domains_callback' ),
     406            'wp_proxy',
     407            'wp_proxy_config'
     408        );
     409        add_settings_field(
     410            'global_mode',
     411            esc_html__( 'Global mode', 'wp-proxy' ),
     412            array( $this, 'proxy_global_mode_callback' ),
    360413            'wp_proxy',
    361414            'wp_proxy_config'
     
    461514    public function proxy_domains_callback() {
    462515        ?>
    463             <textarea name="domains" id="domains" cols="40" rows="5" autocomplete="off"><?php echo esc_attr( $this->options['domains'] ); ?></textarea>
     516            <textarea name="domains" id="domains" cols="40" rows="5" autocomplete="off" <?php echo $this->options['global_mode'] ? 'disabled="disabled"' : '' ?>><?php echo esc_attr( $this->options['domains'] ); ?></textarea>
     517        <?php
     518    }
     519
     520    /**
     521     * Show proxy global_mode field
     522     *
     523     * @since 1.3.9
     524     */
     525    public function proxy_global_mode_callback() {
     526        ?>
     527            <select name="global_mode" id="global_mode">
     528            <?php if ( $this->options['global_mode'] ) { ?>
     529                <option value="yes" selected="selected"><?php esc_html_e( 'Yes' ); ?></option>
     530                <option value="no"><?php esc_html_e( 'No' ); ?></option>
     531            <?php } else { ?>
     532                <option value="yes"><?php esc_html_e( 'Yes' ); ?></option>
     533                <option value="no" selected="selected"><?php esc_html_e( 'No' ); ?></option>
     534            <?php } ?>
     535            </select>
    464536        <?php
    465537    }
  • wp-proxy/tags/1.3.9/languages/wp-proxy-de_DE.po

    r2217947 r2439215  
    1010"Content-Transfer-Encoding: 8bit\n"
    1111"POT-Creation-Date: 2019-12-22T03:28:20+00:00\n"
    12 "PO-Revision-Date: 2019-12-22 03:51+0000\n"
     12"PO-Revision-Date: 2020-12-14 16:17+0000\n"
    1313"X-Generator: Loco https://localise.biz/\n"
    1414"X-Domain: wp-proxy\n"
     
    1818"X-Loco-Version: 2.3.1; wp-5.3.2"
    1919
    20 #. Plugin Name of the plugin
    21 msgid "WordPress Proxy"
    22 msgstr "WordPress Proxy"
     20#: class-wp-proxy.php:381
     21msgid "Global mode"
     22msgstr ""
    2323
    24 #. Plugin URI of the plugin
     24#. Author URI of the plugin
     25msgid "https://xn--vkuk.org/blog/"
     26msgstr ""
     27
     28#. URI of the plugin
    2529msgid "https://xn--vkuk.org/blog/wp-proxy"
    2630msgstr "https://xn--vkuk.org/blog/wp-proxy"
     
    3034msgstr ""
    3135
     36#: class-wp-proxy.php:374
     37msgid "Proxy Domains"
     38msgstr ""
     39
    3240#. Author of the plugin
    3341msgid "sleepm"
    3442msgstr "sleepm"
    3543
    36 #: class-wp-proxy.php:106 class-wp-proxy.php:234
     44#. Name of the plugin
     45#: class-wp-proxy.php:117 class-wp-proxy.php:404
    3746msgid "WP Proxy"
    3847msgstr "Proxy-Einstellungen"
    3948
    40 #: class-wp-proxy.php:115
     49#: class-wp-proxy.php:127
    4150msgid "Wrong port"
    4251msgstr "Falsche Portnummer"
    43 
    44 #: class-wp-proxy.php:183
    45 msgid "Proxy Host"
    46 msgstr ""
    47 
    48 #: class-wp-proxy.php:190
    49 msgid "Proxy Port"
    50 msgstr ""
    51 
    52 #: class-wp-proxy.php:197
    53 msgid "Proxy Username"
    54 msgstr "Benutzername"
    55 
    56 #: class-wp-proxy.php:204
    57 msgid "Proxy Password"
    58 msgstr "Passwort"
    59 
    60 #: class-wp-proxy.php:211
    61 msgid "Proxy Domains"
    62 msgstr ""
    63 
    64 #: class-wp-proxy.php:218
    65 msgid "Enable"
    66 msgstr ""
    67 
    68 #: class-wp-proxy.php:256
    69 msgid "proxy host"
    70 msgstr ""
    71 
    72 #: class-wp-proxy.php:267
    73 msgid "proxy port"
    74 msgstr ""
    75 
    76 #: class-wp-proxy.php:278
    77 msgid "username"
    78 msgstr ""
    79 
    80 #: class-wp-proxy.php:289
    81 msgid "password"
    82 msgstr ""
    83 
    84 #: class-wp-proxy.php:313 class-wp-proxy.php:316
    85 msgid "yes"
    86 msgstr "Ja"
    87 
    88 #: class-wp-proxy.php:314 class-wp-proxy.php:317
    89 msgid "no"
    90 msgstr ""
  • wp-proxy/tags/1.3.9/languages/wp-proxy-ja_JP.po

    r2217947 r2439215  
    1010"Content-Transfer-Encoding: 8bit\n"
    1111"POT-Creation-Date: 2019-12-22T03:28:20+00:00\n"
    12 "PO-Revision-Date: 2019-12-22 03:53+0000\n"
     12"PO-Revision-Date: 2020-12-14 16:15+0000\n"
    1313"X-Generator: Loco https://localise.biz/\n"
    1414"X-Domain: wp-proxy\n"
     
    1818"X-Loco-Version: 2.3.1; wp-5.3.2"
    1919
    20 #. Plugin Name of the plugin
    21 msgid "WordPress Proxy"
    22 msgstr "WordPress Proxy"
     20#: class-wp-proxy.php:381
     21msgid "Global mode"
     22msgstr "グローバルモード"
    2323
    24 #. Plugin URI of the plugin
     24#. Author URI of the plugin
     25msgid "https://xn--vkuk.org/blog/"
     26msgstr ""
     27
     28#. URI of the plugin
    2529msgid "https://xn--vkuk.org/blog/wp-proxy"
    2630msgstr "https://xn--vkuk.org/blog/wp-proxy"
     
    3034msgstr ""
    3135
     36#: class-wp-proxy.php:374
     37msgid "Proxy Domains"
     38msgstr ""
     39
    3240#. Author of the plugin
    3341msgid "sleepm"
    3442msgstr "sleepm"
    3543
    36 #: class-wp-proxy.php:106 class-wp-proxy.php:234
     44#. Name of the plugin
     45#: class-wp-proxy.php:117 class-wp-proxy.php:404
    3746msgid "WP Proxy"
    3847msgstr "プロキシ設定"
    3948
    40 #: class-wp-proxy.php:115
     49#: class-wp-proxy.php:127
    4150msgid "Wrong port"
    4251msgstr "間違ったポート番号"
    43 
    44 #: class-wp-proxy.php:183
    45 msgid "Proxy Host"
    46 msgstr "プロキシホスト"
    47 
    48 #: class-wp-proxy.php:190
    49 msgid "Proxy Port"
    50 msgstr "プロキシポート"
    51 
    52 #: class-wp-proxy.php:197
    53 msgid "Proxy Username"
    54 msgstr "ユーザー名"
    55 
    56 #: class-wp-proxy.php:204
    57 msgid "Proxy Password"
    58 msgstr "パスワード"
    59 
    60 #: class-wp-proxy.php:211
    61 msgid "Proxy Domains"
    62 msgstr ""
    63 
    64 #: class-wp-proxy.php:218
    65 msgid "Enable"
    66 msgstr "有効にする"
    67 
    68 #: class-wp-proxy.php:256
    69 msgid "proxy host"
    70 msgstr ""
    71 
    72 #: class-wp-proxy.php:267
    73 msgid "proxy port"
    74 msgstr ""
    75 
    76 #: class-wp-proxy.php:278
    77 msgid "username"
    78 msgstr ""
    79 
    80 #: class-wp-proxy.php:289
    81 msgid "password"
    82 msgstr ""
    83 
    84 #: class-wp-proxy.php:313 class-wp-proxy.php:316
    85 msgid "yes"
    86 msgstr "はい"
    87 
    88 #: class-wp-proxy.php:314 class-wp-proxy.php:317
    89 msgid "no"
    90 msgstr "いや"
  • wp-proxy/tags/1.3.9/languages/wp-proxy-ru_RU.po

    r2217947 r2439215  
    1010"Content-Transfer-Encoding: 8bit\n"
    1111"POT-Creation-Date: 2019-12-21T11:15:37+00:00\n"
    12 "PO-Revision-Date: 2019-12-22 03:54+0000\n"
     12"PO-Revision-Date: 2020-12-14 16:13+0000\n"
    1313"X-Generator: Loco https://localise.biz/\n"
    1414"X-Domain: wp-proxy\n"
     
    1919"X-Loco-Version: 2.3.1; wp-5.3.2"
    2020
    21 #. Plugin Name of the plugin
    22 msgid "WordPress Proxy"
    23 msgstr "WordPress Proxy"
     21#: class-wp-proxy.php:381
     22msgid "Global mode"
     23msgstr ""
    2424
    25 #. Plugin URI of the plugin
     25#. Author URI of the plugin
     26msgid "https://xn--vkuk.org/blog/"
     27msgstr ""
     28
     29#. URI of the plugin
    2630msgid "https://xn--vkuk.org/blog/wp-proxy"
    2731msgstr "https://xn--vkuk.org/blog/wp-proxy"
     
    3135msgstr ""
    3236
     37#: class-wp-proxy.php:374
     38msgid "Proxy Domains"
     39msgstr ""
     40
    3341#. Author of the plugin
    3442msgid "sleepm"
    3543msgstr "sleepm"
    3644
    37 #: class-wp-proxy.php:106 class-wp-proxy.php:234
     45#. Name of the plugin
     46#: class-wp-proxy.php:117 class-wp-proxy.php:404
    3847msgid "WP Proxy"
    3948msgstr "Настройки прокси"
    4049
    41 #: class-wp-proxy.php:115
     50#: class-wp-proxy.php:127
    4251msgid "Wrong port"
    4352msgstr "Неверный номер порта"
    44 
    45 #: class-wp-proxy.php:183
    46 msgid "Proxy Host"
    47 msgstr "Прокси хост"
    48 
    49 #: class-wp-proxy.php:190
    50 msgid "Proxy Port"
    51 msgstr "Порт"
    52 
    53 #: class-wp-proxy.php:197
    54 msgid "Proxy Username"
    55 msgstr "Имя пользователя"
    56 
    57 #: class-wp-proxy.php:204
    58 msgid "Proxy Password"
    59 msgstr "Пароль"
    60 
    61 #: class-wp-proxy.php:218
    62 msgid "Enable"
    63 msgstr "Включить"
    64 
    65 #: class-wp-proxy.php:256
    66 msgid "proxy host"
    67 msgstr ""
    68 
    69 #: class-wp-proxy.php:267
    70 msgid "proxy port"
    71 msgstr ""
    72 
    73 #: class-wp-proxy.php:278
    74 msgid "username"
    75 msgstr ""
    76 
    77 #: class-wp-proxy.php:289
    78 msgid "password"
    79 msgstr ""
    80 
    81 #: class-wp-proxy.php:313 class-wp-proxy.php:316
    82 msgid "yes"
    83 msgstr "да"
    84 
    85 #: class-wp-proxy.php:314 class-wp-proxy.php:317
    86 msgid "no"
    87 msgstr ""
  • wp-proxy/tags/1.3.9/languages/wp-proxy-zh_CN.po

    r2217947 r2439215  
    1010"Content-Transfer-Encoding: 8bit\n"
    1111"POT-Creation-Date: 2019-12-22T03:28:20+00:00\n"
    12 "PO-Revision-Date: 2019-12-22 03:42+0000\n"
     12"PO-Revision-Date: 2020-12-14 16:11+0000\n"
    1313"X-Generator: Loco https://localise.biz/\n"
    1414"X-Domain: wp-proxy\n"
     
    1818"X-Loco-Version: 2.3.1; wp-5.3.2"
    1919
    20 #. Plugin Name of the plugin
    21 msgid "WordPress Proxy"
    22 msgstr "WordPress Proxy"
     20#: class-wp-proxy.php:381
     21msgid "Global mode"
     22msgstr "全局模式"
    2323
    24 #. Plugin URI of the plugin
     24#. Author URI of the plugin
     25msgid "https://xn--vkuk.org/blog/"
     26msgstr ""
     27
     28#. URI of the plugin
    2529msgid "https://xn--vkuk.org/blog/wp-proxy"
    2630msgstr "https://xn--vkuk.org/blog/wp-proxy"
     
    3034msgstr "管理 WordPress 代理"
    3135
     36#: class-wp-proxy.php:374
     37msgid "Proxy Domains"
     38msgstr "要代理的域名"
     39
    3240#. Author of the plugin
    3341msgid "sleepm"
    3442msgstr "sleepm"
    3543
    36 #: class-wp-proxy.php:106 class-wp-proxy.php:234
     44#. Name of the plugin
     45#: class-wp-proxy.php:117 class-wp-proxy.php:404
    3746msgid "WP Proxy"
    3847msgstr "代理设置"
    3948
    40 #: class-wp-proxy.php:115
     49#: class-wp-proxy.php:127
    4150msgid "Wrong port"
    4251msgstr "端口号错误"
    43 
    44 #: class-wp-proxy.php:183
    45 msgid "Proxy Host"
    46 msgstr "地址"
    47 
    48 #: class-wp-proxy.php:190
    49 msgid "Proxy Port"
    50 msgstr "端口"
    51 
    52 #: class-wp-proxy.php:197
    53 msgid "Proxy Username"
    54 msgstr "用户名"
    55 
    56 #: class-wp-proxy.php:204
    57 msgid "Proxy Password"
    58 msgstr "密码"
    59 
    60 #: class-wp-proxy.php:211
    61 msgid "Proxy Domains"
    62 msgstr "要代理的域名"
    63 
    64 #: class-wp-proxy.php:218
    65 msgid "Enable"
    66 msgstr "是否启用"
    67 
    68 #: class-wp-proxy.php:256
    69 msgid "proxy host"
    70 msgstr "代理地址"
    71 
    72 #: class-wp-proxy.php:267
    73 msgid "proxy port"
    74 msgstr "代理端口"
    75 
    76 #: class-wp-proxy.php:278
    77 msgid "username"
    78 msgstr "无需验证可不填"
    79 
    80 #: class-wp-proxy.php:289
    81 msgid "password"
    82 msgstr "无需验证可不填"
    83 
    84 #: class-wp-proxy.php:313 class-wp-proxy.php:316
    85 msgid "yes"
    86 msgstr "是"
    87 
    88 #: class-wp-proxy.php:314 class-wp-proxy.php:317
    89 msgid "no"
    90 msgstr "否"
  • wp-proxy/tags/1.3.9/languages/wp-proxy-zh_TW.po

    r2217947 r2439215  
    1010"Content-Transfer-Encoding: 8bit\n"
    1111"POT-Creation-Date: 2019-12-22T03:28:20+00:00\n"
    12 "PO-Revision-Date: 2019-12-22 03:42+0000\n"
     12"PO-Revision-Date: 2020-12-14 16:11+0000\n"
    1313"X-Generator: Loco https://localise.biz/\n"
    1414"X-Domain: wp-proxy\n"
     
    1818"X-Loco-Version: 2.3.1; wp-5.3.2"
    1919
    20 #. Plugin Name of the plugin
    21 msgid "WordPress Proxy"
    22 msgstr "WordPress Proxy"
     20#: class-wp-proxy.php:381
     21msgid "Global mode"
     22msgstr "全局模式"
    2323
    24 #. Plugin URI of the plugin
     24#. Author URI of the plugin
     25msgid "https://xn--vkuk.org/blog/"
     26msgstr ""
     27
     28#. URI of the plugin
    2529msgid "https://xn--vkuk.org/blog/wp-proxy"
    2630msgstr "https://xn--vkuk.org/blog/wp-proxy"
     
    3034msgstr "管理 WordPress 代理"
    3135
     36#: class-wp-proxy.php:374
     37msgid "Proxy Domains"
     38msgstr "要代理的域名"
     39
    3240#. Author of the plugin
    3341msgid "sleepm"
    3442msgstr "sleepm"
    3543
    36 #: class-wp-proxy.php:106 class-wp-proxy.php:234
     44#. Name of the plugin
     45#: class-wp-proxy.php:117 class-wp-proxy.php:404
    3746msgid "WP Proxy"
    3847msgstr "代理設置"
    3948
    40 #: class-wp-proxy.php:115
     49#: class-wp-proxy.php:127
    4150msgid "Wrong port"
    4251msgstr "端口號錯誤"
    43 
    44 #: class-wp-proxy.php:183
    45 msgid "Proxy Host"
    46 msgstr "地址"
    47 
    48 #: class-wp-proxy.php:190
    49 msgid "Proxy Port"
    50 msgstr "端口"
    51 
    52 #: class-wp-proxy.php:197
    53 msgid "Proxy Username"
    54 msgstr "用戶名"
    55 
    56 #: class-wp-proxy.php:204
    57 msgid "Proxy Password"
    58 msgstr "密碼"
    59 
    60 #: class-wp-proxy.php:211
    61 msgid "Proxy Domains"
    62 msgstr "要代理的域名"
    63 
    64 #: class-wp-proxy.php:218
    65 msgid "Enable"
    66 msgstr "是否啟用"
    67 
    68 #: class-wp-proxy.php:256
    69 msgid "proxy host"
    70 msgstr "代理地址"
    71 
    72 #: class-wp-proxy.php:267
    73 msgid "proxy port"
    74 msgstr "代理端口"
    75 
    76 #: class-wp-proxy.php:278
    77 msgid "username"
    78 msgstr "無需驗證可不填"
    79 
    80 #: class-wp-proxy.php:289
    81 msgid "password"
    82 msgstr "無需驗證可不填"
    83 
    84 #: class-wp-proxy.php:313 class-wp-proxy.php:316
    85 msgid "yes"
    86 msgstr "是"
    87 
    88 #: class-wp-proxy.php:314 class-wp-proxy.php:317
    89 msgid "no"
    90 msgstr "否"
  • wp-proxy/tags/1.3.9/languages/wp-proxy.pot

    r2217947 r2439215  
    11# Copyright (C) 2019 sleepm
    22# This file is distributed under the same license as the WordPress Proxy plugin.
     3#, fuzzy
    34msgid ""
    45msgstr ""
     
    1011"Content-Type: text/plain; charset=UTF-8\n"
    1112"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2019-12-22T03:28:20+00:00\n"
     13"POT-Creation-Date: 2020-12-14 15:47+0000\n"
    1314"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    14 "X-Generator: WP-CLI 2.4.0\n"
     15"X-Generator: Loco https://localise.biz/\n"
    1516"X-Domain: wp-proxy\n"
     17"Language: \n"
     18"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;"
    1619
    17 #. Plugin Name of the plugin
    18 msgid "WordPress Proxy"
     20#: class-wp-proxy.php:381
     21msgid "Global mode"
    1922msgstr ""
    2023
    21 #. Plugin URI of the plugin
     24#. Author URI of the plugin
     25msgid "https://xn--vkuk.org/blog/"
     26msgstr ""
     27
     28#. URI of the plugin
    2229msgid "https://xn--vkuk.org/blog/wp-proxy"
    2330msgstr ""
     
    2734msgstr ""
    2835
     36#: class-wp-proxy.php:374
     37msgid "Proxy Domains"
     38msgstr ""
     39
    2940#. Author of the plugin
    3041msgid "sleepm"
    3142msgstr ""
    3243
    33 #: class-wp-proxy.php:106
    34 #: class-wp-proxy.php:234
     44#. Name of the plugin
     45#: class-wp-proxy.php:117 class-wp-proxy.php:404
    3546msgid "WP Proxy"
    3647msgstr ""
    3748
    38 #: class-wp-proxy.php:115
     49#: class-wp-proxy.php:127
    3950msgid "Wrong port"
    4051msgstr ""
    41 
    42 #: class-wp-proxy.php:183
    43 msgid "Proxy Host"
    44 msgstr ""
    45 
    46 #: class-wp-proxy.php:190
    47 msgid "Proxy Port"
    48 msgstr ""
    49 
    50 #: class-wp-proxy.php:197
    51 msgid "Proxy Username"
    52 msgstr ""
    53 
    54 #: class-wp-proxy.php:204
    55 msgid "Proxy Password"
    56 msgstr ""
    57 
    58 #: class-wp-proxy.php:211
    59 msgid "Proxy Domains"
    60 msgstr ""
    61 
    62 #: class-wp-proxy.php:218
    63 msgid "Enable"
    64 msgstr ""
    65 
    66 #: class-wp-proxy.php:256
    67 msgid "proxy host"
    68 msgstr ""
    69 
    70 #: class-wp-proxy.php:267
    71 msgid "proxy port"
    72 msgstr ""
    73 
    74 #: class-wp-proxy.php:278
    75 msgid "username"
    76 msgstr ""
    77 
    78 #: class-wp-proxy.php:289
    79 msgid "password"
    80 msgstr ""
    81 
    82 #: class-wp-proxy.php:313
    83 #: class-wp-proxy.php:316
    84 msgid "yes"
    85 msgstr ""
    86 
    87 #: class-wp-proxy.php:314
    88 #: class-wp-proxy.php:317
    89 msgid "no"
    90 msgstr ""
  • wp-proxy/tags/1.3.9/readme.txt

    r2308925 r2439215  
    44Tags: proxy
    55Requires at least: 5.0.0
    6 Tested up to: 5.4.1
    7 Stable tag: 1.3.8
     6Tested up to: 5.6.0
     7Stable tag: 1.3.9
    88Requires PHP: 5.0.0
    99License: GPLv2 or later
     
    3232== Changelog ==
    3333
     34= 1.3.9 =
     35add global mode
     36
    3437= 1.3.8 =
    3538support proxy type: http(default), socks5, socks4, socks4a. ps: if use curl as request transport.
  • wp-proxy/tags/1.3.9/wp-proxy.php

    r2308925 r2439215  
    44 * Plugin URI: https://xn--vkuk.org/blog/wp-proxy
    55 * Description: manage proxy for WordPress
    6  * Version: 1.3.8
     6 * Version: 1.3.9
    77 * Author: sleepm
    88 * Author URI: https://xn--vkuk.org/blog/
  • wp-proxy/trunk/class-wp-proxy.php

    r2308925 r2439215  
    3535        $options = get_option( 'wp_proxy_options' );
    3636        if ( $options ) {
    37             $this->options = $options;
     37            $this->options = wp_parse_args( $options, $this->defualt_options() );
    3838            if ( $options['enable'] ) {
    3939                add_filter( 'http_request_args', array( $this, 'http_request_args' ), 100, 2 );
     
    7575
    7676    /**
     77     * Magic call static
     78     *
     79     * @since 1.3.9
     80     */
     81    public static function __callStatic ( $name, $args ) {
     82        return call_user_func_array( array( new WP_Proxy, $name ), $args );
     83    }
     84
     85    /**
    7786     * I18n
    7887     *
     
    92101     */
    93102    protected function defualt_options() {
    94         $options               = array();
    95         $options['domains']    = '*.wordpress.org';
    96         $options['proxy_host'] = '127.0.0.1';
    97         $options['proxy_port'] = '1080';
    98         $options['username']   = '';
    99         $options['password']   = '';
    100         $options['type']       = '';
    101         $options['enable']     = false;
     103        $options                = array();
     104        $options['domains']     = '*.wordpress.org';
     105        $options['proxy_host']  = '127.0.0.1';
     106        $options['proxy_port']  = '1080';
     107        $options['username']    = '';
     108        $options['password']    = '';
     109        $options['type']        = '';
     110        $options['global_mode'] = false;
     111        $options['enable']      = false;
    102112        return $options;
    103113    }
     
    137147                    $wp_proxy_options['domains'] = str_replace( ' ', "\n", sanitize_text_field( wp_unslash( $_POST['domains'] ) ) );
    138148                }
     149                if ( isset( $_POST['global_mode'] ) ) {
     150                    if ( 'yes' === sanitize_text_field( wp_unslash( $_POST['global_mode'] ) ) ) {
     151                        $wp_proxy_options['global_mode'] = true;
     152                    } else {
     153                        $wp_proxy_options['global_mode'] = false;
     154                    }
     155                }
    139156                if ( isset( $_POST['enable'] ) ) {
    140157                    if ( 'yes' === sanitize_text_field( wp_unslash( $_POST['enable'] ) ) ) {
     
    159176        if ( isset( $_GET['wp_proxy'] ) && check_admin_referer( 'wp-proxy-quick-set', 'wp-proxy-quick-set' ) ) {
    160177            $wp_proxy_options = $this->options;
    161             if ( 'enable' === sanitize_text_field( wp_unslash( $_GET['wp_proxy'] ) ) ) {
     178            $val              = sanitize_text_field( wp_unslash( $_GET['wp_proxy'] ) );
     179            if ( 'enable' === $val ) {
    162180                $wp_proxy_options['enable'] = true;
    163             } else {
     181            } else if( 'disable' === $val ) {
     182                $wp_proxy_options['enable'] = false;
     183            } else if( 'enable_in_global_mode' === $val ) {
     184                $wp_proxy_options['global_mode'] = true;
     185                $wp_proxy_options['enable'] = true;
     186            } else if( 'disable_in_global_mode' === $val ) {
     187                $wp_proxy_options['global_mode'] = false;
    164188                $wp_proxy_options['enable'] = false;
    165189            }
     
    236260                );
    237261            }
     262            if ( $options['global_mode'] ) {
     263                $wp_admin_bar->add_node(
     264                    array(
     265                        'id'     => 'disable_wp_proxy_gloabl_mode',
     266                        'parent' => 'wp_proxy',
     267                        'title'  => __( 'Disabled' ) . ' ' . esc_html__( 'Global mode', 'wp-proxy' ),
     268                        'href'   => wp_nonce_url( add_query_arg( 'wp_proxy', 'disable_in_global_mode' ), 'wp-proxy-quick-set', 'wp-proxy-quick-set' ),
     269                    )
     270                );
     271            } else {
     272                $wp_admin_bar->add_node(
     273                    array(
     274                        'id'     => 'enable_wp_proxy_global_mode',
     275                        'parent' => 'wp_proxy',
     276                        'title'  => __( 'Enabled' ) . ' ' . esc_html__( 'Global mode', 'wp-proxy' ),
     277                        'href'   => wp_nonce_url( add_query_arg( 'wp_proxy', 'enable_in_global_mode' ), 'wp-proxy-quick-set', 'wp-proxy-quick-set' ),
     278                    )
     279                );
     280            }
    238281        }
    239282    }
     
    283326     */
    284327    public function send_through_proxy( $null, $url, $check, $home ) {
     328        if ( $this->options['global_mode'] ) {
     329            return true;
     330        }
    285331        $rules = explode( "\n", $this->options['domains'] );
    286332        $host  = false;
     
    358404            esc_html__( 'Proxy Domains', 'wp-proxy' ),
    359405            array( $this, 'proxy_domains_callback' ),
     406            'wp_proxy',
     407            'wp_proxy_config'
     408        );
     409        add_settings_field(
     410            'global_mode',
     411            esc_html__( 'Global mode', 'wp-proxy' ),
     412            array( $this, 'proxy_global_mode_callback' ),
    360413            'wp_proxy',
    361414            'wp_proxy_config'
     
    461514    public function proxy_domains_callback() {
    462515        ?>
    463             <textarea name="domains" id="domains" cols="40" rows="5" autocomplete="off"><?php echo esc_attr( $this->options['domains'] ); ?></textarea>
     516            <textarea name="domains" id="domains" cols="40" rows="5" autocomplete="off" <?php echo $this->options['global_mode'] ? 'disabled="disabled"' : '' ?>><?php echo esc_attr( $this->options['domains'] ); ?></textarea>
     517        <?php
     518    }
     519
     520    /**
     521     * Show proxy global_mode field
     522     *
     523     * @since 1.3.9
     524     */
     525    public function proxy_global_mode_callback() {
     526        ?>
     527            <select name="global_mode" id="global_mode">
     528            <?php if ( $this->options['global_mode'] ) { ?>
     529                <option value="yes" selected="selected"><?php esc_html_e( 'Yes' ); ?></option>
     530                <option value="no"><?php esc_html_e( 'No' ); ?></option>
     531            <?php } else { ?>
     532                <option value="yes"><?php esc_html_e( 'Yes' ); ?></option>
     533                <option value="no" selected="selected"><?php esc_html_e( 'No' ); ?></option>
     534            <?php } ?>
     535            </select>
    464536        <?php
    465537    }
  • wp-proxy/trunk/languages/wp-proxy-de_DE.po

    r2217947 r2439215  
    1010"Content-Transfer-Encoding: 8bit\n"
    1111"POT-Creation-Date: 2019-12-22T03:28:20+00:00\n"
    12 "PO-Revision-Date: 2019-12-22 03:51+0000\n"
     12"PO-Revision-Date: 2020-12-14 16:17+0000\n"
    1313"X-Generator: Loco https://localise.biz/\n"
    1414"X-Domain: wp-proxy\n"
     
    1818"X-Loco-Version: 2.3.1; wp-5.3.2"
    1919
    20 #. Plugin Name of the plugin
    21 msgid "WordPress Proxy"
    22 msgstr "WordPress Proxy"
     20#: class-wp-proxy.php:381
     21msgid "Global mode"
     22msgstr ""
    2323
    24 #. Plugin URI of the plugin
     24#. Author URI of the plugin
     25msgid "https://xn--vkuk.org/blog/"
     26msgstr ""
     27
     28#. URI of the plugin
    2529msgid "https://xn--vkuk.org/blog/wp-proxy"
    2630msgstr "https://xn--vkuk.org/blog/wp-proxy"
     
    3034msgstr ""
    3135
     36#: class-wp-proxy.php:374
     37msgid "Proxy Domains"
     38msgstr ""
     39
    3240#. Author of the plugin
    3341msgid "sleepm"
    3442msgstr "sleepm"
    3543
    36 #: class-wp-proxy.php:106 class-wp-proxy.php:234
     44#. Name of the plugin
     45#: class-wp-proxy.php:117 class-wp-proxy.php:404
    3746msgid "WP Proxy"
    3847msgstr "Proxy-Einstellungen"
    3948
    40 #: class-wp-proxy.php:115
     49#: class-wp-proxy.php:127
    4150msgid "Wrong port"
    4251msgstr "Falsche Portnummer"
    43 
    44 #: class-wp-proxy.php:183
    45 msgid "Proxy Host"
    46 msgstr ""
    47 
    48 #: class-wp-proxy.php:190
    49 msgid "Proxy Port"
    50 msgstr ""
    51 
    52 #: class-wp-proxy.php:197
    53 msgid "Proxy Username"
    54 msgstr "Benutzername"
    55 
    56 #: class-wp-proxy.php:204
    57 msgid "Proxy Password"
    58 msgstr "Passwort"
    59 
    60 #: class-wp-proxy.php:211
    61 msgid "Proxy Domains"
    62 msgstr ""
    63 
    64 #: class-wp-proxy.php:218
    65 msgid "Enable"
    66 msgstr ""
    67 
    68 #: class-wp-proxy.php:256
    69 msgid "proxy host"
    70 msgstr ""
    71 
    72 #: class-wp-proxy.php:267
    73 msgid "proxy port"
    74 msgstr ""
    75 
    76 #: class-wp-proxy.php:278
    77 msgid "username"
    78 msgstr ""
    79 
    80 #: class-wp-proxy.php:289
    81 msgid "password"
    82 msgstr ""
    83 
    84 #: class-wp-proxy.php:313 class-wp-proxy.php:316
    85 msgid "yes"
    86 msgstr "Ja"
    87 
    88 #: class-wp-proxy.php:314 class-wp-proxy.php:317
    89 msgid "no"
    90 msgstr ""
  • wp-proxy/trunk/languages/wp-proxy-ja_JP.po

    r2217947 r2439215  
    1010"Content-Transfer-Encoding: 8bit\n"
    1111"POT-Creation-Date: 2019-12-22T03:28:20+00:00\n"
    12 "PO-Revision-Date: 2019-12-22 03:53+0000\n"
     12"PO-Revision-Date: 2020-12-14 16:15+0000\n"
    1313"X-Generator: Loco https://localise.biz/\n"
    1414"X-Domain: wp-proxy\n"
     
    1818"X-Loco-Version: 2.3.1; wp-5.3.2"
    1919
    20 #. Plugin Name of the plugin
    21 msgid "WordPress Proxy"
    22 msgstr "WordPress Proxy"
     20#: class-wp-proxy.php:381
     21msgid "Global mode"
     22msgstr "グローバルモード"
    2323
    24 #. Plugin URI of the plugin
     24#. Author URI of the plugin
     25msgid "https://xn--vkuk.org/blog/"
     26msgstr ""
     27
     28#. URI of the plugin
    2529msgid "https://xn--vkuk.org/blog/wp-proxy"
    2630msgstr "https://xn--vkuk.org/blog/wp-proxy"
     
    3034msgstr ""
    3135
     36#: class-wp-proxy.php:374
     37msgid "Proxy Domains"
     38msgstr ""
     39
    3240#. Author of the plugin
    3341msgid "sleepm"
    3442msgstr "sleepm"
    3543
    36 #: class-wp-proxy.php:106 class-wp-proxy.php:234
     44#. Name of the plugin
     45#: class-wp-proxy.php:117 class-wp-proxy.php:404
    3746msgid "WP Proxy"
    3847msgstr "プロキシ設定"
    3948
    40 #: class-wp-proxy.php:115
     49#: class-wp-proxy.php:127
    4150msgid "Wrong port"
    4251msgstr "間違ったポート番号"
    43 
    44 #: class-wp-proxy.php:183
    45 msgid "Proxy Host"
    46 msgstr "プロキシホスト"
    47 
    48 #: class-wp-proxy.php:190
    49 msgid "Proxy Port"
    50 msgstr "プロキシポート"
    51 
    52 #: class-wp-proxy.php:197
    53 msgid "Proxy Username"
    54 msgstr "ユーザー名"
    55 
    56 #: class-wp-proxy.php:204
    57 msgid "Proxy Password"
    58 msgstr "パスワード"
    59 
    60 #: class-wp-proxy.php:211
    61 msgid "Proxy Domains"
    62 msgstr ""
    63 
    64 #: class-wp-proxy.php:218
    65 msgid "Enable"
    66 msgstr "有効にする"
    67 
    68 #: class-wp-proxy.php:256
    69 msgid "proxy host"
    70 msgstr ""
    71 
    72 #: class-wp-proxy.php:267
    73 msgid "proxy port"
    74 msgstr ""
    75 
    76 #: class-wp-proxy.php:278
    77 msgid "username"
    78 msgstr ""
    79 
    80 #: class-wp-proxy.php:289
    81 msgid "password"
    82 msgstr ""
    83 
    84 #: class-wp-proxy.php:313 class-wp-proxy.php:316
    85 msgid "yes"
    86 msgstr "はい"
    87 
    88 #: class-wp-proxy.php:314 class-wp-proxy.php:317
    89 msgid "no"
    90 msgstr "いや"
  • wp-proxy/trunk/languages/wp-proxy-ru_RU.po

    r2217947 r2439215  
    1010"Content-Transfer-Encoding: 8bit\n"
    1111"POT-Creation-Date: 2019-12-21T11:15:37+00:00\n"
    12 "PO-Revision-Date: 2019-12-22 03:54+0000\n"
     12"PO-Revision-Date: 2020-12-14 16:13+0000\n"
    1313"X-Generator: Loco https://localise.biz/\n"
    1414"X-Domain: wp-proxy\n"
     
    1919"X-Loco-Version: 2.3.1; wp-5.3.2"
    2020
    21 #. Plugin Name of the plugin
    22 msgid "WordPress Proxy"
    23 msgstr "WordPress Proxy"
     21#: class-wp-proxy.php:381
     22msgid "Global mode"
     23msgstr ""
    2424
    25 #. Plugin URI of the plugin
     25#. Author URI of the plugin
     26msgid "https://xn--vkuk.org/blog/"
     27msgstr ""
     28
     29#. URI of the plugin
    2630msgid "https://xn--vkuk.org/blog/wp-proxy"
    2731msgstr "https://xn--vkuk.org/blog/wp-proxy"
     
    3135msgstr ""
    3236
     37#: class-wp-proxy.php:374
     38msgid "Proxy Domains"
     39msgstr ""
     40
    3341#. Author of the plugin
    3442msgid "sleepm"
    3543msgstr "sleepm"
    3644
    37 #: class-wp-proxy.php:106 class-wp-proxy.php:234
     45#. Name of the plugin
     46#: class-wp-proxy.php:117 class-wp-proxy.php:404
    3847msgid "WP Proxy"
    3948msgstr "Настройки прокси"
    4049
    41 #: class-wp-proxy.php:115
     50#: class-wp-proxy.php:127
    4251msgid "Wrong port"
    4352msgstr "Неверный номер порта"
    44 
    45 #: class-wp-proxy.php:183
    46 msgid "Proxy Host"
    47 msgstr "Прокси хост"
    48 
    49 #: class-wp-proxy.php:190
    50 msgid "Proxy Port"
    51 msgstr "Порт"
    52 
    53 #: class-wp-proxy.php:197
    54 msgid "Proxy Username"
    55 msgstr "Имя пользователя"
    56 
    57 #: class-wp-proxy.php:204
    58 msgid "Proxy Password"
    59 msgstr "Пароль"
    60 
    61 #: class-wp-proxy.php:218
    62 msgid "Enable"
    63 msgstr "Включить"
    64 
    65 #: class-wp-proxy.php:256
    66 msgid "proxy host"
    67 msgstr ""
    68 
    69 #: class-wp-proxy.php:267
    70 msgid "proxy port"
    71 msgstr ""
    72 
    73 #: class-wp-proxy.php:278
    74 msgid "username"
    75 msgstr ""
    76 
    77 #: class-wp-proxy.php:289
    78 msgid "password"
    79 msgstr ""
    80 
    81 #: class-wp-proxy.php:313 class-wp-proxy.php:316
    82 msgid "yes"
    83 msgstr "да"
    84 
    85 #: class-wp-proxy.php:314 class-wp-proxy.php:317
    86 msgid "no"
    87 msgstr ""
  • wp-proxy/trunk/languages/wp-proxy-zh_CN.po

    r2217947 r2439215  
    1010"Content-Transfer-Encoding: 8bit\n"
    1111"POT-Creation-Date: 2019-12-22T03:28:20+00:00\n"
    12 "PO-Revision-Date: 2019-12-22 03:42+0000\n"
     12"PO-Revision-Date: 2020-12-14 16:11+0000\n"
    1313"X-Generator: Loco https://localise.biz/\n"
    1414"X-Domain: wp-proxy\n"
     
    1818"X-Loco-Version: 2.3.1; wp-5.3.2"
    1919
    20 #. Plugin Name of the plugin
    21 msgid "WordPress Proxy"
    22 msgstr "WordPress Proxy"
     20#: class-wp-proxy.php:381
     21msgid "Global mode"
     22msgstr "全局模式"
    2323
    24 #. Plugin URI of the plugin
     24#. Author URI of the plugin
     25msgid "https://xn--vkuk.org/blog/"
     26msgstr ""
     27
     28#. URI of the plugin
    2529msgid "https://xn--vkuk.org/blog/wp-proxy"
    2630msgstr "https://xn--vkuk.org/blog/wp-proxy"
     
    3034msgstr "管理 WordPress 代理"
    3135
     36#: class-wp-proxy.php:374
     37msgid "Proxy Domains"
     38msgstr "要代理的域名"
     39
    3240#. Author of the plugin
    3341msgid "sleepm"
    3442msgstr "sleepm"
    3543
    36 #: class-wp-proxy.php:106 class-wp-proxy.php:234
     44#. Name of the plugin
     45#: class-wp-proxy.php:117 class-wp-proxy.php:404
    3746msgid "WP Proxy"
    3847msgstr "代理设置"
    3948
    40 #: class-wp-proxy.php:115
     49#: class-wp-proxy.php:127
    4150msgid "Wrong port"
    4251msgstr "端口号错误"
    43 
    44 #: class-wp-proxy.php:183
    45 msgid "Proxy Host"
    46 msgstr "地址"
    47 
    48 #: class-wp-proxy.php:190
    49 msgid "Proxy Port"
    50 msgstr "端口"
    51 
    52 #: class-wp-proxy.php:197
    53 msgid "Proxy Username"
    54 msgstr "用户名"
    55 
    56 #: class-wp-proxy.php:204
    57 msgid "Proxy Password"
    58 msgstr "密码"
    59 
    60 #: class-wp-proxy.php:211
    61 msgid "Proxy Domains"
    62 msgstr "要代理的域名"
    63 
    64 #: class-wp-proxy.php:218
    65 msgid "Enable"
    66 msgstr "是否启用"
    67 
    68 #: class-wp-proxy.php:256
    69 msgid "proxy host"
    70 msgstr "代理地址"
    71 
    72 #: class-wp-proxy.php:267
    73 msgid "proxy port"
    74 msgstr "代理端口"
    75 
    76 #: class-wp-proxy.php:278
    77 msgid "username"
    78 msgstr "无需验证可不填"
    79 
    80 #: class-wp-proxy.php:289
    81 msgid "password"
    82 msgstr "无需验证可不填"
    83 
    84 #: class-wp-proxy.php:313 class-wp-proxy.php:316
    85 msgid "yes"
    86 msgstr "是"
    87 
    88 #: class-wp-proxy.php:314 class-wp-proxy.php:317
    89 msgid "no"
    90 msgstr "否"
  • wp-proxy/trunk/languages/wp-proxy-zh_TW.po

    r2217947 r2439215  
    1010"Content-Transfer-Encoding: 8bit\n"
    1111"POT-Creation-Date: 2019-12-22T03:28:20+00:00\n"
    12 "PO-Revision-Date: 2019-12-22 03:42+0000\n"
     12"PO-Revision-Date: 2020-12-14 16:11+0000\n"
    1313"X-Generator: Loco https://localise.biz/\n"
    1414"X-Domain: wp-proxy\n"
     
    1818"X-Loco-Version: 2.3.1; wp-5.3.2"
    1919
    20 #. Plugin Name of the plugin
    21 msgid "WordPress Proxy"
    22 msgstr "WordPress Proxy"
     20#: class-wp-proxy.php:381
     21msgid "Global mode"
     22msgstr "全局模式"
    2323
    24 #. Plugin URI of the plugin
     24#. Author URI of the plugin
     25msgid "https://xn--vkuk.org/blog/"
     26msgstr ""
     27
     28#. URI of the plugin
    2529msgid "https://xn--vkuk.org/blog/wp-proxy"
    2630msgstr "https://xn--vkuk.org/blog/wp-proxy"
     
    3034msgstr "管理 WordPress 代理"
    3135
     36#: class-wp-proxy.php:374
     37msgid "Proxy Domains"
     38msgstr "要代理的域名"
     39
    3240#. Author of the plugin
    3341msgid "sleepm"
    3442msgstr "sleepm"
    3543
    36 #: class-wp-proxy.php:106 class-wp-proxy.php:234
     44#. Name of the plugin
     45#: class-wp-proxy.php:117 class-wp-proxy.php:404
    3746msgid "WP Proxy"
    3847msgstr "代理設置"
    3948
    40 #: class-wp-proxy.php:115
     49#: class-wp-proxy.php:127
    4150msgid "Wrong port"
    4251msgstr "端口號錯誤"
    43 
    44 #: class-wp-proxy.php:183
    45 msgid "Proxy Host"
    46 msgstr "地址"
    47 
    48 #: class-wp-proxy.php:190
    49 msgid "Proxy Port"
    50 msgstr "端口"
    51 
    52 #: class-wp-proxy.php:197
    53 msgid "Proxy Username"
    54 msgstr "用戶名"
    55 
    56 #: class-wp-proxy.php:204
    57 msgid "Proxy Password"
    58 msgstr "密碼"
    59 
    60 #: class-wp-proxy.php:211
    61 msgid "Proxy Domains"
    62 msgstr "要代理的域名"
    63 
    64 #: class-wp-proxy.php:218
    65 msgid "Enable"
    66 msgstr "是否啟用"
    67 
    68 #: class-wp-proxy.php:256
    69 msgid "proxy host"
    70 msgstr "代理地址"
    71 
    72 #: class-wp-proxy.php:267
    73 msgid "proxy port"
    74 msgstr "代理端口"
    75 
    76 #: class-wp-proxy.php:278
    77 msgid "username"
    78 msgstr "無需驗證可不填"
    79 
    80 #: class-wp-proxy.php:289
    81 msgid "password"
    82 msgstr "無需驗證可不填"
    83 
    84 #: class-wp-proxy.php:313 class-wp-proxy.php:316
    85 msgid "yes"
    86 msgstr "是"
    87 
    88 #: class-wp-proxy.php:314 class-wp-proxy.php:317
    89 msgid "no"
    90 msgstr "否"
  • wp-proxy/trunk/languages/wp-proxy.pot

    r2217947 r2439215  
    11# Copyright (C) 2019 sleepm
    22# This file is distributed under the same license as the WordPress Proxy plugin.
     3#, fuzzy
    34msgid ""
    45msgstr ""
     
    1011"Content-Type: text/plain; charset=UTF-8\n"
    1112"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2019-12-22T03:28:20+00:00\n"
     13"POT-Creation-Date: 2020-12-14 15:47+0000\n"
    1314"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    14 "X-Generator: WP-CLI 2.4.0\n"
     15"X-Generator: Loco https://localise.biz/\n"
    1516"X-Domain: wp-proxy\n"
     17"Language: \n"
     18"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;"
    1619
    17 #. Plugin Name of the plugin
    18 msgid "WordPress Proxy"
     20#: class-wp-proxy.php:381
     21msgid "Global mode"
    1922msgstr ""
    2023
    21 #. Plugin URI of the plugin
     24#. Author URI of the plugin
     25msgid "https://xn--vkuk.org/blog/"
     26msgstr ""
     27
     28#. URI of the plugin
    2229msgid "https://xn--vkuk.org/blog/wp-proxy"
    2330msgstr ""
     
    2734msgstr ""
    2835
     36#: class-wp-proxy.php:374
     37msgid "Proxy Domains"
     38msgstr ""
     39
    2940#. Author of the plugin
    3041msgid "sleepm"
    3142msgstr ""
    3243
    33 #: class-wp-proxy.php:106
    34 #: class-wp-proxy.php:234
     44#. Name of the plugin
     45#: class-wp-proxy.php:117 class-wp-proxy.php:404
    3546msgid "WP Proxy"
    3647msgstr ""
    3748
    38 #: class-wp-proxy.php:115
     49#: class-wp-proxy.php:127
    3950msgid "Wrong port"
    4051msgstr ""
    41 
    42 #: class-wp-proxy.php:183
    43 msgid "Proxy Host"
    44 msgstr ""
    45 
    46 #: class-wp-proxy.php:190
    47 msgid "Proxy Port"
    48 msgstr ""
    49 
    50 #: class-wp-proxy.php:197
    51 msgid "Proxy Username"
    52 msgstr ""
    53 
    54 #: class-wp-proxy.php:204
    55 msgid "Proxy Password"
    56 msgstr ""
    57 
    58 #: class-wp-proxy.php:211
    59 msgid "Proxy Domains"
    60 msgstr ""
    61 
    62 #: class-wp-proxy.php:218
    63 msgid "Enable"
    64 msgstr ""
    65 
    66 #: class-wp-proxy.php:256
    67 msgid "proxy host"
    68 msgstr ""
    69 
    70 #: class-wp-proxy.php:267
    71 msgid "proxy port"
    72 msgstr ""
    73 
    74 #: class-wp-proxy.php:278
    75 msgid "username"
    76 msgstr ""
    77 
    78 #: class-wp-proxy.php:289
    79 msgid "password"
    80 msgstr ""
    81 
    82 #: class-wp-proxy.php:313
    83 #: class-wp-proxy.php:316
    84 msgid "yes"
    85 msgstr ""
    86 
    87 #: class-wp-proxy.php:314
    88 #: class-wp-proxy.php:317
    89 msgid "no"
    90 msgstr ""
  • wp-proxy/trunk/readme.txt

    r2308925 r2439215  
    44Tags: proxy
    55Requires at least: 5.0.0
    6 Tested up to: 5.4.1
    7 Stable tag: 1.3.8
     6Tested up to: 5.6.0
     7Stable tag: 1.3.9
    88Requires PHP: 5.0.0
    99License: GPLv2 or later
     
    3232== Changelog ==
    3333
     34= 1.3.9 =
     35add global mode
     36
    3437= 1.3.8 =
    3538support proxy type: http(default), socks5, socks4, socks4a. ps: if use curl as request transport.
  • wp-proxy/trunk/wp-proxy.php

    r2308925 r2439215  
    44 * Plugin URI: https://xn--vkuk.org/blog/wp-proxy
    55 * Description: manage proxy for WordPress
    6  * Version: 1.3.8
     6 * Version: 1.3.9
    77 * Author: sleepm
    88 * Author URI: https://xn--vkuk.org/blog/
Note: See TracChangeset for help on using the changeset viewer.