From 13c612390de158557b90e9cc74e10fc7485d2887 Mon Sep 17 00:00:00 2001 From: carlomanf Date: Mon, 23 Jan 2023 08:58:35 +0000 Subject: [PATCH] One last correction to #17 --- src/plugin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugin.php b/src/plugin.php index 180a3c5..48d559c 100644 --- a/src/plugin.php +++ b/src/plugin.php @@ -162,7 +162,7 @@ public function menu() $new_type_capability = 'author_funnels'; $parent_capability = $this->is_legacy ? 'edit_posts' : $new_type_capability; - add_menu_page( 'Funnels', 'Funnels', $parent_capability, $parent, '', 'dashicons-filter', 25 ); + add_menu_page( 'Funnels', 'Funnels', $parent_capability, $parent, '', 'dashicons-filter', 25 ); if ( $this->is_templated ) { @@ -372,7 +372,7 @@ private function database_upgrade_140() if ( strpos( $post->post_name, 'single-' ) === 0 ) { - wp_update_post( array( 'ID' => $post->ID, 'post_type' => 'wpfunnel_type', 'post_name' => substr( $post->post_name, 7 ) ) ); + wp_update_post( array( 'ID' => $post->ID, 'post_type' => 'wpfunnel_type' ) ); } }