Plugin Directory

Changeset 3277218


Ignore:
Timestamp:
04/19/2025 01:24:05 PM (9 months ago)
Author:
dan009
Message:

2025-04-19

  • Compatible with Wordpress 6.8
  • Removed notice if PHP version is less than 5.2
Location:
raffle-play-woo/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • raffle-play-woo/trunk/raffle-play-woo.php

    r3254308 r3277218  
    33* Plugin Name: Raffle Play Woo
    44* Plugin URI: https://tuskcode.com
    5 * Version: 2.4.4
     5* Version: 2.4.5
    66* Author: dan009
    77* Description: Raffle Play Woo is the next raffle plugin for your website. It offers a complete workflow of managing raffle tickets from the admin view to the user experience.
     
    1313    die('No Access to this page');
    1414
    15 $RafflePlayWoo_MinimalRequiredPhpVersion = '5.2';
    16 if( ! defined('RAFFLE_PLAY_WOO_VERSION')) define('RAFFLE_PLAY_WOO_VERSION', '2.4.4');
    17 if( ! defined('RAFFLE_PLAY_WOO_WP_TESTED')) define('RAFFLE_PLAY_WOO_WP_TESTED', '6.7');
     15if( ! defined('RAFFLE_PLAY_WOO_VERSION')) define('RAFFLE_PLAY_WOO_VERSION', '2.4.5');
     16if( ! defined('RAFFLE_PLAY_WOO_WP_TESTED')) define('RAFFLE_PLAY_WOO_WP_TESTED', '6.8');
    1817if( ! defined('RAFFLE_PLAY_WOO_URL')) define( 'RAFFLE_PLAY_WOO_URL', esc_url( plugins_url( '', __FILE__ ) ) );
    1918if( ! defined('RAFFLE_PLAY_WOO_DIR_PATH') ) define('RAFFLE_PLAY_WOO_DIR_PATH', plugin_dir_path( __FILE__ ));
    2019if( ! defined('RAFFLE_PLAY_WOO_LOG_FILE')) define( 'RAFFLE_PLAY_WOO_LOG_FILE', RAFFLE_PLAY_WOO_DIR_PATH . 'logs/RafflePlayWoo_error.log' );
    21 
    22 /* Check the php version, and display a message if the running version is lower than the required on */
    23 
    24 function RafflePlayWoo_noticePhpVersionWrong(){
    25     global $RafflePlayWoo_MinimalRequiredPhpVersion;
    26     echo '<div class="updated fade">' .
    27         esc_html__( 'Error: plugin "Raffle Play" requires a higher version of PHP to be running.', 'raffle-play-woo' ).
    28         '<br/>' . esc_html__('Minimal version of PHP required: ', 'raffle-play-woo' ) . '<strong>' . $RafflePlayWoo_MinimalRequiredPhpVersion . '</strong>'.
    29         '<br/>' . esc_html__('Your server\'s PHP version: ', 'raffle-play-woo' ) . '<strong>' . phpversion() . '</strong></div>';
    30 }
    3120
    3221function RafflePlayWoo_RaffleNotLicensed(){
     
    5241}
    5342
    54 function RafflePlayWoo_PhpVersionCheck(){
    55     global $RafflePlayWoo_MinimalRequiredPhpVersion;
    56     if( version_compare(phpversion(), $RafflePlayWoo_MinimalRequiredPhpVersion ) < 0 ){
    57         add_action('admin_notices', 'RafflePlayWoo_noticePhpVersionWrong');
    58         return false;
    59     }
    60     return true;
    61 }
    62 
    6343function RafflePlayWoo_WoocommerceInstalled(){
    6444    $result = false;
     
    7858}
    7959
    80 if( RafflePlayWoo_PhpVersionCheck() && RafflePlayWoo_WoocommerceInstalled()  ){   
     60if( RafflePlayWoo_WoocommerceInstalled()  ){   
    8161    include_once( 'raffle-play-woo_init.php');     
    8262    RafflePlayWoo_init\RafflePlayWoo_init::RafflePlayWoo_init_plugin( __FILE__ );
  • raffle-play-woo/trunk/readme.txt

    r3254308 r3277218  
    44Tags: raffle, raffle tickets, raffle tickets generator, woocommerce raffle tickets
    55Requires at least: 5.0.1
    6 Tested up to: 6.7
    7 Stable tag: 2.4.4
     6Tested up to: 6.8
     7Stable tag: 2.4.5
    88Requires PHP: 5.2.4
    99License: GPLv2 or later
     
    3535
    3636== Changelog ==
     37
     38= 2025-04-19
     39* Compatible with Wordpress 6.8
     40* Removed notice if PHP version is less than 5.2
    3741
    3842= 2025-03-11
Note: See TracChangeset for help on using the changeset viewer.