Changeset 738


Ignore:
Timestamp:
10/30/12 00:46:16 (2 years ago)
Author:
ofer
Message:

Suppress notices when widgets are created directly with our function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/WordPress/plugin/transposh/wp/transposh_widget.php

    r719 r738  
    264264        // widget default title 
    265265        //echo $before_widget . $before_title . __('Translation', TRANSPOSH_TEXT_DOMAIN) . $after_title; - hmm? po/mo? 
    266         echo $before_widget; 
     266        if (isset($before_widget)) echo $before_widget; 
    267267        if ($instance['title']) { 
    268268            /* TRANSLATORS: no need to translate this string */ 
     
    340340        } 
    341341        echo '</div>'; 
    342         echo $after_widget; 
     342        if (isset($after_widget)) $after_widget; 
    343343        // increase the number of calls for unique IDs 
    344344        self::$draw_calls++; 
Note: See TracChangeset for help on using the changeset viewer.