Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/18/2012 11:43:31 AM (9 years ago)
Author:
johnjamesjacoby
Message:

Widgets:

  • Declare widget() methods as static.
  • Fixes PHP notices for static method usages.
  • Fixes #2030.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/common/widgets.php

    r4333 r4432  
    5050     * @uses register_widget()
    5151     */
    52     public function register_widget() {
     52    public static function register_widget() {
    5353        register_widget( 'BBP_Login_Widget' );
    5454    }
     
    235235     * @uses register_widget()
    236236     */
    237     public function register_widget() {
     237    public static function register_widget() {
    238238        register_widget( 'BBP_Views_Widget' );
    239239    }
     
    352352     * @uses register_widget()
    353353     */
    354     public function register_widget() {
     354    public static function register_widget() {
    355355        register_widget( 'BBP_Forums_Widget' );
    356356    }
     
    504504     * @uses register_widget()
    505505     */
    506     public function register_widget() {
     506    public static function register_widget() {
    507507        register_widget( 'BBP_Topics_Widget' );
    508508    }
     
    721721     * @uses register_widget()
    722722     */
    723     public function register_widget() {
     723    public static function register_widget() {
    724724        register_widget( 'BBP_Replies_Widget' );
    725725    }
Note: See TracChangeset for help on using the changeset viewer.