Making WordPress.org

Ticket #2821: 2821.patch

File 2821.patch, 821 bytes (added by SergeyBiryukov, 8 years ago)
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload-handler.php

     
    8383                }
    8484
    8585                // Determine the plugin slug based on the name of the plugin in the main plugin file.
    86                 $this->plugin_slug = sanitize_title_with_dashes( $this->plugin['Name'] );
     86                $this->plugin_slug = sanitize_title( $this->plugin['Name'] );
    8787
    8888                // Make sure it doesn't use a slug deemed not to be used by the public.
    8989                if ( $this->has_reserved_slug() ) {