-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy pathwp-polls.php
More file actions
73 lines (62 loc) · 3.25 KB
/
Copy pathwp-polls.php
File metadata and controls
73 lines (62 loc) · 3.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
/**
* Plugin Name: WP-Polls
* Plugin URI: https://lesterchan.net/portfolio/programming/php/
* 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.
* Version: 3.0.2
* Requires at least: 6.8
* Requires PHP: 8.2
* Author: Lester 'GaMerZ' Chan
* Author URI: https://lesterchan.net
* License: GPLv2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: wp-polls
* Domain Path: /languages
*
* @package WP-Polls
*/
/*
Copyright 2026 Lester Chan (email : lesterchan@gmail.com)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;
// Versions. WP_POLLS_VERSION is the plugin's own; WP_POLLS_DB_VERSION is the
// schema counter, bumped whenever the CREATE TABLE statements or the indexes
// change so the schema work runs once on the next load.
define( 'WP_POLLS_VERSION', '3.0.2' );
define( 'WP_POLLS_DB_VERSION', '1' );
// Identity and paths. The paths are derived from this file so the plugin keeps
// working if its directory is renamed; nothing user visible depends on that
// name any more, because every admin page slug is a literal.
define( 'WP_POLLS_SLUG', 'wp-polls' );
define( 'WP_POLLS_MAIN_FILE', __FILE__ );
define( 'WP_POLLS_DIR', plugin_dir_path( __FILE__ ) );
define( 'WP_POLLS_URL', plugin_dir_url( __FILE__ ) );
// Classes. Required at file load because the activation hook and the option
// accessor are both reached before any action fires.
require_once WP_POLLS_DIR . 'includes/class-wp-polls-template.php';
require_once WP_POLLS_DIR . 'includes/class-wp-polls-options.php';
require_once WP_POLLS_DIR . 'includes/class-wp-polls-poll.php';
require_once WP_POLLS_DIR . 'includes/class-wp-polls-api.php';
require_once WP_POLLS_DIR . 'includes/class-wp-polls-blocks.php';
require_once WP_POLLS_DIR . 'includes/class-wp-polls-settings.php';
require_once WP_POLLS_DIR . 'includes/class-wp-polls-widget.php';
require_once WP_POLLS_DIR . 'includes/class-wp-polls-install.php';
require_once WP_POLLS_DIR . 'includes/class-wp-polls-vote.php';
require_once WP_POLLS_DIR . 'includes/class-wp-polls-display.php';
require_once WP_POLLS_DIR . 'includes/class-wp-polls-admin.php';
require_once WP_POLLS_DIR . 'includes/class-wp-polls-wpstats.php';
require_once WP_POLLS_DIR . 'includes/class-wp-polls.php';
require_once WP_POLLS_DIR . 'includes/template-tags.php';
WP_Polls::init();