Version Description
- Improved accuracy of job search
- Fixed category filter dropdown in admin
Download this release
Release Info
Developer | mikejolley |
Plugin | WP Job Manager |
Version | 1.1.1 |
Comparing to | |
See all releases |
Code changes from version 1.1.0 to 1.1.1
includes/admin/class-wp-job-manager-category-walker.php
CHANGED
@@ -27,9 +27,9 @@ class WP_Job_Manager_Category_Walker extends Walker {
|
|
27 |
else
|
28 |
$pad = '';
|
29 |
|
30 |
-
$cat_name = apply_filters( 'list_product_cats', $
|
31 |
|
32 |
-
$value = isset( $args['value'] ) && $args['value'] == 'id' ? $
|
33 |
|
34 |
$output .= "\t<option class=\"level-$depth\" value=\"" . $value . "\"";
|
35 |
|
@@ -41,7 +41,7 @@ class WP_Job_Manager_Category_Walker extends Walker {
|
|
41 |
$output .= $pad . __( $cat_name, 'download_monitor' );
|
42 |
|
43 |
if ( ! empty( $args['show_count'] ) )
|
44 |
-
$output .= ' (' . $
|
45 |
|
46 |
$output .= "</option>\n";
|
47 |
}
|
27 |
else
|
28 |
$pad = '';
|
29 |
|
30 |
+
$cat_name = apply_filters( 'list_product_cats', $object->name, $object );
|
31 |
|
32 |
+
$value = isset( $args['value'] ) && $args['value'] == 'id' ? $object->term_id : $object->slug;
|
33 |
|
34 |
$output .= "\t<option class=\"level-$depth\" value=\"" . $value . "\"";
|
35 |
|
41 |
$output .= $pad . __( $cat_name, 'download_monitor' );
|
42 |
|
43 |
if ( ! empty( $args['show_count'] ) )
|
44 |
+
$output .= ' (' . $object->count . ')';
|
45 |
|
46 |
$output .= "</option>\n";
|
47 |
}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=mike.jol
|
|
4 |
Tags: job listing, job board, job, jobs, company
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 3.6
|
7 |
-
Stable tag: 1.1.
|
8 |
|
9 |
Manage job listings from the WordPress admin panel, and allow users to post jobs directly to your site.
|
10 |
|
@@ -72,6 +72,10 @@ The manual installation method involves downloading the plugin and uploading it
|
|
72 |
|
73 |
== Changelog ==
|
74 |
|
|
|
|
|
|
|
|
|
75 |
= 1.1.0 =
|
76 |
* Tweaked css clearfixes
|
77 |
* Use built in antispambot for encoding email.
|
4 |
Tags: job listing, job board, job, jobs, company
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 3.6
|
7 |
+
Stable tag: 1.1.1
|
8 |
|
9 |
Manage job listings from the WordPress admin panel, and allow users to post jobs directly to your site.
|
10 |
|
72 |
|
73 |
== Changelog ==
|
74 |
|
75 |
+
= 1.1.1 =
|
76 |
+
* Improved accuracy of job search
|
77 |
+
* Fixed category filter dropdown in admin
|
78 |
+
|
79 |
= 1.1.0 =
|
80 |
* Tweaked css clearfixes
|
81 |
* Use built in antispambot for encoding email.
|
wp-job-manager-functions.php
CHANGED
@@ -67,11 +67,13 @@ function get_job_listings( $args = array() ) {
|
|
67 |
WHERE meta_value LIKE '%%%s%%'
|
68 |
", $args['search_keywords'] ) );
|
69 |
|
70 |
-
$post_ids = $post_ids
|
71 |
-
SELECT
|
72 |
WHERE post_title LIKE '%%%s%%'
|
73 |
OR post_content LIKE '%%%s%%'
|
74 |
-
|
|
|
|
|
75 |
|
76 |
$query_args['post__in'] = $post_ids + array( 0 );
|
77 |
}
|
67 |
WHERE meta_value LIKE '%%%s%%'
|
68 |
", $args['search_keywords'] ) );
|
69 |
|
70 |
+
$post_ids = array_merge( $post_ids, $wpdb->get_col( $wpdb->prepare( "
|
71 |
+
SELECT ID FROM {$wpdb->posts}
|
72 |
WHERE post_title LIKE '%%%s%%'
|
73 |
OR post_content LIKE '%%%s%%'
|
74 |
+
AND post_type = 'job_listing'
|
75 |
+
AND post_status = 'publish'
|
76 |
+
", $args['search_keywords'], $args['search_keywords'] ) ) );
|
77 |
|
78 |
$query_args['post__in'] = $post_ids + array( 0 );
|
79 |
}
|
wp-job-manager.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: WP Job Manager
|
4 |
Plugin URI: http://mikejolley.com/projects/wp-job-manager/
|
5 |
Description: Manage job listings from the WordPress admin panel, and allow users to post jobs directly to your site.
|
6 |
-
Version: 1.1.
|
7 |
Author: Mike Jolley
|
8 |
Author URI: http://mikejolley.com
|
9 |
Requires at least: 3.5
|
@@ -28,7 +28,7 @@ class WP_Job_Manager {
|
|
28 |
*/
|
29 |
public function __construct() {
|
30 |
// Define constants
|
31 |
-
define( 'JOB_MANAGER_VERSION', '1.1.
|
32 |
define( 'JOB_MANAGER_PLUGIN_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
|
33 |
define( 'JOB_MANAGER_PLUGIN_URL', untrailingslashit( plugins_url( basename( plugin_dir_path( __FILE__ ) ), basename( __FILE__ ) ) ) );
|
34 |
|
3 |
Plugin Name: WP Job Manager
|
4 |
Plugin URI: http://mikejolley.com/projects/wp-job-manager/
|
5 |
Description: Manage job listings from the WordPress admin panel, and allow users to post jobs directly to your site.
|
6 |
+
Version: 1.1.1
|
7 |
Author: Mike Jolley
|
8 |
Author URI: http://mikejolley.com
|
9 |
Requires at least: 3.5
|
28 |
*/
|
29 |
public function __construct() {
|
30 |
// Define constants
|
31 |
+
define( 'JOB_MANAGER_VERSION', '1.1.1' );
|
32 |
define( 'JOB_MANAGER_PLUGIN_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
|
33 |
define( 'JOB_MANAGER_PLUGIN_URL', untrailingslashit( plugins_url( basename( plugin_dir_path( __FILE__ ) ), basename( __FILE__ ) ) ) );
|
34 |
|