Changeset 3822865
- Timestamp:
- 11/25/2026 12:55:31 PM (12 hours ago)
- Location:
- flawless-themes-demo-importer/trunk
- Files:
-
- 3 edited
-
README.txt (modified) (2 diffs)
-
flawless-demo-importer.php (modified) (2 diffs)
-
includes/class-flawless-demo-importer.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
flawless-themes-demo-importer/trunk/README.txt
r3822747 r3822865 5 5 Requires at least: 6.0 6 6 Tested up to: 7.1 7 Stable tag: 1.0.2 37 Stable tag: 1.0.24 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or later … … 103 103 * Improved compatibility with WordPress.org Plugin Check. 104 104 105 = 1.0.24 = 106 * Fixed a demo importer plugin activation error. 107 105 108 == Upgrade Notice == 106 109 -
flawless-themes-demo-importer/trunk/flawless-demo-importer.php
r3822747 r3822865 17 17 * Plugin URI: 18 18 * Description: Import Demo Content for Flawless Themes free version Themes 19 * Version: 1.0.2 319 * Version: 1.0.24 20 20 * Author: Flawless Themes 21 21 * Author URI: https://flawlessthemes.com/ … … 36 36 * Rename this for your plugin and update it as you release new versions. 37 37 */ 38 define( 'FLAWLESS_DEMO_IMPORTER_VERSION', '1.0.2 3' );38 define( 'FLAWLESS_DEMO_IMPORTER_VERSION', '1.0.24' ); 39 39 40 40 /** -
flawless-themes-demo-importer/trunk/includes/class-flawless-demo-importer.php
r3822747 r3822865 373 373 } 374 374 } 375 if (in_array('one-click-demo-import/one-click-demo-import.php', apply_filters('flawless_demo_importer_active_plugins', get_option('flawless_demo_importer_active_plugins')))) { 376 377 add_filter('pt-ocdi/import_files', 'flawless_demo_importer_import_files'); 375 376 377 $active_plugins = apply_filters( 378 'flawless_demo_importer_active_plugins', 379 get_option( 'flawless_demo_importer_active_plugins', array() ) 380 ); 381 382 // Ensure active plugins is always an array. 383 if ( ! is_array( $active_plugins ) ) { 384 $active_plugins = array(); 385 } 386 387 if ( in_array( 'one-click-demo-import/one-click-demo-import.php', $active_plugins, true ) ) { 388 389 add_filter( 'pt-ocdi/import_files', 'flawless_demo_importer_import_files' ); 378 390 add_action( 'pt-ocdi/after_import', 'flawless_demo_importer_after_import_setup' ); 379 } 380 else{ 381 function flawless_demo_importer_sample_admin_notice__error() { 382 $class = 'notice notice-error'; 383 $message = __( 'You have not installed or activated the One Click Demo Import Plugin', 'flawless-themes-demo-importer' ); 384 385 printf( '<div class="%1$s"><p>%2$s</p></div>', esc_attr( $class ), esc_html( $message ) ); 386 } 387 add_action( 'admin_notices', 'flawless_demo_importer_sample_admin_notice__error' ); 391 392 } else { 393 394 if ( ! function_exists( 'flawless_demo_importer_sample_admin_notice__error' ) ) { 395 396 function flawless_demo_importer_sample_admin_notice__error() { 397 $class = 'notice notice-error'; 398 $message = __( 'You have not installed or activated the One Click Demo Import Plugin', 'flawless-themes-demo-importer' ); 399 400 printf( 401 '<div class="%1$s"><p>%2$s</p></div>', 402 esc_attr( $class ), 403 esc_html( $message ) 404 ); 405 } 406 } 407 408 add_action( 'admin_notices', 'flawless_demo_importer_sample_admin_notice__error' ); 388 409 } 389 410
Note:
See TracChangeset
for help on using the changeset viewer.