Make WordPress Core

Opened 21 years ago

Closed 21 years ago

Last modified 20 years ago

#1588 closed defect (bug) (fixed)

Improper spacing in edit_post_link

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

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 21 years ago.
Patch for WP 1.6 SVN

Download all attachments as: .zip

Change History (5)

#1 @markjaquith
21 years ago

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

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

#2 @markjaquith
21 years ago

  • Version 1.5.1.2 → 1.5.2

New patch does the same for the edit_comment_link() function

#3 @ryan
21 years ago

  • Resolution → fixed
  • Status assigned → closed

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

#4 @(none)
20 years ago

  • Milestone 2.0

Milestone 2.0 deleted

Note: See TracTickets for help on using tickets.