Plugin Directory

Changeset 3447626


Ignore:
Timestamp:
01/27/2026 08:48:54 AM (2 months ago)
Author:
ailab
Message:

fix: Auto insert issue

Location:
readmo-ai
Files:
3 edited
19 copied

Legend:

Unmodified
Added
Removed
  • readmo-ai/tags/1.2.3/Infrastructure/dao/class-readmo-ai-settings-dao.php

    r3447574 r3447626  
    125125     */
    126126    public function get_auto_insert_settings() {
    127         // Default: enabled = true, only 'post' type is checked (page is excluded).
     127        // Default: enabled = true, only 'post' type is checked (all others excluded).
    128128        $defaults = array(
    129129            'enabled'              => true,
    130130            'position'             => 'after_content',
    131             'excluded_post_types'  => array( 'page' ),
     131            'excluded_post_types'  => array(),
    132132            'excluded_categories'  => array(),
    133133            'excluded_posts'       => array(),
     
    138138        // If no settings exist, initialize with defaults in database.
    139139        if ( empty( $settings ) ) {
     140            // Dynamically exclude all public post types except 'post'.
     141            $public_post_types = get_post_types( array( 'public' => true ), 'names' );
     142            unset( $public_post_types['post'] );       // post should be checked (not excluded).
     143            unset( $public_post_types['attachment'] ); // attachment is not shown in tree.
     144            $defaults['excluded_post_types'] = array_values( $public_post_types );
     145
    140146            update_option( self::AUTO_INSERT_OPTION_NAME, $defaults, true );
    141147            return $defaults;
  • readmo-ai/tags/1.2.3/readme.txt

    r3447574 r3447626  
    55Tested up to: 6.9
    66Requires PHP: 7.4
    7 Stable tag: 1.2.2
     7Stable tag: 1.2.3
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
  • readmo-ai/tags/1.2.3/readmo-ai.php

    r3447574 r3447626  
    1313 * Plugin Name:       Readmo AI
    1414 * Description:       AI-powered content analysis and optimization for WordPress with analytics tracking
    15  * Version:           1.2.2
     15 * Version:           1.2.3
    1616 * Requires at least: 5.9
    1717 * Requires PHP:      7.4
     
    3333 */
    3434if ( ! defined( 'READMO_AI_VERSION' ) ) {
    35     define( 'READMO_AI_VERSION', '1.2.2' );
     35    define( 'READMO_AI_VERSION', '1.2.3' );
    3636}
    3737
  • readmo-ai/trunk/Infrastructure/dao/class-readmo-ai-settings-dao.php

    r3447574 r3447626  
    125125     */
    126126    public function get_auto_insert_settings() {
    127         // Default: enabled = true, only 'post' type is checked (page is excluded).
     127        // Default: enabled = true, only 'post' type is checked (all others excluded).
    128128        $defaults = array(
    129129            'enabled'              => true,
    130130            'position'             => 'after_content',
    131             'excluded_post_types'  => array( 'page' ),
     131            'excluded_post_types'  => array(),
    132132            'excluded_categories'  => array(),
    133133            'excluded_posts'       => array(),
     
    138138        // If no settings exist, initialize with defaults in database.
    139139        if ( empty( $settings ) ) {
     140            // Dynamically exclude all public post types except 'post'.
     141            $public_post_types = get_post_types( array( 'public' => true ), 'names' );
     142            unset( $public_post_types['post'] );       // post should be checked (not excluded).
     143            unset( $public_post_types['attachment'] ); // attachment is not shown in tree.
     144            $defaults['excluded_post_types'] = array_values( $public_post_types );
     145
    140146            update_option( self::AUTO_INSERT_OPTION_NAME, $defaults, true );
    141147            return $defaults;
  • readmo-ai/trunk/readme.txt

    r3447574 r3447626  
    55Tested up to: 6.9
    66Requires PHP: 7.4
    7 Stable tag: 1.2.2
     7Stable tag: 1.2.3
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
  • readmo-ai/trunk/readmo-ai.php

    r3447574 r3447626  
    1313 * Plugin Name:       Readmo AI
    1414 * Description:       AI-powered content analysis and optimization for WordPress with analytics tracking
    15  * Version:           1.2.2
     15 * Version:           1.2.3
    1616 * Requires at least: 5.9
    1717 * Requires PHP:      7.4
     
    3333 */
    3434if ( ! defined( 'READMO_AI_VERSION' ) ) {
    35     define( 'READMO_AI_VERSION', '1.2.2' );
     35    define( 'READMO_AI_VERSION', '1.2.3' );
    3636}
    3737
Note: See TracChangeset for help on using the changeset viewer.