Changeset 1543285
- Timestamp:
- 11/30/2016 11:44:59 AM (9 years ago)
- Location:
- upress-link
- Files:
-
- 16 added
- 5 edited
-
tags/1.2.0 (added)
-
tags/1.2.0/admin (added)
-
tags/1.2.0/admin/css (added)
-
tags/1.2.0/admin/css/lc_switch.css (added)
-
tags/1.2.0/admin/css/upress-link.css (added)
-
tags/1.2.0/admin/js (added)
-
tags/1.2.0/admin/js/lc_switch.min.js (added)
-
tags/1.2.0/admin/js/upress-link.js (added)
-
tags/1.2.0/admin/options.php (added)
-
tags/1.2.0/includes (added)
-
tags/1.2.0/index.php (added)
-
tags/1.2.0/languages (added)
-
tags/1.2.0/languages/upress-link.pot (added)
-
tags/1.2.0/readme.txt (added)
-
tags/1.2.0/screenshot-1.jpg (added)
-
tags/1.2.0/upress-link.php (added)
-
trunk/admin/css/upress-link.css (modified) (1 diff)
-
trunk/admin/js/upress-link.js (modified) (10 diffs)
-
trunk/admin/options.php (modified) (12 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/upress-link.php (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
upress-link/trunk/admin/css/upress-link.css
r1176158 r1543285 57 57 58 58 .lcs_wrap { 59 width: 73px;59 width: 100px; 60 60 position: relative; 61 61 } 62 62 .lcs_wrap .spinner { 63 left: 50%;63 left: -50%; 64 64 margin-left: -10px; 65 65 position: relative; 66 } 67 .rtl .lcs_wrap .spinner { 68 left: 50%; 66 69 } 67 70 -
upress-link/trunk/admin/js/upress-link.js
r1176158 r1543285 15 15 spinner.fadeOut('fast', function() { 16 16 the_switch.fadeIn('fast'); 17 }) ;17 }).removeClass('is-active'); 18 18 return; 19 19 } 20 20 if(val === "show" || (!val && !is_shown)) { 21 21 the_switch.fadeOut('fast', function() { 22 spinner.fadeIn('fast') ;22 spinner.fadeIn('fast').addClass('is-active'); 23 23 }); 24 24 return; … … 73 73 '_nonce': upressAjax._nonce 74 74 }, function(response) { 75 //console.log(response);76 75 77 76 if(response.status == "fail") { 78 flashErrorMessage(response.data .message);77 flashErrorMessage(response.data ? response.data.message : upressAjax.requestFailed); 79 78 self.data('noevent', true); 80 79 if(status) { … … 102 101 '_nonce': upressAjax._nonce 103 102 }, function(response) { 104 //console.log(response);105 106 103 if (response.status == "fail") { 107 flashErrorMessage(response.data .message);104 flashErrorMessage(response.data ? response.data.message : upressAjax.requestFailed); 108 105 } 109 106 if(response.status == "success") { … … 128 125 '_nonce': upressAjax._nonce 129 126 }, function(response) { 130 console.log(response);131 132 127 if (response.status == "fail") { 133 flashErrorMessage(response.data .message);128 flashErrorMessage(response.data ? response.data.message : upressAjax.requestFailed); 134 129 } 135 130 if(response.status == "success") { … … 155 150 '_nonce': upressAjax._nonce 156 151 }, function(response) { 157 console.log(response);158 159 152 if (response.status == "fail") { 160 153 flashErrorMessage(response.errors_msg); … … 186 179 height: self.outerHeight() 187 180 }).find('.text').fadeOut('fast', function() { 188 self.find('.spinner'). fadeIn('fast');181 self.find('.spinner').addClass('is-active').fadeIn('fast'); 189 182 }).end().attr('disabled', true); 190 183 }; 191 184 var endAjaxSpinner = function(self) { 192 185 self.find('.spinner').fadeOut('fast', function () { 186 $(this).removeClass('is-active'); 193 187 self.find('.text').fadeIn('fast').end().css( { 194 188 width: '', … … 234 228 '_nonce': upressAjax._nonce 235 229 }, function(response) { 236 //console.log(response); 237 230 console.log(response); 238 231 if(response.status == "success") { 239 232 var data = response.data.data; 240 233 self.data('noevent', true); 241 if(data && data.value == ="1") {234 if(data && data.value == "1") { 242 235 self.lcs_on(); 243 236 } else { … … 245 238 } 246 239 } else { 247 flashErrorMessage(response.data .message);240 flashErrorMessage(response.data ? response.data.message : upressAjax.requestFailed); 248 241 } 249 242 })); … … 285 278 '_nonce': upressAjax._nonce 286 279 }, function(response) { 287 //console.log(response);288 289 280 if(response.status == "success") { 290 281 var data = response.data.data … … 297 288 } 298 289 } else { 299 flashErrorMessage(response.data .message);290 flashErrorMessage(response.data ? response.data.message : upressAjax.requestFailed); 300 291 } 301 292 }); -
upress-link/trunk/admin/options.php
r1176158 r1543285 1 1 <div class="wrap upress-wrap"> 2 <h2><?php _ex($this->plugin_name, 'admin page title', $this->text_domain); ?></h2>2 <h2><?php _ex($this->plugin_name, 'admin page title', 'upresslink'); ?></h2> 3 3 4 4 <?php if( $error_message ) : ?> 5 <div class="error init-error"><p><strong><?php _e( 'uPress error:', $this->text_domain); ?></strong> <?php echo $error_message; ?></p></div>5 <div class="error init-error"><p><strong><?php _e( 'uPress error:', 'upresslink' ); ?></strong> <?php echo $error_message; ?></p></div> 6 6 <?php endif ?> 7 7 8 8 <div class="notice notice-success api-success"><p></p></div> 9 <div class="notice notice-info no-api-key"><p><?php _e( 'You have not yet entered your API key. You must have an API key before you can use this plugin', $this->text_domain); ?></p></div>10 <div class="error api-error"><p><strong><?php _e( 'uPress error:', $this->text_domain); ?></strong> <span></span></p></div>9 <div class="notice notice-info no-api-key"><p><?php _e( 'You have not yet entered your API key. You must have an API key before you can use this plugin', 'upresslink' ); ?></p></div> 10 <div class="error api-error"><p><strong><?php _e( 'uPress error:', 'upresslink' ); ?></strong> <span></span></p></div> 11 11 <p> 12 12 <?php /* translators: allowed HTML tags: <br>, <em>, <strong>, <a href='' title=''> */ ?> 13 <?php echo wp_kses( __('uPress Link allows you to manage some of the features available in uPress.<br>You will have to generate an API key to link the plugin to your uPress account.', $this->text_domain), array(13 <?php echo wp_kses( __('uPress Link allows you to manage some of the features available in uPress.<br>You will have to generate an API key to link the plugin to your uPress account.', 'upresslink' ), array( 14 14 'a' => array( 15 15 'href' => array(), … … 28 28 <table class="form-table"> 29 29 <tr valign="top"> 30 <th scope="row"><?php _e( 'uPress API Key:', $this->text_domain); ?></th>30 <th scope="row"><?php _e( 'uPress API Key:', 'upresslink' ); ?></th> 31 31 <td> 32 32 <input type="text" id="api_key" name="<?php echo $opt_name; ?>[api_key]" value="<?php echo esc_attr( $options['api_key'] ); ?>" size="80" /> 33 33 <br> 34 <a href="https://my.upress.co.il/account/websites" target="_blank"><?php _e( 'Go to uPress and get your API key', $this->text_domain); ?></a>35 <p><?php _e( 'Select your website from the list, then go to "Settings" tab and click "Generate API Key" button', $this->text_domain); ?></p>34 <a href="https://my.upress.co.il/account/websites" target="_blank"><?php _e( 'Go to uPress and get your API key', 'upresslink' ); ?></a> 35 <p><?php _e( 'Select your website from the list, then go to "Settings" tab and click "Generate API Key" button', 'upresslink' ); ?></p> 36 36 </td> 37 37 </tr> 38 38 <tr valign="top"> 39 <th scope="row"><?php _e( 'Delete cache after post update:', $this->text_domain); ?></th>39 <th scope="row"><?php _e( 'Delete cache after post update:', 'upresslink' ); ?></th> 40 40 <td> 41 41 <input type="checkbox" name="<?php echo $opt_name; ?>[clear_post_cache]" value="1" <?php checked( $options['clear_post_cache'], '1', TRUE ); ?> size="80" /> 42 <span class="description"><?php esc_attr_e( 'This will remove the CDN cache for the post URL so the updates will show immediately*. This is applicable only if the CDN is available and enabled.', $this->text_domain); ?></span>42 <span class="description"><?php esc_attr_e( 'This will remove the CDN cache for the post URL so the updates will show immediately*. This is applicable only if the CDN is available and enabled.', 'upresslink' ); ?></span> 43 43 </td> 44 44 </tr> … … 49 49 50 50 <hr> 51 <h3><?php esc_attr_e( 'More actions', $this->text_domain); ?></h3>51 <h3><?php esc_attr_e( 'More actions', 'upresslink' ); ?></h3> 52 52 <div class="wrap"> 53 <h4><?php esc_attr_e( 'Fix media upload path', $this->text_domain); ?></h4>54 <p><?php esc_attr_e( 'Sometimes after migrating a WordPress installation the media path is not set correctly and breaks uploading media content. This will fix the issue and correct the upload path.', $this->text_domain); ?></p>55 <p><button class="button-secondary media-path-fix-button" type="button" data-ajax-spinner><?php esc_attr_e( 'Run media path fix', $this->text_domain); ?></button></p>56 57 <h4><?php esc_attr_e( 'Database search and replace', $this->text_domain); ?></h4>58 <p><?php esc_attr_e( 'This will allow you to replace a text in your entire website in a simple click of a button', $this->text_domain); ?></p>53 <h4><?php esc_attr_e( 'Fix media upload path', 'upresslink' ); ?></h4> 54 <p><?php esc_attr_e( 'Sometimes after migrating a WordPress installation the media path is not set correctly and breaks uploading media content. This will fix the issue and correct the upload path.', 'upresslink' ); ?></p> 55 <p><button class="button-secondary media-path-fix-button" type="button" data-ajax-spinner><?php esc_attr_e( 'Run media path fix', 'upresslink' ); ?></button></p> 56 57 <h4><?php esc_attr_e( 'Database search and replace', 'upresslink' ); ?></h4> 58 <p><?php esc_attr_e( 'This will allow you to replace a text in your entire website in a simple click of a button', 'upresslink' ); ?></p> 59 59 <p> 60 60 <table class="form-table"> 61 61 <tr valign="top"> 62 <th scope="row"><?php esc_attr_e( 'Search:', $this->text_domain); ?></th>62 <th scope="row"><?php esc_attr_e( 'Search:', 'upresslink' ); ?></th> 63 63 <td><input type="text" class="regular-text search-and-replace-from" /></td> 64 64 </tr> 65 65 <tr valign="top"> 66 <th scope="row"><?php esc_attr_e( 'Replace:', $this->text_domain); ?></th>66 <th scope="row"><?php esc_attr_e( 'Replace:', 'upresslink' ); ?></th> 67 67 <td><input type="text" class="regular-text search-and-replace-to" /></td> 68 68 </tr> 69 69 </table> 70 70 71 <button class="button-secondary search-and-replace-button" type="button" data-ajax-spinner><?php esc_attr_e( 'Search and replace', $this->text_domain); ?></button>71 <button class="button-secondary search-and-replace-button" type="button" data-ajax-spinner><?php esc_attr_e( 'Search and replace', 'upresslink' ); ?></button> 72 72 </p> 73 73 </div> … … 83 83 <div class="meta-box-sortables ui-sortable"> 84 84 85 <div class="postbox upress-section" id="upress-tab-general" data-not-available-text="<?php _e( 'General settings not available', $this->text_domain); ?>">86 <div class="handlediv" title="<?php _e( 'Click to toggle' ); ?>"><br></div> 87 <div class="reload-btn"><a href="" title="<?php _e( 'Refresh section', $this->text_domain); ?>"><span class="dashicons dashicons-update"></span></a></div>88 <!-- Toggle --> 89 <h3 class="hndle"><span><?php _ex('General', 'section title', $this->text_domain); ?></span></h3>85 <div class="postbox upress-section" id="upress-tab-general" data-not-available-text="<?php _e( 'General settings not available', 'upresslink' ); ?>"> 86 <div class="handlediv" title="<?php _e( 'Click to toggle' ); ?>"><br></div> 87 <div class="reload-btn"><a href="" title="<?php _e( 'Refresh section', 'upresslink' ); ?>"><span class="dashicons dashicons-update"></span></a></div> 88 <!-- Toggle --> 89 <h3 class="hndle"><span><?php _ex('General', 'section title', 'upresslink'); ?></span></h3> 90 90 <div class="inside"> 91 91 <table class="form-table"> 92 92 <tr valign="top"> 93 <th scope="row"><?php _e( 'Auto Update', $this->text_domain); ?></th>93 <th scope="row"><?php _e( 'Auto Update', 'upresslink' ); ?></th> 94 94 <td> 95 95 <input type="checkbox" class="switch" data-action="auto_update"> 96 <span class="description"><?php esc_attr_e( 'uPress can make sure your WordPress is up to date with its automatic core updates.', $this->text_domain); ?></span>97 </td> 98 </tr> 99 <tr valign="top"> 100 <th scope="row"><?php _e( 'Auto Redirect WWW', $this->text_domain); ?></th>96 <span class="description"><?php esc_attr_e( 'uPress can make sure your WordPress is up to date with its automatic core updates.', 'upresslink' ); ?></span> 97 </td> 98 </tr> 99 <tr valign="top"> 100 <th scope="row"><?php _e( 'Auto Redirect WWW', 'upresslink' ); ?></th> 101 101 <td> 102 102 <input type="checkbox" class="switch" data-action="auto_redirect_www"> 103 <span class="description"><?php esc_attr_e( 'Automatically redirect your domain to the www.domain.name counterpart.', $this->text_domain); ?></span>104 </td> 105 </tr> 106 <tr valign="top"> 107 <th scope="row"><?php _e( 'Web Firewall', $this->text_domain); ?></th>103 <span class="description"><?php esc_attr_e( 'Automatically redirect your domain to the www.domain.name counterpart.', 'upresslink' ); ?></span> 104 </td> 105 </tr> 106 <tr valign="top"> 107 <th scope="row"><?php _e( 'Web Firewall', 'upresslink' ); ?></th> 108 108 <td> 109 109 <input type="checkbox" class="switch" data-action="web_firewall"> 110 <span class="description"><?php esc_attr_e( 'Web Firewall block tens of thousands of known attacks, and we update our system every day to ensure even the newest attacks are blocked right away. Our tools will allow you to easily fix any number of hacks and exploits.', $this->text_domain ); ?></span> 111 </td> 112 </tr> 110 <span class="description"><?php esc_attr_e( 'Web Firewall block tens of thousands of known attacks, and we update our system every day to ensure even the newest attacks are blocked right away. Our tools will allow you to easily fix any number of hacks and exploits.', 'upresslink' ); ?></span> 111 </td> 112 </tr> 113 <tr valign="top"> 114 <th scope="row"><?php _e( 'Development Mode', 'upresslink' ); ?></th> 115 <td> 116 <input type="checkbox" class="switch" data-action="dev_mode"> 117 <span class="description"><?php esc_attr_e( 'Disable all types of caches and enable error display.', 'upresslink' ); ?></span> 118 </td> 119 </tr> 113 120 </table> 114 121 </div> … … 117 124 <!-- .postbox --> 118 125 119 <div class="postbox upress-section" id="upress-tab-cdn" data-check-availability="cdn_available" data-not-available-text="<?php _e( 'CDN settings not available', $this->text_domain); ?>">120 <div class="handlediv" title="<?php _e( 'Click to toggle' ); ?>"><br></div> 121 <div class="reload-btn"><a href="" title="<?php _e( 'Refresh section', $this->text_domain); ?>"><span class="dashicons dashicons-update"></span></a></div>122 <!-- Toggle --> 123 <h3 class="hndle"><span><?php _ex('CDN Network', 'section title', $this->text_domain); ?></span></h3>124 <div class="inside"> 125 <p><?php esc_attr_e( 'Our CDN (Content Delivery Network) option will make sure your images, CSS, and other files get served from one of a dozen datacenters around the world, whichever is closest to where each visitor is located.', $this->text_domain); ?></p>126 <div class="postbox upress-section" id="upress-tab-cdn" data-check-availability="cdn_available" data-not-available-text="<?php _e( 'CDN settings not available', 'upresslink' ); ?>"> 127 <div class="handlediv" title="<?php _e( 'Click to toggle' ); ?>"><br></div> 128 <div class="reload-btn"><a href="" title="<?php _e( 'Refresh section', 'upresslink' ); ?>"><span class="dashicons dashicons-update"></span></a></div> 129 <!-- Toggle --> 130 <h3 class="hndle"><span><?php _ex('CDN Network', 'section title', 'upresslink'); ?></span></h3> 131 <div class="inside"> 132 <p><?php esc_attr_e( 'Our CDN (Content Delivery Network) option will make sure your images, CSS, and other files get served from one of a dozen datacenters around the world, whichever is closest to where each visitor is located.', 'upresslink' ); ?></p> 126 133 127 134 <table class="form-table"> 128 135 <tr valign="top"> 129 <th scope="row"><?php _e( 'Enable CDN', $this->text_domain); ?></th>136 <th scope="row"><?php _e( 'Enable CDN', 'upresslink' ); ?></th> 130 137 <td> 131 138 <input type="checkbox" class="switch" data-action="enable_cdn"> … … 133 140 </tr> 134 141 <tr valign="top"> 135 <th scope="row"><?php _e( 'Development Mode', $this->text_domain); ?></th>142 <th scope="row"><?php _e( 'Development Mode', 'upresslink' ); ?></th> 136 143 <td> 137 144 <input type="checkbox" class="switch" data-action="enable_devmode"> 138 <span class="description"><?php esc_attr_e( 'Note: Development mode will automatically toggle off 3 hours after initial setup.', $this->text_domain); ?></span>139 </td> 140 </tr> 141 <tr valign="top"> 142 <th scope="row"><?php _e( 'Minify HTML', $this->text_domain); ?></th>145 <span class="description"><?php esc_attr_e( 'Note: Development mode will automatically toggle off 3 hours after initial setup.', 'upresslink' ); ?></span> 146 </td> 147 </tr> 148 <tr valign="top"> 149 <th scope="row"><?php _e( 'Minify HTML', 'upresslink' ); ?></th> 143 150 <td> 144 151 <input type="checkbox" class="switch" data-action="min_html"> … … 146 153 </tr> 147 154 <tr valign="top"> 148 <th scope="row"><?php _e( 'Minify CSS', $this->text_domain); ?></th>155 <th scope="row"><?php _e( 'Minify CSS', 'upresslink' ); ?></th> 149 156 <td> 150 157 <input type="checkbox" class="switch" data-action="min_css"> … … 152 159 </tr> 153 160 <tr valign="top"> 154 <th scope="row"><?php _e( 'Minify JavaScript', $this->text_domain); ?></th>161 <th scope="row"><?php _e( 'Minify JavaScript', 'upresslink' ); ?></th> 155 162 <td> 156 163 <input type="checkbox" class="switch" data-action="min_js"> … … 158 165 </tr> 159 166 <tr valign="top"> 160 <th scope="row"><?php _e( 'Cache', $this->text_domain); ?></th>161 <td> 162 <button type="button" class="button button-default" data-action="clear_cache" data-success-message="<?php _e( 'Cache cleared successfully', $this->text_domain ); ?>"><?php _e( 'Clear Cache', $this->text_domain); ?></button>167 <th scope="row"><?php _e( 'Cache', 'upresslink' ); ?></th> 168 <td> 169 <button type="button" class="button button-default" data-action="clear_cache" data-success-message="<?php _e( 'Cache cleared successfully', 'upresslink' ); ?>"><?php _e( 'Clear Cache', 'upresslink' ); ?></button> 163 170 </td> 164 171 </tr> … … 169 176 <!-- .postbox --> 170 177 171 <div class="postbox upress-section" id="upress-tab-optimization" data-check-availability="optimization_available" data-not-available-text="<?php _e( 'Optimization settings not available', $this->text_domain); ?>">172 <div class="handlediv" title="<?php _e( 'Click to toggle' ); ?>"><br></div> 173 <div class="reload-btn"><a href="" title="<?php _e( 'Refresh section', $this->text_domain); ?>"><span class="dashicons dashicons-update"></span></a></div>174 <!-- Toggle --> 175 <h3 class="hndle"><span><?php _ex('Optimization', 'section title', $this->text_domain); ?></span></h3>176 <div class="inside"> 177 <p><?php esc_attr_e( 'Optimizes and boosts performance of your website.', $this->text_domain); ?></p>178 <div class="postbox upress-section" id="upress-tab-optimization" data-check-availability="optimization_available" data-not-available-text="<?php _e( 'Optimization settings not available', 'upresslink' ); ?>"> 179 <div class="handlediv" title="<?php _e( 'Click to toggle' ); ?>"><br></div> 180 <div class="reload-btn"><a href="" title="<?php _e( 'Refresh section', 'upresslink' ); ?>"><span class="dashicons dashicons-update"></span></a></div> 181 <!-- Toggle --> 182 <h3 class="hndle"><span><?php _ex('Optimization', 'section title', 'upresslink'); ?></span></h3> 183 <div class="inside"> 184 <p><?php esc_attr_e( 'Optimizes and boosts performance of your website.', 'upresslink' ); ?></p> 178 185 179 186 <table class="form-table"> 180 187 <tr valign="top"> 181 <th scope="row"><?php _e( 'Enable Optimization', $this->text_domain); ?></th>188 <th scope="row"><?php _e( 'Enable Optimization', 'upresslink' ); ?></th> 182 189 <td> 183 190 <input type="checkbox" class="switch" data-action="enable_optimization"> 184 <span class="description"><?php _e( 'Note: This only toggles optimization on/off. <a href="https://my.upress.co.il/account/websites">Mange all optimization settings from uPress</a>', $this->text_domain); ?></span>191 <span class="description"><?php _e( 'Note: This only toggles optimization on/off. <a href="https://my.upress.co.il/account/websites">Mange all optimization settings from uPress</a>', 'upresslink' ); ?></span> 185 192 </td> 186 193 </tr> … … 201 208 <div class="handlediv" title="<?php _e( 'Click to toggle' ); ?>"><br></div> 202 209 <!-- Toggle --> 203 <h3 class="hndle"><span><?php _ex('Resources and more information', 'section title', $this->text_domain); ?></span></h3>210 <h3 class="hndle"><span><?php _ex('Resources and more information', 'section title', 'upresslink'); ?></span></h3> 204 211 <div class="inside"> 205 212 <ul> 206 <li><a href="https:// upress.co.il"><?php _e( 'uPress Homepage', $this->text_domain); ?></a></li>207 <li><a href="https://my.upress.co.il"><?php _e( 'Login to uPress', $this->text_domain); ?></a></li>213 <li><a href="https://www.upress.co.il"><?php _e( 'uPress Homepage', 'upresslink' ); ?></a></li> 214 <li><a href="https://my.upress.co.il"><?php _e( 'Login to uPress', 'upresslink' ); ?></a></li> 208 215 </ul> 209 216 </div> … … 227 234 228 235 <hr> 229 <span class="description"><?php esc_attr_e( '*Updates are queued and refreshed 1 minute after the update.', $this->text_domain); ?></span>236 <span class="description"><?php esc_attr_e( '*Updates are queued and refreshed 1 minute after the update.', 'upresslink' ); ?></span> -
upress-link/trunk/readme.txt
r1176161 r1543285 3 3 Tags: upress,hosting,companion,link,manager,cdn,optimization,performance 4 4 Requires at least: 4.0 5 Tested up to: 4. 1.15 Tested up to: 4.6.1 6 6 Stable tag: 1.1.0 7 7 License: GPL-2.0+ … … 53 53 54 54 == Changelog == 55 = 1.2 = 56 1. Added option to activate development mode 57 1. Fixed spinner not showing at newer WordPress versions 55 58 = 1.1 = 56 59 1. Added option to fix media upload path -
upress-link/trunk/upress-link.php
r1176168 r1543285 17 17 * Plugin URI: http://upress.co.il 18 18 * Description: uPress Link is a companion plugin for the WordPress hosting manager at https://upress.co.il 19 * Version: 1. 1.019 * Version: 1.2.0 20 20 * Author: Drubit Raid LTD. 21 21 * Author URI: http://upress.co.il … … 29 29 die; 30 30 } 31 define( 'UPL_VERSION', '1. 1.0' );31 define( 'UPL_VERSION', '1.2.0' ); 32 32 define( 'UPL_PATH', dirname( __FILE__ ) ); 33 33 define( 'UPL_PATH_INCLUDES', dirname( __FILE__ ) . '/includes' ); … … 39 39 40 40 define( 'UPRESS_API_BASE', 'https://my.upress.co.il/api/wordpress/' ); 41 define( 'UPRESS_USER_AGENT', 'uPress-Link/' . UPL_VERSION ); 41 42 42 43 class uPress_Link { … … 67 68 /* ****************************************** */ 68 69 function upl_admin_menu() { 69 add_options_page( _x($this->plugin_name, 'admin page title', $this->text_domain), _x($this->plugin_name, 'admin page menu item', $this->text_domain), 'manage_options', $this->plugin_slug, array( $this, 'upl_admin_view' ) );70 add_options_page( _x($this->plugin_name, 'admin page title', 'upresslink'), _x($this->plugin_name, 'admin page menu item', 'upresslink'), 'manage_options', $this->plugin_slug, array( $this, 'upl_admin_view' ) ); 70 71 } 71 72 function upl_admin_init() { … … 88 89 'on' => __( 'ON' ), 89 90 'off' => __( 'OFF' ), 90 'requestSuccess' => __( 'Operation completed successfully', $this->text_domain ) 91 'requestSuccess' => __( 'Operation completed successfully', 'upresslink' ), 92 'requestFailed' => __( 'Operation could not be completed at this time', 'upresslink' ), 91 93 ) 92 94 ); … … 114 116 'timeout' => 45, 115 117 'blocking' => true, 118 'user-agent' => UPRESS_USER_AGENT, 116 119 'body' => array( 117 120 'api_key' => $options['api_key'] … … 165 168 'timeout' => 45, 166 169 'blocking' => true, 170 'user-agent' => UPRESS_USER_AGENT, 167 171 'body' => array( 168 172 'api_key' => $api_key, … … 343 347 'debug' => $wpdb, 344 348 'time' => $time, 345 'success_msg' => sprintf( __( 'Replace completed for the text "%s" which was replaced by "%s". %d tables scanned with %d total rows. Replacement took %f seconds.', $this->text_domain),349 'success_msg' => sprintf( __( 'Replace completed for the text "%s" which was replaced by "%s". %d tables scanned with %d total rows. Replacement took %f seconds.', 'upresslink' ), 346 350 $search, $replace, $report[ 'tables' ], $report[ 'rows' ], $report[ 'change' ], $report[ 'updates' ], $time ), 347 351 'errors_msg' => $errors … … 368 372 'timeout' => 45, 369 373 'blocking' => true, 374 'user-agent' => UPRESS_USER_AGENT, 370 375 'body' => array( 371 376 'api_key' => $options['api_key'],
Note: See TracChangeset
for help on using the changeset viewer.