- 状态
- 等待作者
- 相关插件/主题
- WP Job Manager
- 主题标签
- Compatibility
问题概述
当使用由 WP Job Manager 的附加组件 Resume Manager 提供的可编辑申请表时,下拉菜单中会显示所有语言的简历,而不是当前所选语言的简历。
临时解决方法
请在继续操作前,确保对您的站点进行完整站点备份。
- 打开 …/wp-content/plugins/wp-job-manager-resumes/includes/class-wp-resume-manager-apply.php 文件。
- 找到第 83 行。
- 在
get_user_resumes()方法中,替换以下代码片段:$args = apply_filters( 'resume_manager_get_application_form_resumes_args', [ 'post_type' => 'resume', 'post_status' => [ 'publish', 'hidden' ], 'ignore_sticky_posts' => 1, 'posts_per_page' => -1, 'orderby' => 'date', 'order' => 'desc', 'author' => get_current_user_id(), ] );
- 替换为:
// WPML Workaround for compsupp-7819 $args = apply_filters( 'resume_manager_get_application_form_resumes_args', [ 'post_type' => 'resume', 'post_status' => [ 'publish', 'hidden' ], 'ignore_sticky_posts' => 1, 'posts_per_page' => -1, 'orderby' => 'date', 'order' => 'desc', 'author' => get_current_user_id(), 'suppress_filters' => false, //add this line ] );