| @@ 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' ); |
|
| @@ 88-93 (lines=6) @@ | ||
| 85 | return new WP_Error( 'invalid_context', 'Invalid API CONTEXT', 400 ); |
|
| 86 | } |
|
| 87 | ||
| 88 | if ( 'display' === $context ) { |
|
| 89 | $args = $this->query_args(); |
|
| 90 | if ( isset( $args['content_width'] ) && $args['content_width'] ) { |
|
| 91 | $GLOBALS['content_width'] = (int) $args['content_width']; |
|
| 92 | } |
|
| 93 | } |
|
| 94 | ||
| 95 | if ( strpos( $_SERVER['HTTP_USER_AGENT'], 'wp-windows8' ) ) { |
|
| 96 | remove_shortcode( 'gallery', 'gallery_shortcode' ); |
|