找回附件上传路径设置

Function代码

//找回上传设置,by minirizhi.com
if(get_option('upload_path')=='wp-content/uploads' || get_option('upload_path')==null) {
    update_option('upload_path',WP_CONTENT_DIR.'/uploads');
}
文章目录