Plugin Directory

Changeset 480639


Ignore:
Timestamp:
12/26/2011 05:07:13 AM (14 years ago)
Author:
haoqis
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • git-sidebar-widget-for-wordpress/tags/1.0.1/gist-sidebar-widget.php

    r480638 r480639  
    4040 * construct widget
    4141 */
    42 class rkv_ListGistsWidget extends WP_Widget {
     42class hrkv_ListGistsWidget extends WP_Widget {
    4343
    4444    /** constructor */
    45     function rkv_ListGistsWidget() {
    46         $widget_ops = array('classname' => 'list_gists', 'description' => 'Displays a list of gists hosted on GitHub');
    47         $this->WP_Widget('list_gists', 'Public GitHub Gists', $widget_ops);
     45    function hrkv_ListGistsWidget() {
     46        $widget_ops = array('classname' => 'list_gists', 'description' => 'Displays a list of gists hosted on GitHub.');
     47        $this->WP_Widget('list_gists', 'Public GitHub Gists.', $widget_ops);
    4848    }
    4949
     
    226226// class
    227227// register widget
    228 add_action('widgets_init', 'rkv_ListGistsWidget_init');
    229 
    230 function rkv_ListGistsWidget_init() {
     228add_action('widgets_init', 'hrkv_ListGistsWidget_init');
     229
     230function hrkv_ListGistsWidget_init() {
    231231    add_filter('https_local_ssl_verify', create_function('', 'return false;'));
    232232    add_filter('https_ssl_verify', create_function('', 'return false;'));
    233     register_widget('rkv_ListGistsWidget');
    234 }
     233    register_widget('hrkv_ListGistsWidget');
     234}
Note: See TracChangeset for help on using the changeset viewer.