Skip to content

Commit

Permalink
Improve readability of default_args array
Browse files Browse the repository at this point in the history
  • Loading branch information
grappler committed Sep 14, 2013
1 parent f8d33db commit 5ee4725
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions classes/class-woothemes-testimonials-taxonomy.php
Expand Up @@ -81,7 +81,16 @@ public function __construct ( $token = 'testimonial-category', $singular = '', $
* @return array Default arguments.
*/
private function _get_default_args () {
return array( 'labels' => $this->_get_default_labels(), 'public' => true, 'hierarchical' => true, 'show_ui' => true, 'show_admin_column' => true, 'query_var' => true, 'show_in_nav_menus' => false, 'show_tagcloud' => false );
return array(
'labels' => $this->_get_default_labels(),
'public' => true,
'hierarchical' => true,
'show_ui' => true,
'show_admin_column' => true,
'query_var' => true,
'show_in_nav_menus' => false,
'show_tagcloud' => false
);
} // End _get_default_args()

/**
Expand Down Expand Up @@ -116,4 +125,4 @@ public function register () {
register_taxonomy( esc_attr( $this->token ), esc_attr( $this->post_type ), (array)$this->args );
} // End register()
} // End Class
?>
?>

0 comments on commit 5ee4725

Please sign in to comment.