Changeset 3277272
- Timestamp:
- 04/19/2025 05:09:40 PM (9 months ago)
- Location:
- advanced-crossword/trunk
- Files:
-
- 3 edited
-
advanced-crossword.php (modified) (3 diffs)
-
includes/PcPuzzleCrossword_LifeCycle.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
advanced-crossword/trunk/advanced-crossword.php
r3195242 r3277272 3 3 * Plugin Name: Advanced Crossword 4 4 * Plugin URI: https://tuskcode.com 5 * Version: 1.1. 05 * Version: 1.1.1 6 6 * Author: dan009 7 7 * 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. … … 13 13 die; 14 14 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 } 15 if( ! defined('PC_PUZZLE_CROSSWORD_VER')) define('PC_PUZZLE_CROSSWORD_VER', '1.1.1'); 16 if( ! defined('PC_PUZZLE_CROSSWORD_URL')) define( 'PC_PUZZLE_CROSSWORD_URL', plugins_url( '', __FILE__ ) ); 17 if( ! defined('PC_PUZZLE_CROSSWORD_PATH') ) define('PC_PUZZLE_CROSSWORD_PATH', wp_normalize_path( plugin_dir_path( __FILE__ )) ); 18 if( ! defined('PC_PUZZLE_CROSSWORD_SHORTCODE') ) define( 'PC_PUZZLE_CROSSWORD_SHORTCODE', 'ADVANCED_CROSSWORD'); 43 19 44 20 function Pc_Puzzle_Crossword_i18n_init(){ … … 47 23 } 48 24 49 if( PcPuzzleCrossword_PhpVersionCheck() ){ 50 include_once( 'Pc_Puzzle_Crossword_init.php'); 51 if( function_exists('PcPuzzleCrossword_init')){ 52 PcPuzzleCrossword_init( __FILE__ ); 53 } 25 include_once( 'Pc_Puzzle_Crossword_init.php'); 26 if( function_exists('PcPuzzleCrossword_init')){ 27 PcPuzzleCrossword_init( __FILE__ ); 54 28 } 55 29 30 56 31 add_action( 'init', 'Pc_Puzzle_Crossword_i18n_init'); -
advanced-crossword/trunk/includes/PcPuzzleCrossword_LifeCycle.php
r3195242 r3277272 918 918 919 919 } 920 -
advanced-crossword/trunk/readme.txt
r3195242 r3277272 4 4 Tags: crossword, puzzle, word game 5 5 Requires at least: 5.0.1 6 Tested up to: 6. 77 Stable tag: 1.1. 06 Tested up to: 6.8 7 Stable tag: 1.1.1 8 8 Requires PHP: 5.2.4 9 9 License: GPLv2 or later … … 42 42 43 43 == Changelog == 44 45 = 2025-04-19 46 * Tested with Wordpress version 6.8 47 * Removed minimal php checking version 44 48 45 49 = 2024-11-22
Note: See TracChangeset
for help on using the changeset viewer.