Opened 5 years ago

Closed 4 years ago

Last modified 4 years ago

#4667 closed enhancement (fixed)

Rename video title upon publishing or update

Reported by: casiepa's profile casiepa Owned by: dd32's profile dd32
Milestone: Priority: normal
Component: Keywords:


When a video is submitted to, it creates a new post with all the data (e.g. and also the (video)attachment linked to that post (e.g. The title of the video-attachment is shown when a viewer hovers over the video on the frontend.

A patch is needed to automatically update the title the of the video-attachement with the title of the post when the post is 'published' or 'updated'.

Attachments (1)

Capture.PNG (64.8 KB) - added by casiepa 5 years ago.
View on frontend

Download all attachments as: .zip

Change History (10)

5 years ago

View on frontend

#1 @dd32
5 years ago

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

In 9176:

WordPress.TV: Upon updating the post title, update the respective video title to match.

This is done, as the attachment title is used as the VideoPress embed title.

Fixes #4667.

This ticket was mentioned in Slack in #wptv by casiepa. View the logs.

5 years ago

#3 @casiepa
4 years ago

@dd32 Looks like it's no longer working...

#4 follow-up: @casiepa
4 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

It's not updating for e.g.

@dd32 FYI reopening ticket.

#5 in reply to: ↑ 4 @dd32
4 years ago

Replying to casiepa:

It's not updating for e.g.

Is there anything special about that upload? I mean, like how it was uploaded?

Looking at it's working for most uploads, except for that one and another one (C1_08_David Stoeckl_NET-c4.9.mp4 and C1_03_Tamara Zimmermann_NET-c4.9.mp4)

I'll take a look this week.

#6 @casiepa
4 years ago

Hi @dd32
Since we saw that it was not updating anymore, we are manually updating the title. But I left Tamara as it was and David we still need to work on that video.

#7 @dd32
4 years ago

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

In 9744:

WordPress.TV: Set the initial title for video files to that of the parent post.

Fixes #4667.

#8 @dd32
4 years ago

It looks like this was affecting any uploads with a space in the filename, or where core changes to sanitize_file_name() were stripping out extra characters. [9744] should avoid that I think, or at least has worked with my test uploads.

#9 @dd32
4 years ago

In 9745:

WordPress.TV: Set the default post title to Speakers: Video Title to match the naming.

See #4667.

Note: See TracTickets for help on using tickets.