Changeset 3483660
- Timestamp:
- 03/16/2026 09:53:56 AM (13 days ago)
- Location:
- wp-content-pilot
- Files:
-
- 12 edited
- 1 copied
-
tags/2.2.1 (copied) (copied from wp-content-pilot/trunk)
-
tags/2.2.1/i18n/languages/wp-content-pilot.pot (modified) (6 diffs)
-
tags/2.2.1/includes/action-functions.php (modified) (5 diffs)
-
tags/2.2.1/includes/core-functions.php (modified) (3 diffs)
-
tags/2.2.1/readme.txt (modified) (2 diffs)
-
tags/2.2.1/vendor/composer/installed.php (modified) (2 diffs)
-
tags/2.2.1/wp-content-pilot.php (modified) (6 diffs)
-
trunk/i18n/languages/wp-content-pilot.pot (modified) (6 diffs)
-
trunk/includes/action-functions.php (modified) (5 diffs)
-
trunk/includes/core-functions.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/wp-content-pilot.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-content-pilot/tags/2.2.1/i18n/languages/wp-content-pilot.pot
r3457661 r3483660 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Content Pilot 2.2. 0\n"5 "Project-Id-Version: Content Pilot 2.2.1\n" 6 6 "Report-Msgid-Bugs-To: https://wpcontentpilot.com/support/\n" 7 "POT-Creation-Date: 2026-0 2-10 05:18:07+00:00\n"7 "POT-Creation-Date: 2026-03-16 09:34:35+00:00\n" 8 8 "MIME-Version: 1.0\n" 9 9 "Content-Type: text/plain; charset=utf-8\n" … … 37 37 msgstr "" 38 38 39 #: includes/action-functions.php:28 8 includes/action-functions.php:37039 #: includes/action-functions.php:287 includes/action-functions.php:367 40 40 msgid "Cheating?" 41 41 msgstr "" 42 42 43 #: includes/action-functions.php:29 7 includes/action-functions.php:38043 #: includes/action-functions.php:295 includes/action-functions.php:376 44 44 msgid "Unauthorized user" 45 45 msgstr "" 46 46 47 #: includes/action-functions.php:30 647 #: includes/action-functions.php:304 48 48 msgid "Invalid campaign ID" 49 49 msgstr "" 50 50 51 #: includes/action-functions.php:31 551 #: includes/action-functions.php:313 52 52 msgid "Invalid instance" 53 53 msgstr "" 54 54 55 #: includes/action-functions.php:32 855 #: includes/action-functions.php:326 56 56 msgid "Invalid post action" 57 57 msgstr "" 58 58 59 #: includes/action-functions.php:33 559 #: includes/action-functions.php:333 60 60 msgid "Campaign <strong>%s</strong> manually initiated by <strong>%s</strong>" 61 61 msgstr "" 62 62 63 #: includes/action-functions.php:34 963 #: includes/action-functions.php:347 64 64 msgid "A post successfully created by campaign %s titled %s" 65 65 msgstr "" 66 66 67 #: includes/action-functions.php:39 467 #: includes/action-functions.php:390 68 68 msgid "Something wrong, please try again." 69 69 msgstr "" … … 85 85 msgstr "" 86 86 87 #: includes/admin/class-wpcp-admin.php:102 wp-content-pilot.php:28 787 #: includes/admin/class-wpcp-admin.php:102 wp-content-pilot.php:284 88 88 msgid "Go Pro" 89 89 msgstr "" … … 438 438 #: includes/admin/class-wpcp-settings.php:38 439 439 #: includes/admin/views/metabox/spinner-settings.php:10 440 #: wp-content-pilot.php:27 9440 #: wp-content-pilot.php:276 441 441 msgid "Settings" 442 442 msgstr "" … … 1806 1806 msgstr "" 1807 1807 1808 #: includes/core-functions.php:3 211808 #: includes/core-functions.php:319 1809 1809 msgid "Failed to download image" 1810 1810 msgstr "" 1811 1811 1812 #: includes/core-functions.php: 4001812 #: includes/core-functions.php:398 1813 1813 #. translators: 1: The name of the PHP constant that is set. 1814 1814 msgid "The %s constant is set to true. WP-Cron spawning is disabled." 1815 1815 msgstr "" 1816 1816 1817 #: includes/core-functions.php:40 51817 #: includes/core-functions.php:403 1818 1818 #. translators: 1: The name of the PHP constant that is set. 1819 1819 msgid "The %s constant is set to true." 1820 1820 msgstr "" 1821 1821 1822 #: includes/core-functions.php:4 411822 #: includes/core-functions.php:439 1823 1823 #. translators: 1: The HTTP response code. 1824 1824 msgid "Unexpected HTTP response code: %s" 1825 1825 msgstr "" 1826 1826 1827 #: includes/core-functions.php:63 61827 #: includes/core-functions.php:634 1828 1828 msgid "spinwritter API details is not set, aborting article spinner" 1829 1829 msgstr "" 1830 1830 1831 #: includes/core-functions.php:64 61831 #: includes/core-functions.php:644 1832 1832 msgid "Spinwritter could not send API request, aborting article spinner" 1833 1833 msgstr "" 1834 1834 1835 #: includes/core-functions.php:65 31835 #: includes/core-functions.php:651 1836 1836 #. translators: ERROR message 1837 1837 msgid "Aborting article spinner Because [%s]" … … 3004 3004 msgstr "" 3005 3005 3006 #: wp-content-pilot.php:30 93006 #: wp-content-pilot.php:306 3007 3007 msgid "View documentation" 3008 3008 msgstr "" 3009 3009 3010 #: wp-content-pilot.php:30 93010 #: wp-content-pilot.php:306 3011 3011 msgid "Docs" 3012 3012 msgstr "" 3013 3013 3014 #: wp-content-pilot.php:3 463014 #: wp-content-pilot.php:326 3015 3015 msgid "Once a Minute" 3016 3016 msgstr "" 3017 3017 3018 #: wp-content-pilot.php:3 603018 #: wp-content-pilot.php:340 3019 3019 #. translators: 1. message, 2. File, 3. Line number 3020 3020 msgid "%1$s in %2$s on line %3$s" -
wp-content-pilot/tags/2.2.1/includes/action-functions.php
r3391132 r3483660 210 210 return; 211 211 } 212 212 213 $author_id = get_post_field( 'post_author', $post_id ); 213 214 $to = get_the_author_meta( 'user_email', $author_id ); 214 215 $title = $article['title']; 215 // When excerpt is not available.216 216 if ( empty( $article['excerpt'] ) ) { 217 217 $summary = wp_trim_words( $article['content'], 55 ); … … 283 283 */ 284 284 function wpcp_ajax_run_manual_campaign() { 285 // Check nonce.286 285 if ( ! isset( $_REQUEST['nonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_REQUEST['nonce'] ) ), 'ajax_action' ) ) { 287 286 wp_send_json( array( … … 292 291 } 293 292 294 // Check the user capability.295 293 if ( ! current_user_can( 'manage_options' ) ) { 296 294 wp_send_json( array( … … 365 363 */ 366 364 function wpcp_get_campaign_instance_log() { 367 // Check nonce.368 365 if ( ! isset( $_REQUEST['nonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_REQUEST['nonce'] ) ), 'ajax_action' ) ) { 369 366 wp_send_json( array( … … 374 371 } 375 372 376 // Check the user capability.377 373 if ( ! current_user_can( 'manage_options' ) ) { 378 374 wp_send_json( array( -
wp-content-pilot/tags/2.2.1/includes/core-functions.php
r3293990 r3483660 36 36 } 37 37 38 39 38 /** 40 39 * Get plugin settings. … … 260 259 261 260 /** 262 * Allow htmltag when string from content.261 * Allow HTML tag when string from content. 263 262 * 264 263 * @param string $content The content. … … 271 270 function wpcp_truncate_content( $content, $length, $html = true ) { 272 271 if ( $html ) { 273 // if the plain text is shorter than the maximum length, return the whole text.274 272 if ( strlen( preg_replace( '/<.*?>/', '', $content ) ) <= $length ) { 275 273 return $content; 276 274 } 277 // Balances tags of string using a modified stack. 275 278 276 $content = force_balance_tags( html_entity_decode( wp_trim_words( htmlentities( $content ), $length, '...' ) ) ); 279 277 } else { -
wp-content-pilot/tags/2.2.1/readme.txt
r3457661 r3483660 3 3 Tags: autoblog, rss aggregator, news aggregator, rss import, youtube feed, rss to post, rss feeds 4 4 Tested up to: 6.9 5 Stable tag: 2.2. 05 Stable tag: 2.2.1 6 6 License: GPLv2 or later 7 7 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 127 127 128 128 == 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). 129 132 130 133 = 2.2.0 (February 10, 2026) = -
wp-content-pilot/tags/2.2.1/vendor/composer/installed.php
r3457661 r3483660 2 2 'root' => array( 3 3 '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', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 21 21 ), 22 22 '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', 26 26 'type' => 'wordpress-plugin', 27 27 'install_path' => __DIR__ . '/../../', -
wp-content-pilot/tags/2.2.1/wp-content-pilot.php
r3457661 r3483660 4 4 * Plugin URI: https://wpcontentpilot.com 5 5 * Description: Content Pilot automatically posts contents from various sources based on the predefined keywords. 6 * Version: 2.2. 06 * Version: 2.2.1 7 7 * Requires at least: 5.2 8 8 * Requires PHP: 8.0 … … 50 50 * @since 1.0.0 51 51 */ 52 protected $version = '2.2. 0';52 protected $version = '2.2.1'; 53 53 54 54 /** … … 95 95 _doing_it_wrong( __FUNCTION__, esc_html__( 'Universalizing instances of this class is forbidden.', 'wp-content-pilot' ), '1.0.0' ); 96 96 } 97 98 97 99 98 /** … … 229 228 add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'plugin_action_links' ) ); 230 229 add_filter( 'plugin_row_meta', array( $this, 'plugin_row_meta' ), 10, 2 ); 231 add_action( 'admin_init', array( $this, 'check_if_cron_running' ) );232 230 } 233 231 … … 243 241 do_action( 'content__pilot__loaded' ); 244 242 } 245 246 243 247 244 /** … … 317 314 318 315 /** 319 * Check if cron is running320 *321 * @since 1.0.7322 * @return void323 */324 public function check_if_cron_running() {325 // phpcs:disable326 // 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:enable333 }334 335 /**336 316 * Add custom cron schedule 337 317 * -
wp-content-pilot/trunk/i18n/languages/wp-content-pilot.pot
r3457661 r3483660 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Content Pilot 2.2. 0\n"5 "Project-Id-Version: Content Pilot 2.2.1\n" 6 6 "Report-Msgid-Bugs-To: https://wpcontentpilot.com/support/\n" 7 "POT-Creation-Date: 2026-0 2-10 05:18:07+00:00\n"7 "POT-Creation-Date: 2026-03-16 09:34:35+00:00\n" 8 8 "MIME-Version: 1.0\n" 9 9 "Content-Type: text/plain; charset=utf-8\n" … … 37 37 msgstr "" 38 38 39 #: includes/action-functions.php:28 8 includes/action-functions.php:37039 #: includes/action-functions.php:287 includes/action-functions.php:367 40 40 msgid "Cheating?" 41 41 msgstr "" 42 42 43 #: includes/action-functions.php:29 7 includes/action-functions.php:38043 #: includes/action-functions.php:295 includes/action-functions.php:376 44 44 msgid "Unauthorized user" 45 45 msgstr "" 46 46 47 #: includes/action-functions.php:30 647 #: includes/action-functions.php:304 48 48 msgid "Invalid campaign ID" 49 49 msgstr "" 50 50 51 #: includes/action-functions.php:31 551 #: includes/action-functions.php:313 52 52 msgid "Invalid instance" 53 53 msgstr "" 54 54 55 #: includes/action-functions.php:32 855 #: includes/action-functions.php:326 56 56 msgid "Invalid post action" 57 57 msgstr "" 58 58 59 #: includes/action-functions.php:33 559 #: includes/action-functions.php:333 60 60 msgid "Campaign <strong>%s</strong> manually initiated by <strong>%s</strong>" 61 61 msgstr "" 62 62 63 #: includes/action-functions.php:34 963 #: includes/action-functions.php:347 64 64 msgid "A post successfully created by campaign %s titled %s" 65 65 msgstr "" 66 66 67 #: includes/action-functions.php:39 467 #: includes/action-functions.php:390 68 68 msgid "Something wrong, please try again." 69 69 msgstr "" … … 85 85 msgstr "" 86 86 87 #: includes/admin/class-wpcp-admin.php:102 wp-content-pilot.php:28 787 #: includes/admin/class-wpcp-admin.php:102 wp-content-pilot.php:284 88 88 msgid "Go Pro" 89 89 msgstr "" … … 438 438 #: includes/admin/class-wpcp-settings.php:38 439 439 #: includes/admin/views/metabox/spinner-settings.php:10 440 #: wp-content-pilot.php:27 9440 #: wp-content-pilot.php:276 441 441 msgid "Settings" 442 442 msgstr "" … … 1806 1806 msgstr "" 1807 1807 1808 #: includes/core-functions.php:3 211808 #: includes/core-functions.php:319 1809 1809 msgid "Failed to download image" 1810 1810 msgstr "" 1811 1811 1812 #: includes/core-functions.php: 4001812 #: includes/core-functions.php:398 1813 1813 #. translators: 1: The name of the PHP constant that is set. 1814 1814 msgid "The %s constant is set to true. WP-Cron spawning is disabled." 1815 1815 msgstr "" 1816 1816 1817 #: includes/core-functions.php:40 51817 #: includes/core-functions.php:403 1818 1818 #. translators: 1: The name of the PHP constant that is set. 1819 1819 msgid "The %s constant is set to true." 1820 1820 msgstr "" 1821 1821 1822 #: includes/core-functions.php:4 411822 #: includes/core-functions.php:439 1823 1823 #. translators: 1: The HTTP response code. 1824 1824 msgid "Unexpected HTTP response code: %s" 1825 1825 msgstr "" 1826 1826 1827 #: includes/core-functions.php:63 61827 #: includes/core-functions.php:634 1828 1828 msgid "spinwritter API details is not set, aborting article spinner" 1829 1829 msgstr "" 1830 1830 1831 #: includes/core-functions.php:64 61831 #: includes/core-functions.php:644 1832 1832 msgid "Spinwritter could not send API request, aborting article spinner" 1833 1833 msgstr "" 1834 1834 1835 #: includes/core-functions.php:65 31835 #: includes/core-functions.php:651 1836 1836 #. translators: ERROR message 1837 1837 msgid "Aborting article spinner Because [%s]" … … 3004 3004 msgstr "" 3005 3005 3006 #: wp-content-pilot.php:30 93006 #: wp-content-pilot.php:306 3007 3007 msgid "View documentation" 3008 3008 msgstr "" 3009 3009 3010 #: wp-content-pilot.php:30 93010 #: wp-content-pilot.php:306 3011 3011 msgid "Docs" 3012 3012 msgstr "" 3013 3013 3014 #: wp-content-pilot.php:3 463014 #: wp-content-pilot.php:326 3015 3015 msgid "Once a Minute" 3016 3016 msgstr "" 3017 3017 3018 #: wp-content-pilot.php:3 603018 #: wp-content-pilot.php:340 3019 3019 #. translators: 1. message, 2. File, 3. Line number 3020 3020 msgid "%1$s in %2$s on line %3$s" -
wp-content-pilot/trunk/includes/action-functions.php
r3391132 r3483660 210 210 return; 211 211 } 212 212 213 $author_id = get_post_field( 'post_author', $post_id ); 213 214 $to = get_the_author_meta( 'user_email', $author_id ); 214 215 $title = $article['title']; 215 // When excerpt is not available.216 216 if ( empty( $article['excerpt'] ) ) { 217 217 $summary = wp_trim_words( $article['content'], 55 ); … … 283 283 */ 284 284 function wpcp_ajax_run_manual_campaign() { 285 // Check nonce.286 285 if ( ! isset( $_REQUEST['nonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_REQUEST['nonce'] ) ), 'ajax_action' ) ) { 287 286 wp_send_json( array( … … 292 291 } 293 292 294 // Check the user capability.295 293 if ( ! current_user_can( 'manage_options' ) ) { 296 294 wp_send_json( array( … … 365 363 */ 366 364 function wpcp_get_campaign_instance_log() { 367 // Check nonce.368 365 if ( ! isset( $_REQUEST['nonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_REQUEST['nonce'] ) ), 'ajax_action' ) ) { 369 366 wp_send_json( array( … … 374 371 } 375 372 376 // Check the user capability.377 373 if ( ! current_user_can( 'manage_options' ) ) { 378 374 wp_send_json( array( -
wp-content-pilot/trunk/includes/core-functions.php
r3293990 r3483660 36 36 } 37 37 38 39 38 /** 40 39 * Get plugin settings. … … 260 259 261 260 /** 262 * Allow htmltag when string from content.261 * Allow HTML tag when string from content. 263 262 * 264 263 * @param string $content The content. … … 271 270 function wpcp_truncate_content( $content, $length, $html = true ) { 272 271 if ( $html ) { 273 // if the plain text is shorter than the maximum length, return the whole text.274 272 if ( strlen( preg_replace( '/<.*?>/', '', $content ) ) <= $length ) { 275 273 return $content; 276 274 } 277 // Balances tags of string using a modified stack. 275 278 276 $content = force_balance_tags( html_entity_decode( wp_trim_words( htmlentities( $content ), $length, '...' ) ) ); 279 277 } else { -
wp-content-pilot/trunk/readme.txt
r3457661 r3483660 3 3 Tags: autoblog, rss aggregator, news aggregator, rss import, youtube feed, rss to post, rss feeds 4 4 Tested up to: 6.9 5 Stable tag: 2.2. 05 Stable tag: 2.2.1 6 6 License: GPLv2 or later 7 7 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 127 127 128 128 == 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). 129 132 130 133 = 2.2.0 (February 10, 2026) = -
wp-content-pilot/trunk/vendor/composer/installed.php
r3457661 r3483660 2 2 'root' => array( 3 3 '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', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 21 21 ), 22 22 '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', 26 26 'type' => 'wordpress-plugin', 27 27 'install_path' => __DIR__ . '/../../', -
wp-content-pilot/trunk/wp-content-pilot.php
r3457661 r3483660 4 4 * Plugin URI: https://wpcontentpilot.com 5 5 * Description: Content Pilot automatically posts contents from various sources based on the predefined keywords. 6 * Version: 2.2. 06 * Version: 2.2.1 7 7 * Requires at least: 5.2 8 8 * Requires PHP: 8.0 … … 50 50 * @since 1.0.0 51 51 */ 52 protected $version = '2.2. 0';52 protected $version = '2.2.1'; 53 53 54 54 /** … … 95 95 _doing_it_wrong( __FUNCTION__, esc_html__( 'Universalizing instances of this class is forbidden.', 'wp-content-pilot' ), '1.0.0' ); 96 96 } 97 98 97 99 98 /** … … 229 228 add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'plugin_action_links' ) ); 230 229 add_filter( 'plugin_row_meta', array( $this, 'plugin_row_meta' ), 10, 2 ); 231 add_action( 'admin_init', array( $this, 'check_if_cron_running' ) );232 230 } 233 231 … … 243 241 do_action( 'content__pilot__loaded' ); 244 242 } 245 246 243 247 244 /** … … 317 314 318 315 /** 319 * Check if cron is running320 *321 * @since 1.0.7322 * @return void323 */324 public function check_if_cron_running() {325 // phpcs:disable326 // 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:enable333 }334 335 /**336 316 * Add custom cron schedule 337 317 *
Note: See TracChangeset
for help on using the changeset viewer.