Changeset 1986748
- Timestamp:
- 12/06/2018 12:21:34 PM (7 years ago)
- Location:
- vevida-optimizer/trunk
- Files:
-
- 2 added
- 2 edited
-
css (added)
-
css/style.css (added)
-
readme.txt (modified) (2 diffs)
-
vevida-optimizer.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vevida-optimizer/trunk/readme.txt
r1765089 r1986748 1 1 === Plugin Name === 2 Contributors: vlastuin, janr 2 Contributors: vlastuin, janr, ixium 3 3 Tags: auto-update, updates, MySQL optimization, update, automatic update, vevida, hosting 4 4 Requires at least: 3.9 5 Tested up to: 4.96 Stable tag: 1. 25 Tested up to: 5.0 6 Stable tag: 1.3 7 7 License: GPLv2 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 68 68 69 69 == Changelog == 70 71 = 1.3 = 72 Release date: December 4th 2018 73 * Updated UI in the WP dashboard (thanks to ixium) 70 74 71 75 = 1.2 = -
vevida-optimizer/trunk/vevida-optimizer.php
r1765089 r1986748 4 4 * Plugin URI: https://wordpress.org/plugins/vevida-optimizer/ 5 5 * Description: Configure automatic updates for each WordPress component, and optimize the mySQL database tables. 6 * Version: 1. 27 * Author: Jan Vlastuin, Jan Reilink 6 * Version: 1.3 7 * Author: Jan Vlastuin, Jan Reilink, Brian Stal 8 8 * Author URI: https://vevida.com 9 9 * License: GPLv2 … … 18 18 exit; 19 19 } 20 21 function vevida_optimizer_scripts() { 22 $plugin_url = plugin_dir_url( __FILE__ ); 23 wp_enqueue_style( 'style', $plugin_url . "/css/style.css"); 24 } 25 add_action( 'admin_enqueue_scripts', 'vevida_optimizer_scripts' ); 20 26 21 27 if( !defined( 'VEVIDAOPTIMIZERHOME' ) ) … … 138 144 <div class="wrap"> 139 145 <?php settings_errors(); ?> 140 141 <h 2><?php _e( 'Automatic update settings', 'vevida-optimizer' ); ?></h2>146 <svg class="gears" viewBox="0 0 2048 1792" xmlns="http://www.w3.org/2000/svg"><path d="M960 896q0-106-75-181t-181-75-181 75-75 181 75 181 181 75 181-75 75-181zm768 512q0-52-38-90t-90-38-90 38-38 90q0 53 37.5 90.5t90.5 37.5 90.5-37.5 37.5-90.5zm0-1024q0-52-38-90t-90-38-90 38-38 90q0 53 37.5 90.5t90.5 37.5 90.5-37.5 37.5-90.5zm-384 421v185q0 10-7 19.5t-16 10.5l-155 24q-11 35-32 76 34 48 90 115 7 11 7 20 0 12-7 19-23 30-82.5 89.5t-78.5 59.5q-11 0-21-7l-115-90q-37 19-77 31-11 108-23 155-7 24-30 24h-186q-11 0-20-7.5t-10-17.5l-23-153q-34-10-75-31l-118 89q-7 7-20 7-11 0-21-8-144-133-144-160 0-9 7-19 10-14 41-53t47-61q-23-44-35-82l-152-24q-10-1-17-9.5t-7-19.5v-185q0-10 7-19.5t16-10.5l155-24q11-35 32-76-34-48-90-115-7-11-7-20 0-12 7-20 22-30 82-89t79-59q11 0 21 7l115 90q34-18 77-32 11-108 23-154 7-24 30-24h186q11 0 20 7.5t10 17.5l23 153q34 10 75 31l118-89q8-7 20-7 11 0 21 8 144 133 144 160 0 8-7 19-12 16-42 54t-45 60q23 48 34 82l152 23q10 2 17 10.5t7 19.5zm640 533v140q0 16-149 31-12 27-30 52 51 113 51 138 0 4-4 7-122 71-124 71-8 0-46-47t-52-68q-20 2-30 2t-30-2q-14 21-52 68t-46 47q-2 0-124-71-4-3-4-7 0-25 51-138-18-25-30-52-149-15-149-31v-140q0-16 149-31 13-29 30-52-51-113-51-138 0-4 4-7 4-2 35-20t59-34 30-16q8 0 46 46.5t52 67.5q20-2 30-2t30 2q51-71 92-112l6-2q4 0 124 70 4 3 4 7 0 25-51 138 17 23 30 52 149 15 149 31zm0-1024v140q0 16-149 31-12 27-30 52 51 113 51 138 0 4-4 7-122 71-124 71-8 0-46-47t-52-68q-20 2-30 2t-30-2q-14 21-52 68t-46 47q-2 0-124-71-4-3-4-7 0-25 51-138-18-25-30-52-149-15-149-31v-140q0-16 149-31 13-29 30-52-51-113-51-138 0-4 4-7 4-2 35-20t59-34 30-16q8 0 46 46.5t52 67.5q20-2 30-2t30 2q51-71 92-112l6-2q4 0 124 70 4 3 4 7 0 25-51 138 17 23 30 52 149 15 149 31z"/></svg> 147 <h1><?php _e( 'Automatic update settings', 'vevida-optimizer' ); ?></h1> 142 148 <p><?php _e( "It is possible to disable the different kinds of automatic updates. Also, updates for specific plugins can be disabled. Only use this option when automatically updating a plugin is not possible or problematic.", 'vevida-optimizer' ); ?> </p> 143 144 149 <form method="post" action="options.php"> 145 150 <?php … … 171 176 array ( 172 177 'vevida_optimizer_core_major_updates', 173 __( 'e.g. WordPress 4. 4 to 4.5', 'vevida-optimizer' ) )178 __( 'e.g. WordPress 4.9 to 5.0', 'vevida-optimizer' ) ) 174 179 ); 175 180 register_setting( 'vevida_optimizer_settings_group', 'vevida_optimizer_core_major_updates' ); … … 182 187 array ( 183 188 'vevida_optimizer_core_minor_updates', 184 __( 'e.g. WordPress 4. 4.1 to 4.4.2', 'vevida-optimizer' ) )189 __( 'e.g. WordPress 4.9.7 to 4.9.8', 'vevida-optimizer' ) ) 185 190 ); 186 191 register_setting( 'vevida_optimizer_settings_group', 'vevida_optimizer_core_minor_updates' ); … … 272 277 /** Format Callbacks **/ 273 278 function vevida_optimizer_settings_section_1_callback() { 279 echo '<div class="description">'; 274 280 _e( 'All updates are enabled by default. Only change this if your website experiences issues after an automatic update. In that case, resolve the issue that blocks the automatic update process, and reenable automatic updates.', 'vevida-optimizer' ); 281 echo '</div>'; 275 282 } 276 283 function vevida_optimizer_settings_section_2_callback() { 284 echo '<div class="description">'; 277 285 _e( 'Some plugins require a different update method. Or the plugin simpy breaks as a result of the update. In that case automatic updates for the plugin can be (temporarily) disabled.', 'vevida-optimizer' ); 286 echo '</div>'; 278 287 } 279 288 function vevida_optimizer_settings_section_3_callback() { 289 echo '<div class="description">'; 280 290 _e( 'An email can be sent after each automatic update to notify the site admin of the update. This can be useful in troubleshooting the site after an automatic update.', 'vevida-optimizer' ); 291 echo '</div>'; 281 292 } 282 293
Note: See TracChangeset
for help on using the changeset viewer.