Code Duplication    Length = 3-3 lines in 2 locations

src/wp-includes/meta.php 2 locations

@@ 1048-1050 (lines=3) @@
1045
	}
1046
1047
	// Back-compat: old sanitize and auth callbacks are applied to all of an object type.
1048
	if ( is_callable( $args['sanitize_callback'] ) ) {
1049
		add_filter( "sanitize_{$object_type}_meta_{$meta_key}", $args['sanitize_callback'], 10, 3 );
1050
	}
1051
1052
	if ( is_callable( $args['auth_callback'] ) ) {
1053
		add_filter( "auth_{$object_type}_meta_{$meta_key}", $args['auth_callback'], 10, 6 );
@@ 1052-1054 (lines=3) @@
1049
		add_filter( "sanitize_{$object_type}_meta_{$meta_key}", $args['sanitize_callback'], 10, 3 );
1050
	}
1051
1052
	if ( is_callable( $args['auth_callback'] ) ) {
1053
		add_filter( "auth_{$object_type}_meta_{$meta_key}", $args['auth_callback'], 10, 6 );
1054
	}
1055
1056
	// Global registry only contains meta keys registered with the array of arguments added in 4.6.0.
1057
	if ( ! $has_old_auth_cb && ! $has_old_sanitize_cb ) {