Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 121-126 (lines=6) @@
118
			$geo = false;
119
		}
120
121
		if ( 'display' === $context ) {
122
			$args = $this->query_args();
123
			if ( isset( $args['content_width'] ) && $args['content_width'] ) {
124
				$GLOBALS['content_width'] = (int) $args['content_width'];
125
			}
126
		}
127
128
		if ( strpos( $_SERVER['HTTP_USER_AGENT'], 'wp-windows8' ) ) {
129
			remove_shortcode( 'gallery', 'gallery_shortcode' );

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

@@ 113-118 (lines=6) @@
110
			$geo = false;
111
		}
112
113
		if ( 'display' === $context ) {
114
			$args = $this->query_args();
115
			if ( isset( $args['content_width'] ) && $args['content_width'] ) {
116
				$GLOBALS['content_width'] = (int) $args['content_width'];
117
			}
118
		}
119
120
		if ( strpos( $_SERVER['HTTP_USER_AGENT'], 'wp-windows8' ) ) {
121
			remove_shortcode( 'gallery', 'gallery_shortcode' );