Plugin Directory

Changeset 2414935


Ignore:
Timestamp:
11/09/2020 03:27:44 AM (5 years ago)
Author:
nekojira
Message:

Committing 1.6.0 to trunk

Location:
wp-php-console/trunk
Files:
7 added
1 deleted
8 edited

Legend:

Unmodified
Added
Removed
  • wp-php-console/trunk/languages/wp-php-console.pot

    r2097631 r2414935  
    1 # Copyright (C) 2019 Fulvio Notarstefano
     1# Copyright (C) 2020 Fulvio Notarstefano
    22# This file is distributed under the GPL-2.0+.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: WP PHP Console 1.5.4\n"
     5"Project-Id-Version: WP PHP Console 1.6.0\n"
    66"Report-Msgid-Bugs-To: https://github.com/unfulvio/wp-php-console\n"
    7 "POT-Creation-Date: 2019-05-30 03:39:12+00:00\n"
     7"POT-Creation-Date: 2020-11-09 03:25:23+00:00\n"
    88"MIME-Version: 1.0\n"
    99"Content-Type: text/plain; charset=utf-8\n"
    1010"Content-Transfer-Encoding: 8bit\n"
    11 "PO-Revision-Date: 2019-MO-DA HO:MI+ZONE\n"
     11"PO-Revision-Date: 2020-MO-DA HO:MI+ZONE\n"
    1212"Last-Translator: Fulvio Notarstefano <fulvio.notarstefano@gmail.com>\n"
    1313"Language-Team: Fulvio Notarstefano <fulvio.notarstefano@gmail.com>\n"
     
    2525"X-Generator: grunt-wp-i18n 1.0.3\n"
    2626
    27 #: includes/Plugin.php:113 includes/Settings.php:92
     27#: src/Admin/SettingsPage.php:88 src/Admin.php:86
    2828msgid "Settings"
    2929msgstr ""
    3030
    31 #: includes/Plugin.php:386
    32 #. translators: Placeholders: %1$s - WP PHP Console name, %2$s - opening HTML
    33 #. <a> link tag; %3$s closing HTML </a> link tag
    34 msgid ""
    35 "%1$s: Please remember to %2$sset a password%3$s if you want to enable the "
    36 "terminal."
    37 msgstr ""
    38 
    39 #. Plugin Name of the plugin/theme
    40 msgid "WP PHP Console"
    41 msgstr ""
    42 
    43 #: includes/Settings.php:99
     31#: src/Admin/SettingsPage.php:95
    4432msgid "Password"
    4533msgstr ""
    4634
    47 #: includes/Settings.php:103
     35#: src/Admin/SettingsPage.php:103
    4836msgid "Allow only on SSL"
    4937msgstr ""
    5038
    51 #: includes/Settings.php:107
     39#: src/Admin/SettingsPage.php:110
    5240msgid "Allowed IP Masks"
    5341msgstr ""
    5442
    55 #: includes/Settings.php:111
     43#: src/Admin/SettingsPage.php:117
    5644msgid "Register PC Class"
    5745msgstr ""
    5846
    59 #: includes/Settings.php:115
     47#: src/Admin/SettingsPage.php:124
    6048msgid "Show Call Stack"
    6149msgstr ""
    6250
    63 #: includes/Settings.php:119
     51#: src/Admin/SettingsPage.php:131
    6452msgid "Short Path Names"
    6553msgstr ""
    6654
    67 #: includes/Settings.php:153
     55#: src/Admin/SettingsPage.php:170
    6856msgid "Usage instructions:"
    6957msgstr ""
    7058
    71 #: includes/Settings.php:163
     59#: src/Admin/SettingsPage.php:179
     60#. translators: Placeholder: %s - PHP Console extension name
     61msgid "%s extension for Google Chrome"
     62msgstr ""
     63
     64#: src/Admin/SettingsPage.php:183
     65#. translators: Placeholders: %1$s - opening PHP <a> link tag, %2$s - closing
     66#. PHP </a> link tag
     67msgid ""
     68"If the Chrome extension is unavailable from the web store, you may "
     69"%1$sdownload and install it from the source%2$s."
     70msgstr ""
     71
     72#: src/Admin/SettingsPage.php:187
    7273msgid ""
    7374"Set a password for the eval terminal in the options below and hit \"Save "
     
    7576msgstr ""
    7677
    77 #: includes/Settings.php:164
     78#: src/Admin/SettingsPage.php:188
    7879msgid ""
    7980"Reload any page of your installation and click on the key icon in your "
     
    8182msgstr ""
    8283
    83 #: includes/Settings.php:165
     84#: src/Admin/SettingsPage.php:189
    8485msgid ""
    8586"From the eval terminal you can execute any PHP or WordPress specific "
     
    8788msgstr ""
    8889
    89 #: includes/Settings.php:168
     90#: src/Admin/SettingsPage.php:192
    9091#. translators: Placeholders: %1$s - PHP code snippet example, %2$s - Chrome
    9192#. javascript console shortcut
     
    9798msgstr ""
    9899
    99 #: includes/Settings.php:196
     100#: src/Admin/SettingsPage.php:296
    100101msgid "Required"
    101102msgstr ""
    102103
    103 #: includes/Settings.php:197
    104 msgid "The password for the eval terminal. If empty, the plugin will not work."
    105 msgstr ""
    106 
    107 #: includes/Settings.php:213 includes/Settings.php:262
    108 #: includes/Settings.php:288 includes/Settings.php:305
    109 msgid "Yes"
    110 msgstr ""
    111 
    112 #: includes/Settings.php:214
    113 msgid ""
    114 "Tick this option if you want the eval terminal to work only on a SSL "
    115 "connection."
    116 msgstr ""
    117 
    118 #: includes/Settings.php:230
    119 msgid "IP addresses (optional)"
    120 msgstr ""
    121 
    122 #: includes/Settings.php:231
     104#: src/Admin/SettingsPage.php:323
     105msgid "The password for the eval terminal. If empty, the connector will not work."
     106msgstr ""
     107
     108#: src/Admin/SettingsPage.php:336
    123109msgid ""
    124110"You may specify any of the following, to give access to specific IPs to the "
     
    126112msgstr ""
    127113
    128 #: includes/Settings.php:235
     114#: src/Admin/SettingsPage.php:340
    129115#. translators: Placeholders: %1$s - a single IP address, %2$s link to Varying
    130116#. Vagrant Vagrants project repository
     
    132118msgstr ""
    133119
    134 #: includes/Settings.php:241
     120#: src/Admin/SettingsPage.php:346
    135121#. translators: Placeholders: %1$s a range of IP addresses, %2$s - comma
    136122#. separated IP addresses
     
    138124msgstr ""
    139125
    140 #: includes/Settings.php:264
    141 msgid "Tick to register PC class in the global namespace."
    142 msgstr ""
    143 
    144 #: includes/Settings.php:268
     126#: src/Admin/SettingsPage.php:374
     127msgid "Yes"
     128msgstr ""
     129
     130#: src/Admin/SettingsPage.php:408
     131msgid ""
     132"Enable this option if you want the eval terminal to work only on a SSL "
     133"connection."
     134msgstr ""
     135
     136#: src/Admin/SettingsPage.php:422
     137msgid "Enable to register PC class in the global namespace."
     138msgstr ""
     139
     140#: src/Admin/SettingsPage.php:426
    145141#. translators: Placeholders: %1$s, %2$s and %3$s are PHP code snippets
    146142#. examples
     
    150146msgstr ""
    151147
    152 #: includes/Settings.php:289
    153 msgid ""
    154 "Tick to see the full call stack when PHP Console writes to the browser "
     148#: src/Admin/SettingsPage.php:443
     149msgid ""
     150"Enable to see the full call stack when PHP Console writes to the browser "
    155151"JavaScript console."
    156152msgstr ""
    157153
    158 #: includes/Settings.php:307
    159 msgid ""
    160 "Tick to shorten the length of PHP Console error sources and traces paths in "
    161 "browser JavaScript console for better readability."
    162 msgstr ""
    163 
    164 #: includes/Settings.php:311
     154#: src/Admin/SettingsPage.php:457
     155msgid ""
     156"Enable to shorten the length of PHP Console error sources and traces paths "
     157"in browser JavaScript console for better readability."
     158msgstr ""
     159
     160#: src/Admin/SettingsPage.php:461
    165161#. translators: Placeholders: %1$s - long server path, %2$s - shortened server
    166162#. path
     
    168164msgstr ""
    169165
     166#: src/Admin.php:61
     167#. translators: Placeholders: %1$s - WP PHP Console name, %2$s - opening HTML
     168#. <a> link tag; %3$s closing HTML </a> link tag
     169msgid ""
     170"%1$s: Please remember to %2$sset a password%3$s if you want to enable the "
     171"terminal."
     172msgstr ""
     173
     174#: src/Admin.php:87
     175msgid "GitHub"
     176msgstr ""
     177
     178#: src/Admin.php:88
     179msgid "Support"
     180msgstr ""
     181
     182#: src/Admin.php:89
     183msgid "Review"
     184msgstr ""
     185
     186#. Plugin Name of the plugin/theme
     187msgid "WP PHP Console"
     188msgstr ""
     189
    170190#. Plugin URI of the plugin/theme
    171191msgid "https://github.com/unfulvio/wp-php-console/"
     
    187207msgstr ""
    188208
    189 #: includes/Settings.php:150
     209#: src/Admin/SettingsPage.php:166
    190210#. translators: Placeholder: %s refers to the PHP Console library, pointing to
    191211#. its GitHub repository
     
    196216msgstr ""
    197217
    198 #: includes/Settings.php:160
    199 #. translators: Placeholder: %s represents the Google Chrome PHP Console
    200 #. extension download link
     218#: src/Admin/SettingsPage.php:177
     219#. translators: Placeholder: %s - the Google Chrome PHP Console extension
     220#. download link
    201221msgctxt "PHP Console, the Chrome Extension"
    202 msgid "Make sure you have downloaded and installed %s."
    203 msgstr ""
     222msgid "Make sure you have downloaded and installed the %s."
     223msgstr ""
  • wp-php-console/trunk/readme.txt

    r2097631 r2414935  
    55Requires at least: 3.6.0
    66Requires PHP: 5.6
    7 Tested up to: 5.2.1
    8 Stable tag: 1.5.4
    9 License: GPLv2 or later
    10 License URI: http://www.gnu.org/licenses/gpl-2.0.html
     7Tested up to: 5.5.3
     8Stable tag: 1.6.0
     9License: GPLv3 or later
     10License URI: http://www.gnu.org/licenses/gpl-3.0.html
    1111
    1212An implementation of PHP Console as a WordPress plugin.
     
    28281. First, install [Google Chrome extension PHP Console](https://chrome.google.com/webstore/detail/php-console/nfhmhhlpfleoednkpnnnkolmclajemef) from the [Chrome WebStore](https://chrome.google.com/webstore/search/php%20console?_category=extensions).
    2929Make sure the PHP Console Chrome extension is enabled through [chrome://extensions/](chrome://extensions/ "chrome://extensions/").
     30    **Important Note**
     31    If the Google Chrome extension is not available on the Chrome Web Store, you can manually install it [from source](https://github.com/barbushin/php-console-extension).
    3032
    31332. Then, add this plugin to your WordPress installation either by:
     
    128130
    129131== Changelog ==
     132
     133= 1.6.0 =
     134 * Misc: Add note about Chrome extension unavailability in web store
     135 * Misc: Add plugin admin action links
     136 * Misc: Improved settings handler
     137 * Misc: Updates PHP Console core library to v3.1.8
     138
     139= 1.5.5 =
     140* Misc: Add plugin admin action links
     141* Misc: Improved settings handler
    130142
    131143= 1.5.4 =
  • wp-php-console/trunk/uninstall.php

    r2097631 r2414935  
    99 *
    1010 * @author    Fulvio Notarstefano <fulvio.notarstefano@gmail.com>
    11  * @copyright Copyright (c) 2014-2019 Fulvio Notarstefano
     11 * @copyright Copyright (c) 2014-2020 Fulvio Notarstefano
    1212 * @license   http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
    1313 */
  • wp-php-console/trunk/vendor/composer/ClassLoader.php

    r2092752 r2414935  
    6161    {
    6262        if (!empty($this->prefixesPsr0)) {
    63             return call_user_func_array('array_merge', $this->prefixesPsr0);
     63            return call_user_func_array('array_merge', array_values($this->prefixesPsr0));
    6464        }
    6565
  • wp-php-console/trunk/vendor/composer/autoload_real.php

    r1824282 r2414935  
    1414    }
    1515
     16    /**
     17     * @return \Composer\Autoload\ClassLoader
     18     */
    1619    public static function getLoader()
    1720    {
  • wp-php-console/trunk/vendor/composer/installed.json

    r2097631 r2414935  
    22    {
    33        "name": "php-console/php-console",
    4         "version": "3.1.7",
    5         "version_normalized": "3.1.7.0",
     4        "version": "3.1.8",
     5        "version_normalized": "3.1.8.0",
    66        "source": {
    77            "type": "git",
    88            "url": "https://github.com/barbushin/php-console.git",
    9             "reference": "c171ec62669d5c616cfa62de7a30df3c6237e831"
     9            "reference": "aa1d71d4ea3dc91e126edc9aa4f3c10eb8559cff"
    1010        },
    1111        "dist": {
    1212            "type": "zip",
    13             "url": "https://api.github.com/repos/barbushin/php-console/zipball/c171ec62669d5c616cfa62de7a30df3c6237e831",
    14             "reference": "c171ec62669d5c616cfa62de7a30df3c6237e831",
     13            "url": "https://api.github.com/repos/barbushin/php-console/zipball/aa1d71d4ea3dc91e126edc9aa4f3c10eb8559cff",
     14            "reference": "aa1d71d4ea3dc91e126edc9aa4f3c10eb8559cff",
    1515            "shasum": ""
    1616        },
     
    2323            "psr/log": "^1.0"
    2424        },
    25         "time": "2018-02-25T12:43:21+00:00",
     25        "time": "2019-07-25T03:43:28+00:00",
    2626        "type": "library",
    2727        "installation-source": "dist",
  • wp-php-console/trunk/vendor/php-console/php-console/src/PhpConsole/Connector.php

    r1942762 r2414935  
    193193    /**
    194194     * Set IP masks of clients that will be allowed to connect to PHP Console
    195      * @param array $ipMasks Use *(star character) for "any numbers" placeholder array('192.168.*.*', '10.2.12*.*', '127.0.0.1')
     195     * @param array $ipMasks Use *(star character) for "any numbers" placeholder array('192.168.*.*', '10.2.12*.*', '127.0.0.1', '2001:0:5ef5:79fb:*:*:*:*')
    196196     */
    197197    public function setAllowedIpMasks(array $ipMasks) {
     
    489489                }
    490490                if(!$this->auth || $this->isAuthorized()) {
    491                     $response->isLocal = isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] == '127.0.0.1';
     491                    $response->isLocal = isset($_SERVER['REMOTE_ADDR']) && ($_SERVER['REMOTE_ADDR'] == '127.0.0.1' || $_SERVER['REMOTE_ADDR'] == '::1');
    492492                    $response->docRoot = isset($_SERVER['DOCUMENT_ROOT']) ? $_SERVER['DOCUMENT_ROOT'] : null;
    493493                    $response->sourcesBasePath = $this->sourcesBasePath;
     
    644644    public $time;
    645645}
    646 
  • wp-php-console/trunk/wp-php-console.php

    r2097631 r2414935  
    55 * Description:  An implementation of PHP Console for WordPress. Easily debug and trace PHP errors and warnings from your Chrome dev tools console using a Google Chrome extension.
    66 *
    7  * Version:      1.5.4
     7 * Version:      1.6.0
    88 *
    99 * Author:       Fulvio Notarstefano
     
    1717 *
    1818 * WP PHP Console
    19  * Copyright (c) 2014-2019 Fulvio Notarstefano <fulvio.notarstefano@gmail.com>
     19 * Copyright (c) 2014-2020 Fulvio Notarstefano <fulvio.notarstefano@gmail.com>
    2020 * and contributors https://github.com/unfulvio/wp-php-console/graphs/contributors
    2121 *
    2222 * PHP Console server library
    23  * Copyright (c) 2011-2019 by Barbushin Sergey <barbushin@gmail.com>
     23 * Copyright (c) 2011-2020 by Barbushin Sergey <barbushin@gmail.com>
    2424 *
    2525 * This program is free software; you can redistribute it and/or modify
     
    120120
    121121        // autoload plugin and vendor files
    122         $loader = require_once( plugin_dir_path( __FILE__ ) . 'vendor/autoload.php' );
     122        $loader = require_once plugin_dir_path( __FILE__ ) . 'vendor/autoload.php';
    123123
    124124        // register plugin namespace with autoloader
    125         $loader->addPsr4( 'WP_PHP_Console\\', __DIR__ . '/includes' );
    126 
    127         require_once plugin_dir_path( __FILE__ ) . 'includes/Functions.php';
     125        $loader->addPsr4( 'WP_PHP_Console\\', __DIR__ . '/src' );
     126
     127        require_once plugin_dir_path( __FILE__ ) . 'src/Functions.php';
    128128
    129129        wp_php_console();
Note: See TracChangeset for help on using the changeset viewer.