Changeset 46160 for trunk/src/wp-includes/class-wp-post-type.php
- Timestamp:
- 09/17/2019 07:57:18 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-post-type.php
r45735 r46160 514 514 public function add_supports() { 515 515 if ( ! empty( $this->supports ) ) { 516 add_post_type_support( $this->name, $this->supports ); 516 foreach ( $this->supports as $feature => $args ) { 517 if ( is_array( $args ) ) { 518 add_post_type_support( $this->name, $feature, $args ); 519 } else { 520 add_post_type_support( $this->name, $args ); 521 } 522 } 517 523 unset( $this->supports ); 518 524 } elseif ( false !== $this->supports ) {
Note: See TracChangeset
for help on using the changeset viewer.