Make WordPress Core

Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#1588 closed defect (bug) (fixed)

Improper spacing in edit_post_link

Reported by: mjsteinbaugh's profile mjsteinbaugh Owned by: markjaquith's profile 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 19 years ago.
Patch for WP 1.6 SVN

Download all attachments as: .zip

Change History (5)

#1 @markjaquith
19 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
19 years ago

Patch for WP 1.6 SVN

#2 @markjaquith
19 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
19 years ago

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

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

#4 @(none)
18 years ago

  • Milestone 2.0 deleted

Milestone 2.0 deleted

Note: See TracTickets for help on using tickets.