Plugin Directory

Changeset 1642601


Ignore:
Timestamp:
04/21/2017 06:07:28 PM (9 years ago)
Author:
racanu
Message:

Fix class name for shortcodes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • by-this-author/trunk/by-this-author.php

    r1642080 r1642601  
    193193    static function init()
    194194    {
    195         load_plugin_textdomain('by-this-author', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/');
    196 
    197         add_shortcode('by-this-author', array(self, 'sc_by_this_author'), 1);
    198         add_shortcode('get-age', array(self, 'sc_get_age_from_date'), 1);
    199         add_shortcode('time-machine', array(self, 'sc_time_machine'), 1);
    200         add_shortcode('list-authors', array(self, 'sc_list_authors'), 1);
     195        load_plugin_textdomain( 'by-this-author', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
     196
     197        add_shortcode( 'by-this-author', array( get_class(), 'sc_by_this_author' ), 1 );
     198        add_shortcode( 'get-age', array( get_class(), 'sc_get_age_from_date' ), 1 );
     199        add_shortcode( 'time-machine', array( get_class(), 'sc_time_machine' ), 1 );
     200        add_shortcode( 'list-authors', array( get_class(), 'sc_list_authors' ), 1 );
    201201
    202202        By_This_Author_People_Lists::init();
Note: See TracChangeset for help on using the changeset viewer.