Automattic / Automattic/WP-Job-Manager
WP Job Manager - Resume Manager - Resume Shown in All Languages When Using Application Form
- Dominant language
- PHP
- Stars
- 899
- Forks
- 369
- Avg merge
- 11h 37m
- Merged PRs (30d)
- 12
Description
### Is your feature request related to a problem? Please describe
When using the editable application form provided by WP Job Manager’s add-on Resume Manager with WPML, the resume appears in all languages in the dropdown instead of the currently selected language.
### Describe the solution you'd like
Please, make sure of having a full site backup of your site before proceeding.
- Open the …/wp-content/plugins/wp-job-manager-resumes/includes/class-wp-resume-manager-apply.php file.
- Look for line 83.
- Inside the `get_user_resumes()` method, replace the following snippet:
```
$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(),
]
);
```
- With:
```
$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
]
);
```
Contributor guide
Research direction
Open wp-content/plugins/wp-job-manager-resumes/includes/class-wp-resume-manager-apply.php and inspect get_user_resumes() around line 83, then check the application-form resume query with WPML. Done means the dropdown shows only resumes for the currently selected language instead of resumes from every language.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- backend, localization
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100