Changeset 47219 for trunk/src/wp-admin/edit-form-advanced.php
- Timestamp:
- 02/09/2020 04:52:28 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-form-advanced.php
r47198 r47219 77 77 $action = isset( $action ) ? $action : ''; 78 78 79 if ( $post_ID == get_option( 'page_for_posts' )&& empty( $post->post_content ) ) {79 if ( get_option( 'page_for_posts' ) == $post_ID && empty( $post->post_content ) ) { 80 80 add_action( 'edit_form_after_title', '_wp_posts_page_notice' ); 81 81 remove_post_type_support( $post_type, 'editor' ); … … 535 535 $shortlink = wp_get_shortlink( $post->ID, 'post' ); 536 536 537 if ( ! empty( $shortlink ) && $shortlink !== $permalink && $permalink !== home_url( '?page_id=' . $post->ID )) {537 if ( ! empty( $shortlink ) && $shortlink !== $permalink && home_url( '?page_id=' . $post->ID ) !== $permalink ) { 538 538 $sample_permalink_html .= '<input id="shortlink" type="hidden" value="' . esc_attr( $shortlink ) . '" /><button type="button" class="button button-small" onclick="prompt('URL:', jQuery(\'#shortlink\').val());">' . __( 'Get Shortlink' ) . '</button>'; 539 539 }
Note: See TracChangeset
for help on using the changeset viewer.