Ticket #7374 (closed defect (bug): fixed)

Opened 4 years ago

Last modified 4 years ago

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

comment:1   ryan4 years ago

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

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

comment:2   ryan4 years ago

  • Milestone changed from 2.7 to 2.6.1

comment:3   ryan4 years ago

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

Note: See TracTickets for help on using tickets.