Plugin Directory

Changeset 2338610


Ignore:
Timestamp:
07/10/2020 11:38:52 AM (6 years ago)
Author:
esselinknu
Message:

2.62

  • Bugfix redirect links
Location:
esselinknu-settings/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • esselinknu-settings/trunk/esselink-nu-settings.php

    r2337932 r2338610  
    44 * Plugin URI: http://www.esselink.nu
    55 * Description: Settings plugin for customs configuration of Esselink.nu WP websites
    6  * Version: 2.61
     6 * Version: 2.62
    77 * Author: Esselink.nu
    88 * Author URI: http://www.esselink.nu
    99**/
    10 $esselink_nu_settings_verson = 2.61;
     10$esselink_nu_settings_verson = 2.62;
    1111
    1212// Block  access to this file
  • esselinknu-settings/trunk/includes/manage-redirects.php

    r2066393 r2338610  
    9090    $table_redirects = $wpdb->base_prefix . 'esselink_settings_redirects'; 
    9191
     92    $table_name = $wpdb->prefix . "your-table-name";
     93    if($wpdb->get_var("SHOW TABLES LIKE '$table_redirects'") != $table_redirects) {
     94            esselink_settings_install();
     95    }
     96   
    9297    if ( ($_SERVER['REQUEST_METHOD'] === 'POST') && $_POST['submit'] && wp_verify_nonce($_POST['esselink_nu_settings'],'esselink_nu_settings') ) {
    9398        // Save settings
     
    115120                $sql = "INSERT INTO `" . $table_redirects . "` (`type`,`source`,`destination`, `hits`) VALUES ('" . $type . "', '" . $source . "', '" . $destination . "', 0) ON DUPLICATE KEY UPDATE `type` = '".$type."', `destination` = '" . $destination . "';";
    116121               
    117                 echo $sql;
    118122                $wpdb->query( $sql );
    119123            }
  • esselinknu-settings/trunk/readme.txt

    r2337932 r2338610  
    144144= 2.61 =
    145145* Bugfix protocol relative
     146= 2.62 =
     147* Bugfix redirect links
    146148
    147149== Upgrade Notice ==
Note: See TracChangeset for help on using the changeset viewer.