Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite8e98f6

Browse files
authored
Merge pull request#5 from dwnload/develop
Fix cannot access protected method.
2 parentsdb8597b +ad08c6d commite8e98f6

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

‎CHANGELONG.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on[Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to[Semantic Versioning](http://semver.org/).
66

7+
##1.2.1 - 2018-04-30
8+
###Updated
9+
- Fixes PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback , cannot access protected method Dwnload\WpRestApi\WpAdmin\Admin::renderPage().
10+
711
##1.2.0 - 2018-04-25
812
###Added
913
- Added new method`RestDispatch::queryParamContextIsEdit`

‎composer.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name":"dwnload/wp-rest-api-object-cache",
33
"description":"Enable object caching for WordPress' REST API. Aids in increased response times of your applications endpoints.",
44
"type":"wordpress-plugin",
5-
"version":"1.2.0",
5+
"version":"1.2.1",
66
"license":"MIT",
77
"authors": [
88
{

‎src/WpAdmin/Admin.php‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ protected function adminMenu()
7777
\esc_html__('REST API Cache','wp-rest-api-cache'),
7878
'manage_options',
7979
self::MENU_SLUG,
80-
[$this,'renderPage']
80+
function () {
81+
$this->renderPage();
82+
}
8183
);
8284
}
8385

‎wp-rest-api-cache.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Description: Enable object caching for WordPress' REST API. Aids in increased response times of your applications endpoints.
55
* Author: Austin Passy
66
* Author URI: http://github.com/thefrosty
7-
* Version: 1.2.0
7+
* Version: 1.2.1
88
* Requires at least: 4.9
99
* Tested up to: 4.9
1010
* Requires PHP: 7.0

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp