WordPress.org

Plugin Directory

Changeset 673229


Ignore:
Timestamp:
02/25/13 22:42:31 (14 months ago)
Author:
wpmuguru
Message:

remove support for pre 3.1, update for 3.5 WP install in own folder

Location:
wordpress-mu-domain-mapping/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wordpress-mu-domain-mapping/trunk/domain_mapping.php

    r661430 r673229  
    5050    } 
    5151 
    52     if ( dm_site_admin() && version_compare( $wp_version, '3.0.9', '<=' ) ) { 
    53         if ( version_compare( $wp_version, '3.0.1', '<=' ) ) { 
    54             add_submenu_page('wpmu-admin.php', __( 'Domain Mapping', 'wordpress-mu-domain-mapping' ), __( 'Domain Mapping', 'wordpress-mu-domain-mapping'), 'manage_options', 'dm_admin_page', 'dm_admin_page'); 
    55             add_submenu_page('wpmu-admin.php', __( 'Domains', 'wordpress-mu-domain-mapping' ), __( 'Domains', 'wordpress-mu-domain-mapping'), 'manage_options', 'dm_domains_admin', 'dm_domains_admin'); 
    56         } else { 
    57             add_submenu_page('ms-admin.php', __( 'Domain Mapping', 'wordpress-mu-domain-mapping' ), 'Domain Mapping', 'manage_options', 'dm_admin_page', 'dm_admin_page'); 
    58             add_submenu_page('ms-admin.php', __( 'Domains', 'wordpress-mu-domain-mapping' ), 'Domains', 'manage_options', 'dm_domains_admin', 'dm_domains_admin'); 
    59         } 
    60     } 
    6152} 
    6253add_action( 'admin_menu', 'dm_add_pages' ); 
     
    679670    add_filter( 'plugins_url', 'domain_mapping_post_content' ); 
    680671} else { 
    681     if ( $wp_version == '2.9.2' ) { 
    682         add_filter( 'admin_url', 'domain_mapping_adminurl', 10, 2 ); 
    683     } else { 
    684         add_filter( 'admin_url', 'domain_mapping_adminurl', 10, 3 ); 
    685     } 
     672    add_filter( 'admin_url', 'domain_mapping_adminurl', 10, 3 ); 
    686673}    
    687674add_action( 'admin_init', 'dm_redirect_admin' ); 
     
    707694    global $current_blog, $wpdb; 
    708695 
     696    // don't redirect the main site 
     697    if ( is_main_site() ) 
     698        return; 
    709699    // don't redirect post previews 
    710700    if ( isset( $_GET['preview'] ) && $_GET['preview'] == 'true' ) 
  • wordpress-mu-domain-mapping/trunk/readme.txt

    r493263 r673229  
    44Tested up to: 3.3 
    55Stable tag: 0.5.4.2 
    6 Requires at least: 2.9.2 
     6Requires at least: 3.1 
    77 
    88Map any blog/site on a WordPressMU or WordPress 3.X network to an external domain. 
Note: See TracChangeset for help on using the changeset viewer.