Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#7374 closed defect (bug) (fixed)

undefined variable in get_sample_permalink

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

Description

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   ryan5 years ago

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

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

comment:2   ryan5 years ago

  • Milestone changed from 2.7 to 2.6.1

comment:3   ryan5 years ago

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

Note: See TracTickets for help on using tickets.