WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: NextGen Gallery 1.5.5] [BUG] deprecated is_site_admin function (2 posts)

  1. gazouteast
    Member
    Posted 3 years ago #

    NextGen Gallery v1.5.5 contains three instances of the deprecated function is_site_admin(), which are reported when using WP_DEBUG = true in wp-config.php

    is_site_admin was deprecated in WP 3.0 and replaced with is_super_admin

    nextgen-gallery/admin/admin.php
    change is_site_admin to is_super_admin (2 instances)

    function wpmu_site_admin() {
    	// Check for site admin
    	if ( function_exists('is_site_admin') )
    		if ( is_site_admin() )
    			return true;
    
    	return false;
    }

    nextgen-gallery/admin/wpmu.php
    change is_site_admin to is_super_admin (1 instance)

    //to be sure
    	if (!is_site_admin())

    It's possible but not sure these are also responsible for a "headers already sent error" occurring at the same time after uploadng an image and using its URL as the image location for a sidebar widget blogroll image .... still testing that one.

  2. gazouteast
    Member
    Posted 3 years ago #

    Yup - that fixed both errors - the deprecated function one and the headers already sent one.

Topic Closed

This topic has been closed to new replies.

About this Topic