Changeset 10755 for sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/handbook.php
- Timestamp:
- 03/04/2021 11:02:08 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/handbook.php
r10752 r10755 270 270 271 271 // Override the presumed label with a potentially customized value. 272 $this->label = $config['labels']['name']; 272 if ( ! empty( $config['labels']['name'] ) ) { 273 $this->label = $config['labels']['name']; 274 } 273 275 274 276 register_post_type( $this->post_type, $config ); … … 516 518 */ 517 519 public function o2_post_fragment( $post_fragment ) { 520 if ( empty( $post_fragment['id'] ) ) { 521 return $post_fragment; 522 } 523 518 524 $post = get_post( $post_fragment['id'] ); 519 525 if ( ! $post ) {
Note: See TracChangeset
for help on using the changeset viewer.