xmlrpc_pingback_error

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

WordPress Version: 5.5

/**
 * Default filter attached to xmlrpc_pingback_error.
 *
 * Returns a generic pingback error code unless the error code is 48,
 * which reports that the pingback is already registered.
 *
 * @since 3.5.1
 *
 * @link https://www.hixie.ch/specs/pingback/pingback#TOC3
 *
 * @param IXR_Error $ixr_error
 * @return IXR_Error
 */
function xmlrpc_pingback_error($ixr_error)
{
    if (48 === $ixr_error->code) {
        return $ixr_error;
    }
    return new IXR_Error(0, '');
}

WordPress Version: 5.4

/**
 * Default filter attached to xmlrpc_pingback_error.
 *
 * Returns a generic pingback error code unless the error code is 48,
 * which reports that the pingback is already registered.
 *
 * @since 3.5.1
 * @link https://www.hixie.ch/specs/pingback/pingback#TOC3
 *
 * @param IXR_Error $ixr_error
 * @return IXR_Error
 */
function xmlrpc_pingback_error($ixr_error)
{
    if (48 === $ixr_error->code) {
        return $ixr_error;
    }
    return new IXR_Error(0, '');
}

WordPress Version: 4.6

/**
 * Default filter attached to xmlrpc_pingback_error.
 *
 * Returns a generic pingback error code unless the error code is 48,
 * which reports that the pingback is already registered.
 *
 * @since 3.5.1
 * @link https://www.hixie.ch/specs/pingback/pingback#TOC3
 *
 * @param IXR_Error $ixr_error
 * @return IXR_Error
 */
function xmlrpc_pingback_error($ixr_error)
{
    if ($ixr_error->code === 48) {
        return $ixr_error;
    }
    return new IXR_Error(0, '');
}

WordPress Version: 3.7

/**
 * Default filter attached to xmlrpc_pingback_error.
 *
 * Returns a generic pingback error code unless the error code is 48,
 * which reports that the pingback is already registered.
 *
 * @since 3.5.1
 * @link http://www.hixie.ch/specs/pingback/pingback#TOC3
 *
 * @param IXR_Error $ixr_error
 * @return IXR_Error
 */
function xmlrpc_pingback_error($ixr_error)
{
    if ($ixr_error->code === 48) {
        return $ixr_error;
    }
    return new IXR_Error(0, '');
}