Ticket #531 (closed enhancement: fixed)

Opened 5 years ago

Last modified 9 months ago

Add before and after hooks to the filter to avoid external filter conflicts

Reported by: rmm5t Owned by: rmm5t
Priority: high Component: wp-syntax
Severity: normal Keywords:
Cc:

Description

Currently, other content filters can adversely manipulate the output of wp-syntax (pretty-quotes, html special chars, etc) depending on the priority ordering of different filters. For example, depending on other filters, XML-type output is broken.

Using the WordPress priority scheme, pull the relevant code out of the content during an early filter pass, and then substitute the syntax highlighted code back in during a late filter pass.

The first pass should probably happen at priority 1 (something guaranteed to run first or very early), and the second pass should probably happen at priority 99 (something guaranteed to run last).

Change History

comment:1 Changed 5 years ago by rmm5t

  • Summary changed from Add before and after hooks to the filter to avoid to Add before and after hooks to the filter to avoid external filter conflicts

comment:2 Changed 5 years ago by rmm5t

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

Added in [7461]

comment:3 Changed 5 years ago by rmm5t

  • Status changed from closed to reopened
  • Resolution fixed deleted

comment:4 Changed 5 years ago by rmm5t

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

[7464] fixes the case where a textile or another similar plugin is also in use

comment:5 Changed 9 months ago by garyc40

In [377664]:

Fixes issue 531. [paypal-standard-merchant] Multiply quantity instead of adding. Props hm2k.

Note: See TracTickets for help on using tickets.