Code Duplication    Length = 4-4 lines in 2 locations

json-endpoints/class.wpcom-json-api-post-endpoint.php 1 location

@@ 128-131 (lines=4) @@
125
			}
126
		}
127
128
		if ( strpos( $_SERVER['HTTP_USER_AGENT'], 'wp-windows8' ) ) {
129
			remove_shortcode( 'gallery', 'gallery_shortcode' );
130
			add_shortcode( 'gallery', array( &$this, 'win8_gallery_shortcode' ) );
131
		}
132
133
		switch ( $field ) {
134
		case 'name' :

json-endpoints/class.wpcom-json-api-post-v1-1-endpoint.php 1 location

@@ 121-124 (lines=4) @@
118
			}
119
		}
120
121
		if ( strpos( $_SERVER['HTTP_USER_AGENT'], 'wp-windows8' ) ) {
122
			remove_shortcode( 'gallery', 'gallery_shortcode' );
123
			add_shortcode( 'gallery', array( &$this, 'win8_gallery_shortcode' ) );
124
		}
125
126
		switch ( $field ) {
127
		case 'name' :