Update author.php
This commit is contained in:
parent
511bdc534a
commit
ca75bf0fb8
@ -90,6 +90,7 @@ $tabs['chapters'] = array(
|
||||
);
|
||||
|
||||
// Recommendations tab
|
||||
if ( user_can( $author_id, 'publish_fcn_recommendations' ) ) {
|
||||
$tabs['recommendations'] = array(
|
||||
'name' => __( 'Recommendations', 'fictioneer' ),
|
||||
'query_args' => array(
|
||||
@ -101,6 +102,7 @@ $tabs['recommendations'] = array(
|
||||
'classes' => [],
|
||||
'empty' => __( 'No recommendations published yet.', 'fictioneer' )
|
||||
);
|
||||
}
|
||||
|
||||
// Use first tab if queried tab is not available
|
||||
if ( ! array_key_exists( $current_tab, $tabs ) ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user