[wp-trac] [WordPress Trac] #29879: theme_mod option length
WordPress Trac
noreply at wordpress.org
Tue Oct 7 18:49:09 UTC 2014
#29879: theme_mod option length
--------------------------+-----------------------------
Reporter: aubreypwd | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: 4.0
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Today I uploaded a theme that had a rather long name: `andrew-vista-
surgicalcloud-scheduleperfect-hybrid-wordpress-theme-3b5734edbcc7.zip`
It was downloaded from a BitBucket Repository and automatically included
this long name with SHA's, etc, so the folder in the .zip was named
`andrew-vista-surgicalcloud-scheduleperfect-hybrid-wordpress-theme-
3b5734edbcc7`, thus the uploaded theme folder created on the server was
named `andrew-vista-surgicalcloud-scheduleperfect-hybrid-wordpress-theme-
3b5734edbcc7`.
All was fine until I ran into a problem. Anything saved via `'type' =>
'theme_mod'`, including menus, was not saving. I did a look in my DB and
found that the key for the option was shorter than the folder name, see
http://prntscr.com/4tyxio
Not sure what the fix is, but this at least happened on two WordPress
installs.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29879>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list