Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#7374 closed defect (bug) (fixed)

undefined variable in get_sample_permalink

Reported by: tschai Owned by:
Milestone: 2.6.1 Priority: normal
Severity: normal Version: 2.6
Component: General Keywords: get_sample_permalink post_title
Focuses: Cc:


The function get_sample_permalink in post.php uses at the end
$post->post_title = $original_title;
without $original_title beeing predefined.
Maybe a solution would be to add
$original_title = $post->post_title;
in the init part of the funtion. (after definition of $original_name, around line 606).

The undefined variable is a problem when using the plugin wphone.

Change History (3)

comment:1 @ryan7 years ago

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

(In [8397]) Eliminate unused var. Props tschai. fixes #7374

comment:2 @ryan7 years ago

  • Milestone changed from 2.7 to 2.6.1

comment:3 @ryan7 years ago

(In [8398]) Eliminate unused var. Props tschai. fixes #7374 for 2.6

Note: See TracTickets for help on using tickets.