Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Only loading the plugin if on WordPress context #29

Merged
merged 1 commit into from
Nov 17, 2018
Merged

Conversation

nicholasio
Copy link
Member

Since we are including 'post-finder.php' in the autoload files config of composer, we need to ensure we only load the plugin if we are inside a WordPress context.

This fixes an issue I was having with our phpcs-composer tool where it was breaking phpcs because composer was loading the post-finder.php file and thus giving a fatal for undefined functions.

@nicholasio nicholasio requested a review from dana-ross November 16, 2018 20:01
@cmmarslender cmmarslender merged commit 63840ed into master Nov 17, 2018
@jeffpaul jeffpaul added this to the 0.4.0 milestone Aug 6, 2020
@jeffpaul jeffpaul deleted the fix/autoload branch November 2, 2021 04:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants