- if ( isset( $view_post ) )
- $return .= "<span id='view-post-btn'><a href='$permalink' class='button button-small'>$view_post</a></span>\n";
-
- /**
- * Filter the sample permalink HTML markup.
- *
- * @since 2.9.0
- *
- * @param string $return Sample permalink HTML markup.
- * @param int|WP_Post $id Post object or ID.
- * @param string $new_title New sample permalink title.
- * @param string $new_slug New sample permalink slug.
- */
- $return = apply_filters( 'get_sample_permalink_html', $return, $id, $new_title, $new_slug );
-
- return $return;
- }
-
- if ( function_exists('mb_strlen') ) {
- if ( mb_strlen($post_name) > 30 ) {
- $post_name_abridged = mb_substr($post_name, 0, 14). '…' . mb_substr($post_name, -14);
- } else {
- $post_name_abridged = $post_name;