Skip to content

Commit

Permalink
Remove get_email_link() API function
Browse files Browse the repository at this point in the history
The function is only used once, and only calls prepare_email_link() so
we might as well use that directly.

Fixes #25848
  • Loading branch information
dregad committed Jun 14, 2019
1 parent 434abd0 commit cfc0358
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions core/print_api.php
Expand Up @@ -1641,18 +1641,7 @@ function print_page_links( $p_page, $p_start, $p_end, $p_current, $p_temp_filter
* @return void
*/
function print_email_link( $p_email, $p_text ) {
echo get_email_link( $p_email, $p_text );
}

/**
* return the mailto: href string link instead of printing it
*
* @param string $p_email Email Address.
* @param string $p_text Link text to display to user.
* @return string
*/
function get_email_link( $p_email, $p_text ) {
return prepare_email_link( $p_email, $p_text );
echo prepare_email_link( $p_email, $p_text );
}

/**
Expand Down

0 comments on commit cfc0358

Please sign in to comment.