Skip to content

Conversation

@prab18hat
Copy link
Contributor

  • Add isset() check before accessing array key in author processing (line 65)
  • Add null check before preg_match() to prevent deprecated warning (line 118)
  • Add similar safety checks for other array access patterns
  • Maintains backward compatibility while eliminating PHP 8.3 warnings

Fixes #176

- Add isset() check before accessing array key in author processing (line 65)
- Add null check before preg_match() to prevent deprecated warning (line 118)
- Add similar safety checks for other array access patterns
- Maintains backward compatibility while eliminating PHP 8.3 warnings

Fixes WordPress#176
@BackuPs
Copy link

BackuPs commented Oct 1, 2025

If i am not mistaken: Support for the Regex Parser is abandoned as fas as i understood. The new version does not call it anymore. It is only there for backwards compatibility for programmers who are still calling it.

@adamziel
Copy link
Contributor

adamziel commented Oct 1, 2025

@BackuPs you're right! This PR could still be valuable in those cases and it seems to be reasonably safe so I'll go ahead and merge it.

@adamziel adamziel merged commit 85dc11a into WordPress:master Oct 1, 2025
24 checks passed
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.

Not php 8.3 compatible?

3 participants