WordPress.org

Plugin Directory

Changeset 546468


Ignore:
Timestamp:
05/20/12 06:58:12 (2 years ago)
Author:
wet
Message:

[wet_smartslug] Avoid notice.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • smart-slug/trunk/wet_smartslug.php

    r538433 r546468  
    3434         */ 
    3535 
     36        if ($title === '') return ''; 
     37 
    3638        $old_title = $title; 
    3739        // strip out too short parts and members of the stoplist array 
     
    5557            __('Smart Slug', 'wet_smartslug'), 
    5658            __('Smart Slug', 'wet_smartslug'), 
    57             10, __FILE__, array($this, 'options_panel')); 
     59            'manage_options', 'wet_smartslug.php', array($this, 'options_panel')); 
    5860    } 
    5961 
     
    6971 
    7072    function options_panel() { 
    71         if ($_POST['wet_smartslug-submit']) { 
     73        if (isset($_POST['wet_smartslug-submit'])) { 
    7274            $options['min_chars'] = (int) $_POST['wet_smartslug-min_chars']; 
    7375            $stopwords =  stripslashes($_POST['wet_smartslug-stopwords']); 
Note: See TracChangeset for help on using the changeset viewer.