With ajax update theme the theme slug in post request is sanitized with wp_unslash and then the slash contain in the slug is removed.
With the global WordPress Updates page the request update-core.php?action=do-theme-upgrade work fine.
The theme roots sage (https://github.com/roots/sage) chane the default directory of the style.css so the stylesheet and theme option is saved in db like so ‘sage/resources’.
Why the slash is removed with the update theme ajax?
file: wp-admin/includes/ajax-actions.php, line: 4114
- The topic ‘Ajax Update theme error with slug contain slash’ is closed to new replies.