Plugin Directory

Changeset 3277272


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

2025-04-19

  • Tested with Wordpress version 6.8
  • Removed minimal php checking version
Location:
advanced-crossword/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • advanced-crossword/trunk/advanced-crossword.php

    r3195242 r3277272  
    33* Plugin Name: Advanced Crossword
    44* Plugin URI: https://tuskcode.com
    5 * Version: 1.1.0
     5* Version: 1.1.1
    66* Author: dan009
    77* Description: Create a beautiful, responsive 15x15 grid crossword to your liking. You have full control over the blank cells and the clues. Unlimited crossword puzzle in your website. Responsive and lightweight.
     
    1313    die;
    1414
    15 $Pc_Puzzle_Crossword_MinimalRequiredPhpVersion = '5.2';
    16 if( ! defined('PC_PUZZLE_CROSSWORD_VER'))
    17     define('PC_PUZZLE_CROSSWORD_VER', '1.1.0');
    18 if( ! defined('PC_PUZZLE_CROSSWORD_URL'))
    19     define( 'PC_PUZZLE_CROSSWORD_URL', plugins_url( '', __FILE__ ) );
    20 if( ! defined('PC_PUZZLE_CROSSWORD_PATH') )
    21     define('PC_PUZZLE_CROSSWORD_PATH', wp_normalize_path( plugin_dir_path( __FILE__ )) );
    22 if( ! defined('PC_PUZZLE_CROSSWORD_SHORTCODE') )
    23     define( 'PC_PUZZLE_CROSSWORD_SHORTCODE', 'ADVANCED_CROSSWORD');
    24 
    25 /* Check the php version, and display a message if the running version is lower than the required on */
    26 
    27 function PcPuzzleCrossword_noticePhpVersionWrong(){
    28     global $Pc_Puzzle_Crossword_MinimalRequiredPhpVersion;
    29     echo esc_html('<div class="updated fade">') .
    30         esc_html__( 'Error: Plugin "Puzzle Crossword" requires a higher version of PHP to be running.', 'advanced-crossword' ) .
    31         '<br/>' . esc_html__('Minimal version of PHP required: ', 'advanced-crossword' ) . '<strong>' . $Pc_Puzzle_Crossword_MinimalRequiredPhpVersion . '</strong>'.
    32         '<br/>' . esc_html__('Your server\'s PHP version: ', 'advanced-crossword' ) . '<strong>' . phpversion() . '</strong></div>';
    33 }
    34 
    35 function PcPuzzleCrossword_PhpVersionCheck(){
    36     global $Pc_Puzzle_Crossword_MinimalRequiredPhpVersion;
    37     if( version_compare(phpversion(), $Pc_Puzzle_Crossword_MinimalRequiredPhpVersion ) < 0 ){
    38         add_action('admin_notices', 'PcPuzzleCrossword_noticePhpVersionWrong');
    39         return false;
    40     }
    41     return true;
    42 }
     15if( ! defined('PC_PUZZLE_CROSSWORD_VER')) define('PC_PUZZLE_CROSSWORD_VER', '1.1.1');
     16if( ! defined('PC_PUZZLE_CROSSWORD_URL')) define( 'PC_PUZZLE_CROSSWORD_URL', plugins_url( '', __FILE__ ) );
     17if( ! defined('PC_PUZZLE_CROSSWORD_PATH') ) define('PC_PUZZLE_CROSSWORD_PATH', wp_normalize_path( plugin_dir_path( __FILE__ )) );
     18if( ! defined('PC_PUZZLE_CROSSWORD_SHORTCODE') ) define( 'PC_PUZZLE_CROSSWORD_SHORTCODE', 'ADVANCED_CROSSWORD');
    4319
    4420function Pc_Puzzle_Crossword_i18n_init(){
     
    4723}
    4824
    49 if( PcPuzzleCrossword_PhpVersionCheck() ){   
    50     include_once( 'Pc_Puzzle_Crossword_init.php');
    51     if( function_exists('PcPuzzleCrossword_init')){   
    52         PcPuzzleCrossword_init( __FILE__ );
    53     }
     25include_once( 'Pc_Puzzle_Crossword_init.php');
     26if( function_exists('PcPuzzleCrossword_init')){   
     27    PcPuzzleCrossword_init( __FILE__ );
    5428}
    5529
     30
    5631add_action( 'init', 'Pc_Puzzle_Crossword_i18n_init');   
  • advanced-crossword/trunk/includes/PcPuzzleCrossword_LifeCycle.php

    r3195242 r3277272  
    918918
    919919}
    920 
  • advanced-crossword/trunk/readme.txt

    r3195242 r3277272  
    44Tags: crossword, puzzle, word game
    55Requires at least: 5.0.1
    6 Tested up to: 6.7
    7 Stable tag: 1.1.0
     6Tested up to: 6.8
     7Stable tag: 1.1.1
    88Requires PHP: 5.2.4
    99License: GPLv2 or later
     
    4242
    4343== Changelog ==
     44
     45= 2025-04-19
     46* Tested with Wordpress version 6.8
     47* Removed minimal php checking version
    4448
    4549= 2024-11-22
Note: See TracChangeset for help on using the changeset viewer.