dofollow блог. Часть 4

function get_comment_author_link( $comment_ID = 0 ) {

/** @todo Only call these functions when they are needed. Include in if… else blocks */

$url    = get_comment_author_url( $comment_ID );

$author = get_comment_author( $comment_ID );

if ( empty( $url ) || ‘http://’ == $url )

$return = $author;

else

$return = «<a href=’$url’ rel=’external nofollow’ class=’url’>$author</a>»;

return apply_filters(‘get_comment_author_link’, $return);

}

Для того, что бы сделать блог dofollow, доастаточно всего лишь удалить из этого кода rel=’external nofollow’ и сохранить файл. В итоге получится вот так:

function get_comment_author_link( $comment_ID = 0 ) {

/** @todo Only call these functions when they are needed. Include in if… else blocks */

$url    = get_comment_author_url( $comment_ID );

$author = get_comment_author( $comment_ID );

if ( empty( $url ) || ‘http://’ == $url )

$return = $author;

else

$return = «<a href=’$url’ class=’url’>$author</a>»;

return apply_filters(‘get_comment_author_link’, $return);

}

На этом всё. Потратив некоторое время, мы получаем dofollow блог, без использования плагинов, и получаем немного опыта в редактировании кода функций.

PS: В Украине не так много достойных сервисов, которые позволяют быстро и удобно забронировать авиабилеты онлайн. На мой взгляд сайт по адресу Avia.ua является наиболее удобным и простым при таких задачах.

Тэги: