Skip to content

Commit 0398cb4

Browse files
Merge pull request #133 from luizbills/patch-7
fix code style of classes/class-cpt-wplf-form.php
2 parents 8bccce6 + 3f8faad commit 0398cb4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

classes/class-cpt-wplf-form.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function __construct() {
3838

3939
add_filter( 'default_content', array( $this, 'default_content_cpt' ) );
4040
add_filter( 'user_can_richedit', array( $this, 'disable_tinymce' ) );
41-
add_filter( 'use_block_editor_for_post_type', array( $this, 'disable_gutenberg'), 10, 2 );
41+
add_filter( 'use_block_editor_for_post_type', array( $this, 'disable_gutenberg' ), 10, 2 );
4242

4343
// front end
4444
add_shortcode( 'libre-form', array( $this, 'shortcode' ) );
@@ -140,7 +140,7 @@ public function disable_tinymce( $default ) {
140140
* Disable Gutenberg editor
141141
*/
142142
public function disable_gutenberg( $is_enabled, $post_type ) {
143-
if( $post_type === 'wplf-form') {
143+
if ( $post_type === 'wplf-form' ) {
144144
return false;
145145
}
146146

@@ -978,7 +978,7 @@ public function maybe_enqueue_frontend_script() {
978978
$admin_url = admin_url( 'admin-ajax.php' );
979979

980980
// add dynamic variables to the script's scope
981-
wp_localize_script('wplf-form-js', 'ajax_object', apply_filters( 'wplf_ajax_object', array(
981+
wp_localize_script( 'wplf-form-js', 'ajax_object', apply_filters( 'wplf_ajax_object', array(
982982
'ajax_url' => apply_filters( 'wplf_ajax_endpoint', "$admin_url?action=wplf_submit" ),
983983
'ajax_credentials' => apply_filters( 'wplf_ajax_fetch_credentials_mode', 'same-origin' ),
984984
'request_headers' => (object) apply_filters( 'wplf_ajax_request_headers', [] ),

0 commit comments

Comments
 (0)