We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 736891c + 0071a34 commit 8826444Copy full SHA for 8826444
src/class-plugin.php
@@ -100,8 +100,8 @@ public function reset( $should_reset = true ) {
100
*/
101
public function monitor_option_accesses( $tag ) {
102
// Check if the tag is related to an option access.
103
- if ( strpos( $tag, 'option_' ) === 0 ) {
104
- $option_name = substr( $tag, strlen( 'option_' ) );
+ if ( str_starts_with( $tag, 'option_' ) || str_starts_with( $tag, 'default_option_' ) ) {
+ $option_name = preg_replace( '#^(default_)?option_#', '', $tag );
105
$this->add_option_usage( $option_name );
106
}
107
0 commit comments