publish_get_default_header_image(), 'width' => 100, 'height' => 100, 'flex-width' => true, 'flex-height' => true, 'header-text' => false, ) ) ); } add_action( 'after_setup_theme', 'publish_custom_header_setup' ); /** * A default header image * * Use the admin email's gravatar as the default header image. * * @since Publish 1.2.3 */ function publish_get_default_header_image() { // Get default from Discussion Settings. $default = get_option( 'avatar_default', 'mystery' ); // Mystery man default if ( 'mystery' == $default ) $default = 'mm'; elseif ( 'gravatar_default' == $default ) $default = ''; $url = ( is_ssl() ) ? 'https://secure.gravatar.com' : 'http://gravatar.com'; $url .= sprintf( '/avatar/%s/', md5( get_option( 'admin_email' ) ) ); $url = add_query_arg( array( 's' => 100, 'd' => urlencode( $default ), ), $url ); return esc_url_raw( $url ); } // publish_get_default_header_image