Changeset 2871579
- Timestamp:
- 02/27/2023 10:06:05 AM (3 years ago)
- Location:
- usermaven/trunk
- Files:
-
- 13 edited
-
README.txt (modified) (1 diff)
-
admin/class-usermaven-admin.php (modified) (6 diffs)
-
admin/partials/usermaven-admin-display.php (modified) (1 diff)
-
includes/class-usermaven-activator.php (modified) (3 diffs)
-
includes/class-usermaven-deactivator.php (modified) (3 diffs)
-
includes/class-usermaven-i18n.php (modified) (3 diffs)
-
includes/class-usermaven-loader.php (modified) (8 diffs)
-
includes/class-usermaven.php (modified) (15 diffs)
-
includes/usermaven-settings-form.php (modified) (1 diff)
-
public/class-usermaven-public.php (modified) (6 diffs)
-
public/partials/usermaven-public-display.php (modified) (1 diff)
-
uninstall.php (modified) (1 diff)
-
usermaven.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
usermaven/trunk/README.txt
r2862862 r2871579 6 6 Tested up to: 6.1 7 7 Requires PHP: 5.6 8 Stable tag: 1.0. 18 Stable tag: 1.0.2 9 9 License: Massachusetts Institute of Technology (MIT) license 10 10 License URI: https://opensource.org/licenses/MIT -
usermaven/trunk/admin/class-usermaven-admin.php
r2862862 r2871579 5 5 * 6 6 * @link https://usermaven.com/ 7 * @since 1.0. 17 * @since 1.0.2 8 8 * 9 9 * @package Usermaven … … 26 26 * The ID of this plugin. 27 27 * 28 * @since 1.0. 128 * @since 1.0.2 29 29 * @access private 30 30 * @var string $plugin_name The ID of this plugin. … … 35 35 * The version of this plugin. 36 36 * 37 * @since 1.0. 137 * @since 1.0.2 38 38 * @access private 39 39 * @var string $version The current version of this plugin. … … 44 44 * Initialize the class and set its properties. 45 45 * 46 * @since 1.0. 146 * @since 1.0.2 47 47 * @param string $plugin_name The name of this plugin. 48 48 * @param string $version The version of this plugin. … … 58 58 * Register the stylesheets for the admin area. 59 59 * 60 * @since 1.0. 160 * @since 1.0.2 61 61 */ 62 62 public function enqueue_styles() { … … 81 81 * Register the JavaScript for the admin area. 82 82 * 83 * @since 1.0. 183 * @since 1.0.2 84 84 */ 85 85 public function enqueue_scripts() { -
usermaven/trunk/admin/partials/usermaven-admin-display.php
r2862862 r2871579 7 7 * 8 8 * @link https://usermaven.com/ 9 * @since 1.0. 19 * @since 1.0.2 10 10 * 11 11 * @package Usermaven -
usermaven/trunk/includes/class-usermaven-activator.php
r2862862 r2871579 5 5 * 6 6 * @link https://usermaven.com/ 7 * @since 1.0. 17 * @since 1.0.2 8 8 * 9 9 * @package Usermaven … … 16 16 * This class defines all code necessary to run during the plugin's activation. 17 17 * 18 * @since 1.0. 118 * @since 1.0.2 19 19 * @package Usermaven 20 20 * @subpackage Usermaven/includes … … 28 28 * Long Description. 29 29 * 30 * @since 1.0. 130 * @since 1.0.2 31 31 */ 32 32 public static function activate() { -
usermaven/trunk/includes/class-usermaven-deactivator.php
r2862862 r2871579 5 5 * 6 6 * @link https://usermaven.com/ 7 * @since 1.0. 17 * @since 1.0.2 8 8 * 9 9 * @package Usermaven … … 16 16 * This class defines all code necessary to run during the plugin's deactivation. 17 17 * 18 * @since 1.0. 118 * @since 1.0.2 19 19 * @package Usermaven 20 20 * @subpackage Usermaven/includes … … 28 28 * Long Description. 29 29 * 30 * @since 1.0. 130 * @since 1.0.2 31 31 */ 32 32 public static function deactivate() { -
usermaven/trunk/includes/class-usermaven-i18n.php
r2862862 r2871579 8 8 * 9 9 * @link https://usermaven.com/ 10 * @since 1.0. 110 * @since 1.0.2 11 11 * 12 12 * @package Usermaven … … 20 20 * so that it is ready for translation. 21 21 * 22 * @since 1.0. 122 * @since 1.0.2 23 23 * @package Usermaven 24 24 * @subpackage Usermaven/includes … … 31 31 * Load the plugin text domain for translation. 32 32 * 33 * @since 1.0. 133 * @since 1.0.2 34 34 */ 35 35 public function load_plugin_textdomain() { -
usermaven/trunk/includes/class-usermaven-loader.php
r2862862 r2871579 5 5 * 6 6 * @link https://usermaven.com/ 7 * @since 1.0. 17 * @since 1.0.2 8 8 * 9 9 * @package Usermaven … … 27 27 * The array of actions registered with WordPress. 28 28 * 29 * @since 1.0. 129 * @since 1.0.2 30 30 * @access protected 31 31 * @var array $actions The actions registered with WordPress to fire when the plugin loads. … … 36 36 * The array of filters registered with WordPress. 37 37 * 38 * @since 1.0. 138 * @since 1.0.2 39 39 * @access protected 40 40 * @var array $filters The filters registered with WordPress to fire when the plugin loads. … … 45 45 * Initialize the collections used to maintain the actions and filters. 46 46 * 47 * @since 1.0. 147 * @since 1.0.2 48 48 */ 49 49 public function __construct() { … … 57 57 * Add a new action to the collection to be registered with WordPress. 58 58 * 59 * @since 1.0. 159 * @since 1.0.2 60 60 * @param string $hook The name of the WordPress action that is being registered. 61 61 * @param object $component A reference to the instance of the object on which the action is defined. … … 71 71 * Add a new filter to the collection to be registered with WordPress. 72 72 * 73 * @since 1.0. 173 * @since 1.0.2 74 74 * @param string $hook The name of the WordPress filter that is being registered. 75 75 * @param object $component A reference to the instance of the object on which the filter is defined. … … 86 86 * collection. 87 87 * 88 * @since 1.0. 188 * @since 1.0.2 89 89 * @access private 90 90 * @param array $hooks The collection of hooks that is being registered (that is, actions or filters). … … 113 113 * Register the filters and actions with WordPress. 114 114 * 115 * @since 1.0. 1115 * @since 1.0.2 116 116 */ 117 117 public function run() { -
usermaven/trunk/includes/class-usermaven.php
r2862862 r2871579 8 8 * 9 9 * @link https://usermaven.com/ 10 * @since 1.0. 110 * @since 1.0.2 11 11 * 12 12 * @package Usermaven … … 23 23 * version of the plugin. 24 24 * 25 * @since 1.0. 125 * @since 1.0.2 26 26 * @package Usermaven 27 27 * @subpackage Usermaven/includes … … 34 34 * the plugin. 35 35 * 36 * @since 1.0. 136 * @since 1.0.2 37 37 * @access protected 38 38 * @var Usermaven_Loader $loader Maintains and registers all hooks for the plugin. … … 43 43 * The unique identifier of this plugin. 44 44 * 45 * @since 1.0. 145 * @since 1.0.2 46 46 * @access protected 47 47 * @var string $plugin_name The string used to uniquely identify this plugin. … … 52 52 * The current version of the plugin. 53 53 * 54 * @since 1.0. 154 * @since 1.0.2 55 55 * @access protected 56 56 * @var string $version The current version of the plugin. … … 65 65 * the public-facing side of the site. 66 66 * 67 * @since 1.0. 167 * @since 1.0.2 68 68 */ 69 69 public function __construct() { … … 71 71 $this->version = USERMAVEN_VERSION; 72 72 } else { 73 $this->version = '1.0. 1';73 $this->version = '1.0.2'; 74 74 } 75 75 $this->plugin_name = 'usermaven'; … … 95 95 * with WordPress. 96 96 * 97 * @since 1.0. 197 * @since 1.0.2 98 98 * @access private 99 99 */ … … 133 133 * with WordPress. 134 134 * 135 * @since 1.0. 1135 * @since 1.0.2 136 136 * @access private 137 137 */ … … 148 148 * of the plugin. 149 149 * 150 * @since 1.0. 1150 * @since 1.0.2 151 151 * @access private 152 152 */ … … 164 164 * of the plugin. 165 165 * 166 * @since 1.0. 1166 * @since 1.0.2 167 167 * @access private 168 168 */ … … 179 179 * Run the loader to execute all of the hooks with WordPress. 180 180 * 181 * @since 1.0. 1181 * @since 1.0.2 182 182 */ 183 183 public function run() { … … 189 189 * WordPress and to define internationalization functionality. 190 190 * 191 * @since 1.0. 1191 * @since 1.0.2 192 192 * @return string The name of the plugin. 193 193 */ … … 199 199 * The reference to the class that orchestrates the hooks with the plugin. 200 200 * 201 * @since 1.0. 1201 * @since 1.0.2 202 202 * @return Usermaven_Loader Orchestrates the hooks of the plugin. 203 203 */ … … 209 209 * Retrieve the version number of the plugin. 210 210 * 211 * @since 1.0. 1211 * @since 1.0.2 212 212 * @return string The version number of the plugin. 213 213 */ -
usermaven/trunk/includes/usermaven-settings-form.php
r2862858 r2871579 37 37 } 38 38 39 $pattern = '/^(https?:\/\/)?[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)*\.[a-zA-Z]{2,63}(\/\S*)?$/i'; 40 39 41 // Validate the custom domain 40 if ( ! empty( $custom_domain ) && ! wp_http_validate_url($custom_domain ) ) {41 $error = "Invalid custom domain";42 if ( ! empty( $custom_domain ) && ! preg_match( $pattern, $custom_domain ) ) { 43 $error = "Invalid custom domain"; 42 44 } 43 45 44 46 // Validate the shared link 45 if ( ! empty( $shared_link ) && ! wp_http_validate_url($shared_link ) ) {47 if ( ! empty( $shared_link ) && ! preg_match( $pattern, $shared_link ) ) { 46 48 $error = "Invalid shared link"; 47 49 } -
usermaven/trunk/public/class-usermaven-public.php
r2862862 r2871579 5 5 * 6 6 * @link https://usermaven.com/ 7 * @since 1.0. 17 * @since 1.0.2 8 8 * 9 9 * @package Usermaven … … 26 26 * The ID of this plugin. 27 27 * 28 * @since 1.0. 128 * @since 1.0.2 29 29 * @access private 30 30 * @var string $plugin_name The ID of this plugin. … … 35 35 * The version of this plugin. 36 36 * 37 * @since 1.0. 137 * @since 1.0.2 38 38 * @access private 39 39 * @var string $version The current version of this plugin. … … 44 44 * Initialize the class and set its properties. 45 45 * 46 * @since 1.0. 146 * @since 1.0.2 47 47 * @param string $plugin_name The name of the plugin. 48 48 * @param string $version The version of this plugin. … … 58 58 * Register the stylesheets for the public-facing side of the site. 59 59 * 60 * @since 1.0. 160 * @since 1.0.2 61 61 */ 62 62 public function enqueue_styles() { … … 81 81 * Register the JavaScript for the public-facing side of the site. 82 82 * 83 * @since 1.0. 183 * @since 1.0.2 84 84 */ 85 85 public function enqueue_scripts() { -
usermaven/trunk/public/partials/usermaven-public-display.php
r2862862 r2871579 7 7 * 8 8 * @link https://usermaven.com/ 9 * @since 1.0. 19 * @since 1.0.2 10 10 * 11 11 * @package Usermaven -
usermaven/trunk/uninstall.php
r2862862 r2871579 21 21 * 22 22 * @link https://usermaven.com/ 23 * @since 1.0. 123 * @since 1.0.2 24 24 * 25 25 * @package Usermaven -
usermaven/trunk/usermaven.php
r2862862 r2871579 10 10 * 11 11 * @link https://usermaven.com/ 12 * @since 1.0. 112 * @since 1.0.2 13 13 * @package Usermaven 14 14 * … … 17 17 * Plugin URI: https://github.com/usermaven/wordpress 18 18 * Description: The Easiest Website and Product Analytics Platform 19 * Version: 1.0. 119 * Version: 1.0.2 20 20 * Author: Usermaven 21 21 * Author URI: https://usermaven.com/ … … 33 33 /** 34 34 * Currently plugin version. 35 * Start at version 1.0. 1and use SemVer - https://semver.org35 * Start at version 1.0.2 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( 'USERMAVEN_VERSION', '1.0. 1' );38 define( 'USERMAVEN_VERSION', '1.0.2' ); 39 39 40 40 /** … … 122 122 * not affect the page life cycle. 123 123 * 124 * @since 1.0. 1124 * @since 1.0.2 125 125 */ 126 126 function run_usermaven() {
Note: See TracChangeset
for help on using the changeset viewer.