Code Duplication    Length = 3-4 lines in 2 locations

src/wp-includes/class-wp-customize-manager.php 2 locations

@@ 512-514 (lines=3) @@
509
		 * In this way, the UUID serves as a secret key. If the messenger channel is present,
510
		 * then send unauthenticated code to prompt re-auth.
511
		 */
512
		if ( ! current_user_can( 'customize' ) && ! $this->changeset_post_id() ) {
513
			$this->wp_die( $this->messenger_channel ? 0 : -1, __( 'Non-existent changeset UUID.' ) );
514
		}
515
516
		if ( ! headers_sent() ) {
517
			send_origin_headers();
@@ 1590-1593 (lines=4) @@
1587
		 * if the user doesn't have customize capability, then it is assumed
1588
		 * that the user's session has expired and they need to re-authenticate.
1589
		 */
1590
		if ( $this->messenger_channel && ! current_user_can( 'customize' ) ) {
1591
			$this->wp_die( -1, __( 'Unauthorized. You may remove the customize_messenger_channel param to preview as frontend.' ) );
1592
			return;
1593
		}
1594
1595
		$this->prepare_controls();
1596