WordPress.org

Plugin Directory

Changeset 747549


Ignore:
Timestamp:
07/29/13 00:02:37 (9 months ago)
Author:
wpmuguru
Message:

fix migration buttons, 3.6 compat, tag & release 2.7.7

Location:
shardb
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • shardb/tags/2.7.7/readme.txt

    r675770 r747549  
    33Tags: database, sharding, multiple, database, multisite, network  
    44Requires at least: 3.2 
    5 Tested up to: 3.5 
    6 Stable tag: 2.7.6 
     5Tested up to: 3.6 
     6Stable tag: 2.7.7 
    77 
    88Implements a MD5 hash based multiple database sharding structure for WordPress network blog tables. 
     
    4040== Changelog == 
    4141 
     42= 2.7.7 = 
     43* Fixed button URLs in the migration screen. 
     44* Test with WP 3.6 
     45 
    4246= 2.7.6 = 
    4347* Fixed notices issued by PHP 5.4. 
  • shardb/tags/2.7.7/shardb-admin.php

    r658356 r747549  
    44Plugin URI: http://wpmututorials.com/plugins/shardb/ 
    55Description: A Multi-database plugin for WordPress networks 
    6 Version: 2.7.6 
     6Version: 2.7.7 
    77Author: Ron Rennick 
    88Author URI: http://ronandandrea.com/ 
     
    7474    echo '<h2>' . __( 'SharDB Migration', 'shardb' ) . '</h2>'; 
    7575 
    76     $action = isset($_GET['action']) ? $_GET['action'] : 'show'; 
    77     $url = menu_page_url( __FUNCTION__, false ); 
     76    $action = isset( $_GET['action'] ) ? $_GET['action'] : 'show'; 
     77    $url = add_query_arg( array( 'page' => 'shardb_migrate' ), network_admin_url( 'settings.php' ) ); 
    7878    $start_url = add_query_arg( array( 'action' => 'migrate' ), $url ); 
    7979    $global_url = add_query_arg( array( 'action' => 'global' ), $url ); 
     
    132132        default: 
    133133            ?><p><?php _e( 'You can migrate all the database tables on your network through this page. It works by calling the migrate script for each site automatically.', 'shardb' ); ?></p> 
    134             <p><a class="button" href="<?php echo $global_url; ?>"><?php _e( 'Migrate Global Tables', 'shardb' ); ?></a> 
    135             <a class="button" href="<?php echo $start_url; ?>"><?php _e( 'Migrate Sites', 'shardb' ); ?></a></p><?php 
     134            <p><a class="button" href="<?php echo esc_url( $global_url ); ?>"><?php _e( 'Migrate Global Tables', 'shardb' ); ?></a> 
     135            <a class="button" href="<?php echo esc_url( $start_url ); ?>"><?php _e( 'Migrate Sites', 'shardb' ); ?></a></p><?php 
    136136        break; 
    137137    } 
  • shardb/trunk/readme.txt

    r675770 r747549  
    33Tags: database, sharding, multiple, database, multisite, network  
    44Requires at least: 3.2 
    5 Tested up to: 3.5 
    6 Stable tag: 2.7.6 
     5Tested up to: 3.6 
     6Stable tag: 2.7.7 
    77 
    88Implements a MD5 hash based multiple database sharding structure for WordPress network blog tables. 
     
    4040== Changelog == 
    4141 
     42= 2.7.7 = 
     43* Fixed button URLs in the migration screen. 
     44* Test with WP 3.6 
     45 
    4246= 2.7.6 = 
    4347* Fixed notices issued by PHP 5.4. 
  • shardb/trunk/shardb-admin.php

    r658356 r747549  
    44Plugin URI: http://wpmututorials.com/plugins/shardb/ 
    55Description: A Multi-database plugin for WordPress networks 
    6 Version: 2.7.6 
     6Version: 2.7.7 
    77Author: Ron Rennick 
    88Author URI: http://ronandandrea.com/ 
     
    7474    echo '<h2>' . __( 'SharDB Migration', 'shardb' ) . '</h2>'; 
    7575 
    76     $action = isset($_GET['action']) ? $_GET['action'] : 'show'; 
    77     $url = menu_page_url( __FUNCTION__, false ); 
     76    $action = isset( $_GET['action'] ) ? $_GET['action'] : 'show'; 
     77    $url = add_query_arg( array( 'page' => 'shardb_migrate' ), network_admin_url( 'settings.php' ) ); 
    7878    $start_url = add_query_arg( array( 'action' => 'migrate' ), $url ); 
    7979    $global_url = add_query_arg( array( 'action' => 'global' ), $url ); 
     
    132132        default: 
    133133            ?><p><?php _e( 'You can migrate all the database tables on your network through this page. It works by calling the migrate script for each site automatically.', 'shardb' ); ?></p> 
    134             <p><a class="button" href="<?php echo $global_url; ?>"><?php _e( 'Migrate Global Tables', 'shardb' ); ?></a> 
    135             <a class="button" href="<?php echo $start_url; ?>"><?php _e( 'Migrate Sites', 'shardb' ); ?></a></p><?php 
     134            <p><a class="button" href="<?php echo esc_url( $global_url ); ?>"><?php _e( 'Migrate Global Tables', 'shardb' ); ?></a> 
     135            <a class="button" href="<?php echo esc_url( $start_url ); ?>"><?php _e( 'Migrate Sites', 'shardb' ); ?></a></p><?php 
    136136        break; 
    137137    } 
Note: See TracChangeset for help on using the changeset viewer.