From 909c41cae49c0a2854e795baceaba2033439dfb0 Mon Sep 17 00:00:00 2001 From: Mike Hemberger Date: Wed, 27 Jul 2022 12:49:18 -0400 Subject: [PATCH] 1.5.1 add genesis-scripts support --- CHANGES.md | 3 +++ includes/class-content-types.php | 2 +- user-locations.php | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 436aea0..970e787 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,8 @@ # Changes +## 1.5.1 (7/27/22) +* Added: Location support for Scripts metabox. + ## 1.5.0 (7/25/22) * Added: New `ul_get_location_roles` filter to allow other roles to be Locations. * Changed: Updated the updater. diff --git a/includes/class-content-types.php b/includes/class-content-types.php index 26f3783..356db23 100644 --- a/includes/class-content-types.php +++ b/includes/class-content-types.php @@ -64,7 +64,7 @@ public function register_post_types() { 'rewrite' => array( 'slug' => sanitize_title_with_dashes( User_Locations()->get_default_name('slug') ) ), 'show_ui' => true, 'show_in_nav_menus' => true, - 'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'publicize', 'genesis-cpt-archives-settings' ), + 'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'publicize', 'genesis-cpt-archives-settings', 'genesis-scripts' ), 'capabilities' => array( 'publish_posts' => 'publish_location_pages', 'edit_post' => 'edit_location_page', diff --git a/user-locations.php b/user-locations.php index af69b50..a957537 100644 --- a/user-locations.php +++ b/user-locations.php @@ -16,7 +16,7 @@ * License: GPL-2.0+ * License URI: http://www.gnu.org/licenses/gpl-2.0.txt * - * Version: 1.5.0 + * Version: 1.5.1 * * GitHub Plugin URI: https://github.com/bizbudding/user-locations * GitHub Branch: master @@ -172,7 +172,7 @@ public function __wakeup() { private function setup_constants() { // Plugin version. if ( ! defined( 'USER_LOCATIONS_VERSION' ) ) { - define( 'USER_LOCATIONS_VERSION', '1.5.0' ); + define( 'USER_LOCATIONS_VERSION', '1.5.1' ); } // Plugin Folder Path.