Skip to content

fix undefined warning on non getpgid systems - #615

Merged
jamesros161 merged 1 commit into
masterfrom
issue-614
Feb 21, 2025
Merged

fix undefined warning on non getpgid systems#615
jamesros161 merged 1 commit into
masterfrom
issue-614

Conversation

@jamesros161

@jamesros161 jamesros161 commented Feb 17, 2025

Copy link
Copy Markdown
Contributor

resolves #614

The warning received in this issue, was caused by the 'is_running' key being defined inside of the Boldgrid_Backup_Admin_Test::is_getpgid_supported() conditional. Therefor, systems that do not support getpgid, such as xampp. However, there is no reason that key should be dependant on that condition. Instead, it's been moved to be defined before the condition.

You can test that this resolves the issue by going the the is_getpgid_supported method in admin/class-boldgrid-backup-admin-test.php and short circuiting the function with a return false; statement, and running a backup.

@jamesros161
jamesros161 marked this pull request as ready for review February 17, 2025 17:24
@jamesros161
jamesros161 requested a review from bwmarkle February 17, 2025 17:24
@jamesros161
jamesros161 merged commit 83da551 into master Feb 21, 2025
@jamesros161
jamesros161 deleted the issue-614 branch February 21, 2025 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants