Make WordPress Core


Ignore:
Timestamp:
06/15/2021 03:49:22 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use consistent formatting for _wp_posts_page_notice() and _wp_block_editor_posts_page_notice().

Remove redundant casting to int for post ID, which is always an integer.

Follow-up to [51116].

See #45537, #52627.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-form-blocks.php

    r51116 r51158  
    314314wp_add_inline_script( 'wp-edit-post', $script );
    315315
    316 if ( (int) get_option( 'page_for_posts' ) === (int) $post->ID ) {
     316if ( (int) get_option( 'page_for_posts' ) === $post->ID ) {
    317317    add_action( 'admin_enqueue_scripts', '_wp_block_editor_posts_page_notice' );
    318318}
Note: See TracChangeset for help on using the changeset viewer.