WordPress.org

Plugin Directory

Changeset 611601


Ignore:
Timestamp:
10/12/12 16:58:15 (19 months ago)
Author:
jblz
Message:

Jetpack: Always define $link_accounts_url in Jetpack_Notifications::print_js() to avoid a PHP Notice about it being undefined.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jetpack/trunk/modules/notes.php

    r610484 r611601  
    109109 
    110110    function print_js() { 
    111         if ( is_user_logged_in() && !Jetpack::is_user_connected() ) 
    112             $link_accounts_url = $this->jetpack->admin_url(); 
     111        $link_accounts_url = is_user_logged_in() && !Jetpack::is_user_connected() ? $this->jetpack->admin_url() : false; 
    113112?> 
    114113<script type="text/javascript"> 
Note: See TracChangeset for help on using the changeset viewer.