Completed
Push — try/6.0-for-atomic ( 8dd92b...6b14ae )
by
unknown
31:06 queued 21:52
created

social-icons.php ➔ jetpack_widget_social_icons_load_rogue()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 4
nc 2
nop 0
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * Register and load the widget.
5
 *
6
 * @access public
7
 * @return void
8
 */
9
function jetpack_widget_social_icons_load_rogue() {
10
	if ( ! class_exists( 'Jetpack_Widget_Social_Icons' ) ) {
11
		require_once( __DIR__ . '/jetpack-social-icons-class.php' );
12
		register_widget( 'Jetpack_Widget_Social_Icons' );
13
	}
14
}
15
add_action( 'widgets_init', 'jetpack_widget_social_icons_load_rogue' );
16