WordPress.org

Make WordPress Core

Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#1588 closed defect (bug) (fixed)

Improper spacing in edit_post_link

Reported by: mjsteinbaugh Owned by: markjaquith
Milestone: Priority: lowest
Severity: trivial Version: 1.5.2
Component: Template Keywords: bg|has-patch bg|commit
Focuses: Cc:

Description

For edit_post_link:
<?php edit_post_link('text', 'before', 'after'); ?>

In template-functions-links.php, line 182:

Original

echo "$before <a href=\"$location\">$link</a> $after";

Corrected

echo $before."<a href=\"$location\">$link</a>".$after;

Attachments (1)

template-functions-links.php.diff (889 bytes) - added by markjaquith 16 years ago.
Patch for WP 1.6 SVN

Download all attachments as: .zip

Change History (5)

#1 @markjaquith
16 years ago

  • Keywords bg|has-patch bg|commit added
  • Milestone set to 1.6
  • Owner changed from anonymous to markjaquith
  • Status changed from new to assigned

Thanks. And agreed. I hate it when spaces are hardcoded like that... it limits your formatting options.

@markjaquith
16 years ago

Patch for WP 1.6 SVN

#2 @markjaquith
16 years ago

  • Version changed from 1.5.1.2 to 1.5.2

New patch does the same for the edit_comment_link() function

#3 @ryan
16 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [2859]) Fix before/after spacing. Props mjsteinbaugh. fixes #1588

#4 @(none)
15 years ago

  • Milestone 2.0 deleted

Milestone 2.0 deleted

Note: See TracTickets for help on using tickets.