Ticket #2995 (closed defect: fixed)

Opened 2 years ago

Last modified 1 year ago

rel="nofollow" duplicated when comments are edited

Reported by: macmanx Assigned to: filosofo
Priority: normal Milestone:
Component: General Version: 2.1
Severity: normal Keywords: comments editing nofollow bg|has-patch
Cc:

Description

Under WordPress v2.0.4, the rel="nofollow" attribute added to links inside the comments is duplicated whenever a comment is edited.

For example, a link inside a comment displays the following structure are the first posting:

<a href="url" rel="nofollow">title</a>

After the first edit, the structure becomes:

<a href="url" rel="nofollow" rel="nofollow">title</a>

After the second edit, the structure becomes:

<a href="url" rel="nofollow" rel="nofollow" rel="nofollow">title</a>

And so forth.

Fortunately, the rel="nofollow" attributes are visible in the comment editing interface and can be removed to return the links to only one rel="nofollow" attribute.

I have tested this with both my current configuration and under the Default theme with no active plugins.

Attachments

formatting.php.diff (0.6 kB) - added by filosofo on 08/30/06 11:52:19.

Change History

08/30/06 11:52:19 changed by filosofo

  • attachment formatting.php.diff added.

08/30/06 11:52:55 changed by filosofo

  • keywords changed from comments editing nofollow to comments editing nofollow bg|has-patch.
  • owner changed from anonymous to filosofo.
  • version changed from 2.0.4 to 2.1.

My patch fixes this problem.

08/30/06 16:50:14 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

(In [4135]) Don't duplicate nofollow on edit. Props filosofo. fixes #2995

09/25/06 02:16:20 changed by ryan

(In [4233]) Don't duplicate nofollow on edit. Props filosofo. fixes #2995

09/25/06 04:18:20 changed by foolswisdom

  • milestone changed from 2.1 to 2.0.5.

11/30/06 19:41:51 changed by

  • milestone deleted.

Milestone 2.0.5 deleted