Make WordPress Core

Opened 19 years ago

Closed 19 years ago

#4804 closed defect (bug) (fixed)

Incorrect variable name used in cockney replace code.

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

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 19 years ago.
Patch

Download all attachments as: .zip

Change History (9)

@westi
19 years ago

Patch

#1 @westi
19 years ago

  • Keywords has-patch commit added

Props to andihit in IRC for the report.

#2 @westi
19 years ago

  • Version 2.32.2.2

Also present in 2.2.2 and 2.0.11

#3 @ryan
19 years ago

+1 for all branches

#4 @westi
19 years ago

  • Resolutionfixed
  • Status newclosed

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

#5 @westi
19 years ago

  • Milestone 2.3 (trunk)2.2.3
  • Resolution fixed
  • Status closedreopened

Re-open for 2.2.3

#6 @westi
19 years ago

  • Resolutionfixed
  • Status reopenedclosed

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

#7 @westi
19 years ago

  • Milestone 2.2.32.0.12
  • Resolution fixed
  • Status closedreopened

Re-open for 2.0.12

#8 @westi
19 years ago

  • Resolutionfixed
  • Status reopenedclosed

(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.