Making WordPress.org


Ignore:
Timestamp:
01/12/2019 12:55:41 AM (7 years ago)
Author:
coreymckrill
Message:

WordCamp Central: Fix "Non-static method" error

This fixes the error message "Non-static method
Jetpack_Subscriptions::subscribe() should not be called statically" by
calling the method from the instance instead.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/functions.php

    r7861 r8076  
    123123
    124124                // Jetpack will do the is_email check for us
    125                 $email     = $_REQUEST['wccentral-subscribe-email'];
    126                 $subscribe = Jetpack_Subscriptions::subscribe( $email, 0, false );
     125                $jetpack_subscriptions = Jetpack_Subscriptions::init();
     126                $email                 = $_REQUEST['wccentral-subscribe-email'];
     127                $subscribe             = $jetpack_subscriptions->subscribe( $email, 0, false );
    127128
    128129                // The following part is taken from the Jetpack subscribe widget (subscriptions.php)
Note: See TracChangeset for help on using the changeset viewer.