Making WordPress.org


Ignore:
Timestamp:
08/08/2019 10:04:27 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Plugin Directory: Adjust review tools and upload process to better address issues with reserved plugin names and trademark protected slugs:

  • Display known problematic IPs more prominently in Author Card.
  • Expand the list of reserved slugs and high value slugs.
  • Check for trademark protected slugs.
  • Block short plugin names (less than 5 characters).
  • Clarify that plugin name should be changed in both the main plugin file and readme.

Props Ipstenu.
Fixes #4664.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-review-tools.php

    r9089 r9096  
    3333     */
    3434    public static $reserved_slugs = [
     35        'apple',
     36        'contact-form-7',
     37        'facebook',
     38        'google',
     39        'instagram',
     40        'ios',
     41        'jetpack',
     42        'jquery',
     43        'microsoft',
     44        'paypal',
     45        'twitter',
     46        'woocommerce',
    3547        'wordpress',
    36         'woocommerce',
    37         'google',
     48        'yoast',
    3849        'youtube',
    39         'twitter',
    40         'facebook',
    41         'yoast',
    42         'jetpack',
    4350    ];
    4451
     
    5057    public static $restricted_slugs = [
    5158        // High-value plugin genres due to their popularity, often abused by spammers.
     59        'booking',
     60        'bookmark',
     61        'cookie',
    5262        'gallery',
    5363        'lightbox',
     64        'seo',
    5465        'sitemap',
    55         'bookmark',
     66        'slide',
    5667        'social',
    57         'cookie',
    58         'slide',
    59         'seo',
    6068
    6169        // Plugins we generally don't allow.
    6270        'autoblog',
    6371        'auto-blog',
    64         'booking',
     72        'framework',
     73        'library',
    6574        'plugin',
    6675        'spinning',
    67         'framework',
    6876    ];
    6977
     
    8795
    8896    /**
    89      * List of known problematic IPs
    90      *
    91      * @var array
    92      */
    93     public static $iffy_ips = [
    94         '2.240.',
    95         '2.241.',
    96         '5.102.170.',
    97         '5.102.171.',
    98         '38.78.',
    99         '47.15.',
    100         '49.50.124.',
    101         '65.33.104.38',
    102         '71.41.77.202',
    103         '76.73.108.',
    104         '80.131.192.168',
    105         '87.188.',
    106         '91.228.',
    107         '91.238.',
    108         '94.103.41.',
    109         '109.123.',
    110         '110.55.1.251',
    111         '110.55.4.248',
    112         '116.193.162.',
    113         '119.235.251.',
    114         '159.253.145.183',
    115         '173.171.9.190',
    116         '173.234.140.18',
    117         '188.116.36.',
    118         '217.87.',
    119     ];
    120 
    121     /**
    12297     * Displays links to plugin assets and automated flags.
    12398     */
Note: See TracChangeset for help on using the changeset viewer.