Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix strpos first arg null warning in php 8.1 #1227

Merged
merged 15 commits into from
Jul 8, 2024
Merged
3 changes: 2 additions & 1 deletion includes/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ function update_notice( $plugin_file, $plugin_data, $status ) {
* @since 1.2
*/
function maybe_notice() {
if ( 0 === strpos( get_current_screen()->parent_base, 'distributor' ) ) {
$parent_base = get_current_screen()->parent_base ?? '';
faisal-alvi marked this conversation as resolved.
Show resolved Hide resolved
if ( 0 === strpos( $parent_base, 'distributor' ) ) {
if ( Utils\is_development_version() ) {
?>
<div class="notice notice-warning">
Expand Down
Loading