Skip to content
Snippets Groups Projects
Commit 4057b679 authored by Erick Hitter's avatar Erick Hitter
Browse files

PHPCS

parent b3a9ad0f
No related branches found
No related tags found
1 merge request!5Add block-editor support
Pipeline #4948 failed with stages
in 2 minutes and 29 seconds
...@@ -180,7 +180,7 @@ class Automatically_Paginate_Posts { ...@@ -180,7 +180,7 @@ class Automatically_Paginate_Posts {
if ( ! did_action( 'init' ) ) { if ( ! did_action( 'init' ) ) {
_doing_it_wrong( _doing_it_wrong(
__METHOD__, __METHOD__,
__( esc_html__(
'Post types can only be retrieved after the "init" hook.', 'Post types can only be retrieved after the "init" hook.',
'autopaging' 'autopaging'
), ),
......
...@@ -133,9 +133,9 @@ class Block_Editor { ...@@ -133,9 +133,9 @@ class Block_Editor {
wp_localize_script( wp_localize_script(
$asset_handle, $asset_handle,
'autopagingSettings', 'autopagingSettings',
[ array(
'metaKey' => $this->autopaging_instance->meta_key, 'metaKey' => $this->autopaging_instance->meta_key,
] )
); );
wp_set_script_translations( wp_set_script_translations(
......
...@@ -4,9 +4,8 @@ ...@@ -4,9 +4,8 @@
<!-- What to scan --> <!-- What to scan -->
<file>.</file> <file>.</file>
<exclude-pattern>/vendor/</exclude-pattern> <exclude-pattern>/assets/build/</exclude-pattern>
<exclude-pattern>/node_modules/</exclude-pattern> <exclude-pattern>/node_modules/</exclude-pattern>
<exclude-pattern>/tests/*</exclude-pattern>
<!-- How to scan --> <!-- How to scan -->
<!-- Usage instructions: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Usage --> <!-- Usage instructions: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Usage -->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment