﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
15853	Plugin Development: Inconsistent file include sources.	sterlo		"Story: I was building a plugin and created an options page.
Here are the relevant functions:

In the constructor:
{{{
add_action( 'admin_menu' , array( &$this , 'add_menu' ) , 1 );
}}}

In the function:

{{{
add_options_page( 'XXX_options' , 'XXX' , 'manage_options' , 'XXX_options' , array( &$this , 'options' ) );
}}}

In the other function:

{{{
include( 'options.php' );
}}}

Results: Instead of including /wp-content/plugins/myplugin/options.php it includes /wp-admin/options.php

If I change the include path to this:

{{{
include( 'afolderinmyplugin/options.php' );
}}}

Then it now pulls from /wp-content/plugins/myplugin/afolderinmyplugin/options.php

Seems like inconsistent functionality to me and should probably be fixed.
"	defect (bug)	closed	normal		General	3.0.3	normal	invalid		
