Skip to content

Fix the path to load the vip-config file#630

Merged
srtfisher merged 1 commit into1.xfrom
feature/vip-config-fix-path
Jan 28, 2025
Merged

Fix the path to load the vip-config file#630
srtfisher merged 1 commit into1.xfrom
feature/vip-config-fix-path

Conversation

@renatonascalves
Copy link
Contributor

@renatonascalves renatonascalves commented Jan 28, 2025

See #628

if ( defined( 'WP_CONTENT_DIR' ) && file_exists( WP_CONTENT_DIR . '/vip-config/vip-config.php' ) ) {
require_once( WP_CONTENT_DIR . '/vip-config/vip-config.php' );
} elseif ( defined( 'ABSPATH' ) && file_exists( ABSPATH . '/wp-content/vip-config/vip-config.php' ) ) {
require_once( ABSPATH . '/wp-content//vip-config.php' );
Copy link
Contributor Author

@renatonascalves renatonascalves Jan 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this was a typo. Since it fails in a client project. And the vip-config.php file inside wp-content/ is not common (only inside wp-content/vip-config or at the root of the project).

CleanShot 2025-01-28 at 09 49 37@2x

@srtfisher srtfisher enabled auto-merge (squash) January 28, 2025 15:12
@srtfisher srtfisher merged commit d4a6248 into 1.x Jan 28, 2025
14 checks passed
@srtfisher srtfisher deleted the feature/vip-config-fix-path branch January 28, 2025 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants