@@ 60-70 (lines=11) @@ | ||
57 | add_action( 'jetpack_unrecognized_action', array( $this, 'handle_unrecognized_action' ) ); |
|
58 | } |
|
59 | ||
60 | static function sort_requires_connection_last( $module1, $module2 ) { |
|
61 | if ( $module1['requires_connection'] == $module2['requires_connection'] ) { |
|
62 | return 0; |
|
63 | } elseif ( $module1['requires_connection'] ) { |
|
64 | return 1; |
|
65 | } elseif ( $module2['requires_connection'] ) { |
|
66 | return -1; |
|
67 | } |
|
68 | ||
69 | return 0; |
|
70 | } |
|
71 | ||
72 | // Produce JS understandable objects of modules containing information for |
|
73 | // presentation like description, name, configuration url, etc. |
@@ 185-194 (lines=10) @@ | ||
182 | return true; |
|
183 | } |
|
184 | ||
185 | static function sort_requires_connection_last( $module1, $module2 ) { |
|
186 | if ( $module1['requires_connection'] == $module2['requires_connection'] ) |
|
187 | return 0; |
|
188 | if ( $module1['requires_connection'] ) |
|
189 | return 1; |
|
190 | if ( $module2['requires_connection'] ) |
|
191 | return -1; |
|
192 | ||
193 | return 0; |
|
194 | } |
|
195 | ||
196 | function get_columns() { |
|
197 | $columns = array( |