Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion archive-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ class="second-bar show-for-small-only center list-actions-bar"><!-- /* MOBILE V
if ( isset( $b["show_in_table"] ) ){
$b_order = is_numeric( $b["show_in_table"] ) ? $b["show_in_table"] : 90;
}
return $a_order > $b_order;
return $a_order <=> $b_order;
});
foreach ( $post_settings["fields"] as $field_key => $field_value ){
if ( ( isset( $field_value["show_in_table"] ) && $field_value["show_in_table"] ) ){
Expand Down
2 changes: 1 addition & 1 deletion dt-contacts/access-module.php
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ public function dt_custom_fields_settings( $fields, $post_type ){

//order overall status options
uksort( $declared_fields["overall_status"]["default"], function ( $a, $b ) use ( $fields ){
return array_search( $a, array_keys( $fields["overall_status"]["default"] ) ) > array_search( $b, array_keys( $fields["overall_status"]["default"] ) );
return array_search( $a, array_keys( $fields["overall_status"]["default"] ) ) <=> array_search( $b, array_keys( $fields["overall_status"]["default"] ) );
} );
$fields = $declared_fields;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ class scbCron {
*
* @return void
*/
public function __construct( $file = false, $args ) {
public function __construct( $file = false, $args = array() ) {

if ( empty( $args ) ) {
return;
}

// Set time & schedule
if ( isset( $args['time'] ) ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public static function form_table( $rows, $formdata = null ) {
*
* @return string
*/
public static function form( $inputs, $formdata = null, $nonce ) {
public static function form( $inputs, $formdata = null, $nonce = 'update_options' ) {
$output = '';
foreach ( $inputs as $input ) {
$output .= self::input( $input, $formdata );
Expand Down Expand Up @@ -1045,4 +1045,3 @@ public function validate( $value ) {
return call_user_func( $this->sanitize, $value, $this );
}
}