Automattic / Automattic/wp-super-cache

Absolute Path in wp-config

Open
#895 4 comments 0 reactions 0 assignees View on GitHub
[Plugin] Super Cache bug
Dominant language
PHP
Stars
436
Forks
130
Avg merge
15h 11m
Merged PRs (30d)
10

Description

Hello,

why are you using a absolute path in the wp-config?

It's better to use a relative path like "define( 'WPCACHEHOME', __DIR__.'/wp-content/plugins/wp-super-cache/' );"

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the wp-config definition of WPCACHEHOME and checking how its current absolute path is used. Compare that behavior with the proposed __DIR__-based relative expression. Done means the configuration uses the intended path form without breaking plugin loading; no test file is mentioned in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.