WordPress > setting permalink option via script buggy?
问题 My theme's custom options panel has the following code... ` /* initialize the site options */ if(get_option('permalink_structure')==""){update_option('permalink_structure', '/%postname%/');} ` This checks the permalink option setting and since the WP default is "" which triggers the site.com/?p=x handler. This way, if the user has not yet set permalinks from the default, my script does it for them, by setting permalink to post name. Or at least that what I thought... However, I've had a few