Bläddra i källkod

Merge pull request #1596 from Automattic/update/radcliffe-2-mask-email

Radcliffe 2: Mask Contact Info email from bots
Daniel Dudzic 5 år sedan
förälder
incheckning
666ff190f4
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      radcliffe-2/contact-info/contact-info-functions.php

+ 1 - 1
radcliffe-2/contact-info/contact-info-functions.php

@@ -7,7 +7,7 @@ function radcliffe_2_contact_info( $section ) {
 	$location = get_theme_mod( 'radcliffe_2_contact_info_location',  'header' );
 	$location = get_theme_mod( 'radcliffe_2_contact_info_location',  'header' );
 	$address  = get_option( 'site_contact_info' )['address'] ?: get_theme_mod( 'radcliffe_2_contact_info_address', '' );
 	$address  = get_option( 'site_contact_info' )['address'] ?: get_theme_mod( 'radcliffe_2_contact_info_address', '' );
 	$phone    = get_option( 'site_contact_info' )['phone'] ?: get_theme_mod( 'radcliffe_2_contact_info_phone',   '' );
 	$phone    = get_option( 'site_contact_info' )['phone'] ?: get_theme_mod( 'radcliffe_2_contact_info_phone',   '' );
-	$email    = get_option( 'site_contact_info' )['email'] ?: get_theme_mod( 'radcliffe_2_contact_info_email',   '' );
+	$email    = get_option( 'site_contact_info' )['email'] ?: antispambot( get_theme_mod( 'radcliffe_2_contact_info_email' ),   '' );
 	$hours    = get_theme_mod( 'radcliffe_2_contact_info_hours',   '' );
 	$hours    = get_theme_mod( 'radcliffe_2_contact_info_hours',   '' );
 
 
 	// If Address, Phone, Email and Hours are empty, return.
 	// If Address, Phone, Email and Hours are empty, return.