Plugin Directory

Changeset 1640937


Ignore:
Timestamp:
04/19/2017 10:59:36 PM (9 years ago)
Author:
GeekStreetWP
Message:

escape all the things and update

Location:
plugins-admin-bar
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • plugins-admin-bar/trunk/plugins-admin-bar.php

    r1640871 r1640937  
    44 * Plugin URI: https://wordpress.org/plugins/plugins-admin-bar/
    55 * Description: Add a top level menu item to the admin bar for plugin links.
    6  * Version: 1.2
     6 * Version: 1.3
    77 * Author: Russell Aaron
    88 * Author URI: http://russellenvy.com
     
    2222        $args = array(
    2323        'id' => 'network-plugins',
    24         'title' => 'Network Plugins',
    25         'href' => network_admin_url() . 'plugins.php',
     24        'title' => esc_html__( 'Network Plugins', 'plugins-admin-bar' ),
     25        'href' => esc_url( network_admin_url( '/plugins.php' ) ),
    2626        'parent' => 'site-name',
    2727        'meta' => array(
    2828            'class' => 'network-plugins',
    29             'title' => 'View Network Plugins'
     29            'title' => esc_html__( 'View Network Plugins', 'plugins-admin-bar' ),
    3030            )
    3131        );
     
    3434        $args = array(
    3535        'id' => 'network-plugins-add-new',
    36         'title' => 'Add New Network Plugin',
    37         'href' => network_admin_url() . 'plugin-install.php',
     36        'title' => esc_html__( 'Add New Network Plugin', 'plugins-admin-bar' ),
     37        'href' => esc_url( network_admin_url( '/plugin-install.php' ) ),
    3838        'parent' => 'network-plugins',
    3939        'meta' => array(
    4040            'class' => 'network-plugins-add-new',
    41             'title' => 'Add a new plugin to your network'
     41            'title' => esc_html__( 'Add a new plugin to your network', 'plugins-admin-bar' ),
    4242            )
    4343        );
     
    4646        $args = array(
    4747        'id' => 'network-plugins-add-popular',
    48         'title' => 'Add New Popular Plugin',
    49         'href' => network_admin_url() . 'plugin-install.php?tab=popular',
     48        'title' => esc_html__( 'Add New Popular Plugin', 'plugins-admin-bar' ),
     49        'href' => esc_url( network_admin_url( '/plugin-install.php?tab=popular' ) ),
    5050        'parent' => 'network-plugins-add-new',
    5151        'meta' => array(
    5252            'class' => 'network-plugins-add-popular',
    53             'title' => 'Add a new popular plugin'
     53            'title' => esc_html__( 'Add a new popular plugin', 'plugins-admin-bar' ),
    5454            )
    5555        );
     
    5858        $args = array(
    5959        'id' => 'network-plugins-add-recommended',
    60         'title' => 'Add New Recommended Plugin',
    61         'href' => network_admin_url() . 'plugin-install.php?tab=recommended',
     60        'title' => esc_html__( 'Add New Recommended Plugin', 'plugins-admin-bar' ),
     61        'href' => esc_url( network_admin_url( '/plugin-install.php?tab=recommended' ) ),
    6262        'parent' => 'network-plugins-add-new',
    6363        'meta' => array(
    6464            'class' => 'network-plugins-add-recommended',
    65             'title' => 'Add a new recommended plugin'
     65            'title' => esc_html__( 'Add a new recommended plugin', 'plugins-admin-bar' ),
    6666            )
    6767        );
     
    7070        $args = array(
    7171        'id' => 'network-plugins-add-favorites',
    72         'title' => 'Add New Favorites Plugin',
    73         'href' => network_admin_url() . 'plugin-install.php?tab=favorites',
     72        'title' => esc_html__( 'Add New Favorites Plugin', 'plugins-admin-bar' ),
     73        'href' => esc_url( network_admin_url( '/plugin-install.php?tab=favorites' ) ),
    7474        'parent' => 'network-plugins-add-new',
    7575        'meta' => array(
    7676            'class' => 'network-plugins-add-favorites',
    77             'title' => 'Add a new favorites plugin'
     77            'title' => esc_html__( 'Add a new favorites plugin', 'plugins-admin-bar' ),
    7878            )
    7979        );
     
    8282        $args = array(
    8383        'id' => 'network-plugins-active',
    84         'title' => 'View Network Active Plugins',
    85         'href' => network_admin_url() . 'plugins.php?plugin_status=active',
     84        'title' => esc_html__( 'View Network Active Plugins', 'plugins-admin-bar' ),
     85        'href' => esc_url( network_admin_url( '/plugins.php?plugin_status=active' ) ),
    8686        'parent' => 'network-plugins',
    8787        'meta' => array(
    8888            'class' => 'network-plugins-active',
    89             'title' => 'View All Network Activated Plugins'
     89            'title' => esc_html__( 'View All Network Activated Plugins', 'plugins-admin-bar' ),
    9090            )
    9191        );
     
    9494        $args = array(
    9595        'id' => 'network-plugins-inactive',
    96         'title' => 'View Network Inactive Plugins',
    97         'href' => network_admin_url() . 'plugins.php?plugin_status=inactive',
     96        'title' => esc_html__( 'View Network Inactive Plugins', 'plugins-admin-bar' ),
     97        'href' => esc_url( network_admin_url( '/plugins.php?plugin_status=inactive' ) ),
    9898        'parent' => 'network-plugins',
    9999        'meta' => array(
    100100            'class' => 'network-plugins-inactive',
    101             'title' => 'View All Network Inactivated Plugins'
     101            'title' => esc_html__( 'View All Network Inactivated Plugins', 'plugins-admin-bar' ),
    102102            )
    103103        );
     
    106106        $args = array(
    107107        'id' => 'network-plugins-mustuse',
    108         'title' => 'View Network Must Use Plugins',
    109         'href' => network_admin_url() . 'plugins.php?plugin_status=mustuse',
     108        'title' => esc_html__( 'View Network Must Use Plugins','plugins-admin-bar' ),
     109        'href' => esc_url( network_admin_url( '/plugins.php?plugin_status=mustuse' ) ),
    110110        'parent' => 'network-plugins',
    111111        'meta' => array(
    112112            'class' => 'network-plugins-mustuse',
    113             'title' => 'View All Network Must Use Plugins'
     113            'title' => esc_html__( 'View All Network Must Use Plugins','plugins-admin-bar' ),
    114114            )
    115115        );
     
    118118        $args = array(
    119119        'id' => 'installed-plugins',
    120         'title' => 'Plugins',
    121         'href' => admin_url() . 'plugins.php',
     120        'title' => esc_html__( 'Plugins', 'plugins-admin-bar' ),
     121        'href' => esc_url( admin_url( '/plugins.php' ) ),
    122122        'parent' => 'site-name',
    123123        'meta' => array(
    124124            'class' => 'plugins',
    125             'title' => 'View Plugins'
     125            'title' => esc_html__( 'View Plugins', 'plugins-admin-bar' ),
    126126            )
    127127        );
     
    130130        $args = array(
    131131        'id' => 'active-plugins',
    132         'title' => 'Active Plugins',
    133         'href' => admin_url() . 'plugins.php?plugin_status=active',
     132        'title' => esc_html__( 'Active Plugins', 'plugins-admin-bar' ),
     133        'href' => esc_url( admin_url( '/plugins.php?plugin_status=active' ) ),
    134134        'parent' => 'installed-plugins',
    135135        'meta' => array(
    136136            'class' => 'active-plugins',
    137             'title' => 'Active Plugins'
     137            'title' => esc_html__( 'Active Plugins', 'plugins-admin-bar' ),
    138138            )
    139139        );
     
    142142        $args = array(
    143143        'id' => 'inactive-plugins',
    144         'title' => 'Inactive Plugins',
    145         'href' => admin_url() . 'plugins.php?plugin_status=inactive',
     144        'title' => esc_html__( 'Inactive Plugins', 'plugins-admin-bar' ),
     145        'href' => esc_url( admin_url( '/plugins.php?plugin_status=inactive' ) ),
    146146        'parent' => 'installed-plugins',
    147147        'meta' => array(
    148148            'class' => 'inactive-plugins',
    149             'title' => 'Inactive Plugins'
     149            'title' => esc_html__( 'Inactive Plugins', 'plugins-admin-bar' ),
    150150            )
    151151        );
     
    159159        $args = array(
    160160        'id' => 'network-single-admin-plugins',
    161         'title' => 'Plugins'. print_r($plugins_checked,1),
    162         'href' => admin_url() . 'plugins.php',
     161        'title' => esc_html__( 'Plugins', 'plugins-admin-bar' ),
     162        'href' => esc_url( admin_url( '/plugins.php' ) ),
    163163        'parent' => 'site-name',
    164164        'meta' => array(
    165165            'class' => 'network-single-admin-plugins',
    166             'title' => 'View Plugins'
     166            'title' => esc_html__( 'View Plugins', 'plugins-admin-bar' ),
    167167            )
    168168        );
     
    172172        $args = array(
    173173        'id' => 'network-single-admin-plugins-active',
    174         'title' => 'Active Plugins',
    175         'href' => admin_url() . 'plugins.php?plugin_status=active',
     174        'title' => esc_html__( 'Active Plugins', 'plugins-admin-bar' ),
     175        'href' => esc_url( admin_url( '/plugins.php?plugin_status=active' ) ),
    176176        'parent' => 'network-single-admin-plugins',
    177177        'meta' => array(
    178178            'class' => 'network-single-admin-plugins-',
    179             'title' => 'Active Plugins'
     179            'title' => esc_html__( 'Active Plugins', 'plugins-admin-bar' ),
    180180            )
    181181        );
     
    185185        $args = array(
    186186        'id' => 'network-single-admin-plugins-inactive',
    187         'title' => 'Inactive Plugins',
    188         'href' => admin_url() . 'plugins.php?plugin_status=inactive',
     187        'title' => esc_html__( 'Inactive Plugins', 'plugins-admin-bar' ),
     188        'href' => esc_url( admin_url( '/plugins.php?plugin_status=inactive' ) ),
    189189        'parent' => 'network-single-admin-plugins',
    190190        'meta' => array(
    191191            'class' => 'network-single-admin-plugins-inactive',
    192             'title' => 'Inactive Plugins'
     192            'title' => esc_html__( 'Inactive Plugins', 'plugins-admin-bar' ),
    193193            )
    194194        );
     
    202202        $args = array(
    203203        'id' => 'single-plugins',
    204         'title' => 'Plugins',
    205         'href' => admin_url() . 'plugins.php',
     204        'title' => esc_html__( 'Plugins', 'plugins-admin-bar' ),
     205        'href' => esc_url( admin_url( '/plugins.php' ) ),
    206206        'parent' => 'site-name',
    207207        'meta' => array(
    208208            'class' => 'single-plugins',
    209             'title' => 'View Plugins'
     209            'title' => esc_html__( 'View Plugins', 'plugins-admin-bar' ),
    210210            )
    211211        );
     
    215215        $args = array(
    216216        'id' => 'plugins-add-new',
    217         'title' => 'Add New Plugin',
    218         'href' => admin_url() . 'plugin-install.php',
     217        'title' => esc_html__( 'Add New Plugin', 'plugins-admin-bar' ),
     218        'href' => esc_url( admin_url( '/plugin-install.php' ) ),
    219219        'parent' => 'single-plugins',
    220220        'meta' => array(
    221221            'class' => 'single-plugins-add-new',
    222             'title' => 'Add a new plugin'
     222            'title' => esc_html__( 'Add a new plugin', 'plugins-admin-bar' ),
    223223            )
    224224        );
     
    228228        $args = array(
    229229        'id' => 'single-plugins-active',
    230         'title' => 'Active Plugins',
    231         'href' => admin_url() . 'plugins.php?plugin_status=active',
     230        'title' => esc_html__( 'Active Plugins', 'plugins-admin-bar' ),
     231        'href' => esc_url( admin_url( '/plugins.php?plugin_status=active' ) ),
    232232        'parent' => 'single-plugins',
    233233        'meta' => array(
    234234            'class' => 'single-plugins-active',
    235             'title' => 'Active Plugins'
     235            'title' => esc_html__( 'Active Plugins', 'plugins-admin-bar' ),
    236236            )
    237237        );
     
    241241        $args = array(
    242242        'id' => 'single-plugins-inactive',
    243         'title' => 'Inactive Plugins',
    244         'href' => admin_url() . 'plugins.php?plugin_status=inactive',
     243        'title' => esc_html__( 'Inactive Plugins', 'plugins-admin-bar' ),
     244        'href' => esc_url( admin_url( '/plugins.php?plugin_status=inactive' ) ),
    245245        'parent' => 'single-plugins',
    246246        'meta' => array(
    247247            'class' => 'single-plugins-inactive',
    248             'title' => 'Inactive Plugins'
     248            'title' => esc_html__( 'Inactive Plugins', 'plugins-admin-bar' ),
    249249            )
    250250        );
     
    254254        $args = array(
    255255        'id' => 'single-site-plugins-popular',
    256         'title' => 'Add Popuplar Plugins',
    257         'href' => admin_url() . 'plugin-install.php?tab=popular',
     256        'title' => esc_html__( 'Add Popuplar Plugins', 'plugins-admin-bar' ),
     257        'href' => esc_url( admin_url( '/plugin-install.php?tab=popular' ) ),
    258258        'parent' => 'plugins-add-new',
    259259        'meta' => array(
    260260            'class' => 'single-plugins-popular',
    261             'title' => 'Add popular plugins'
     261            'title' => esc_html__( 'Add popular plugins', 'plugins-admin-bar' ),
    262262            )
    263263        );
     
    267267        $args = array(
    268268        'id' => 'single-site-plugins-recommended',
    269         'title' => 'Add Recommended Plugins',
    270         'href' => admin_url() . 'plugin-install.php?tab=recommended',
     269        'title' => esc_html__( 'Add Recommended Plugins', 'plugins-admin-bar' ),
     270        'href' => esc_url( admin_url('/plugin-install.php?tab=recommended') ),
    271271        'parent' => 'plugins-add-new',
    272272        'meta' => array(
    273273            'class' => 'single-plugins-recommended',
    274             'title' => 'Add recommended plugins'
     274            'title' => esc_html__( 'Add recommended plugins', 'plugins-admin-bar' ),
    275275            )
    276276        );
     
    280280        $args = array(
    281281        'id' => 'single-site-plugins-favorites',
    282         'title' => 'Add Favorites Plugins',
    283         'href' => admin_url() . 'plugin-install.php?tab=favorites',
     282        'title' => esc_html__( 'Add Favorites Plugins', 'plugins-admin-bar' ),
     283        'href' => esc_url( admin_url( '/plugin-install.php?tab=favorites' ) ),
    284284        'parent' => 'plugins-add-new',
    285285        'meta' => array(
    286286            'class' => 'single-plugins-favorites',
    287             'title' => 'Add favorites plugins'
     287            'title' => esc_html__( 'Add favorites plugins', 'plugins-admin-bar' ),
    288288            )
    289289        );
  • plugins-admin-bar/trunk/readme.txt

    r1640871 r1640937  
    55Requires at least: 4.1
    66Tested up to: 4.7.3
    7 Stable tag: 1.2
     7Stable tag: 1.3
    88License: GPLv2
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8080== Changelog ==
    8181
     82= 1.3 =
     83* Minor Changes. Just needed to escape some stuff.
     84* Fixed: Escape the URL's
     85* Fixed: Escape the HTML's
     86* Updated: Ready for translations
     87
    8288= 1.2 =
    8389* Added: Conditional Checks for Multisite vs. Single Site.
Note: See TracChangeset for help on using the changeset viewer.