bookmark页面和图片问题

1687281558 分类:功能建议

建议bookmark页面增加手动换壁纸功能,某些壁纸太亮了,导致字体看不清且瞎眼

建议后台可关闭开启'登录后可拥有自定义书签页'按钮,保持纯净

建议上传图片自动按日期或md5或英文重命名,重名图片进行多次SQL查询且浪费资源

//图片按日期重命名 写到functions.php文件里面
function git_upload_filter($file) {
$time = date("YmdHis");
$file['name'] = $time . "" . mt_rand(1, 100) . "." . pathinfo($file['name'], PATHINFO_EXTENSION);
return $file;
}
add_filter('wp_handle_upload_prefilter', 'git_upload_filter');

 

 

回复

共1条回复 我来回复
One Nav 导航主题

Warning: mysqli_query(): open_basedir restriction in effect. File(/opt/rasp_php73/logs/alarm/alarm.log.2022-05-24) is not within the allowed path(s): (/www/wwwroot/www.iotheme.cn/:/tmp/) in /www/wwwroot/www.iotheme.cn/wp-includes/wp-db.php on line 2162

Warning: mysqli_query(/opt/rasp_php73/logs/alarm/alarm.log.2022-05-24): failed to open stream: Operation not permitted in /www/wwwroot/www.iotheme.cn/wp-includes/wp-db.php on line 2162

Warning: [OpenRASP] 20002 Fail to open php_stream of /opt/rasp_php73/logs/alarm/alarm.log.2022-05-24! in /www/wwwroot/www.iotheme.cn/wp-includes/wp-db.php on line 2162