WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#9358 closed enhancement (wontfix)

Define BLOGPATH

Reported by: Txanny Owned by:
Milestone: Priority: lowest
Severity: normal Version: 2.7.1
Component: General Keywords: abspath blogpath has-patch tested dev-feedback
Focuses: Cc:

Description

Some times we need to know the absolute BLOGPATH. This is the one to our blog root and can be different from ABSPATH which points to the WordPress install.

This patch creates the BLOGPATH constant.

Attachments (1)

index.php.patch (548 bytes) - added by Txanny 5 years ago.
index.php defines BLOGPATH

Download all attachments as: .zip

Change History (7)

Txanny5 years ago

index.php defines BLOGPATH

comment:1 Viper007Bond5 years ago

  • Milestone changed from 2.7.2 to Future Release

Only bug fixes go into existing branches. This would be a 2.8 thing. ;)

comment:2 DD325 years ago

should also be noted that, The index.php file is not always loaded, its just the entry point for mod_rewrite (usually). Many also have thisfile duplicated or modified (Esp in cases where the install path is different from the WP path)

comment:3 follow-up: hakre5 years ago

-1 Bogus. If a coder needs that value, he or she can get it as of the script path server variable.

comment:4 in reply to: ↑ 3 jbsil5 years ago

Replying to hakre:

-1 Bogus. If a coder needs that value, he or she can get it as of the script path server variable.

-1 I too do not see a point to this. There are plenty of ways to figure out where you are, already built-in to PHP. This seems like it will only add potential problems/inconsistencies.

comment:5 Nicholas915 years ago

  • Cc dragos.nicholas@… added
  • Keywords dev-feedback added
  • Priority changed from normal to lowest

The variable is useless, you can get it with PHP.

comment:6 DD325 years ago

  • Milestone Future Release deleted
  • Resolution set to wontfix
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.