[wp-trac] [WordPress Trac] #40070: Cannot remove theme with Javascript if folder name contains periods
WordPress Trac
noreply at wordpress.org
Sat Mar 11 16:52:27 UTC 2017
#40070: Cannot remove theme with Javascript if folder name contains periods
-------------------------------------+-------------------------
Reporter: svanlooy | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.8
Component: Themes | Version: 4.7.3
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses: javascript
-------------------------------------+-------------------------
Changes (by SergeyBiryukov):
* keywords: has-patch needs-testing reporter-feedback => has-patch needs-
testing
* component: Administration => Themes
* milestone: Awaiting Review => 4.8
Old description:
> Hi. This could be vaguely related to 37924 but I've started versioning my
> themes and producing zip files with version numbers in them, ie
> `foo-2.1.6b.zip` - I've noticed that I can't delete them using the admin
> interface. I press the delete button and the slug name is `foo-216b` -
> the periods have been stripped out and the delete fails. So for a theme
> directory of `honw-0.0.1b` It fails. The front end gives a message
> "Deletion failed: The requested theme does not exist". The JSON payload
> is as follows:
> {{{
> {
> "success": false,
> "data": {
> "delete": "theme",
> "slug": "honw-001b",
> "errorMessage": "The requested theme does not exist."
> }
> }
> }}}
New description:
Hi. This could be vaguely related to #37924 but I've started versioning my
themes and producing zip files with version numbers in them, ie
`foo-2.1.6b.zip` - I've noticed that I can't delete them using the admin
interface. I press the delete button and the slug name is `foo-216b` - the
periods have been stripped out and the delete fails. So for a theme
directory of `honw-0.0.1b` It fails. The front end gives a message
"Deletion failed: The requested theme does not exist". The JSON payload is
as follows:
{{{
{
"success": false,
"data": {
"delete": "theme",
"slug": "honw-001b",
"errorMessage": "The requested theme does not exist."
}
}
}}}
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40070#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list