1 | jQuery( document ).ready( function() { |
||
0 ignored issues
–
show
Coding Style
introduced
by
![]() |
|||
2 | |||
3 | var self; |
||
4 | |||
5 | self = { |
||
6 | queriedPost: new wp.customize.Value() |
||
7 | }; |
||
8 | |||
9 | // Listen for queried-post messages from the preview. |
||
10 | wp.customize.bind( 'ready', function() { |
||
0 ignored issues
–
show
|
|||
11 | wp.customize.previewer.bind( 'queried-post', function( queriedPost ) { |
||
0 ignored issues
–
show
|
|||
12 | self.queriedPost.set( queriedPost || false ); |
||
13 | } ); |
||
0 ignored issues
–
show
For multi-line function calls, the closing parenthesis should be on a new line.
If a function call spawns multiple lines, the coding standard suggests to move the closing parenthesis to a new line: someFunctionCall(
$firstArgument,
$secondArgument,
$thirdArgument
); // Closing parenthesis on a new line.
![]() |
|||
14 | } ); |
||
0 ignored issues
–
show
For multi-line function calls, the closing parenthesis should be on a new line.
If a function call spawns multiple lines, the coding standard suggests to move the closing parenthesis to a new line: someFunctionCall(
$firstArgument,
$secondArgument,
$thirdArgument
); // Closing parenthesis on a new line.
![]() |
|||
15 | |||
16 | // Listen for post |
||
0 ignored issues
–
show
|
|||
17 | self.queriedPost.bind( function( newPost, oldPost ) { |
||
0 ignored issues
–
show
|
|||
18 | window.kirkiPost = false; |
||
19 | if ( newPost || oldPost ) { |
||
20 | window.kirkiPost = ( newPost ) ? newPost : oldPost; |
||
21 | } |
||
22 | } ); |
||
0 ignored issues
–
show
For multi-line function calls, the closing parenthesis should be on a new line.
If a function call spawns multiple lines, the coding standard suggests to move the closing parenthesis to a new line: someFunctionCall(
$firstArgument,
$secondArgument,
$thirdArgument
); // Closing parenthesis on a new line.
![]() |
|||
23 | } ); |
||
0 ignored issues
–
show
For multi-line function calls, the closing parenthesis should be on a new line.
If a function call spawns multiple lines, the coding standard suggests to move the closing parenthesis to a new line: someFunctionCall(
$firstArgument,
$secondArgument,
$thirdArgument
); // Closing parenthesis on a new line.
![]() |
|||
24 |