WordPress.org

Support

Support » Plugins and Hacks » WordPress MU Domain Mapping » [Plugin: WordPress MU Domain Mapping] undefined index https

[Plugin: WordPress MU Domain Mapping] undefined index https

  • the plugin checks for $_SERVER[‘HTTPS’] to see if https is enabled.
    on http php does not set the variable.

    patch to avoid notice: Notice: Undefined index: HTTPS in …/domain_mapping.php on line 491

    491c491
    < 		$protocol = ( 'on' == strtolower( $_SERVER['HTTPS' ] ) ) ? 'https://' : 'http://';
    ---
    > 		$protocol = ( isset($_SERVER['HTTPS']) && 'on' == strtolower( $_SERVER['HTTPS' ] ) ) ? 'https://' : 'http://';

    http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/

Viewing 2 replies - 1 through 2 (of 2 total)
  • created another fix for the deprecated function is_site_admin()

    53c53
    < 	if( is_site_admin() ) {
    ---
    > 	if( is_super_admin() ) {
    90c90
    < 	if ( is_site_admin() ) {
    ---
    > 	if ( is_super_admin() ) {
    122c122
    < 	if ( false == is_site_admin() ) { // paranoid? moi?
    ---
    > 	if ( !is_super_admin() ) { // paranoid? moi?
    239c239
    < 	if ( false == is_site_admin() ) { // paranoid? moi?
    ---
    > 	if ( !is_super_admin() ) { // paranoid? moi?
    365c365
    < 		if ( is_site_admin() ) {
    ---
    > 		if ( is_super_admin() ) {
    374c374
    < 		if ( is_site_admin() ) {
    ---
    > 		if ( is_super_admin() ) {
    383c383
    < 		if ( is_site_admin() ) {
    ---
    > 		if ( is_super_admin() ) {
    405c405
    < 		if ( is_site_admin() ) {
    ---
    > 		if ( is_super_admin() ) {

    Better still, use is_ssl() (available since WP 2.6).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WordPress MU Domain Mapping] undefined index https’ is closed to new replies.
Skip to toolbar