@@ -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