Skip to:
Content

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#580 closed defect (fixed)

Cache should be initiated before plugins are loaded.

Reported by: so1o Owned by: so1o
Milestone: 0.8.1 Priority: high
Severity: normal Version: 0.8
Component: Back-end Keywords: has-patch
Cc:

Description

title says all :)

the plugins might want to do some stuff after loading.. but if cache is not initiated it gives a critical error and craps out!

Attachments (1)

ticket-580.patch (764 bytes) - added by so1o 8 years ago.
move cache before plugin load

Download all attachments as: .zip

Change History (6)

@so1o8 years ago

move cache before plugin load

comment:1 @so1o8 years ago

  • Status changed from new to assigned

comment:2 @mdawaffe8 years ago

If plugins need the cache object, they should probably wait until bb_init.

Can you:

function do_the_stuff_i_need() {
   call_this();
   call_that();
   $bb_cache->the_other();
}

add_action( 'bb_init', 'do_the_stuff_i_need' );

?

comment:3 @mdawaffe8 years ago

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

(In [715]) move $bb_cache up a few lines. Fixes #580

comment:4 @so1o8 years ago

we can. i was just thinking anybody using the bb_plugins_loaded hook will run into this.

comment:5 @mdawaffe8 years ago

  • Milestone changed from 1.0 to 0.8.1
Note: See TracTickets for help on using tickets.