WordPress.org

Plugin Directory

Changeset 392101


Ignore:
Timestamp:
06/02/11 11:14:32 (3 years ago)
Author:
mohanjith
Message:

New wdp_un_check

Location:
wordpress-wiki-plugin/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wordpress-wiki-plugin/trunk/readme.txt

    r388208 r392101  
    44Tags: wiki, buddypress, frontend editing 
    55Requires at least: 3.0.1 
    6 Tested up to: 3.1.2 
     6Tested up to: 3.1.3 
    77Stable tag: trunk 
    88 
  • wordpress-wiki-plugin/trunk/wiki.php

    r386472 r392101  
    20092009$wiki = new Wiki(); 
    20102010 
     2011/////////////////////////////////////////////////////////////////////////// 
     2012/* -------------------- Update Notifications Notice -------------------- */ 
     2013if ( !function_exists( 'wdp_un_check' ) ) { 
     2014  add_action( 'admin_notices', 'wdp_un_check', 5 ); 
     2015  add_action( 'network_admin_notices', 'wdp_un_check', 5 ); 
     2016  function wdp_un_check() { 
     2017    if ( class_exists( 'WPMUDEV_Update_Notifications' ) ) 
     2018      return; 
     2019 
     2020    if ( $delay = get_site_option( 'un_delay' ) ) { 
     2021      if ( $delay <= time() && current_user_can( 'install_plugins' ) ) 
     2022        echo '<div class="error fade"><p>' . __('Please install the latest version of <a href="http://premium.wpmudev.org/project/update-notifications/" title="Download Now &raquo;">our free Update Notifications plugin</a> which helps you stay up-to-date with the most stable, secure versions of WPMU DEV themes and plugins. <a href="http://premium.wpmudev.org/wpmu-dev/update-notifications-plugin-information/">More information &raquo;</a>', 'wpmudev') . '</a></p></div>'; 
     2023      } else { 
     2024            update_site_option( 'un_delay', strtotime( "+1 week" ) ); 
     2025        } 
     2026    } 
     2027} 
     2028/* --------------------------------------------------------------------- */ 
     2029 
Note: See TracChangeset for help on using the changeset viewer.