WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#4804 closed defect (bug) (fixed)

Incorrect variable name used in cockney replace code.

Reported by: westi Owned by: westi
Milestone: 2.0.12 Priority: normal
Severity: normal Version: 2.2.2
Component: General Keywords: has-patch commit
Focuses: Cc:

Description

        // if a plugin has provided an autocorrect array, use it
        if ( isset($wp_cockneyreplace) ) {
                $cockney = array_keys($wp_cockneyreplace);
                $cockney_replace = array_values($wp_cockneyreplace);
        } else {
                $cockney = array("'tain't","'twere","'twas","'tis","'twill","'til","'bout","'nuff","'round","'cause");
                $cockneyreplace = array("’tain’t","’twere","’twas","’tis","’twill","’til","’bout","’nuff","’round","’cause");

$cockney_replace and $cockneyreplace!!

Attachments (1)

4804.diff (762 bytes) - added by westi 7 years ago.
Patch

Download all attachments as: .zip

Change History (9)

westi7 years ago

Patch

comment:1 westi7 years ago

  • Keywords has-patch commit added

Props to andihit in IRC for the report.

comment:2 westi7 years ago

  • Version changed from 2.3 to 2.2.2

Also present in 2.2.2 and 2.0.11

comment:3 ryan7 years ago

+1 for all branches

comment:4 westi7 years ago

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

(In [5930]) Enable plugins to override the cockney replace array, fixes #4804 props andihit

comment:5 westi7 years ago

  • Milestone changed from 2.3 (trunk) to 2.2.3
  • Resolution fixed deleted
  • Status changed from closed to reopened

Re-open for 2.2.3

comment:6 westi7 years ago

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

(In [5931]) Enable plugins to override the cockney replace array, fixes #4804 for 2.2.3 props andihit

comment:7 westi7 years ago

  • Milestone changed from 2.2.3 to 2.0.12
  • Resolution fixed deleted
  • Status changed from closed to reopened

Re-open for 2.0.12

comment:8 westi7 years ago

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

(In [5932]) Enable plugins to override the cockney replace array, fixes #4804 for 2.0.12 props andihit

Note: See TracTickets for help on using tickets.