WordPress.org

Plugin Directory

Changeset 608669


Ignore:
Timestamp:
10/05/12 19:49:19 (19 months ago)
Author:
andy
Message:

jetpack notes: add jetpack admin url to signal iframe client to display Link Your Accounts link

File:
1 edited

Legend:

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

    r607999 r608669  
    109109 
    110110    function print_js() { 
     111        if ( is_user_logged_in() && !Jetpack::is_user_connected() ) 
     112            $link_accounts_url = $this->jetpack->admin_url(); 
    111113?> 
    112114<script type="text/javascript"> 
    113115/* <![CDATA[ */ 
    114116    var wpNotesIsJetpackClient = true; 
     117<?php if ( $link_accounts_url ) : ?> 
     118    var wpNotesLinkAccountsURL = '<?php print $link_accounts_url; ?>'; 
     119<?php endif; ?> 
    115120/* ]]> */ 
    116121</script> 
Note: See TracChangeset for help on using the changeset viewer.