Skip to content

Commit

Permalink
Set query loop to have the inherit value by default
Browse files Browse the repository at this point in the history
  • Loading branch information
jeryj committed Jul 10, 2024
1 parent f548ea3 commit e8c6e88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export default function QueryInspectorControls( props ) {
__nextHasNoMarginBottom
label={ __( 'Inherit query from template' ) }
help={ __(
'Toggle to use the global query context that is set with the current template, such as an archive or search. Disable to customize the settings independently.'
'Enable to use the global query context that is set with the current template, such as an archive or search. Disable to customize the settings independently.'
) }
checked={ !! inherit }
onChange={ ( value ) =>
Expand Down
4 changes: 2 additions & 2 deletions packages/block-library/src/query/variations.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const QUERY_DEFAULT_ATTRIBUTES = {
search: '',
exclude: [],
sticky: '',
inherit: false,
inherit: true,
},
};

Expand All @@ -50,7 +50,7 @@ const variations = [
author: '',
search: '',
sticky: 'exclude',
inherit: false,
inherit: true,
},
},
scope: [ 'inserter' ],
Expand Down

0 comments on commit e8c6e88

Please sign in to comment.