[wp-hackers] Codex on 2.5 plugin/theme migration...

Ryan McCue ryanmccue at cubegames.net
Fri Feb 15 07:43:34 GMT 2008


Ryan Boren wrote:
> Could do something like this:
> if (function_exists(add_meta_box()) {
>   // 2.5 style
> } else {
>   // 2.3
> }
>   
Which should be this, to avoid calling the function and to avoid calling 
the non-existant function:

if (function_exists('add_meta_box')) {
  // 2.5 style
} else {
  // 2.3
}



More information about the wp-hackers mailing list