Plugin Directory

Changeset 3143146


Ignore:
Timestamp:
08/28/2024 06:35:44 PM (20 months ago)
Author:
alphatrait
Message:

Disable wpautop before posting

Location:
contentify-ai/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • contentify-ai/trunk/index.php

    r3133009 r3143146  
    33Plugin Name: Contentify AI
    44Description: This plugin is a Contentify Editor AI (Co-Editor). It publishes and optimize the content that Contentify Writer AI (Co-Writer) generates.
    5 Version: 1.5.2
     5Version: 1.5.3
    66Author: Contentify Team
    77Text Domain: contentify-ai
     
    379379            remove_filter('content_save_pre', 'wp_filter_post_kses');
    380380
     381            // Temporarily disable wpautop
     382            remove_filter('the_content', 'wpautop');
     383
    381384
    382385            // Create the post
     
    393396
    394397            add_filter('content_save_pre', 'wp_filter_post_kses');
     398
     399            // Re-enable wpautop
     400            add_filter('the_content', 'wpautop');
    395401
    396402
     
    444450            remove_filter('content_save_pre', 'wp_filter_post_kses');
    445451
     452            // Temporarily disable wpautop
     453            remove_filter('the_content', 'wpautop');
     454
    446455            // Create the post
    447456            $post_id = wp_insert_post(
     
    457466
    458467            add_filter('content_save_pre', 'wp_filter_post_kses');
     468
     469            // Re-enable wpautop
     470            add_filter('the_content', 'wpautop');
    459471
    460472            //Update Yoast SEO keyword, title, and description
  • contentify-ai/trunk/readme.txt

    r3133008 r3143146  
    55Tested up to: 6.6.1
    66Requires PHP: 7.0
    7 Stable tag: 1.5.1
     7Stable tag: 1.5.3
    88License: MIT License
    99License URI: https://raw.githubusercontent.com/phosphor-icons/phosphor-home/master/LICENSE
Note: See TracChangeset for help on using the changeset viewer.