We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5462480 commit 5f8567aCopy full SHA for 5f8567a
includes/gutenberg/feedzy-rss-feeds-gutenberg-block.php
@@ -285,7 +285,7 @@ public function feedzy_register_rest_route() {
285
'methods' => 'POST',
286
'callback' => array( $this, 'feedzy_rest_route' ),
287
'permission_callback' => function ( WP_REST_Request $request ) {
288
- $post_id = $request->get_param( 'postId' );
+ $post_id = absint( $request->get_param( 'postId' ) );
289
return current_user_can( 'edit_post', $post_id );
290
},
291
'args' => array(
0 commit comments