Skip to content

Commit

Permalink
CHANGE remove deprecated get_settings() calls
Browse files Browse the repository at this point in the history
ADD global $current_site to login_header() to ensure it's available
  • Loading branch information
richardtape committed Jun 17, 2014
1 parent a366fc7 commit 018d893
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ra-network-privacy.php
@@ -1,7 +1,7 @@
<?php
/*
Plugin Name: Network Privacy
Version: 0.1.4
Version: 0.1.5
Description: Adds more privacy options to Settings -> Privacy pages and when Network activated: Super Admin -> Options & Sites pages.
Author: Ron Rennick
Author URI: http://ronandandrea.com/
Expand Down Expand Up @@ -149,14 +149,15 @@ function privacy_login_message () {

// for logged in users to add timed "refresh"
function login_header() {
global $current_site;
nocache_headers();
header( 'Content-Type: text/html; charset=utf-8' );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php if ( function_exists('language_attributes') ) language_attributes(); ?>>
<head>
<title><?php _e("Private Blog Message", 'network-privacy'); ?></title>
<meta http-equiv="refresh" content="5;URL=<?php echo get_settings('siteurl'); ?>/wp-login.php" />
<meta http-equiv="refresh" content="5;URL=<?php echo get_option('siteurl'); ?>/wp-login.php" />
<?php wp_admin_css( 'css/login' );
wp_admin_css( 'css/colors-fresh' ); ?>
<link rel="stylesheet" href="css/install.css" type="text/css" />
Expand Down Expand Up @@ -186,7 +187,7 @@ function authenticator () {
?>
<form name="loginform" id="loginform">
<p><?php printf( __( 'Wait 5 seconds or
<a href="%s/wp-login.php">click</a> to continue.', 'network-privacy' ), get_settings('siteurl') ) ?></p>
<a href="%s/wp-login.php">click</a> to continue.', 'network-privacy' ), get_option('siteurl') ) ?></p>
<?php $this->privacy_login_message (); ?>
</form>
</div>
Expand Down

0 comments on commit 018d893

Please sign in to comment.