Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#26078 closed defect (bug) (fixed)

No update links on themes.php

Reported by: dd32's profile dd32 Owned by:
Milestone: 3.8 Priority: high
Severity: major Version:
Component: Administration Keywords: needs-patch
Focuses: Cc:

Description

The new Themes pages include a "Update available" notification, but doesn't include any links to update the theme.

In addition, the notice in the Theme dialogue about the new version being available is a bit short and terse, it was perfect when it was a small 1-liner under the theme, but feels out of place in the new UI:

https://i.cloudup.com/BjRR0FipEH.png

Attachments (2)

26078.thickbox.patch (1.0 KB) - added by SergeyBiryukov 11 years ago.
26078.thickbox.2.patch (825 bytes) - added by SergeyBiryukov 11 years ago.

Download all attachments as: .zip

Change History (14)

#1 @matveb
11 years ago

This wasn't merged with the rest because THX was forking the core function for theme updates — but it's marked for inclusion.

http://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/theme.php#L394

The way it looked on the plugin:

https://i.cloudup.com/TNGBsF8Q88.png

#2 @dd32
11 years ago

In 26282:

Themes: Add a get_theme_update_available() function to retrieve an update link and use it on the Themes page. See #26078

#3 follow-up: @dd32
11 years ago

The thickbox size is way out after that commit for the new version details, so still needs it's proper styling fixed.

#4 @matveb
11 years ago

I think we can remove the thickbox and open a new window instead.

#5 @dd32
11 years ago

#26138 was marked as a duplicate.

#6 in reply to: ↑ 3 @SergeyBiryukov
11 years ago

Replying to dd32:

The thickbox size is way out after that commit for the new version details, so still needs it's proper styling fixed.

Previously fixed in [24558]. Re-broken in [26141], which copied theme.js file into theme-install.js and replaced the file with a new one.

If we want to keep the thickbox, we can either re-add the code we had in theme.js (26078.thickbox.patch), or enqueue theme-install.js along with theme.js (26078.thickbox.2.patch).

Related: #26140

#7 @dd32
11 years ago

I am usually surprised that each screen has to handle the thickbox sizing manually.. That being said, I'd just enqueue both for now I think

#8 @SergeyBiryukov
11 years ago

Install Themes screen doesn't actually use thickbox, only Manage Themes does.

Looks like we should move the code back to theme.js and remove it from theme-install.js. ticket:26140:26140.2.patch does that.

Last edited 11 years ago by SergeyBiryukov (previous) (diff)

#9 @SergeyBiryukov
11 years ago

In 26323:

Fix thickbox positioning on Manage Themes screen. Adjust thickbox resizing code on various screens for new toolbar height.

see #26078. fixes #26140.

#10 @SergeyBiryukov
11 years ago

Anything left here?

#11 @matt
11 years ago

  • Priority changed from normal to high
  • Severity changed from normal to major

#12 @dd32
11 years ago

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.