WordPress.org

Make WordPress Core

Ticket #40070: 40070.diff

File 40070.diff, 500 bytes (added by MattyRob, 3 years ago)
  • wp-admin/includes/ajax-actions.php

     
    35073507                ) );
    35083508        }
    35093509
    3510         $stylesheet = preg_replace( '/[^A-z0-9_\-]/', '', wp_unslash( $_POST['slug'] ) );
     3510        $stylesheet = preg_replace( '/[^A-z0-9._\-]/', '', wp_unslash( $_POST['slug'] ) );
    35113511        $status     = array(
    35123512                'delete' => 'theme',
    35133513                'slug'   => $stylesheet,