Make WordPress Core

Opened 7 years ago

Last modified 6 years ago

#50190 reopened defect (bug)

Search query doesnot know if the theme is already updated.

Reported by: sanzeeb3 Owned by:
Priority: normal Milestone: Future Release
Component: Themes Version:
Severity: normal Keywords: has-patch
Cc: Focuses: ui, administration

Description

If the theme is updated and the search box is used, there comes the 'New version available. Update Now.' again for that theme.

Attachments (1)

updates.js.patch​ (899 bytes ) - added by sajjad67 6 years ago.
change currently updated theme's hasUpdate prop to false as it's already updated to render it properly without showing Update Available Again…

Download all attachments as: .zip

Change History (8)

#1 @SergeyBiryukov
7 years ago

  • Component General → Themes
  • Focuses ui administration added

#2 @sajjad67
6 years ago

  • Keywords reporter-feedback added

Tested on local with v5.4.1 and yes it does seems to be correct... Search query doesn't know if the theme is already updated.

@sajjad67
6 years ago

change currently updated theme's hasUpdate prop to false as it's already updated to render it properly without showing Update Available Again...

#3 @sajjad67
6 years ago

  • Keywords has-patch needs-testing added

Please Guys test it on own your machine and check if its works on everywhere too! Happy WPing!!

This ticket was mentioned in ​Slack in #core by sajjad67. ​View the logs.


6 years ago

#5 @sanzeeb3
6 years ago

  • Resolution → worksforme
  • Status new → closed

Yeah, the patch fixed the issue. I thought it would be a simple status check in php side.

#6 @desrosj
6 years ago

  • Keywords needs-testing reporter-feedback removed
  • Milestone Awaiting Review → Future Release
  • Resolution worksforme
  • Status closed → reopened

Hi @sanzeeb3,

Welcome to Trac! And nice find here.

I am reopening this ticket as the change has not been committed to the codebase yet. The worksforme resolution is confusing, and we are actually ​considering updating them to be more clear.

I've been able to confirm the bug using trunk, so this still exists.

This issue also reminds me of #50291, which addressed the auto-update state not being updated across the various views of the theme. There already seems to be a function that runs on wp-theme-update-success and tries to update version and hasUpdate. I'm wondering why that is not working correctly. That action is triggered right below where your patch is adding code.

#7 @sanzeeb3
6 years ago

@desrosj yes, that was confusing. I was also wondering back in the mind what happened to this issue until your comment. I'll check the issue and get back to you. Thanks!

Note: See TracTickets for help on using tickets.