Skip to content

Definied ABSPATH as bool #111

@danielhuesken

Description

@danielhuesken

Hello,

for my understanding defining \define( 'ABSPATH', true ); as a bool is not a good idea.

I have late a strict comparsion like ABSPATH === $path in my test code and that will result in false becasue the $path will have the ABSPATH but converted to a sting.

Better use define( 'ABSPATH', sys_get_temp_dir() . '/' );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions