private function find_wordpress_base_path()
    {
        $dir = \dirname(__FILE__);

        do {
            if (\file_exists($dir . "/wp-config.php") || \file_exists($dir . "/wp-config-sample.php")) {
                return $dir . '/';
            }
        } while ($dir = \realpath("$dir/.."));

        return null;
    }
private function find_wordpress_base_path()
    {
        $dir = \dirname(__FILE__);

        do {
            if (\file_exists($dir . "/wp-config.php") || \file_exists($dir . "/wp-config-sample.php")) {
                return $dir . '/';
            }
        } while ($dir = \realpath("$dir/.."));

        return null;
    }
private function find_wordpress_base_path ( ) { $ dir = \ dirname ( __FILE__ ) ; do { if ( \ file_exists ( $ dir . "/wp-config.php" ) || \ file_exists ( $ dir . "/wp-config-sample.php" ) ) { return $ dir . '/' ; } } while ( $ dir = \ realpath ( "$dir/.." ) ) ; return null ; }
Traverse up the directory structure looking for the current WP base path.

@since  1.0.0

@return string The base path.
Traverse up the directory structure looking for the current WP base path .