11;', '☔', '☕', '☘', '☝', '☢', '☣', '☦', '☪', '☮', '☯', '☸', '☹', '☺', '♈', '♉', '♊', '♋', '♌', '♍', '♎', '♏', '♐', '♑', '♒', '♓', '♟', '♠', '♣', '♥', '♦', '♨', '♻', '♾', '♿', '⚒', '⚓', '⚔', '⚗', '⚙', '⚛', '⚜', '⚠', '⚡', '⚪', '⚫', '⚰', '⚱', '⚽', '⚾', '⛄', '⛅', '⛈', '⛎', '⛏', '⛑', '⛓', '⛔', '⛩', '⛪', '⛰', '⛱', '⛲', '⛳', '⛴', '⛵', '⛷', '⛸', '⛹', '⛺', '⛽', '✂', '✅', '✉', '✊', '✋', '✌', '✍', '✏', '✒', '✔', '✖', '✝', '✡', '✨', '✳', '✴', '❇', '❌', '❎', '❓', '❔', '❕', '❗', '❣', '➕', '➖', '➗', '➡', '➰', '➿', '⤴', '⤵', '⬅', '⬆', '⬇', '⬜', '⭐', '⭕', '〰', '〽', '㊗', '㊙', '' );
// END: emoji arrays
if ( 'entities' === $type ) {
return $entities;
}
return $partials;
}
/**
* Shortens a URL, to be used as link text.
*
* @since 1.2.0
* @since 4.4.0 Moved to wp-includes/formatting.php from wp-admin/includes/misc.php and added $length param.
*
* @param string $url URL to shorten.
* @param int $length Optional. Maximum length of the shortened URL. Default 35 characters.
* @return string Shortened URL.
*/
function url_shorten( $url, $length = 35 ) {
$stripped = str_replace( array( 'https://', 'http://', 'www.' ), '', $url );
$short_url = untrailingslashit( $stripped );
if ( strlen( $short_url ) > $length ) {
$short_url = substr( $short_url, 0, $length - 3 ) . '…';
}
return $short_url;
}
/**
* Sanitizes a hex color.
*
* Returns either '', a 3 or 6 digit hex color (with #), or nothing.
* For sanitizing values without a #, see sanitize_hex_color_no_hash().
*
* @since 3.4.0
*
* @param string $color
* @return string|void
*/
function sanitize_hex_color( $color ) {
if ( '' === $color ) {
return '';
}
// 3 or 6 hex digits, or the empty string.
if ( preg_match( '|^#([A-Fa-f0-9]{3}){1,2}$|', $color ) ) {
return $color;
}
}
/**
* Sanitizes a hex color without a hash. Use sanitize_hex_color() when possible.
*
* Saving hex colors without a hash puts the burden of adding the hash on the
* UI, which makes it difficult to use or upgrade to other color types such as
* rgba, hsl, rgb, and HTML color names.
*
* Returns either '', a 3 or 6 digit hex color (without a #), or null.
*
* @since 3.4.0
*
* @param string $color
* @return string|null
*/
function sanitize_hex_color_no_hash( $color ) {
$color = ltrim( $color, '#' );
if ( '' === $color ) {
return '';
}
return sanitize_hex_color( '#' . $color ) ? $color : null;
}
/**
* Ensures that any hex color is properly hashed.
* Otherwise, returns value untouched.
*
* This method should only be necessary if using sanitize_hex_color_no_hash().
*
* @since 3.4.0
*
* @param string $color
* @return string
*/
function maybe_hash_hex_color( $color ) {
$unhashed = sanitize_hex_color_no_hash( $color );
if ( $unhashed ) {
return '#' . $unhashed;
}
return $color;
}
Fatal error: Uncaught Error: Call to undefined function esc_sql() in /home/candoodesigncom/public_html/wp-includes/option.php:609
Stack trace:
#0 /home/candoodesigncom/public_html/wp-includes/functions.php(1780): wp_load_alloptions()
#1 /home/candoodesigncom/public_html/wp-includes/load.php(915): is_blog_installed()
#2 /home/candoodesigncom/public_html/wp-settings.php(174): wp_not_installed()
#3 /home/candoodesigncom/public_html/wp-config.php(100): require_once('/home/candoodes...')
#4 /home/candoodesigncom/public_html/wp-load.php(50): require_once('/home/candoodes...')
#5 /home/candoodesigncom/public_html/wp-blog-header.php(13): require_once('/home/candoodes...')
#6 /home/candoodesigncom/public_html/index.php(17): require('/home/candoodes...')
#7 {main}
thrown in /home/candoodesigncom/public_html/wp-includes/option.php on line 609
Fatal error: Uncaught Error: Call to undefined function esc_sql() in /home/candoodesigncom/public_html/wp-includes/option.php:609
Stack trace:
#0 /home/candoodesigncom/public_html/wp-includes/option.php(164): wp_load_alloptions()
#1 /home/candoodesigncom/public_html/wp-includes/l10n.php(63): get_option('WPLANG')
#2 /home/candoodesigncom/public_html/wp-includes/l10n.php(165): get_locale()
#3 /home/candoodesigncom/public_html/wp-includes/l10n.php(953): determine_locale()
#4 /home/candoodesigncom/public_html/wp-includes/class-wp-fatal-error-handler.php(49): load_default_textdomain()
#5 [internal function]: WP_Fatal_Error_Handler->handle()
#6 {main}
thrown in /home/candoodesigncom/public_html/wp-includes/option.php on line 609