WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 13 days ago

#8879 closed feature request (invalid)

editing post title doesn't update post_name

Reported by: sniemetz Owned by:
Milestone: Priority: low
Severity: minor Version:
Component: General Keywords:
Focuses: Cc:

Description

wp-includes/post.php
line 1370

$post_name = sanitize_title($post_name);

needs to be

$post_name = sanitize_title($post_title);

Change History (4)

comment:1 @Viper007Bond6 years ago

Why does it matter? That isn't used for anything anymore AFIAK.

Or if you're talking about the slug for the permalink, that is intentional, otherwise you could never have a slug that differs from the title.

comment:2 @Denis-de-Bernardy6 years ago

seems like this one is invalid -- last I checked the slug is not set until the user sets it or the post is published and it becomes sticky once that occurs.

comment:3 @sniemetz6 years ago

  • Priority changed from normal to low
  • Resolution set to invalid
  • Severity changed from normal to minor
  • Status changed from new to closed
  • Type changed from defect (bug) to feature request

sorry.
I am retarded.

so: it IS tru that on a page where I have not edited the permalink, the permalink doesnt change when you edit the title.

prob for good reason. resolving as invalid.

comment:4 @DrewAPicture13 days ago

  • Milestone 2.8 deleted
Note: See TracTickets for help on using tickets.