Making WordPress.org

Opened 9 years ago

Closed 9 years ago

Last modified 2 years ago

#1344 closed defect (bug) (fixed)

Don't link reserved names

Reported by: johnbillion's profile johnbillion Owned by: ocean90's profile ocean90
Milestone: Priority: normal
Component: Trac Keywords: has-patch
Cc:

Description

Since [1967], instances of @ in code blocks also get linked, which messes up the formatting of commit messages where text such as @since is used. Example of a broken commit message comment: https://core.trac.wordpress.org/ticket/33763?cnum_edit=11#comment:11

To avoid reimplementing wptexturize() in Trac, we could just blacklist some names that shouldn't get linked:

  • access
  • deprecated
  • global
  • ignore
  • internal
  • link
  • method
  • package
  • param
  • return
  • see
  • since
  • subpackage
  • todo
  • type
  • var

Related: #830.

Attachments (3)

1344.diff (1.1 KB) - added by DrewAPicture 9 years ago.
1344-uses.diff (613 bytes) - added by netweb 9 years ago.
1344.2.diff (629 bytes) - added by SergeyBiryukov 9 years ago.

Download all attachments as: .zip

Change History (27)

#1 @DrewAPicture
9 years ago

  • Keywords has-patch added; needs-patch removed

@DrewAPicture
9 years ago

#2 @ocean90
9 years ago

  • Owner set to ocean90
  • Resolution set to fixed
  • Status changed from new to closed

In 1993:

Trac: Don't link reserved names.

Props DrewAPicture.
Fixes #1344.
See #830.

#3 @johnbillion
9 years ago

@param got missed.

#4 @johnbillion
9 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

#5 @ocean90
9 years ago

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

In 1995:

Trac: Add param to the list of reserved terms.

Fixes #1344.

@netweb
9 years ago

#6 @netweb
9 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

@uses also got missed, both bbPress and BuddyPress continue to use @uses

Testing this on core.trac @uses is linked to https://profiles.wordpress.org/uses, but this is not the case for meta, bbPress or BuddyPress, should this feature be available on all Tracs or not yet implemented?

#7 @SergeyBiryukov
9 years ago

ticket was also missed, see #1463. Merged 1344-uses.diff with the patch on that ticket.

#8 @ocean90
9 years ago

#1463 was marked as a duplicate.

#9 @SergeyBiryukov
9 years ago

Added the patch from #1463.

#10 @ocean90
9 years ago

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

In 2187:

Trac: Update list of reserved terms for linked mentions.

Fixes #1344.

#11 @SergeyBiryukov
7 years ago

In 6501:

Trac: Add covers to the list of reserved terms that should not be converted to a mention.

See #1344.

#12 @SergeyBiryukov
6 years ago

In 8162:

Trac: Add group to the list of reserved terms that should not be converted to a mention.

See #1344.

#13 @SergeyBiryukov
6 years ago

In 8163:

Trac: Bump scripts version after [8162].

See #1344.

#14 @SergeyBiryukov
5 years ago

In 9080:

Trac: Add import to the list of reserved terms that should not be converted to a mention.

See #1344.

#15 @SergeyBiryukov
5 years ago

In 9304:

Trac: Add returns (a synonym for return) to the list of reserved terms that should not be converted to a mention.

See #1344.

#16 @SergeyBiryukov
5 years ago

In 9305:

Trac: Bump scripts version after [9304].

See #1344.

#17 @SergeyBiryukov
5 years ago

In 9566:

Trac: Add throws to the list of reserved terms that should not be converted to a mention.

See #1344.

#18 @SergeyBiryukov
5 years ago

In 9567:

Trac: Bump scripts version after [9566].

See #1344.

#19 @SergeyBiryukov
2 years ago

In 11864:

Trac: Add property-read to the list of reserved terms that should not be converted to a mention.

See #1344.

#20 @SergeyBiryukov
2 years ago

In 11865:

Trac: Bump scripts version after [11864].

See #1344.

#21 @SergeyBiryukov
2 years ago

In 11932:

Trac: Add expectedDeprecated to the list of reserved terms that should not be converted to a mention.

See #1344.

#22 @SergeyBiryukov
2 years ago

In 11933:

Trac: Bump scripts version after [11932].

See #1344.

#23 @SergeyBiryukov
2 years ago

In 12047:

Trac: Add coversNothing to the list of reserved terms that should not be converted to a mention.

See #1344.

#24 @SergeyBiryukov
2 years ago

In 12048:

Trac: Bump scripts version after [12047].

See #1344.

Note: See TracTickets for help on using tickets.