Changeset 3039978
- Timestamp:
- 02/23/2024 01:58:51 AM (2 years ago)
- Location:
- contests-from-rewards-fuel/trunk
- Files:
-
- 13 edited
-
Readme.txt (modified) (2 diffs)
-
contests-from-rewards-fuel.php (modified) (4 diffs)
-
includes/Class_rf.php (modified) (1 diff)
-
includes/class-contests-from-rewards-fuel-activator.php (modified) (3 diffs)
-
includes/class-contests-from-rewards-fuel-admin.php (modified) (4 diffs)
-
includes/class-contests-from-rewards-fuel-deactivator.php (modified) (3 diffs)
-
includes/class-contests-from-rewards-fuel-entry-methods.php (modified) (3 diffs)
-
includes/class-contests-from-rewards-fuel-i18n.php (modified) (3 diffs)
-
includes/class-contests-from-rewards-fuel-loader.php (modified) (6 diffs)
-
includes/class-contests-from-rewards-fuel.php (modified) (8 diffs)
-
public/class-contests-from-rewards-fuel-public.php (modified) (4 diffs)
-
public/partials/contests-from-rewards-fuel-public-display.php (modified) (1 diff)
-
uninstall.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
contests-from-rewards-fuel/trunk/Readme.txt
r2959523 r3039978 5 5 Requires at least: 3.0.1 6 6 Requires PHP: 5.4 7 Tested up to: 6. 38 Stable tag: 2.0.6 27 Tested up to: 6.4.3 8 Stable tag: 2.0.63 9 9 License: MIT 10 10 License URI: https://RewardsFuel.com/wp_license.txt … … 107 107 108 108 ==Changelog== 109 V 2.0.6 2- Fixed some bugs109 V 2.0.63 - Fixed some bugs 110 110 111 111 ==Upgrade Notice== -
contests-from-rewards-fuel/trunk/contests-from-rewards-fuel.php
r2959523 r3039978 10 10 * 11 11 * @link https://RewardsFuel.com 12 * @since 2.0.6 212 * @since 2.0.63 13 13 * @package Contests_From_Rewards_Fuel 14 14 * … … 17 17 * Plugin URI: https://RewardsFuel.com 18 18 * Description: Run contests which add incentive for subscribing and more 19 * Version: 2.0.6 219 * Version: 2.0.63 20 20 * Author: Rewards Fuel LLC 21 21 * Author URI: https://RewardsFuel.com … … 33 33 /** 34 34 * Currently plugin version. 35 * Start at version 2.0.6 2and use SemVer - https://semver.org35 * Start at version 2.0.63 and use SemVer - https://semver.org 36 36 * Rename this for your plugin and update it as you release new versions. 37 37 */ 38 define( 'CONTESTS_FROM_REWARDS_FUEL_VERSION', '2.0.6 2' );38 define( 'CONTESTS_FROM_REWARDS_FUEL_VERSION', '2.0.63' ); 39 39 define( 'CONTESTS_FROM_REWARDS_FUEL_BASE_URL', plugin_dir_url(__FILE__) ); 40 40 define( 'CONTESTS_FROM_REWARDS_FUEL_FILE_ROOT', plugin_dir_path( __FILE__ ) ); … … 74 74 * not affect the page life cycle. 75 75 * 76 * @since 2.0.6 276 * @since 2.0.63 77 77 */ 78 78 function run_contests_from_rewards_fuel() { -
contests-from-rewards-fuel/trunk/includes/Class_rf.php
r2959523 r3039978 9 9 $this->version = CONTESTS_FROM_REWARDS_FUEL_VERSION; 10 10 } else { 11 $this->version = '2.0.6 2';11 $this->version = '2.0.63'; 12 12 } 13 13 $this->cl = $this; -
contests-from-rewards-fuel/trunk/includes/class-contests-from-rewards-fuel-activator.php
r2959523 r3039978 5 5 * 6 6 * @link https://RewardsFuel.com 7 * @since 2.0.6 27 * @since 2.0.63 8 8 * 9 9 * @package Contests_From_Rewards_Fuel … … 16 16 * This class defines all code necessary to run during the plugin's activation. 17 17 * 18 * @since 2.0.6 218 * @since 2.0.63 19 19 * @package Contests_From_Rewards_Fuel 20 20 * @subpackage Contests_From_Rewards_Fuel/includes … … 28 28 * Long Description. 29 29 * 30 * @since 2.0.6 230 * @since 2.0.63 31 31 */ 32 32 public function __construct() { -
contests-from-rewards-fuel/trunk/includes/class-contests-from-rewards-fuel-admin.php
r2959523 r3039978 5 5 * 6 6 * @link https://RewardsFuel.com 7 * @since 2.0.6 27 * @since 2.0.63 8 8 * 9 9 * @package Contests_From_Rewards_Fuel … … 24 24 * The array of actions registered with WordPress. 25 25 * 26 * @since 2.0.6 226 * @since 2.0.63 27 27 * @access protected 28 28 * @var array $actions The actions registered with WordPress to fire when the plugin loads. … … 54 54 //added on activation hook 55 55 public static function ajax_handler(){ 56 if (!defined('DOING_AJAX')) 57 return false; 56 if (!defined('DOING_AJAX') || !wp_verify_nonce($_REQUEST['nonce'], 'rf_ajax_nonce')) { 57 wp_die('Invalid nonce'); 58 } 59 58 60 try { 59 61 $capability = "edit_posts"; … … 62 64 Contests_From_Rewards_Fuel_Admin::get_contests(); 63 65 } 64 if (isset($_REQUEST["update_rewards_fuel_api_key"])) { 65 update_option("rewards_fuel_api_key", $_REQUEST["update_rewards_fuel_api_key"]); 66 if (isset($_REQUEST["update_rewards_fuel_api_key"]) && current_user_can('administrator')) { 67 $api_key = sanitize_text_field($_REQUEST["update_rewards_fuel_api_key"]); 68 update_option("rewards_fuel_api_key", $api_key); 66 69 wp_die(); 67 70 } -
contests-from-rewards-fuel/trunk/includes/class-contests-from-rewards-fuel-deactivator.php
r2959523 r3039978 5 5 * 6 6 * @link https://RewardsFuel.com 7 * @since 2.0.6 27 * @since 2.0.63 8 8 * 9 9 * @package Contests_From_Rewards_Fuel … … 16 16 * This class defines all code necessary to run during the plugin's deactivation. 17 17 * 18 * @since 2.0.6 218 * @since 2.0.63 19 19 * @package Contests_From_Rewards_Fuel 20 20 * @subpackage Contests_From_Rewards_Fuel/includes … … 28 28 * Long Description. 29 29 * 30 * @since 2.0.6 230 * @since 2.0.63 31 31 */ 32 32 public static function deactivate() { -
contests-from-rewards-fuel/trunk/includes/class-contests-from-rewards-fuel-entry-methods.php
r2959523 r3039978 8 8 * 9 9 * @link https://RewardsFuel.com 10 * @since 2.0.6 210 * @since 2.0.63 11 11 * 12 12 * @package Contests_From_Rewards_Fuel … … 23 23 * version of the plugin. 24 24 * 25 * @since 2.0.6 225 * @since 2.0.63 26 26 * @package Contests_From_Rewards_Fuel 27 27 * @subpackage Contests_From_Rewards_Fuel/includes … … 38 38 * the public-facing side of the site. 39 39 * 40 * @since 2.0.6 240 * @since 2.0.63 41 41 */ 42 42 public function __construct() { -
contests-from-rewards-fuel/trunk/includes/class-contests-from-rewards-fuel-i18n.php
r2959523 r3039978 8 8 * 9 9 * @link https://RewardsFuel.com 10 * @since 2.0.6 210 * @since 2.0.63 11 11 * 12 12 * @package Contests_From_Rewards_Fuel … … 20 20 * so that it is ready for translation. 21 21 * 22 * @since 2.0.6 222 * @since 2.0.63 23 23 * @package Contests_From_Rewards_Fuel 24 24 * @subpackage Contests_From_Rewards_Fuel/includes … … 30 30 * Load the plugin text domain for translation. 31 31 * 32 * @since 2.0.6 232 * @since 2.0.63 33 33 */ 34 34 public function load_plugin_textdomain() { -
contests-from-rewards-fuel/trunk/includes/class-contests-from-rewards-fuel-loader.php
r2959523 r3039978 5 5 * 6 6 * @link https://RewardsFuel.com 7 * @since 2.0.6 27 * @since 2.0.63 8 8 * 9 9 * @package Contests_From_Rewards_Fuel … … 27 27 * The array of actions registered with WordPress. 28 28 * 29 * @since 2.0.6 229 * @since 2.0.63 30 30 * @access protected 31 31 * @var array $actions The actions registered with WordPress to fire when the plugin loads. … … 43 43 * Add a new action to the collection to be registered with WordPress. 44 44 * 45 * @since 2.0.6 245 * @since 2.0.63 46 46 * @param string $hook The name of the WordPress action that is being registered. 47 47 * @param object $component A reference to the instance of the object on which the action is defined. … … 58 58 * Add a new filter to the collection to be registered with WordPress. 59 59 * 60 * @since 2.0.6 260 * @since 2.0.63 61 61 * @param string $hook The name of the WordPress filter that is being registered. 62 62 * @param object $component A reference to the instance of the object on which the filter is defined. … … 74 74 * collection. 75 75 * 76 * @since 2.0.6 276 * @since 2.0.63 77 77 * @access private 78 78 * @param array $hooks The collection of hooks that is being registered (that is, actions or filters). … … 102 102 * Register the filters and actions with WordPress. 103 103 * 104 * @since 2.0.6 2104 * @since 2.0.63 105 105 */ 106 106 public function run() -
contests-from-rewards-fuel/trunk/includes/class-contests-from-rewards-fuel.php
r2959523 r3039978 8 8 * 9 9 * @link https://RewardsFuel.com 10 * @since 2.0.6 210 * @since 2.0.63 11 11 * 12 12 * @package Contests_From_Rewards_Fuel … … 23 23 * version of the plugin. 24 24 * 25 * @since 2.0.6 225 * @since 2.0.63 26 26 * @package Contests_From_Rewards_Fuel 27 27 * @subpackage Contests_From_Rewards_Fuel/includes … … 38 38 * the public-facing side of the site. 39 39 * 40 * @since 2.0.6 240 * @since 2.0.63 41 41 */ 42 42 public function __construct() { … … 67 67 * with WordPress. 68 68 * 69 * @since 2.0.6 269 * @since 2.0.63 70 70 * @access private 71 71 */ … … 107 107 * with WordPress. 108 108 * 109 * @since 2.0.6 2109 * @since 2.0.63 110 110 * @access private 111 111 */ … … 119 119 * of the plugin. 120 120 * 121 * @since 2.0.6 2121 * @since 2.0.63 122 122 * @access private 123 123 */ … … 133 133 * of the plugin. 134 134 * 135 * @since 2.0.6 2135 * @since 2.0.63 136 136 * @access private 137 137 */ … … 146 146 * Run the loader to execute all of the hooks with WordPress. 147 147 * 148 * @since 2.0.6 2148 * @since 2.0.63 149 149 */ 150 150 public function run() { -
contests-from-rewards-fuel/trunk/public/class-contests-from-rewards-fuel-public.php
r2959523 r3039978 30 30 * The ID of this plugin. 31 31 * 32 * @since 2.0.6 232 * @since 2.0.63 33 33 * @access private 34 34 * @var string $plugin_name The ID of this plugin. … … 39 39 * Initialize the class and set its properties. 40 40 * 41 * @since 2.0.6 241 * @since 2.0.63 42 42 * @param string $plugin_name The name of the plugin. 43 43 * @param string $version The version of this plugin. … … 54 54 * Register the stylesheets for the public-facing side of the site. 55 55 * 56 * @since 2.0.6 256 * @since 2.0.63 57 57 */ 58 58 public function enqueue_styles() { … … 75 75 * Register the JavaScript for the public-facing side of the site. 76 76 * 77 * @since 2.0.6 277 * @since 2.0.63 78 78 */ 79 79 public function enqueue_scripts() { -
contests-from-rewards-fuel/trunk/public/partials/contests-from-rewards-fuel-public-display.php
r2959523 r3039978 7 7 * 8 8 * @link https://RewardsFuel.com 9 * @since 2.0.6 29 * @since 2.0.63 10 10 * 11 11 * @package Contests_From_Rewards_Fuel -
contests-from-rewards-fuel/trunk/uninstall.php
r2959523 r3039978 21 21 * 22 22 * @link https://RewardsFuel.com 23 * @since 2.0.6 223 * @since 2.0.63 24 24 * 25 25 * @package Contests_From_Rewards_Fuel
Note: See TracChangeset
for help on using the changeset viewer.