Code Duplication    Length = 8-8 lines in 2 locations

modules/theme-tools/compat/twentytwenty.php 1 location

@@ 117-124 (lines=8) @@
114
 * Set the version equal to filemtime for development builds, and the JETPACK__VERSION for production
115
 * or skip it entirely for wpcom.
116
 */
117
function twentytwenty_enqueue_jetpack_style() {
118
	$version = Jetpack::is_development_version()
119
		? filemtime( JETPACK__PLUGIN_DIR . 'modules/theme-tools/compat/twentytwenty.css' )
120
		: JETPACK__VERSION;
121
122
	wp_enqueue_style( 'twentytwenty-jetpack', plugins_url( 'twentytwenty.css', __FILE__ ), array(), $version );
123
	wp_style_add_data( 'twentytwenty-jetpack', 'rtl', 'replace' );
124
}
125
add_action( 'wp_enqueue_scripts', 'twentytwenty_enqueue_jetpack_style' );
126
127
/**

modules/theme-tools/compat/twentytwentyone.php 1 location

@@ 70-77 (lines=8) @@
67
 * Set the version equal to filemtime for development builds, and the JETPACK__VERSION for production
68
 * or skip it entirely for wpcom.
69
 */
70
function twentytwentyone_enqueue_jetpack_style() {
71
	$version = Jetpack::is_development_version()
72
		? filemtime( JETPACK__PLUGIN_DIR . 'modules/theme-tools/compat/twentytwentyone.css' )
73
		: JETPACK__VERSION;
74
75
	wp_enqueue_style( 'twentytwentyone-jetpack', plugins_url( 'twentytwentyone.css', __FILE__ ), array(), $version );
76
	wp_style_add_data( 'twentytwentyone-jetpack', 'rtl', 'replace' );
77
}
78
add_action( 'wp_enqueue_scripts', 'twentytwentyone_enqueue_jetpack_style' );
79