| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: WP-CommentNavi |
| 4 |
* Plugin URI: https://lesterchan.net/portfolio/programming/php/ |
| 5 |
* Description: Adds a more advanced paging navigation for your comments to your WordPress blog |
| 6 |
* Version: 2.0.0 |
| 7 |
* Requires at least: 6.8 |
| 8 |
* Requires PHP: 8.2 |
| 9 |
* Author: Lester 'GaMerZ' Chan |
| 10 |
* Author URI: https://lesterchan.net |
| 11 |
* License: GPLv2 or later |
| 12 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| 13 |
* Text Domain: wp-commentnavi |
| 14 |
* Domain Path: /languages |
| 15 |
* |
| 16 |
* @package WP-CommentNavi |
| 17 |
*/ |
| 18 |
|
| 19 |
/* |
| 20 |
Copyright 2026 Lester Chan (email : lesterchan@gmail.com) |
| 21 |
|
| 22 |
This program is free software; you can redistribute it and/or modify |
| 23 |
it under the terms of the GNU General Public License as published by |
| 24 |
the Free Software Foundation; either version 2 of the License, or |
| 25 |
(at your option) any later version. |
| 26 |
|
| 27 |
This program is distributed in the hope that it will be useful, |
| 28 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 29 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 30 |
GNU General Public License for more details. |
| 31 |
|
| 32 |
You should have received a copy of the GNU General Public License |
| 33 |
along with this program; if not, write to the Free Software |
| 34 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 35 |
*/ |
| 36 |
|
| 37 |
// Prevent direct access. |
| 38 |
defined( 'ABSPATH' ) || exit; |
| 39 |
|
| 40 |
define( 'WP_COMMENTNAVI_VERSION', '2.0.0' ); |
| 41 |
define( 'WP_COMMENTNAVI_DB_VERSION', '1' ); |
| 42 |
define( 'WP_COMMENTNAVI_SLUG', 'wp-commentnavi' ); |
| 43 |
define( 'WP_COMMENTNAVI_MAIN_FILE', __FILE__ ); |
| 44 |
define( 'WP_COMMENTNAVI_DIR', plugin_dir_path( __FILE__ ) ); |
| 45 |
define( 'WP_COMMENTNAVI_URL', plugin_dir_url( __FILE__ ) ); |
| 46 |
|
| 47 |
require_once WP_COMMENTNAVI_DIR . 'includes/class-wp-commentnavi.php'; |
| 48 |
|
| 49 |
WP_CommentNavi::init(); |
| 50 |
|