Plugin Directory

Changeset 3157608


Ignore:
Timestamp:
09/25/2024 01:46:15 PM (19 months ago)
Author:
woopyplugins
Message:

update to 1.0.0

Location:
smartlink-dinamic-urls
Files:
20 added
2 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • smartlink-dinamic-urls/trunk/Incs/back_settings.php

    r2234916 r3157608  
    44
    55    if(isset($_POST['def-url'])){// default URL
    6     $d_url= sanitize_text_field($_POST['def-url']);
     6        $d_url= sanitize_text_field($_POST['def-url']);
    77    }
    88    if(isset($_POST['def-gt'])){// default GT URL
    9     $dgt_url= sanitize_text_field($_POST['def-gt']);   
     9        $dgt_url= sanitize_text_field($_POST['def-gt']);   
    1010    }       
    1111    if(isset($_POST['clean'])){// clean database
    12     $clean_db= sanitize_text_field($_POST['clean']);
    13     }else{$clean_db="off";}
     12        $clean_db= sanitize_text_field($_POST['clean']);
     13    }
    1414    // Save all metadata in BBDD
    1515    $restb_ops = array($d_url,$dgt_url,$clean_db);
    16         maybe_serialize(update_option('back-ops',$restb_ops));
    17     }
     16    maybe_serialize(update_option('back-ops',$restb_ops));
     17}
    1818# Get data 
    1919$back_ops = get_option('back-ops');
    20     if($back_ops!==NULL){   
    21         $back_ops=maybe_unserialize(get_option('back-ops'));
    22     }
    23     else{
    24         echo "First time here? <a href='#'>Check the docs.</a>";
    25     }
     20if($back_ops!==FALSE){ 
     21    $back_ops=maybe_unserialize(get_option('back-ops'));         
     22}
     23else{
     24    $back_ops=['', '', 'off'];
     25}
    2626
    2727?>
  • smartlink-dinamic-urls/trunk/Incs/class-smartlink-back.php

    r2235005 r3157608  
    143143    public function updat_userdata( $post_id ) {       
    144144     
    145         # Check if not Auto_draft / new post / we are in post editor page
     145        # Check if not Auto_draft / new post / in post editor page
    146146        $cur_scr = get_current_screen();
    147147        if(get_post_status($post_id)!=='auto-draft'&&$cur_scr->base=='post'){
  • smartlink-dinamic-urls/trunk/readme.txt

    r3104125 r3157608  
    66Tested up to: 6.5.3
    77Requires PHP: 7.4
    8 Stable tag: 1.0.9
     8Stable tag: 1.1.0
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • smartlink-dinamic-urls/trunk/smartlink-du.php

    r3104125 r3157608  
    88 * Description:       Smartlink DU allows to insert up to 5 URLs to a link. URL's ares loaded randomly or depending on user location if GeoLocalization function is enabled.
    99 * Name:              Silence Dog
    10  * Version:           1.0.9
     10 * Version:           1.1.0
    1111 * Author:            Woopy Plugins
    1212 * Author URI:        https://woopy.cyou/
Note: See TracChangeset for help on using the changeset viewer.