Skip to content

Commit

Permalink
Merge pull request #7250 from pods-framework/feature/7218-fix-cap-fal…
Browse files Browse the repository at this point in the history
…lback
  • Loading branch information
sc0ttkclark authored Mar 25, 2024
2 parents 1707c60 + 3330c70 commit 86d73fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/PodsInit.php
Original file line number Diff line number Diff line change
Expand Up @@ -1234,10 +1234,10 @@ public function setup_content_types( $force = false ) {
$cpt_rewrite['slug'] = preg_replace( '/[^a-zA-Z0-9%\-_\/]/', '-', $cpt_rewrite['slug'] );
}

$capability_type = pods_v( 'capability_type', $post_type, 'post' );
$capability_type = pods_v( 'capability_type', $post_type, 'post', true );

if ( 'custom' === $capability_type ) {
$capability_type = pods_v( 'capability_type_custom', $post_type, 'post' );
$capability_type = pods_v( 'capability_type_custom', $post_type, pods_v( 'name', $post_type, 'post', true ), true );
}

$show_in_menu = (boolean) pods_v( 'show_in_menu', $post_type, true );
Expand Down

0 comments on commit 86d73fd

Please sign in to comment.