diff --git a/includes/class-mastodon-api.php b/includes/class-mastodon-api.php index 6a1381ed..0d9699d2 100644 --- a/includes/class-mastodon-api.php +++ b/includes/class-mastodon-api.php @@ -1412,7 +1412,7 @@ private static function get_body_from_php_input() { // A helpful shim in case this is PHP <=5.6 when php://input could only be accessed once. static $input; if ( ! isset( $input ) ) { - $input = file_get_contents( 'php://input' ); // phcs:ignore . + $input = file_get_contents( 'php://input' ); // phpcs:ignore } return $input; diff --git a/includes/oauth2/class-access-token-storage.php b/includes/oauth2/class-access-token-storage.php index a15c5919..b972af02 100644 --- a/includes/oauth2/class-access-token-storage.php +++ b/includes/oauth2/class-access-token-storage.php @@ -28,7 +28,7 @@ public function __construct() { add_action( 'mastodon_api_cron_hook', array( $this, 'cleanupOldCodes' ) ); // Store the access tokens in a taxonomy. - register_taxonomy( self::TAXONOMY, null ); + register_taxonomy( self::TAXONOMY, null, array( 'public' => false ) ); foreach ( self::$access_token_data as $key => $type ) { register_term_meta( self::TAXONOMY, diff --git a/includes/oauth2/class-authorization-code-storage.php b/includes/oauth2/class-authorization-code-storage.php index 6266e39d..0c776330 100644 --- a/includes/oauth2/class-authorization-code-storage.php +++ b/includes/oauth2/class-authorization-code-storage.php @@ -29,7 +29,7 @@ public function __construct() { add_action( 'mastodon_api_cron_hook', array( $this, 'cleanupOldCodes' ) ); // Store the authorization codes in a taxonomy. - register_taxonomy( self::TAXONOMY, null ); + register_taxonomy( self::TAXONOMY, null, array( 'public' => false ) ); foreach ( self::$authorization_code_data as $key => $type ) { register_term_meta( self::TAXONOMY, diff --git a/vendor/bshaffer/oauth2-server-php/src/OAuth2/Request.php b/vendor/bshaffer/oauth2-server-php/src/OAuth2/Request.php index f547bf6e..3c9b7a1a 100644 --- a/vendor/bshaffer/oauth2-server-php/src/OAuth2/Request.php +++ b/vendor/bshaffer/oauth2-server-php/src/OAuth2/Request.php @@ -144,7 +144,7 @@ public function getContent($asResource = false) } if (null === $this->content) { - $this->content = file_get_contents('php://input'); + $this->content = file_get_contents('php://input'); // phpcs:ignore } return $this->content;