/** * Get remote content via a GET request using best transport available * */ function yourls_get_remote_content($url, $maxlen = 4096, $timeout = 5) { yourls_deprecated_function(__FUNCTION__, '1.7', 'yourls_http_get_body'); return yourls_http_get_body($url); }
/** * Return word or words if more than one * */ function yourls_plural($word, $count = 1) { yourls_deprecated_function(__FUNCTION__, '1.6', 'yourls_n'); return $word . ($count > 1 ? 's' : ''); }
/** * Displays translated string with gettext context * * This function has been renamed yourls_xe() for consistency with other *e() functions * * @see yourls_x() * @since 1.6 * @deprecated 1.7.1 * * @param string $text Text to translate * @param string $context Context information for the translators * @param string $domain Optional. Domain to retrieve the translated text * @return string Translated context string without pipe */ function yourls_ex($text, $context, $domain = 'default') { yourls_deprecated_function(__FUNCTION__, '1.7.1', 'yourls_xe'); echo yourls_xe($text, $context, $domain); }