Plugin Directory

Changeset 1986748


Ignore:
Timestamp:
12/06/2018 12:21:34 PM (7 years ago)
Author:
vlastuin
Message:

Merge to trunk

Location:
vevida-optimizer/trunk
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • vevida-optimizer/trunk/readme.txt

    r1765089 r1986748  
    11=== Plugin Name ===
    2 Contributors: vlastuin, janr
     2Contributors: vlastuin, janr, ixium
    33Tags: auto-update, updates, MySQL optimization, update, automatic update, vevida, hosting
    44Requires at least: 3.9
    5 Tested up to: 4.9
    6 Stable tag: 1.2
     5Tested up to: 5.0
     6Stable tag: 1.3
    77License: GPLv2
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6868
    6969== Changelog ==
     70
     71= 1.3 =
     72Release date: December 4th 2018
     73* Updated UI in the WP dashboard (thanks to ixium)
    7074
    7175= 1.2 =
  • vevida-optimizer/trunk/vevida-optimizer.php

    r1765089 r1986748  
    44 * Plugin URI: https://wordpress.org/plugins/vevida-optimizer/
    55 * Description: Configure automatic updates for each WordPress component, and optimize the mySQL database tables.
    6  * Version: 1.2
    7  * Author: Jan Vlastuin, Jan Reilink
     6 * Version: 1.3
     7 * Author: Jan Vlastuin, Jan Reilink, Brian Stal
    88 * Author URI: https://vevida.com
    99 * License: GPLv2
     
    1818    exit;
    1919}
     20
     21function vevida_optimizer_scripts() {
     22    $plugin_url = plugin_dir_url( __FILE__ );
     23    wp_enqueue_style( 'style',  $plugin_url . "/css/style.css");
     24}
     25add_action( 'admin_enqueue_scripts', 'vevida_optimizer_scripts' );
    2026
    2127if( !defined( 'VEVIDAOPTIMIZERHOME' ) )
     
    138144    <div class="wrap">
    139145        <?php settings_errors(); ?>
    140 
    141         <h2><?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>
    142148        <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 
    144149        <form method="post" action="options.php">
    145150            <?php
     
    171176        array (
    172177            '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' ) )
    174179    );
    175180    register_setting( 'vevida_optimizer_settings_group', 'vevida_optimizer_core_major_updates' );
     
    182187        array (
    183188            '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' )  )
    185190    );
    186191    register_setting( 'vevida_optimizer_settings_group', 'vevida_optimizer_core_minor_updates' );
     
    272277/** Format Callbacks **/
    273278function vevida_optimizer_settings_section_1_callback() {
     279    echo '<div class="description">';
    274280    _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>';
    275282}
    276283function vevida_optimizer_settings_section_2_callback() {
     284    echo '<div class="description">';
    277285    _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>';
    278287}
    279288function vevida_optimizer_settings_section_3_callback() {
     289    echo '<div class="description">';
    280290    _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>';
    281292}
    282293
Note: See TracChangeset for help on using the changeset viewer.