WordPress.org

Plugin Directory


Ignore:
Timestamp:
10/17/12 20:45:41 (5 years ago)
Author:
Ipstenu
Message:

Checking in 1.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • join-my-multisite/trunk/joinmymultisite.php

    r611707 r613778  
    44Plugin URI: http://halfelf.org/plugins/join-my-multisite/ 
    55Description: Allow logged in users to add themselves to sites (or auto-add them to all sites). 
    6 Version: 1.0 
     6Version: 1.1 
    77Author: Mika Epstein (Ipstenu) 
    88Author URI: http://ipstenu.org/ 
     
    3434    function init() { 
    3535        $jmm_options = get_option( 'helfjmm_options' ); 
    36         if ( isset($_GET['settings-updated']) && ( $_GET['page'] == 
    37 'jmm' ) ) {  
    38             add_action('admin_notices', array('JMM','updateMessage')); 
    39             if ( $jmm_options['role'] != get_option( 'default_user_role' ) ) 
    40                 { update_option( 'default_user_role', $jmm_options['role']); } 
    41         } 
    42          
     36 
     37        // If nothing's set 
    4338        if ( !isset($jmm_options['type']) ) { 
    4439            $jmm_options['type'] = '3'; // 3 = keep things the same 
     
    4944        } 
    5045    } 
    51  
    52     // Messages, used by INIT 
    53     function updateMessage() { 
    54         echo "<div id='message' class='updated fade'><p><strong>".__('Options Updated!', 'helfjmm')."</strong></p></div>"; 
    55         } 
    56  
    5746 
    5847    // donate link on manage plugin page 
Note: See TracChangeset for help on using the changeset viewer.