Plugin Directory

Changeset 3483660


Ignore:
Timestamp:
03/16/2026 09:53:56 AM (13 days ago)
Author:
pluginever
Message:

Update to version 2.2.1

Location:
wp-content-pilot
Files:
12 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wp-content-pilot/tags/2.2.1/i18n/languages/wp-content-pilot.pot

    r3457661 r3483660  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Content Pilot 2.2.0\n"
     5"Project-Id-Version: Content Pilot 2.2.1\n"
    66"Report-Msgid-Bugs-To: https://wpcontentpilot.com/support/\n"
    7 "POT-Creation-Date: 2026-02-10 05:18:07+00:00\n"
     7"POT-Creation-Date: 2026-03-16 09:34:35+00:00\n"
    88"MIME-Version: 1.0\n"
    99"Content-Type: text/plain; charset=utf-8\n"
     
    3737msgstr ""
    3838
    39 #: includes/action-functions.php:288 includes/action-functions.php:370
     39#: includes/action-functions.php:287 includes/action-functions.php:367
    4040msgid "Cheating?"
    4141msgstr ""
    4242
    43 #: includes/action-functions.php:297 includes/action-functions.php:380
     43#: includes/action-functions.php:295 includes/action-functions.php:376
    4444msgid "Unauthorized user"
    4545msgstr ""
    4646
    47 #: includes/action-functions.php:306
     47#: includes/action-functions.php:304
    4848msgid "Invalid campaign ID"
    4949msgstr ""
    5050
    51 #: includes/action-functions.php:315
     51#: includes/action-functions.php:313
    5252msgid "Invalid instance"
    5353msgstr ""
    5454
    55 #: includes/action-functions.php:328
     55#: includes/action-functions.php:326
    5656msgid "Invalid post action"
    5757msgstr ""
    5858
    59 #: includes/action-functions.php:335
     59#: includes/action-functions.php:333
    6060msgid "Campaign <strong>%s</strong> manually initiated by <strong>%s</strong>"
    6161msgstr ""
    6262
    63 #: includes/action-functions.php:349
     63#: includes/action-functions.php:347
    6464msgid "A post successfully created by campaign %s titled %s"
    6565msgstr ""
    6666
    67 #: includes/action-functions.php:394
     67#: includes/action-functions.php:390
    6868msgid "Something wrong, please try again."
    6969msgstr ""
     
    8585msgstr ""
    8686
    87 #: includes/admin/class-wpcp-admin.php:102 wp-content-pilot.php:287
     87#: includes/admin/class-wpcp-admin.php:102 wp-content-pilot.php:284
    8888msgid "Go Pro"
    8989msgstr ""
     
    438438#: includes/admin/class-wpcp-settings.php:38
    439439#: includes/admin/views/metabox/spinner-settings.php:10
    440 #: wp-content-pilot.php:279
     440#: wp-content-pilot.php:276
    441441msgid "Settings"
    442442msgstr ""
     
    18061806msgstr ""
    18071807
    1808 #: includes/core-functions.php:321
     1808#: includes/core-functions.php:319
    18091809msgid "Failed to download image"
    18101810msgstr ""
    18111811
    1812 #: includes/core-functions.php:400
     1812#: includes/core-functions.php:398
    18131813#. translators: 1: The name of the PHP constant that is set.
    18141814msgid "The %s constant is set to true. WP-Cron spawning is disabled."
    18151815msgstr ""
    18161816
    1817 #: includes/core-functions.php:405
     1817#: includes/core-functions.php:403
    18181818#. translators: 1: The name of the PHP constant that is set.
    18191819msgid "The %s constant is set to true."
    18201820msgstr ""
    18211821
    1822 #: includes/core-functions.php:441
     1822#: includes/core-functions.php:439
    18231823#. translators: 1: The HTTP response code.
    18241824msgid "Unexpected HTTP response code: %s"
    18251825msgstr ""
    18261826
    1827 #: includes/core-functions.php:636
     1827#: includes/core-functions.php:634
    18281828msgid "spinwritter API details is not set, aborting article spinner"
    18291829msgstr ""
    18301830
    1831 #: includes/core-functions.php:646
     1831#: includes/core-functions.php:644
    18321832msgid "Spinwritter could not send API request, aborting article spinner"
    18331833msgstr ""
    18341834
    1835 #: includes/core-functions.php:653
     1835#: includes/core-functions.php:651
    18361836#. translators: ERROR message
    18371837msgid "Aborting article spinner Because [%s]"
     
    30043004msgstr ""
    30053005
    3006 #: wp-content-pilot.php:309
     3006#: wp-content-pilot.php:306
    30073007msgid "View documentation"
    30083008msgstr ""
    30093009
    3010 #: wp-content-pilot.php:309
     3010#: wp-content-pilot.php:306
    30113011msgid "Docs"
    30123012msgstr ""
    30133013
    3014 #: wp-content-pilot.php:346
     3014#: wp-content-pilot.php:326
    30153015msgid "Once a Minute"
    30163016msgstr ""
    30173017
    3018 #: wp-content-pilot.php:360
     3018#: wp-content-pilot.php:340
    30193019#. translators: 1. message, 2. File, 3. Line number
    30203020msgid "%1$s in %2$s on line %3$s"
  • wp-content-pilot/tags/2.2.1/includes/action-functions.php

    r3391132 r3483660  
    210210        return;
    211211    }
     212
    212213    $author_id = get_post_field( 'post_author', $post_id );
    213214    $to        = get_the_author_meta( 'user_email', $author_id );
    214215    $title     = $article['title'];
    215     // When excerpt is not available.
    216216    if ( empty( $article['excerpt'] ) ) {
    217217        $summary = wp_trim_words( $article['content'], 55 );
     
    283283 */
    284284function wpcp_ajax_run_manual_campaign() {
    285     // Check nonce.
    286285    if ( ! isset( $_REQUEST['nonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_REQUEST['nonce'] ) ), 'ajax_action' ) ) {
    287286        wp_send_json( array(
     
    292291    }
    293292
    294     // Check the user capability.
    295293    if ( ! current_user_can( 'manage_options' ) ) {
    296294        wp_send_json( array(
     
    365363 */
    366364function wpcp_get_campaign_instance_log() {
    367     // Check nonce.
    368365    if ( ! isset( $_REQUEST['nonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_REQUEST['nonce'] ) ), 'ajax_action' ) ) {
    369366        wp_send_json( array(
     
    374371    }
    375372
    376     // Check the user capability.
    377373    if ( ! current_user_can( 'manage_options' ) ) {
    378374        wp_send_json( array(
  • wp-content-pilot/tags/2.2.1/includes/core-functions.php

    r3293990 r3483660  
    3636}
    3737
    38 
    3938/**
    4039 * Get plugin settings.
     
    260259
    261260/**
    262  * Allow html tag when string from content.
     261 * Allow HTML tag when string from content.
    263262 *
    264263 * @param string $content The content.
     
    271270function wpcp_truncate_content( $content, $length, $html = true ) {
    272271    if ( $html ) {
    273         // if the plain text is shorter than the maximum length, return the whole text.
    274272        if ( strlen( preg_replace( '/<.*?>/', '', $content ) ) <= $length ) {
    275273            return $content;
    276274        }
    277         // Balances tags of string using a modified stack.
     275
    278276        $content = force_balance_tags( html_entity_decode( wp_trim_words( htmlentities( $content ), $length, '...' ) ) );
    279277    } else {
  • wp-content-pilot/tags/2.2.1/readme.txt

    r3457661 r3483660  
    33Tags: autoblog, rss aggregator, news aggregator, rss import, youtube feed, rss to post, rss feeds
    44Tested up to: 6.9
    5 Stable tag: 2.2.0
     5Stable tag: 2.2.1
    66License: GPLv2 or later
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    127127
    128128== Changelog ==
     129= 2.2.1 (March 16, 2026) =
     130* Enhance - Remove the unused code.
     131* Compatibility - Check compatibility with the latest version of WordPress (v6.9).
    129132
    130133= 2.2.0 (February 10, 2026) =
  • wp-content-pilot/tags/2.2.1/vendor/composer/installed.php

    r3457661 r3483660  
    22    'root' => array(
    33        'name' => 'pluginever/wp-content-pilot',
    4         'pretty_version' => 'v2.2.0',
    5         'version' => '2.2.0.0',
    6         'reference' => '6d8dba2b4cbdeaaf4c0233c7119f1231abbff5a8',
     4        'pretty_version' => 'v2.2.1',
     5        'version' => '2.2.1.0',
     6        'reference' => '178b9e7bfa1c58fa5d6d4b5a0b74fb2d9cbb48b6',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    2121        ),
    2222        'pluginever/wp-content-pilot' => array(
    23             'pretty_version' => 'v2.2.0',
    24             'version' => '2.2.0.0',
    25             'reference' => '6d8dba2b4cbdeaaf4c0233c7119f1231abbff5a8',
     23            'pretty_version' => 'v2.2.1',
     24            'version' => '2.2.1.0',
     25            'reference' => '178b9e7bfa1c58fa5d6d4b5a0b74fb2d9cbb48b6',
    2626            'type' => 'wordpress-plugin',
    2727            'install_path' => __DIR__ . '/../../',
  • wp-content-pilot/tags/2.2.1/wp-content-pilot.php

    r3457661 r3483660  
    44 * Plugin URI:        https://wpcontentpilot.com
    55 * Description:       Content Pilot automatically posts contents from various sources based on the predefined keywords.
    6  * Version:           2.2.0
     6 * Version:           2.2.1
    77 * Requires at least: 5.2
    88 * Requires PHP:      8.0
     
    5050     * @since 1.0.0
    5151     */
    52     protected $version = '2.2.0';
     52    protected $version = '2.2.1';
    5353
    5454    /**
     
    9595        _doing_it_wrong( __FUNCTION__, esc_html__( 'Universalizing instances of this class is forbidden.', 'wp-content-pilot' ), '1.0.0' );
    9696    }
    97 
    9897
    9998    /**
     
    229228        add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'plugin_action_links' ) );
    230229        add_filter( 'plugin_row_meta', array( $this, 'plugin_row_meta' ), 10, 2 );
    231         add_action( 'admin_init', array( $this, 'check_if_cron_running' ) );
    232230    }
    233231
     
    243241        do_action( 'content__pilot__loaded' );
    244242    }
    245 
    246243
    247244    /**
     
    317314
    318315    /**
    319      * Check if cron is running
    320      *
    321      * @since 1.0.7
    322      * @return void
    323      */
    324     public function check_if_cron_running() {
    325         // phpcs:disable
    326         // if ( current_user_can( 'manage_options' ) ) {
    327         // $status = wpcp_check_cron_status();
    328         // if ( is_wp_error( $status ) ) {
    329         // $this->add_admin_notice( 'db-cron-error', 'notice-error', sprintf( __( 'There was a problem spawning a call to the WP-Cron system on your site. This means Content Pilot on your site may not work. The problem was: %s', 'wp-content-pilot' ), '<strong>' . esc_html( $status->get_error_message() ) . '</strong>' ) );
    330         // }
    331         // }
    332         // phpcs:enable
    333     }
    334 
    335     /**
    336316     * Add custom cron schedule
    337317     *
  • wp-content-pilot/trunk/i18n/languages/wp-content-pilot.pot

    r3457661 r3483660  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Content Pilot 2.2.0\n"
     5"Project-Id-Version: Content Pilot 2.2.1\n"
    66"Report-Msgid-Bugs-To: https://wpcontentpilot.com/support/\n"
    7 "POT-Creation-Date: 2026-02-10 05:18:07+00:00\n"
     7"POT-Creation-Date: 2026-03-16 09:34:35+00:00\n"
    88"MIME-Version: 1.0\n"
    99"Content-Type: text/plain; charset=utf-8\n"
     
    3737msgstr ""
    3838
    39 #: includes/action-functions.php:288 includes/action-functions.php:370
     39#: includes/action-functions.php:287 includes/action-functions.php:367
    4040msgid "Cheating?"
    4141msgstr ""
    4242
    43 #: includes/action-functions.php:297 includes/action-functions.php:380
     43#: includes/action-functions.php:295 includes/action-functions.php:376
    4444msgid "Unauthorized user"
    4545msgstr ""
    4646
    47 #: includes/action-functions.php:306
     47#: includes/action-functions.php:304
    4848msgid "Invalid campaign ID"
    4949msgstr ""
    5050
    51 #: includes/action-functions.php:315
     51#: includes/action-functions.php:313
    5252msgid "Invalid instance"
    5353msgstr ""
    5454
    55 #: includes/action-functions.php:328
     55#: includes/action-functions.php:326
    5656msgid "Invalid post action"
    5757msgstr ""
    5858
    59 #: includes/action-functions.php:335
     59#: includes/action-functions.php:333
    6060msgid "Campaign <strong>%s</strong> manually initiated by <strong>%s</strong>"
    6161msgstr ""
    6262
    63 #: includes/action-functions.php:349
     63#: includes/action-functions.php:347
    6464msgid "A post successfully created by campaign %s titled %s"
    6565msgstr ""
    6666
    67 #: includes/action-functions.php:394
     67#: includes/action-functions.php:390
    6868msgid "Something wrong, please try again."
    6969msgstr ""
     
    8585msgstr ""
    8686
    87 #: includes/admin/class-wpcp-admin.php:102 wp-content-pilot.php:287
     87#: includes/admin/class-wpcp-admin.php:102 wp-content-pilot.php:284
    8888msgid "Go Pro"
    8989msgstr ""
     
    438438#: includes/admin/class-wpcp-settings.php:38
    439439#: includes/admin/views/metabox/spinner-settings.php:10
    440 #: wp-content-pilot.php:279
     440#: wp-content-pilot.php:276
    441441msgid "Settings"
    442442msgstr ""
     
    18061806msgstr ""
    18071807
    1808 #: includes/core-functions.php:321
     1808#: includes/core-functions.php:319
    18091809msgid "Failed to download image"
    18101810msgstr ""
    18111811
    1812 #: includes/core-functions.php:400
     1812#: includes/core-functions.php:398
    18131813#. translators: 1: The name of the PHP constant that is set.
    18141814msgid "The %s constant is set to true. WP-Cron spawning is disabled."
    18151815msgstr ""
    18161816
    1817 #: includes/core-functions.php:405
     1817#: includes/core-functions.php:403
    18181818#. translators: 1: The name of the PHP constant that is set.
    18191819msgid "The %s constant is set to true."
    18201820msgstr ""
    18211821
    1822 #: includes/core-functions.php:441
     1822#: includes/core-functions.php:439
    18231823#. translators: 1: The HTTP response code.
    18241824msgid "Unexpected HTTP response code: %s"
    18251825msgstr ""
    18261826
    1827 #: includes/core-functions.php:636
     1827#: includes/core-functions.php:634
    18281828msgid "spinwritter API details is not set, aborting article spinner"
    18291829msgstr ""
    18301830
    1831 #: includes/core-functions.php:646
     1831#: includes/core-functions.php:644
    18321832msgid "Spinwritter could not send API request, aborting article spinner"
    18331833msgstr ""
    18341834
    1835 #: includes/core-functions.php:653
     1835#: includes/core-functions.php:651
    18361836#. translators: ERROR message
    18371837msgid "Aborting article spinner Because [%s]"
     
    30043004msgstr ""
    30053005
    3006 #: wp-content-pilot.php:309
     3006#: wp-content-pilot.php:306
    30073007msgid "View documentation"
    30083008msgstr ""
    30093009
    3010 #: wp-content-pilot.php:309
     3010#: wp-content-pilot.php:306
    30113011msgid "Docs"
    30123012msgstr ""
    30133013
    3014 #: wp-content-pilot.php:346
     3014#: wp-content-pilot.php:326
    30153015msgid "Once a Minute"
    30163016msgstr ""
    30173017
    3018 #: wp-content-pilot.php:360
     3018#: wp-content-pilot.php:340
    30193019#. translators: 1. message, 2. File, 3. Line number
    30203020msgid "%1$s in %2$s on line %3$s"
  • wp-content-pilot/trunk/includes/action-functions.php

    r3391132 r3483660  
    210210        return;
    211211    }
     212
    212213    $author_id = get_post_field( 'post_author', $post_id );
    213214    $to        = get_the_author_meta( 'user_email', $author_id );
    214215    $title     = $article['title'];
    215     // When excerpt is not available.
    216216    if ( empty( $article['excerpt'] ) ) {
    217217        $summary = wp_trim_words( $article['content'], 55 );
     
    283283 */
    284284function wpcp_ajax_run_manual_campaign() {
    285     // Check nonce.
    286285    if ( ! isset( $_REQUEST['nonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_REQUEST['nonce'] ) ), 'ajax_action' ) ) {
    287286        wp_send_json( array(
     
    292291    }
    293292
    294     // Check the user capability.
    295293    if ( ! current_user_can( 'manage_options' ) ) {
    296294        wp_send_json( array(
     
    365363 */
    366364function wpcp_get_campaign_instance_log() {
    367     // Check nonce.
    368365    if ( ! isset( $_REQUEST['nonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_REQUEST['nonce'] ) ), 'ajax_action' ) ) {
    369366        wp_send_json( array(
     
    374371    }
    375372
    376     // Check the user capability.
    377373    if ( ! current_user_can( 'manage_options' ) ) {
    378374        wp_send_json( array(
  • wp-content-pilot/trunk/includes/core-functions.php

    r3293990 r3483660  
    3636}
    3737
    38 
    3938/**
    4039 * Get plugin settings.
     
    260259
    261260/**
    262  * Allow html tag when string from content.
     261 * Allow HTML tag when string from content.
    263262 *
    264263 * @param string $content The content.
     
    271270function wpcp_truncate_content( $content, $length, $html = true ) {
    272271    if ( $html ) {
    273         // if the plain text is shorter than the maximum length, return the whole text.
    274272        if ( strlen( preg_replace( '/<.*?>/', '', $content ) ) <= $length ) {
    275273            return $content;
    276274        }
    277         // Balances tags of string using a modified stack.
     275
    278276        $content = force_balance_tags( html_entity_decode( wp_trim_words( htmlentities( $content ), $length, '...' ) ) );
    279277    } else {
  • wp-content-pilot/trunk/readme.txt

    r3457661 r3483660  
    33Tags: autoblog, rss aggregator, news aggregator, rss import, youtube feed, rss to post, rss feeds
    44Tested up to: 6.9
    5 Stable tag: 2.2.0
     5Stable tag: 2.2.1
    66License: GPLv2 or later
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    127127
    128128== Changelog ==
     129= 2.2.1 (March 16, 2026) =
     130* Enhance - Remove the unused code.
     131* Compatibility - Check compatibility with the latest version of WordPress (v6.9).
    129132
    130133= 2.2.0 (February 10, 2026) =
  • wp-content-pilot/trunk/vendor/composer/installed.php

    r3457661 r3483660  
    22    'root' => array(
    33        'name' => 'pluginever/wp-content-pilot',
    4         'pretty_version' => 'v2.2.0',
    5         'version' => '2.2.0.0',
    6         'reference' => '6d8dba2b4cbdeaaf4c0233c7119f1231abbff5a8',
     4        'pretty_version' => 'v2.2.1',
     5        'version' => '2.2.1.0',
     6        'reference' => '178b9e7bfa1c58fa5d6d4b5a0b74fb2d9cbb48b6',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    2121        ),
    2222        'pluginever/wp-content-pilot' => array(
    23             'pretty_version' => 'v2.2.0',
    24             'version' => '2.2.0.0',
    25             'reference' => '6d8dba2b4cbdeaaf4c0233c7119f1231abbff5a8',
     23            'pretty_version' => 'v2.2.1',
     24            'version' => '2.2.1.0',
     25            'reference' => '178b9e7bfa1c58fa5d6d4b5a0b74fb2d9cbb48b6',
    2626            'type' => 'wordpress-plugin',
    2727            'install_path' => __DIR__ . '/../../',
  • wp-content-pilot/trunk/wp-content-pilot.php

    r3457661 r3483660  
    44 * Plugin URI:        https://wpcontentpilot.com
    55 * Description:       Content Pilot automatically posts contents from various sources based on the predefined keywords.
    6  * Version:           2.2.0
     6 * Version:           2.2.1
    77 * Requires at least: 5.2
    88 * Requires PHP:      8.0
     
    5050     * @since 1.0.0
    5151     */
    52     protected $version = '2.2.0';
     52    protected $version = '2.2.1';
    5353
    5454    /**
     
    9595        _doing_it_wrong( __FUNCTION__, esc_html__( 'Universalizing instances of this class is forbidden.', 'wp-content-pilot' ), '1.0.0' );
    9696    }
    97 
    9897
    9998    /**
     
    229228        add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'plugin_action_links' ) );
    230229        add_filter( 'plugin_row_meta', array( $this, 'plugin_row_meta' ), 10, 2 );
    231         add_action( 'admin_init', array( $this, 'check_if_cron_running' ) );
    232230    }
    233231
     
    243241        do_action( 'content__pilot__loaded' );
    244242    }
    245 
    246243
    247244    /**
     
    317314
    318315    /**
    319      * Check if cron is running
    320      *
    321      * @since 1.0.7
    322      * @return void
    323      */
    324     public function check_if_cron_running() {
    325         // phpcs:disable
    326         // if ( current_user_can( 'manage_options' ) ) {
    327         // $status = wpcp_check_cron_status();
    328         // if ( is_wp_error( $status ) ) {
    329         // $this->add_admin_notice( 'db-cron-error', 'notice-error', sprintf( __( 'There was a problem spawning a call to the WP-Cron system on your site. This means Content Pilot on your site may not work. The problem was: %s', 'wp-content-pilot' ), '<strong>' . esc_html( $status->get_error_message() ) . '</strong>' ) );
    330         // }
    331         // }
    332         // phpcs:enable
    333     }
    334 
    335     /**
    336316     * Add custom cron schedule
    337317     *
Note: See TracChangeset for help on using the changeset viewer.