[wp-trac] [WordPress Trac] #6170: Prevent direct loading of files
that require WP to be loaded
WordPress Trac
wp-trac at lists.automattic.com
Tue Mar 11 22:03:18 GMT 2008
#6170: Prevent direct loading of files that require WP to be loaded
-------------------------+--------------------------------------------------
Reporter: mdawaffe | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: 2.6
Component: General | Version: 2.5
Severity: normal | Keywords: 2nd-opinion has-patch
-------------------------+--------------------------------------------------
There was some talk about this a while back, but I can't find any tickets.
Idea: add {{{if ( !defined( 'ABSPATH' ) ) die(); }}} to all files that
should not be directly loaded.
Attached implements this for all files in wp-admin/ (except for the FTP
classes).
--
Ticket URL: <http://trac.wordpress.org/ticket/6170>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list