|
@@ 606-621 (lines=16) @@
|
| 603 |
|
$options['fields'] = array( 'reorder' => $deprecated_options['reorder_columns'] ); |
| 604 |
|
} |
| 605 |
|
} |
| 606 |
|
if ( isset( $deprecated_options['add_fields'] ) ) { |
| 607 |
|
if ( isset( $options['fields'] ) ) { |
| 608 |
|
if ( ! isset( $options['fields']['add'] ) ) { |
| 609 |
|
$options['fields']['add'] = $deprecated_options['add_fields']; |
| 610 |
|
} |
| 611 |
|
if ( ! isset( $options['fields']['edit'] ) ) { |
| 612 |
|
$options['fields']['edit'] = $deprecated_options['add_fields']; |
| 613 |
|
} |
| 614 |
|
if ( ! isset( $options['fields']['duplicate'] ) ) { |
| 615 |
|
$options['fields']['duplicate'] = $deprecated_options['add_fields']; |
| 616 |
|
} |
| 617 |
|
} else { |
| 618 |
|
$options['fields'] = array( |
| 619 |
|
'add' => $deprecated_options['add_fields'], |
| 620 |
|
'edit' => $deprecated_options['add_fields'], |
| 621 |
|
'duplicate' => $deprecated_options['add_fields'], |
| 622 |
|
); |
| 623 |
|
} |
| 624 |
|
} |
|
@@ 625-640 (lines=16) @@
|
| 622 |
|
); |
| 623 |
|
} |
| 624 |
|
} |
| 625 |
|
if ( isset( $deprecated_options['edit_fields'] ) ) { |
| 626 |
|
if ( isset( $options['fields'] ) ) { |
| 627 |
|
if ( ! isset( $options['fields']['add'] ) ) { |
| 628 |
|
$options['fields']['add'] = $deprecated_options['edit_fields']; |
| 629 |
|
} |
| 630 |
|
if ( ! isset( $options['fields']['edit'] ) ) { |
| 631 |
|
$options['fields']['edit'] = $deprecated_options['edit_fields']; |
| 632 |
|
} |
| 633 |
|
if ( ! isset( $options['fields']['duplicate'] ) ) { |
| 634 |
|
$options['fields']['duplicate'] = $deprecated_options['edit_fields']; |
| 635 |
|
} |
| 636 |
|
} else { |
| 637 |
|
$options['fields'] = array( |
| 638 |
|
'add' => $deprecated_options['edit_fields'], |
| 639 |
|
'edit' => $deprecated_options['edit_fields'], |
| 640 |
|
'duplicate' => $deprecated_options['edit_fields'], |
| 641 |
|
); |
| 642 |
|
} |
| 643 |
|
} |