From: Steve Sutton Date: Tue, 29 Jan 2019 20:26:25 +0000 (-0500) Subject: Updates for jobs X-Git-Tag: v2.1.3^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=243d91d50e4d96989ca78d6b79a63ddb5a2c1603;p=WP-Plugins%2Fglm-employment.git Updates for jobs set publicly queryable to false. --- diff --git a/index.php b/index.php index 8775781..83748ed 100644 --- a/index.php +++ b/index.php @@ -2,7 +2,7 @@ /** * Plugin Name: Gaslight Media Employment * Description: Online Employment Application for Gaslight Media Clients. - * Version: 2.1.2 + * Version: 2.1.3 * Author: Steve Sutton * Author URI: http://www.gaslightmedia.com * License: All right reserved diff --git a/models/job.php b/models/job.php index 0a2bd7f..a6fa77e 100644 --- a/models/job.php +++ b/models/job.php @@ -300,12 +300,12 @@ class glm_employment_job 'menu_icon' => 'dashicons-businessman', 'capability_type' => 'post', 'hierarchical' => false, - 'rewrite' => array('slug' => 'jobs'), + //'rewrite' => array('slug' => 'jobs'), 'taxonomies' => array(GLM_EMP_TAX_CATEGORIES, GLM_EMP_TAX_DEPARTMENTS), 'show_in_menu' => true, 'show_ui' => true, 'query_var' => true, - 'publicly_queryable' => true + 'publicly_queryable' => false ); register_post_type(GLM_EMP_POST_TYPE, $args); register_taxonomy_for_object_type(GLM_EMP_TAX_CATEGORIES,