', esc_attr( $script_src ), // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- the snippet has already been escaped. $top_anchor_code ); } else { // Don't add the data-ad-client attribute when the publisher ID is appended to the script URL. printf( '', ! $add_publisher_id ? 'data-ad-client="' . esc_attr( $client_id ) . '"' : '', esc_url( $script_src ) ); } // phpcs:enable