| @@ 609-615 (lines=7) @@ | ||
| 606 | } |
|
| 607 | ||
| 608 | // set page template for this post.. |
|
| 609 | if ( isset( $input['page_template'] ) && 'page' == $post_type->name ) { |
|
| 610 | $page_template = $input['page_template']; |
|
| 611 | $page_templates = wp_get_theme()->get_page_templates( get_post( $post_id ) ); |
|
| 612 | if ( empty( $page_template ) || 'default' == $page_template || isset( $page_templates[ $page_template ] ) ) { |
|
| 613 | update_post_meta( $post_id, '_wp_page_template', $page_template ); |
|
| 614 | } |
|
| 615 | } |
|
| 616 | ||
| 617 | // Set like status for the post |
|
| 618 | /** This filter is documented in modules/likes.php */ |
|
| @@ 580-586 (lines=7) @@ | ||
| 577 | } |
|
| 578 | ||
| 579 | // set page template for this post.. |
|
| 580 | if ( isset( $input['page_template'] ) && 'page' == $post_type->name ) { |
|
| 581 | $page_template = $input['page_template']; |
|
| 582 | $page_templates = wp_get_theme()->get_page_templates( get_post( $post_id ) ); |
|
| 583 | if ( empty( $page_template ) || 'default' == $page_template || isset( $page_templates[ $page_template ] ) ) { |
|
| 584 | update_post_meta( $post_id, '_wp_page_template', $page_template ); |
|
| 585 | } |
|
| 586 | } |
|
| 587 | ||
| 588 | // Set like status for the post |
|
| 589 | /** This filter is documented in modules/likes.php */ |
|