From 243d91d50e4d96989ca78d6b79a63ddb5a2c1603 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Tue, 29 Jan 2019 15:26:25 -0500 Subject: [PATCH] Updates for jobs set publicly queryable to false. --- index.php | 2 +- models/job.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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, -- 2.17.1