Making WordPress.org

Changeset 13659


Ignore:
Timestamp:
05/03/2024 02:31:58 AM (3 years ago)
Author:
dd32
Message:

Plugin Directory: Trademarks: Allow existing plugins to use wp-.

File:
1 edited

Legend:

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

    r13465 r13659  
    113113                'wocommerce',
    114114                'woocom-',
    115                 'woocommerce',  // technically ending with '-for-woocommerce' is allowed.
     115                'woocommerce', // technically ending with '-for-woocommerce' is allowed.
    116116                'woocomerce',
    117117                'woo-commerce',
    … …  
    146146                'opera.com'             => array( 'opera-' ),
    147147                'adobe.com'             => array( 'adobe-' ),
     148                'stripe.com'            => array( 'stripe-' ),
     149
     150                // Published plugins can use 'wp-'.
     151                'published-plugin'      => array( 'wp-' ),
    148152        );
    149153
    … …  
    300304                }
    301305
     306                // A published plugin gets some exceptions too.
     307                if ( $post && in_array( $post->post_status, [ 'publish', 'closed', 'disabled', 'approved' ] ) ) {
     308                        $exceptions[] = 'published-plugin';
     309                }
     310
    302311                return array_unique( $exceptions );
    303312        }
Note: See TracChangeset for help on using the changeset viewer.