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
|
@@ 89-94 (lines=6) @@
|
| 86 |
|
} |
| 87 |
|
|
| 88 |
|
// WTF is this?? Hacks! |
| 89 |
|
if ( 'display' === $context ) { |
| 90 |
|
$args = $this->query_args(); |
| 91 |
|
if ( isset( $args['content_width'] ) && $args['content_width'] ) { |
| 92 |
|
$GLOBALS['content_width'] = (int) $args['content_width']; |
| 93 |
|
} |
| 94 |
|
} |
| 95 |
|
|
| 96 |
|
// WTF is this?? Why is this responsibility here? Hacks! |
| 97 |
|
if ( strpos( $_SERVER['HTTP_USER_AGENT'], 'wp-windows8' ) ) { |