{"id":19026081,"date":"2026-09-22T09:32:26","date_gmt":"2026-09-22T09:32:26","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/php-deprecated-notice-in-generic_plugin_admin-php-strpos-passing-null\/"},"modified":"2026-09-22T09:32:26","modified_gmt":"2026-09-22T09:32:26","slug":"php-deprecated-notice-in-generic_plugin_admin-php-strpos-passing-null","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/php-deprecated-notice-in-generic_plugin_admin-php-strpos-passing-null\/","title":{"rendered":"PHP Deprecated notice in Generic_Plugin_Admin.php (strpos passing null)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hi. <br \/>I noticed a PHP Deprecated warning in the error logs coming from <strong>W3 Total Cache<\/strong>:<br \/><em>PHP Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in \u2026\/w3-total-cache\/Generic_Plugin_Admin.php on line 673<\/em><br \/><br \/>Suggested fix for line 670: <br \/><br \/>if ( empty( $page ) ) {<br \/> $page = get_current_screen()-&gt;id ?? &#8221;;<br \/>}<br \/><br \/>Bests Lena<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br \/><br \/><\/p>\n","protected":false},"template":"","class_list":["post-19026081","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19026081","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19026081\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=19026081"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}