Making WordPress.org

Changeset 10547


Ignore:
Timestamp:
12/29/2020 05:58:31 PM (5 years ago)
Author:
Ipstenu
Message:

Plugin Directory:

Add proper support for prohibited terms ending with a hyphen that have an exception, thank you.

Adding in some terms that are being abused.

Fixes #5560

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload-handler.php

    r10287 r10547  
    447447            'fb-',
    448448            'feedburner',
     449            'gberg',
    449450            'github-',
     451            'givewp-',
    450452            'google-',
    451453            'googles-',
    452454            'gravity-forms-',
    453455            'gutenberg',
     456            'guten-',
     457            'hubspot-',
    454458            'ig-',
    455459            'instagram',
     
    458462            'microsoft-',
    459463            'ninja-forms-',
     464            'oculus',
    460465            'paypal-',
    461466            'pinterest-',
     
    468473            'watson',
    469474            'windows-',
    470             'wocommerce', 
     475            'wocommerce',
    471476            'woocommerce',  // technically ending with '-for-woocommerce' is allowed.
    472477            'woo-commerce',
     
    481486        $trademark_exceptions = array(
    482487            'yoast.com'             => array( 'yoast' ),
    483             'automattic.com'        => array( 'akismet', 'jetpack', 'wordpress', 'woo', 'woo-', 'woocommerce' ),
    484             'facebook.com'          => array( 'facebook', 'whatsapp', 'instagram' ),
     488            'automattic.com'        => array( 'akismet', 'akismet-', 'jetpack', 'jetpack-', 'wordpress', 'woo', 'woo-', 'woocommerce', 'woocommerce-' ),
     489            'facebook.com'          => array( 'facebook', 'instagram', 'oculus', 'whatsapp' ),
    485490            'support.microsoft.com' => array( 'bing-', 'microsoft-' ),
    486491            'microsoft.com'         => array( 'bing-', 'microsoft-' ),
Note: See TracChangeset for help on using the changeset viewer.