Skip to content

Definied ABSPATH as bool #111

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() . '/' );

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions