Making WordPress.org


Ignore:
Timestamp:
12/08/2023 03:47:14 AM (10 months ago)
Author:
dd32
Message:

Plugin Directory: Record the reason a plugin is rejected.

See #5653.
Closes https://github.com/WordPress/wordpress.org/pull/107.

File:
1 edited

Legend:

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

    r12999 r13033  
    908908            'merged-into-core'              => __( 'Merged into Core', 'wporg-plugins' ),
    909909            'unused'                        => __( 'Unused', 'wporg-plugins' ),
     910        );
     911    }
     912
     913    /**
     914     * Returns the reasons for rejecting a plugin.
     915     *
     916     * @return array Rejection reason labels.
     917     */
     918    public static function get_rejection_reasons() {
     919        return array(
     920            '3-month'              => '3 months without completion',
     921            'core-supports'        => 'Code is already in core',
     922            'duplicate-copy'       => 'Duplicate (copy) of another Plugin',
     923            'library-or-framework' => 'Framework or Library Plugin',
     924            'generic'              => "Something we're just not hosting",
     925            'duplicate'            => 'New/renamed version of their own plugin',
     926            'wp-cli'               => 'WP-CLI Only Plugins',
     927            'storefront'           => 'Storefront',
     928            'not-owner'            => 'Not the submitters plugin',
     929            'script-insertion'     => 'Script Insertion Plugins are Dangerous',
     930            'demo'                 => 'Test/Demo plugin (non functional)',
     931            'translation'          => 'Translation of existing plugin',
     932            'banned'               => 'Banned developer trying to sneak back in',
     933            'author-request'       => 'Author requested not to continue',
     934            'other'                => 'OTHER: See notes',
    910935        );
    911936    }
Note: See TracChangeset for help on using the changeset viewer.