Skip to content

Commit

Permalink
Version update ⬆️
Browse files Browse the repository at this point in the history
  • Loading branch information
richardkorthuis committed Mar 20, 2024
1 parent 5018a1c commit b1ef22a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion includes/api/class-endpoint-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ public function get_api_cache() {
* @return mixed Response data.
*/
private function rest_send_cors_headers( $value ) {
$origin = get_http_origin();
$origin = get_http_origin();
$request_method = isset( $_SERVER['REQUEST_METHOD'] ) ? filter_var( $_SERVER['REQUEST_METHOD'], FILTER_SANITIZE_FULL_SPECIAL_CHARS ) : 'GET';

if ( $origin ) {
Expand Down
2 changes: 1 addition & 1 deletion includes/class-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class Plugin {
*/
public function __construct() {
$this->plugin_name = 'wp-rest-cache';
$this->version = '2024.1.2';
$this->version = '2024.1.3';

$this->set_locale();
$this->define_admin_hooks();
Expand Down
7 changes: 6 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: cache, wp-rest-api, api, rest, rest cache
Requires at least: 4.7
Tested up to: 6.5
Requires PHP: 7.0
Stable tag: 2024.1.2
Stable tag: 2024.1.3
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl.html

Expand Down Expand Up @@ -171,6 +171,11 @@ Yes you can! Use the `wp wp-rest-cache flush` command to flush caches. Type `wp

== Changelog ==

= 2024.1.3 =
Release Date: March 20th, 2024

Bugfix: Fix undefined array key warnings.

= 2024.1.2 =
Release Date: March 7th, 2024

Expand Down
2 changes: 1 addition & 1 deletion wp-rest-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Plugin Name: WP REST Cache
* Plugin URI: https://www.acato.nl
* Description: Adds caching to the WP REST API
* Version: 2024.1.2
* Version: 2024.1.3
* Author: Acato
* Author URI: https://www.acato.nl
* Text Domain: wp-rest-cache
Expand Down

0 comments on commit b1ef22a

Please sign in to comment.