class.json-api.php 1 location
|
@@ 558-560 (lines=3) @@
|
555 |
|
return new WP_Error( 'unauthorized', 'User cannot access this restricted blog', 403 ); |
556 |
|
} |
557 |
|
|
558 |
|
if ( -1 == get_option( 'blog_public' ) && !current_user_can( 'read' ) ) { |
559 |
|
return new WP_Error( 'unauthorized', 'User cannot access this private blog.', 403 ); |
560 |
|
} |
561 |
|
|
562 |
|
return $blog_id; |
563 |
|
} |
class.json-api-endpoints.php 1 location
|
@@ 1282-1284 (lines=3) @@
|
1279 |
|
return new WP_Error( 'unauthorized', 'User cannot edit taxonomy', 403 ); |
1280 |
|
break; |
1281 |
|
case 'display' : |
1282 |
|
if ( -1 == get_option( 'blog_public' ) && ! current_user_can( 'read' ) ) { |
1283 |
|
return new WP_Error( 'unauthorized', 'User cannot view taxonomy', 403 ); |
1284 |
|
} |
1285 |
|
break; |
1286 |
|
default : |
1287 |
|
return new WP_Error( 'invalid_context', 'Invalid API CONTEXT', 400 ); |