[wp-trac] [WordPress Trac] #40070: Cannot remove theme if it contains periods

WordPress Trac noreply at wordpress.org
Wed Mar 8 07:15:29 UTC 2017


#40070: Cannot remove theme if it contains periods
----------------------------+-----------------------------
 Reporter:  svanlooy        |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  4.7.3
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-----------------------------
 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>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list