@@ -55,7 +55,7 @@ |
||
| 55 | 55 | $value = esc_attr( sanitize_text_field( $value ) ); |
| 56 | 56 | |
| 57 | 57 | if ( in_array( $attribute, $accepted_attributes ) && ! empty( $value ) ) { |
| 58 | - $shortcode_attributes[] = "{$attribute}={$value}"; |
|
| 58 | + $shortcode_attributes[ ] = "{$attribute}={$value}"; |
|
| 59 | 59 | } |
| 60 | 60 | } |
| 61 | 61 | |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | $value = esc_attr( sanitize_text_field( $value ) ); |
| 32 | 32 | |
| 33 | 33 | if ( in_array( $attribute, $accepted_attributes ) && ! empty( $value ) ) { |
| 34 | - $shortcode_attributes[] = "{$attribute}={$value}"; |
|
| 34 | + $shortcode_attributes[ ] = "{$attribute}={$value}"; |
|
| 35 | 35 | } |
| 36 | 36 | } |
| 37 | 37 | |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | $value = esc_attr( sanitize_text_field( $value ) ); |
| 37 | 37 | |
| 38 | 38 | if ( in_array( $attribute, $accepted_attributes ) && ! empty( $value ) ) { |
| 39 | - $shortcode_attributes[] = "{$attribute}={$value}"; |
|
| 39 | + $shortcode_attributes[ ] = "{$attribute}={$value}"; |
|
| 40 | 40 | } |
| 41 | 41 | } |
| 42 | 42 | |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | $value = esc_attr( sanitize_text_field( $value ) ); |
| 32 | 32 | |
| 33 | 33 | if ( in_array( $attribute, $accepted_attributes ) && ! empty( $value ) ) { |
| 34 | - $shortcode_attributes[] = "{$attribute}={$value}"; |
|
| 34 | + $shortcode_attributes[ ] = "{$attribute}={$value}"; |
|
| 35 | 35 | } |
| 36 | 36 | } |
| 37 | 37 | |
@@ -43,15 +43,15 @@ |
||
| 43 | 43 | $value = esc_attr( sanitize_text_field( $value ) ); |
| 44 | 44 | |
| 45 | 45 | if ( 'content' !== $attribute && in_array( $attribute, $accepted_attributes ) && ! empty( $value ) ) { |
| 46 | - $shortcode_attributes[] = "{$attribute}={$value}"; |
|
| 46 | + $shortcode_attributes[ ] = "{$attribute}={$value}"; |
|
| 47 | 47 | } |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | - if ( ! empty( $attributes['content'] ) ) { |
|
| 50 | + if ( ! empty( $attributes[ 'content' ] ) ) { |
|
| 51 | 51 | $shortcode = sprintf( |
| 52 | 52 | '[gv_entry_link %s]%s[/gv_entry_link]', |
| 53 | 53 | implode( ' ', $shortcode_attributes ), |
| 54 | - wp_kses_post( $attributes['content'] ) |
|
| 54 | + wp_kses_post( $attributes[ 'content' ] ) |
|
| 55 | 55 | ); |
| 56 | 56 | } else { |
| 57 | 57 | $shortcode = sprintf( '[gv_entry_link %s/]', implode( ' ', $shortcode_attributes ) ); |
@@ -20,8 +20,8 @@ |
||
| 20 | 20 | global $wp_version; |
| 21 | 21 | |
| 22 | 22 | if ( ! class_exists( 'GravityView_Plugin' ) || |
| 23 | - ! function_exists( 'register_block_type' ) || |
|
| 24 | - version_compare( $wp_version, self::MIN_WP_VERSION, '<' ) |
|
| 23 | + ! function_exists( 'register_block_type' ) || |
|
| 24 | + version_compare( $wp_version, self::MIN_WP_VERSION, '<' ) |
|
| 25 | 25 | ) { |
| 26 | 26 | return; |
| 27 | 27 | } |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | wp_enqueue_script( |
| 92 | 92 | self::ASSETS_HANDLE, |
| 93 | 93 | gravityview()->plugin->url() . $script, |
| 94 | - $asset_file['dependencies'], |
|
| 94 | + $asset_file[ 'dependencies' ], |
|
| 95 | 95 | filemtime( gravityview()->plugin->dir() . $script ) |
| 96 | 96 | ); |
| 97 | 97 | |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | ) |
| 110 | 110 | ); |
| 111 | 111 | |
| 112 | - $views_list_array = array_map( function ( $view ) { |
|
| 112 | + $views_list_array = array_map( function( $view ) { |
|
| 113 | 113 | return array( |
| 114 | 114 | 'value' => $view->ID, |
| 115 | 115 | 'label' => $view->post_title, |