PluginProbe
WP-Polls / trunk
WP-Polls vtrunk
3.0.2 3.0.1 trunk 1.00 2.02a 2.03 2.04 2.05 2.06 2.06a 2.06b 2.10 2.11 2.12 2.13 2.14 2.20 2.21 2.30 2.31 2.40 2.50 2.64 2.65 2.66 All 54 releases
wp-polls / wp-polls.php

wp-polls.php in WP-Polls trunk, at wp-polls.php

74 lines 3.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: WP-Polls
4 * Plugin URI: https://lesterchan.net/portfolio/programming/php/
5 * Description: Adds an AJAX poll system to your WordPress blog. You can easily include a poll into your WordPress's blog post/page. WP-Polls is extremely customizable via templates and css styles and there are tons of options for you to choose to ensure that WP-Polls runs the way you wanted. It now supports multiple selection of answers.
6 * Version: 3.0.2
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-polls
14 * Domain Path: /languages
15 *
16 * @package WP-Polls
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
38 // Exit if accessed directly.
39 defined( 'ABSPATH' ) || exit;
40
41
42 // Versions. WP_POLLS_VERSION is the plugin's own; WP_POLLS_DB_VERSION is the
43 // schema counter, bumped whenever the CREATE TABLE statements or the indexes
44 // change so the schema work runs once on the next load.
45 define( 'WP_POLLS_VERSION', '3.0.2' );
46 define( 'WP_POLLS_DB_VERSION', '1' );
47
48 // Identity and paths. The paths are derived from this file so the plugin keeps
49 // working if its directory is renamed; nothing user visible depends on that
50 // name any more, because every admin page slug is a literal.
51 define( 'WP_POLLS_SLUG', 'wp-polls' );
52 define( 'WP_POLLS_MAIN_FILE', __FILE__ );
53 define( 'WP_POLLS_DIR', plugin_dir_path( __FILE__ ) );
54 define( 'WP_POLLS_URL', plugin_dir_url( __FILE__ ) );
55
56 // Classes. Required at file load because the activation hook and the option
57 // accessor are both reached before any action fires.
58 require_once WP_POLLS_DIR . 'includes/class-wp-polls-template.php';
59 require_once WP_POLLS_DIR . 'includes/class-wp-polls-options.php';
60 require_once WP_POLLS_DIR . 'includes/class-wp-polls-poll.php';
61 require_once WP_POLLS_DIR . 'includes/class-wp-polls-api.php';
62 require_once WP_POLLS_DIR . 'includes/class-wp-polls-blocks.php';
63 require_once WP_POLLS_DIR . 'includes/class-wp-polls-settings.php';
64 require_once WP_POLLS_DIR . 'includes/class-wp-polls-widget.php';
65 require_once WP_POLLS_DIR . 'includes/class-wp-polls-install.php';
66 require_once WP_POLLS_DIR . 'includes/class-wp-polls-vote.php';
67 require_once WP_POLLS_DIR . 'includes/class-wp-polls-display.php';
68 require_once WP_POLLS_DIR . 'includes/class-wp-polls-admin.php';
69 require_once WP_POLLS_DIR . 'includes/class-wp-polls-wpstats.php';
70 require_once WP_POLLS_DIR . 'includes/class-wp-polls.php';
71 require_once WP_POLLS_DIR . 'includes/template-tags.php';
72
73 WP_Polls::init();
74