Ticket #41901: patch-41901.diff
File patch-41901.diff, 504 bytes (added by , 7 years ago) |
---|
-
wp-admin/includes/ajax-actions.php
diff --git a/wp-admin/includes/ajax-actions.php b/wp-admin/includes/ajax-actions.php index e132ac8..1593511 100644
a b function wp_ajax_update_theme() { 3477 3477 ) ); 3478 3478 } 3479 3479 3480 $stylesheet = preg_replace( '/[^A-z0-9_\-]/', '', wp_unslash( $_POST['slug'] ));3480 $stylesheet = preg_replace( '/[^A-z0-9_\-]/', '', $_POST['slug'] ); 3481 3481 $status = array( 3482 3482 'update' => 'theme', 3483 3483 'slug' => $stylesheet,