WordPress.org

Making WordPress.org

Ticket #2953: 2953.patch

File 2953.patch, 847 bytes (added by SergeyBiryukov, 12 months ago)
  • wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload-handler.php

     
    8585                // Determine the plugin slug based on the name of the plugin in the main plugin file.
    8686                $this->plugin_slug = remove_accents( $this->plugin['Name'] );
    8787                $this->plugin_slug = preg_replace( '/[^a-z0-9 _.-]/i', '', $this->plugin_slug );
     88                $this->plugin_slug = str_replace( '_', '-', $this->plugin_slug );
    8889                $this->plugin_slug = sanitize_title_with_dashes( $this->plugin_slug );
    8990
    9091                if ( ! $this->plugin_slug ) {