Making WordPress.org


Ignore:
Timestamp:
06/05/2023 04:28:35 AM (18 months ago)
Author:
dd32
Message:

Plugin Directory: Allow for the plugin slug to be changed by the uploader *for new plugins*.

The slug can only be changed once by the submitter.

This removes the need for the plugin author to email us post-upload to request the slug be changed, in many cases.

Hopefully this will also reduce instances of an author requesting a slug change post-approval.

See #6107.

File:
1 edited

Legend:

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

    r12534 r12617  
    2020     * @var string
    2121     */
    22     protected $plugin_dir;
     22    public $plugin_dir;
    2323
    2424    /**
     
    2727     * @var string
    2828     */
    29     protected $plugin_root;
     29    public $plugin_root;
    3030
    3131    /**
     
    3434     * @var array
    3535     */
    36     protected $plugin;
     36    public $plugin;
    3737
    3838    /**
     
    4141     * @var string
    4242     */
    43     protected $plugin_slug;
     43    public $plugin_slug;
    4444
    4545    /**
     
    413413        $message = sprintf(
    414414            /* translators: 1: plugin name, 2: plugin slug, 3: plugins@wordpress.org */
    415             __( 'Thank you for uploading %1$s to the WordPress Plugin Directory. Your plugin has been given the initial slug of %2$s, however that is subject to change based on the results of your code review. If this slug is incorrect, please contact us immediately and tell us exactly what the correct slug should be. Remember, a plugin slug cannot be changed once your plugin is approved.' ),
     415            __( 'Thank you for uploading %1$s to the WordPress Plugin Directory. Your plugin has been given the initial slug of %2$s, however that is subject to change based on the results of your code review. If this slug is incorrect, please change it below. Remember, a plugin slug cannot be changed once your plugin is approved.' ),
    416416            esc_html( $this->plugin['Name'] ),
    417417            '<code>' . $this->plugin_slug . '</code>'
Note: See TracChangeset for help on using the changeset viewer.