privacy_ping_filter

The timeline below displays how wordpress function privacy_ping_filter has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.1

/**
 * Checks whether blog is public before returning sites.
 *
 * @since 2.1.0
 *
 * @param mixed $sites Will return if blog is public, will not return if not public.
 * @return mixed Empty string if blog is not public, returns $sites, if site is public.
 */
function privacy_ping_filter($sites)
{
    if ('0' != get_option('blog_public')) {
        return $sites;
    } else {
        return '';
    }
}

WordPress Version: 3.7

/**
 * Check whether blog is public before returning sites.
 *
 * @since 2.1.0
 *
 * @param mixed $sites Will return if blog is public, will not return if not public.
 * @return mixed Empty string if blog is not public, returns $sites, if site is public.
 */
function privacy_ping_filter($sites)
{
    if ('0' != get_option('blog_public')) {
        return $sites;
    } else {
        return '';
    }
}