WPML
Trạng thái
Đang chờ nhà phát triển
Plugin/giao diện liên quan
WP Job Manager
Thẻ chủ đề
Compatibility

Tổng quan về lỗi

Khi sử dụng biểu mẫu ứng tuyển có thể chỉnh sửa do tiện ích bổ sung Resume Manager của WP Job Manager cung cấp, hồ sơ xuất hiện bằng tất cả ngôn ngữ trong danh sách thả xuống thay vì ngôn ngữ hiện được chọn.

Giải pháp tạm thời

Vui lòng đảm bảo có bản sao lưu toàn bộ trang web của bạn trước khi tiếp tục.


  • Mở tệp …/wp-content/plugins/wp-job-manager-resumes/includes/class-wp-resume-manager-apply.php.

  • Tìm dòng 83.

  • Bên trong phương thức get_user_resumes(), hãy thay thế đoạn mã sau:
    $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(),
    	]
    );

  • Bằng:
    // 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 
    	]
    );

Tất cả các lỗi đã ghi nhận →