Make WordPress Core

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#5928 closed defect (bug) (wontfix)

Version Check takes place on Init, Use admin_init instead?

Reported by: dd32's profile DD32 Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.5
Component: Administration Keywords: has-patch
Focuses: Cc:

Description

At present the WordPress version update takes place on the init hook.

While i know its not a regularly called check, It makes more sense for it to only be run when a user is actually IN the admin area to see the latest updates.

Attachments (1)

5928.diff (386 bytes) - added by DD32 17 years ago.

Download all attachments as: .zip

Change History (7)

@DD32
17 years ago

#1 @ryan
17 years ago

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

(In [6921]) Do version check on admin_init. Props DD32. fixes #5928

#2 follow-up: @matt
17 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

This should be reverted, it was done so when an update was found we could do something like email the admin.

#3 @ryan
17 years ago

(In [6925]) Revert [6921]. see #5928

#4 @ryan
17 years ago

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

#5 @ryan
17 years ago

  • Milestone 2.5 deleted

#6 in reply to: ↑ 2 @DD32
17 years ago

Replying to matt:

it was done so when an update was found we could do something like email the admin.

Thats fair enough.

Perhaps a hook should be added so that plugins can hook into that instead then. (if thats done, make sure it hooks into init with a late priority, so that plugins that register on the init action can hook) - just food for thought.

Note: See TracTickets for help on using tickets.