Changeset 3071626
- Timestamp:
- 04/16/2024 01:15:48 PM (23 months ago)
- Location:
- clickwhale
- Files:
-
- 8 edited
- 1 copied
-
tags/2.1.1 (copied) (copied from clickwhale/trunk)
-
tags/2.1.1/clickwhale.php (modified) (9 diffs)
-
tags/2.1.1/includes/admin/Clickwhale_Instance_Edit.php (modified) (3 diffs)
-
tags/2.1.1/includes/front/Clickwhale_Public.php (modified) (1 diff)
-
tags/2.1.1/readme.txt (modified) (3 diffs)
-
trunk/clickwhale.php (modified) (9 diffs)
-
trunk/includes/admin/Clickwhale_Instance_Edit.php (modified) (3 diffs)
-
trunk/includes/front/Clickwhale_Public.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
clickwhale/tags/2.1.1/clickwhale.php
r3070750 r3071626 10 10 * Plugin URI: https://clickwhale.pro 11 11 * Description: Link Manager, Link Shortener and Click Tracker for Affiliate Links & Link Pages. 12 * Version: 2.1. 012 * Version: 2.1.1 13 13 * Requires at least: 5.0 14 14 * Requires PHP: 7.4 … … 20 20 * Domain Path: /languages 21 21 */ 22 use clickwhale\includes\{ Clickwhale, Clickwhale_Activator, Clickwhale_Deactivator};22 use clickwhale\includes\{Clickwhale, Clickwhale_Activator, Clickwhale_Deactivator}; 23 23 if ( !defined( 'ABSPATH' ) ) { 24 24 exit; 25 25 } 26 26 // Note from Freemius docs: The SDK comes with a special mechanism to auto deactivate the free version when activating the paid one. In order for this mechanism to work properly, you'd need to slightly adjust the code of the plugin's main file 27 28 27 if ( function_exists( 'clickwhale_fs' ) ) { 29 28 clickwhale_fs()->set_basename( false, __FILE__ ); … … 32 31 * Current plugin version. 33 32 */ 34 define( 'CLICKWHALE_VERSION', '2.1. 0' );33 define( 'CLICKWHALE_VERSION', '2.1.1' ); 35 34 define( 'CLICKWHALE_NAME', 'clickwhale' ); 36 35 /** … … 52 51 define( 'CLICKWHALE_PUBLIC_ASSETS_DIR', CLICKWHALE_DIR_URL . 'assets/public' ); 53 52 // DO NOT REMOVE THIS IF, IT IS ESSENTIAL FOR THE `function_exists` CALL ABOVE TO PROPERLY WORK. 54 55 53 if ( !function_exists( 'clickwhale_fs' ) ) { 56 54 // Create a helper function for easy SDK access. 57 function clickwhale_fs() 58 { 59 global $clickwhale_fs ; 60 55 function clickwhale_fs() { 56 global $clickwhale_fs; 61 57 if ( !isset( $clickwhale_fs ) ) { 62 58 // Include Freemius SDK. … … 74 70 'has_affiliation' => 'all', 75 71 'menu' => array( 76 'slug' => CLICKWHALE_SLUG,77 'contact' => false,78 ),72 'slug' => CLICKWHALE_SLUG, 73 'contact' => false, 74 ), 79 75 'is_live' => true, 80 76 ) ); 81 77 } 82 83 78 return $clickwhale_fs; 84 79 } 85 80 86 81 // Init Freemius. 87 82 clickwhale_fs(); … … 94 89 clickwhale_fs()->add_action( 'after_uninstall', 'clickwhale_uninstall_cleanup' ); 95 90 } 96 97 91 /** 98 92 * The code that runs during plugin activation. 99 93 */ 100 function activate_clickwhale() 101 { 94 function activate_clickwhale() { 102 95 require_once CLICKWHALE_DIR . 'includes/Clickwhale_Activator.php'; 103 96 Clickwhale_Activator::activate(); 104 97 } 105 98 106 99 /** 107 100 * The code that runs during plugin deactivation. 108 101 */ 109 function deactivate_clickwhale() 110 { 102 function deactivate_clickwhale() { 111 103 require_once CLICKWHALE_DIR . 'includes/Clickwhale_Deactivator.php'; 112 104 Clickwhale_Deactivator::deactivate(); 113 105 } 114 106 115 107 register_activation_hook( __FILE__, 'activate_clickwhale' ); 116 108 register_deactivation_hook( __FILE__, 'deactivate_clickwhale' ); … … 118 110 * The code for Freemius that runs after the plugin uninstall event. 119 111 */ 120 function clickwhale_uninstall_cleanup() 121 { 112 function clickwhale_uninstall_cleanup() { 122 113 delete_option( 'clickwhale_version' ); 123 114 do_action( 'clickwhale_uninstall_cleanup' ); 124 115 } 125 116 126 117 /** 127 118 * Traits for Singleton … … 142 133 * @since 1.0.0 143 134 */ 144 function run_clickwhale() 145 { 135 function run_clickwhale() { 146 136 clickwhale()->run(); 147 137 } 148 138 149 139 add_action( 'plugins_loaded', 'run_clickwhale' ); 150 140 /** … … 162 152 * @since 1.6.0 163 153 */ 164 function clickwhale() : Clickwhale 165 { 154 function clickwhale() : Clickwhale { 166 155 return Clickwhale::get_instance(); 167 156 } -
clickwhale/tags/2.1.1/includes/admin/Clickwhale_Instance_Edit.php
r3040533 r3071626 146 146 147 147 if ( $transient === 'added' ) { 148 echo '<div class="updated"><p>' . __( 'Itemwas successfully saved', CLICKWHALE_NAME ) . '</p></div>';148 echo '<div class="updated"><p>' . ucwords( str_replace( '_', ' ', $this->instance_single ) ) . __( ' was successfully saved', CLICKWHALE_NAME ) . '</p></div>'; 149 149 } 150 150 151 151 if ( $transient === 'updated' ) { 152 echo '<div class="updated"><p>' . __( 'Itemwas successfully updated', CLICKWHALE_NAME ) . '</p></div>';152 echo '<div class="updated"><p>' . ucwords( str_replace( '_', ' ', $this->instance_single ) ) . __( ' was successfully updated', CLICKWHALE_NAME ) . '</p></div>'; 153 153 } 154 154 … … 166 166 */ 167 167 public function set_edit_page_title( string $admin_title, string $title ): string { 168 return 'Edit ' . str_replace( '_', ' ', $this->instance_single ) . ' ' . $admin_title; 168 169 $item = $this->get_item( $_REQUEST ); 170 171 return 'Edit “' . esc_attr( wp_unslash( $item['title'] ) ) . '” ' . str_replace( '_', ' ', $this->instance_single ) . ' ' . $admin_title; 169 172 } 170 173 … … 179 182 */ 180 183 public function set_add_page_title( string $admin_title, string $title ): string { 181 return 'Add ' . str_replace( '_', ' ', $this->instance_single) . ' ' . $admin_title;184 return 'Add ' . ucwords( str_replace( '_', ' ', $this->instance_single ) ) . ' ' . $admin_title; 182 185 } 183 186 184 187 /** 185 188 * JS for current page 186 * ¬189 * 187 190 * @return void 188 191 * @since 1.6.0 -
clickwhale/tags/2.1.1/includes/front/Clickwhale_Public.php
r3070750 r3071626 179 179 $link_url = apply_filters( 'clickwhale_url_params', $results->url, $id ); 180 180 wp_redirect( $link_url, $results->redirection ); 181 exit; 181 182 } 182 183 } -
clickwhale/tags/2.1.1/readme.txt
r3070750 r3071626 6 6 Requires PHP: 7.4.0 7 7 Tested up to: 6.5 8 Stable tag: 2.1. 08 Stable tag: 2.1.1 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 115 115 116 116 == Changelog == 117 = Version 2.1.1 (16th April 2024) = 118 * Tweak: Optimized admin pages meta title 119 * Fix: Fixed link redirection 120 117 121 = Version 2.1.0 (15th April 2024) = 118 122 * New: Added tab navigation for link edit screen … … 252 256 == Upgrade Notice == 253 257 258 = Version 2.1.1 (16th April 2024) = 259 * Fixed link redirection issue after update v2.1.0 260 254 261 = Version 1.0.0 (11th December 2022) = 255 262 * Initial Release -
clickwhale/trunk/clickwhale.php
r3070750 r3071626 10 10 * Plugin URI: https://clickwhale.pro 11 11 * Description: Link Manager, Link Shortener and Click Tracker for Affiliate Links & Link Pages. 12 * Version: 2.1. 012 * Version: 2.1.1 13 13 * Requires at least: 5.0 14 14 * Requires PHP: 7.4 … … 20 20 * Domain Path: /languages 21 21 */ 22 use clickwhale\includes\{ Clickwhale, Clickwhale_Activator, Clickwhale_Deactivator};22 use clickwhale\includes\{Clickwhale, Clickwhale_Activator, Clickwhale_Deactivator}; 23 23 if ( !defined( 'ABSPATH' ) ) { 24 24 exit; 25 25 } 26 26 // Note from Freemius docs: The SDK comes with a special mechanism to auto deactivate the free version when activating the paid one. In order for this mechanism to work properly, you'd need to slightly adjust the code of the plugin's main file 27 28 27 if ( function_exists( 'clickwhale_fs' ) ) { 29 28 clickwhale_fs()->set_basename( false, __FILE__ ); … … 32 31 * Current plugin version. 33 32 */ 34 define( 'CLICKWHALE_VERSION', '2.1. 0' );33 define( 'CLICKWHALE_VERSION', '2.1.1' ); 35 34 define( 'CLICKWHALE_NAME', 'clickwhale' ); 36 35 /** … … 52 51 define( 'CLICKWHALE_PUBLIC_ASSETS_DIR', CLICKWHALE_DIR_URL . 'assets/public' ); 53 52 // DO NOT REMOVE THIS IF, IT IS ESSENTIAL FOR THE `function_exists` CALL ABOVE TO PROPERLY WORK. 54 55 53 if ( !function_exists( 'clickwhale_fs' ) ) { 56 54 // Create a helper function for easy SDK access. 57 function clickwhale_fs() 58 { 59 global $clickwhale_fs ; 60 55 function clickwhale_fs() { 56 global $clickwhale_fs; 61 57 if ( !isset( $clickwhale_fs ) ) { 62 58 // Include Freemius SDK. … … 74 70 'has_affiliation' => 'all', 75 71 'menu' => array( 76 'slug' => CLICKWHALE_SLUG,77 'contact' => false,78 ),72 'slug' => CLICKWHALE_SLUG, 73 'contact' => false, 74 ), 79 75 'is_live' => true, 80 76 ) ); 81 77 } 82 83 78 return $clickwhale_fs; 84 79 } 85 80 86 81 // Init Freemius. 87 82 clickwhale_fs(); … … 94 89 clickwhale_fs()->add_action( 'after_uninstall', 'clickwhale_uninstall_cleanup' ); 95 90 } 96 97 91 /** 98 92 * The code that runs during plugin activation. 99 93 */ 100 function activate_clickwhale() 101 { 94 function activate_clickwhale() { 102 95 require_once CLICKWHALE_DIR . 'includes/Clickwhale_Activator.php'; 103 96 Clickwhale_Activator::activate(); 104 97 } 105 98 106 99 /** 107 100 * The code that runs during plugin deactivation. 108 101 */ 109 function deactivate_clickwhale() 110 { 102 function deactivate_clickwhale() { 111 103 require_once CLICKWHALE_DIR . 'includes/Clickwhale_Deactivator.php'; 112 104 Clickwhale_Deactivator::deactivate(); 113 105 } 114 106 115 107 register_activation_hook( __FILE__, 'activate_clickwhale' ); 116 108 register_deactivation_hook( __FILE__, 'deactivate_clickwhale' ); … … 118 110 * The code for Freemius that runs after the plugin uninstall event. 119 111 */ 120 function clickwhale_uninstall_cleanup() 121 { 112 function clickwhale_uninstall_cleanup() { 122 113 delete_option( 'clickwhale_version' ); 123 114 do_action( 'clickwhale_uninstall_cleanup' ); 124 115 } 125 116 126 117 /** 127 118 * Traits for Singleton … … 142 133 * @since 1.0.0 143 134 */ 144 function run_clickwhale() 145 { 135 function run_clickwhale() { 146 136 clickwhale()->run(); 147 137 } 148 138 149 139 add_action( 'plugins_loaded', 'run_clickwhale' ); 150 140 /** … … 162 152 * @since 1.6.0 163 153 */ 164 function clickwhale() : Clickwhale 165 { 154 function clickwhale() : Clickwhale { 166 155 return Clickwhale::get_instance(); 167 156 } -
clickwhale/trunk/includes/admin/Clickwhale_Instance_Edit.php
r3040533 r3071626 146 146 147 147 if ( $transient === 'added' ) { 148 echo '<div class="updated"><p>' . __( 'Itemwas successfully saved', CLICKWHALE_NAME ) . '</p></div>';148 echo '<div class="updated"><p>' . ucwords( str_replace( '_', ' ', $this->instance_single ) ) . __( ' was successfully saved', CLICKWHALE_NAME ) . '</p></div>'; 149 149 } 150 150 151 151 if ( $transient === 'updated' ) { 152 echo '<div class="updated"><p>' . __( 'Itemwas successfully updated', CLICKWHALE_NAME ) . '</p></div>';152 echo '<div class="updated"><p>' . ucwords( str_replace( '_', ' ', $this->instance_single ) ) . __( ' was successfully updated', CLICKWHALE_NAME ) . '</p></div>'; 153 153 } 154 154 … … 166 166 */ 167 167 public function set_edit_page_title( string $admin_title, string $title ): string { 168 return 'Edit ' . str_replace( '_', ' ', $this->instance_single ) . ' ' . $admin_title; 168 169 $item = $this->get_item( $_REQUEST ); 170 171 return 'Edit “' . esc_attr( wp_unslash( $item['title'] ) ) . '” ' . str_replace( '_', ' ', $this->instance_single ) . ' ' . $admin_title; 169 172 } 170 173 … … 179 182 */ 180 183 public function set_add_page_title( string $admin_title, string $title ): string { 181 return 'Add ' . str_replace( '_', ' ', $this->instance_single) . ' ' . $admin_title;184 return 'Add ' . ucwords( str_replace( '_', ' ', $this->instance_single ) ) . ' ' . $admin_title; 182 185 } 183 186 184 187 /** 185 188 * JS for current page 186 * ¬189 * 187 190 * @return void 188 191 * @since 1.6.0 -
clickwhale/trunk/includes/front/Clickwhale_Public.php
r3070750 r3071626 179 179 $link_url = apply_filters( 'clickwhale_url_params', $results->url, $id ); 180 180 wp_redirect( $link_url, $results->redirection ); 181 exit; 181 182 } 182 183 } -
clickwhale/trunk/readme.txt
r3070750 r3071626 6 6 Requires PHP: 7.4.0 7 7 Tested up to: 6.5 8 Stable tag: 2.1. 08 Stable tag: 2.1.1 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 115 115 116 116 == Changelog == 117 = Version 2.1.1 (16th April 2024) = 118 * Tweak: Optimized admin pages meta title 119 * Fix: Fixed link redirection 120 117 121 = Version 2.1.0 (15th April 2024) = 118 122 * New: Added tab navigation for link edit screen … … 252 256 == Upgrade Notice == 253 257 258 = Version 2.1.1 (16th April 2024) = 259 * Fixed link redirection issue after update v2.1.0 260 254 261 = Version 1.0.0 (11th December 2022) = 255 262 * Initial Release
Note: See TracChangeset
for help on using the changeset viewer.