Changeset 10768 for sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/handbook.php
- Timestamp:
- 03/05/2021 12:05:23 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/handbook.php
r10764 r10768 93 93 /** 94 94 * Constructor 95 * 96 * @param string $type The post type for the handbook. 95 97 */ 96 98 public function __construct( $type ) { 97 if ( 'handbook' !== $type ) { 98 $this->post_type = $type . '-handbook'; 99 } else { 100 $this->post_type = $type; 101 } 99 $this->post_type = sanitize_title( $type ); 102 100 103 101 $this->label = ucwords( str_replace( [ '-', '_' ], ' ', $this->post_type ) );
Note: See TracChangeset
for help on using the changeset viewer.