[wp-hackers] Change vor wp-load.php

Frank Bueltge frank at bueltge.de
Tue Oct 6 18:36:56 UTC 2009


Thanks a lot.
I had test this and works great.

Best regards
Frank



On Tue, Oct 6, 2009 at 8:15 PM, Otto <otto at ottodestruct.com> wrote:
> The ABSPATH is set in wp-load.php, so you can include whatever you
> want in that file wherever you want and still use ABSPATH. ABSPATH is
> set for duration of the whole file.
>
> -Otto
> Sent from Memphis, TN, United States
>
>
> On Tue, Oct 6, 2009 at 1:07 PM, Frank Bueltge <frank at bueltge.de> wrote:
>> Thanks for your answer.
>> You say, it is also possible to include in the wp-config.php?
>> is is correct after:
>> require_once(ABSPATH . 'wp-settings.php');
>>
>> So it is is possible to use the constant ABSPATH
>>
>> Thanks
>>
>>
>> On Tue, Oct 6, 2009 at 7:56 PM, Otto <otto at ottodestruct.com> wrote:
>>> No, you should put your includes in the wp-config.php instead.
>>>
>>> wp-config.php is included almost immediately in the wp-load.php, and
>>> wp-config.php doesn't get overwritten on an upgrade either.
>>>
>>> -Otto
>>>
>>> On Tue, Oct 6, 2009 at 9:59 AM, Frank Bueltge <frank at bueltge.de> wrote:
>>>> Hello Hackers,
>>>>
>>>> i use different libraries for more security in WordPress and i load
>>>> this with include in the wp-load.php.
>>>> Please, can add an constant or file_exists() for an custom file to
>>>> hook/include in this point before load WP.
>>>>
>>>> Maybe this is a solution:
>>>> if ( defined('WP_LOAD') )
>>>>        @include ABSPATH . '/advanced-load.php';
>>>>
>>>> In the file advanced-load.php will iclude it my files and other
>>>> content for the load to WP.
>>>>
>>>> Sorry for my bad english.
>>>> I hope you understand my problem.
>>>> Frank
>>>>
>>> _______________________________________________
>>> wp-hackers mailing list
>>> wp-hackers at lists.automattic.com
>>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>>
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list