1 | /* global kirkiBranding */ |
||
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
2 | jQuery( document ).ready( function() { |
||
0 ignored issues
–
show
|
|||
3 | |||
4 | 'use strict'; |
||
5 | |||
6 | if ( '' !== kirkiBranding.logoImage ) { |
||
7 | jQuery( 'div#customize-info .preview-notice' ).replaceWith( '<img src="' + kirkiBranding.logoImage + '">' ); |
||
8 | } |
||
9 | |||
10 | if ( '' !== kirkiBranding.description ) { |
||
11 | jQuery( 'div#customize-info > .customize-panel-description' ).replaceWith( '<div class="customize-panel-description">' + kirkiBranding.description + '</div>' ); |
||
12 | } |
||
13 | |||
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.
Loading history...
|
|||
15 |