WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#8679 closed defect (bug) (fixed)

Press This introduced a PHP 5.1 function

Reported by: DD32 Owned by: noel
Milestone: 2.8 Priority: normal
Severity: normal Version: 2.2.1
Component: Press This Keywords:
Focuses: Cc:

Description

htmlspecialchars_decode() is only available in PHP 5.1+: http://trac.wordpress.org/browser/trunk/wp-admin/press-this.php#L554 appears to have been added in [9787] which means WP 2.7 is affected

A similar case where this would've been useful is #6992 perhaps a compat function should be added?

Attachments (1)

8679.diff (497 bytes) - added by sivel 5 years ago.
compat function

Download all attachments as: .zip

Change History (2)

sivel5 years ago

compat function

comment:1 azaozz5 years ago

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

(In [10236]) htmlspecialchars_decode() for php versions less than 5.1, props sivel, fixes #8679

Note: See TracTickets for help on using tickets.