error(); } /** * Always fails closed. * * @since 7.2.0 * * @param string $name Ignored. * @param array $record Ignored. * @param bool $network Ignored. * @return WP_Error */ public function set( string $name, array $record, bool $network = false ): WP_Error { return $this->error(); } /** * Always fails closed. * * @since 7.2.0 * * @param string $name Ignored. * @param bool $network Ignored. * @return WP_Error */ public function delete( string $name, bool $network = false ): WP_Error { return $this->error(); } /** * Always fails closed. * * @since 7.2.0 * * @param bool $network Ignored. * @return WP_Error */ public function list_names( bool $network = false ): WP_Error { return $this->error(); } /** * Builds the error every method returns. * * @since 7.2.0 * * @return WP_Error */ private function error(): WP_Error { return new WP_Error( WP_SECRETS_ERROR_STORE_UNAVAILABLE, __( 'The secrets.php drop-in did not provide a usable store.', 'default' ) ); } }