@@ 55-65 (lines=11) @@ | ||
52 | add_action( 'jetpack_unrecognized_action', array( $this, 'handle_unrecognized_action' ) ); |
|
53 | } |
|
54 | ||
55 | static function sort_requires_connection_last( $module1, $module2 ) { |
|
56 | if ( $module1['requires_connection'] == $module2['requires_connection'] ) { |
|
57 | return 0; |
|
58 | } elseif ( $module1['requires_connection'] ) { |
|
59 | return 1; |
|
60 | } elseif ( $module2['requires_connection'] ) { |
|
61 | return -1; |
|
62 | } |
|
63 | ||
64 | return 0; |
|
65 | } |
|
66 | ||
67 | // Produce JS understandable objects of modules containing information for |
|
68 | // presentation like description, name, configuration url, etc. |
@@ 201-210 (lines=10) @@ | ||
198 | return true; |
|
199 | } |
|
200 | ||
201 | static function sort_requires_connection_last( $module1, $module2 ) { |
|
202 | if ( $module1['requires_connection'] == $module2['requires_connection'] ) |
|
203 | return 0; |
|
204 | if ( $module1['requires_connection'] ) |
|
205 | return 1; |
|
206 | if ( $module2['requires_connection'] ) |
|
207 | return -1; |
|
208 | ||
209 | return 0; |
|
210 | } |
|
211 | ||
212 | function get_columns() { |
|
213 | $columns = array( |