mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@51158 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -313,7 +313,7 @@ $script = sprintf(
|
||||
);
|
||||
wp_add_inline_script( 'wp-edit-post', $script );
|
||||
|
||||
if ( (int) get_option( 'page_for_posts' ) === (int) $post->ID ) {
|
||||
if ( (int) get_option( 'page_for_posts' ) === $post->ID ) {
|
||||
add_action( 'admin_enqueue_scripts', '_wp_block_editor_posts_page_notice' );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user