Skip to content

Commit

Permalink
Normalize placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
takayukister committed Dec 4, 2022
1 parent 47ae879 commit 22e1511
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions includes/form-tags-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,9 @@ public function replace_with_placeholders( $content ) {
);
}

list( $placeholder ) =
WPCF7_HTMLFormatter::normalize_start_tag( $placeholder );

$this->placeholders[$placeholder] = $tag;

return $placeholder;
Expand Down
2 changes: 0 additions & 2 deletions includes/formatting.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
* @return string Text which has been converted into correct paragraph tags.
*/
function wpcf7_autop( $input ) {
require_once WPCF7_PLUGIN_DIR . '/includes/html-formatter.php';

$formatter = new WPCF7_HTMLFormatter();

$chunks = $formatter->separate_into_chunks( $input );
Expand Down
1 change: 1 addition & 0 deletions load.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
require_once WPCF7_PLUGIN_DIR . '/includes/config-validator.php';
require_once WPCF7_PLUGIN_DIR . '/includes/rest-api.php';
require_once WPCF7_PLUGIN_DIR . '/includes/block-editor/block-editor.php';
require_once WPCF7_PLUGIN_DIR . '/includes/html-formatter.php';

if ( is_admin() ) {
require_once WPCF7_PLUGIN_DIR . '/admin/admin.php';
Expand Down

0 comments on commit 22e1511

Please sign in to comment.