Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix and clarify message for disallowed required property in extended …
…schema
  • Loading branch information
westonruter committed Sep 6, 2024
commit e85c68337419bc512dd5f80cfed1c6e4f67a6b29
6 changes: 3 additions & 3 deletions plugins/optimization-detective/class-od-url-metric.php
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,9 @@ protected static function extend_schema_with_optional_properties( array $propert
$doing_it_wrong(
sprintf(
/* translators: 1: property name, 2: 'required' */
__( 'Supplied schema property "%1$s" with truthy for "%2$s". All properties must be optional.', 'optimization-detective' ),
'type',
$property_key
__( 'Supplied schema property "%1$s" has a truthy value for "%2$s". All extended properties must be optional so that URL Metrics are not all immediately invalidated once an extension is deactivated..', 'optimization-detective' ),
$property_key,
'required'
)
);
}
Expand Down