Skip to content

Commit

Permalink
Merge pull request #5 from dwnload/develop
Browse files Browse the repository at this point in the history
Fix cannot access protected method.
  • Loading branch information
thefrosty authored Apr 30, 2018
2 parents db8597b + ad08c6d commit e8e98f6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELONG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## 1.2.1 - 2018-04-30
### Updated
- Fixes PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback , cannot access protected method Dwnload\WpRestApi\WpAdmin\Admin::renderPage().

## 1.2.0 - 2018-04-25
### Added
- Added new method `RestDispatch::queryParamContextIsEdit`
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "dwnload/wp-rest-api-object-cache",
"description": "Enable object caching for WordPress' REST API. Aids in increased response times of your applications endpoints.",
"type": "wordpress-plugin",
"version": "1.2.0",
"version": "1.2.1",
"license": "MIT",
"authors": [
{
Expand Down
4 changes: 3 additions & 1 deletion src/WpAdmin/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ protected function adminMenu()
\esc_html__('REST API Cache', 'wp-rest-api-cache'),
'manage_options',
self::MENU_SLUG,
[$this, 'renderPage']
function () {
$this->renderPage();
}
);
}

Expand Down
2 changes: 1 addition & 1 deletion wp-rest-api-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Description: Enable object caching for WordPress' REST API. Aids in increased response times of your applications endpoints.
* Author: Austin Passy
* Author URI: http://github.com/thefrosty
* Version: 1.2.0
* Version: 1.2.1
* Requires at least: 4.9
* Tested up to: 4.9
* Requires PHP: 7.0
Expand Down

0 comments on commit e8e98f6

Please sign in to comment.