Skip to content

Commit

Permalink
ignore unused variable
Browse files Browse the repository at this point in the history
The variable needs to be accepted in order to not run into the fatal error: Fatal error: Declaration of Gutenberg_REST_Templates_Controller_6_4::get_items_permissions_check() must be compatible with WP_REST_Templates_Controller::get_items_permissions_check($request) in /var/www/html/wp-content/plugins/gutenberg/lib/compat/wordpress-6.4/class-gutenberg-rest-templates-controller-6-4.php on line 83
  • Loading branch information
fabiankaegy committed Feb 14, 2024
1 parent d2e8a2d commit 1c49cb7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ protected function prepare_revision_links( $template ) {
* @param WP_REST_Request $request Full details about the request.
* @return true|WP_Error True if the request has read access, WP_Error object otherwise.
*/
public function get_items_permissions_check( $request ) {
public function get_items_permissions_check( $request ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
/*
* Allow access to anyone who can edit posts.
*/
Expand All @@ -106,7 +106,7 @@ public function get_items_permissions_check( $request ) {
* @param WP_REST_Request $request Full details about the request.
* @return true|WP_Error True if the request has read access, WP_Error object otherwise.
*/
public function get_item_permissions_check( $request ) {
public function get_item_permissions_check( $request ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
/*
* Allow access to anyone who can edit posts.
*/
Expand Down

0 comments on commit 1c49cb7

Please sign in to comment.