Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
glendaviesnz committed Oct 19, 2023
1 parent 9b844ae commit 0069a96
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ class Gutenberg_REST_Blocks_Controller_6_4 extends Gutenberg_REST_Blocks_Control
* @return array List of link relations.
*/
protected function get_available_actions( $post, $request ) {

if ( 'edit' !== $request['context'] ) {
return array();
}
Expand Down Expand Up @@ -60,7 +59,7 @@ protected function get_available_actions( $post, $request ) {
$taxonomies = wp_list_filter( get_object_taxonomies( $this->post_type, 'objects' ), array( 'show_in_rest' => true ) );

foreach ( $taxonomies as $tax ) {
$tax_base = ! empty( $tax->rest_base ) ? $tax->rest_base : $tax->name;
$tax_base = ! empty( $tax->rest_base ) ? $tax->rest_base : $tax->name;

if ( current_user_can( $tax->cap->edit_terms ) ) {
$rels[] = 'https://api.w.org/action-create-' . $tax_base;
Expand Down

0 comments on commit 0069a96

Please sign in to comment.