Skip to content

Commit 6bfeb4c

Browse files
Andrew Duthiegeorgestephanis
Andrew Duthie
authored andcommitted
REST API: Site Settings: Add support for "twitter_via" site setting
Related: Automattic/calypso-pre-oss#3545 Merges r112065-wpcom.
1 parent 29c696e commit 6bfeb4c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

json-endpoints/class.wpcom-json-api-site-settings-endpoint.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function callback( $path = '', $blog_id = 0 ) {
2222
if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) {
2323
$this->load_theme_functions();
2424
}
25-
25+
2626
if ( ! is_user_logged_in() ) {
2727
return new WP_Error( 'Unauthorized', 'You must be logged-in to manage settings.', 401 );
2828
} else if ( ! current_user_can( 'manage_options' ) ) {
@@ -153,6 +153,7 @@ public function get_settings_response() {
153153
'disabled_likes' => (bool) get_option( 'disabled_likes' ),
154154
'disabled_reblogs' => (bool) get_option( 'disabled_reblogs' ),
155155
'jetpack_comment_likes_enabled' => (bool) get_option( 'jetpack_comment_likes_enabled', false ),
156+
'twitter_via' => (string) get_option( 'twitter_via' ),
156157
);
157158

158159
if ( class_exists( 'Sharing_Service' ) ) {

0 commit comments

Comments
 (0)