WordPress.org

Ready to get started?Download WordPress

Forums

Simplified, corrected & translated #more anchor (1 post)

  1. Hubert Mauclaire
    Member
    Posted 3 years ago #

    Hello,

    With each upgrade of WordPress, I edit manually "post-template.php" to change the behaviour of the #more anchor. So I might as well submit a request for an official change (however unlikely) :

    1. Simplification of the #more anchor

    Currently, the name of the #more anchor includes the post ID number (for example: #more-354). Yet, I cannot think of a situation where the post ID number would be necessary to avoid conflict. I suggest the following simplification :

    replace
    id="more-' . $id . '"
    with
    id="more"

    2. Correction of the #more anchor

    From my experience, paragraphs cut prematurely by a #more link (typically in teasers on the main page) are missing a closing tag and lead to an invalid HTML document. I suggest the following correction :

    insert
    if ( ! empty($more_link_text) )
      $output .= '</p>';

    3. Translation of the #more anchor

    The #more anchor appears directly in the user's address bar. It is a visible and highly reoccurent element, but themes don't have control over its name. I suggest that a romanized translation of "#more" be possible (for example, "#suite" in French).

    Hubert

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 3 years ago by Hubert Mauclaire
  • This topic is not resolved
  • WordPress version: 3.0

Tags