Skip to content

Commit

Permalink
One last correction to #17
Browse files Browse the repository at this point in the history
  • Loading branch information
carlomanf committed Jan 23, 2023
1 parent 1f3f26d commit 13c6123
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
{
Expand Down Expand Up @@ -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' ) );
}
}

Expand Down

0 comments on commit 13c6123

Please sign in to comment.