Plugin Directory

Changeset 2899723


Ignore:
Timestamp:
04/16/2023 12:57:45 PM (3 years ago)
Author:
wppool
Message:

Update to version 4.1.5 from GitHub

Location:
dark-mode
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • dark-mode/tags/4.1.5/dark-mode.php

    r2892109 r2899723  
    77 * Author URI: https://wppool.dev
    88 * Text Domain: dark-mode
    9  * Version: 4.1.4
     9 * Version: 4.1.5
    1010 *
    1111 * @package WP_Markdown
     
    1515
    1616if ( ! class_exists( 'Dark_Mode' ) ) {
    17     define( 'DARK_MODE_VERSION', '4.1.4' );
     17    define( 'DARK_MODE_VERSION', '4.1.5' );
    1818    define( 'DARK_MODE_FILE', __FILE__ );
    1919    define( 'DARK_MODE_PATH', plugin_dir_path( DARK_MODE_FILE ) );
    2020    define( 'DARK_MODE_INCLUDES', DARK_MODE_PATH . '/includes' );
    2121    define( 'DARK_MODE_URL', plugin_dir_url( DARK_MODE_FILE ) );
     22
     23    $mark_basename   = basename( __FILE__ );
     24    $plugin_basename = plugin_basename( __FILE__ );
     25    $plugin_dir      = str_replace( $mark_basename, '', $plugin_basename );
     26    $plugin_dir_name = preg_replace( '/[^a-zA-Z0-9_ %\[\]\.\(\)%&-]/s', '', $plugin_dir );
     27
     28    define( 'PLUGIN_DIR_NAME', $plugin_dir_name );
    2229
    2330    register_activation_hook(
  • dark-mode/tags/4.1.5/includes/class-dark-mode.php

    r2892109 r2899723  
    186186        // Initialize WPPOOL SDK.
    187187        if ( function_exists( 'wppool_plugin_init' ) ) {
    188             wppool_plugin_init( 'wp_markdown' );
     188            if ( 'wp-markdown' === PLUGIN_DIR_NAME ) {
     189                wppool_plugin_init( 'wp_markdown' );
     190            } elseif ( 'dark-mode' === PLUGIN_DIR_NAME ) {
     191                wppool_plugin_init( 'dark_mode' );
     192            }
    189193        }
    190194    }
  • dark-mode/tags/4.1.5/includes/wppool/class-plugin.php

    r2892109 r2899723  
    5858        public $plugins = [
    5959            'wp_markdown'                           => [
     60                'list_id'     => 19,
     61                'button_link' => 'https://go.wppool.dev/wme',
     62                'button_text' => 'Get Premium',
     63                'color'       => '#f1c40f',
     64            ],
     65            'dark_mode'                           => [
    6066                'list_id'     => 19,
    6167                'button_link' => 'https://go.wppool.dev/wme',
     
    12791285    }
    12801286}
    1281 
  • dark-mode/tags/4.1.5/readme.txt

    r2892117 r2899723  
    44Requires at least: 5.0.0
    55Tested up to: 6.2
    6 Stable tag: 4.1.4
     6Stable tag: 4.1.5
    77Requires PHP: 5.6
    88License: GNU GPL v2 or later
     
    8787== Changelog ==
    8888
     89= 4.1.5 =
     90* Fix: Fixed FluentCRM not collect leads
     91
    8992= 4.1.4 =
    9093* Improvement: Updated Appsero client
  • dark-mode/trunk/dark-mode.php

    r2892109 r2899723  
    77 * Author URI: https://wppool.dev
    88 * Text Domain: dark-mode
    9  * Version: 4.1.4
     9 * Version: 4.1.5
    1010 *
    1111 * @package WP_Markdown
     
    1515
    1616if ( ! class_exists( 'Dark_Mode' ) ) {
    17     define( 'DARK_MODE_VERSION', '4.1.4' );
     17    define( 'DARK_MODE_VERSION', '4.1.5' );
    1818    define( 'DARK_MODE_FILE', __FILE__ );
    1919    define( 'DARK_MODE_PATH', plugin_dir_path( DARK_MODE_FILE ) );
    2020    define( 'DARK_MODE_INCLUDES', DARK_MODE_PATH . '/includes' );
    2121    define( 'DARK_MODE_URL', plugin_dir_url( DARK_MODE_FILE ) );
     22
     23    $mark_basename   = basename( __FILE__ );
     24    $plugin_basename = plugin_basename( __FILE__ );
     25    $plugin_dir      = str_replace( $mark_basename, '', $plugin_basename );
     26    $plugin_dir_name = preg_replace( '/[^a-zA-Z0-9_ %\[\]\.\(\)%&-]/s', '', $plugin_dir );
     27
     28    define( 'PLUGIN_DIR_NAME', $plugin_dir_name );
    2229
    2330    register_activation_hook(
  • dark-mode/trunk/includes/class-dark-mode.php

    r2892109 r2899723  
    186186        // Initialize WPPOOL SDK.
    187187        if ( function_exists( 'wppool_plugin_init' ) ) {
    188             wppool_plugin_init( 'wp_markdown' );
     188            if ( 'wp-markdown' === PLUGIN_DIR_NAME ) {
     189                wppool_plugin_init( 'wp_markdown' );
     190            } elseif ( 'dark-mode' === PLUGIN_DIR_NAME ) {
     191                wppool_plugin_init( 'dark_mode' );
     192            }
    189193        }
    190194    }
  • dark-mode/trunk/includes/wppool/class-plugin.php

    r2892109 r2899723  
    5858        public $plugins = [
    5959            'wp_markdown'                           => [
     60                'list_id'     => 19,
     61                'button_link' => 'https://go.wppool.dev/wme',
     62                'button_text' => 'Get Premium',
     63                'color'       => '#f1c40f',
     64            ],
     65            'dark_mode'                           => [
    6066                'list_id'     => 19,
    6167                'button_link' => 'https://go.wppool.dev/wme',
     
    12791285    }
    12801286}
    1281 
  • dark-mode/trunk/readme.txt

    r2892117 r2899723  
    44Requires at least: 5.0.0
    55Tested up to: 6.2
    6 Stable tag: 4.1.4
     6Stable tag: 4.1.5
    77Requires PHP: 5.6
    88License: GNU GPL v2 or later
     
    8787== Changelog ==
    8888
     89= 4.1.5 =
     90* Fix: Fixed FluentCRM not collect leads
     91
    8992= 4.1.4 =
    9093* Improvement: Updated Appsero client
Note: See TracChangeset for help on using the changeset viewer.