Code Duplication    Length = 11-11 lines in 2 locations

classes/PodsUI.php 2 locations

@@ 1001-1011 (lines=11) @@
998
        $options->validate( 'actions_custom', $this->actions_custom, 'array_merge' );
999
1000
		if ( !empty( $options->actions_disabled ) ) {
1001
			if ( !empty( $options->actions_bulk ) ) {
1002
				$actions_bulk = $options->actions_bulk;
1003
1004
				foreach ( $actions_bulk as $action => $action_opt ) {
1005
					if ( in_array( $action, $options->actions_disabled ) ) {
1006
						unset( $actions_bulk[ $action ] );
1007
					}
1008
				}
1009
1010
				$options->actions_bulk = $actions_bulk;
1011
			}
1012
1013
			if ( !empty( $options->actions_custom ) ) {
1014
				$actions_custom = $options->actions_custom;
@@ 1013-1023 (lines=11) @@
1010
				$options->actions_bulk = $actions_bulk;
1011
			}
1012
1013
			if ( !empty( $options->actions_custom ) ) {
1014
				$actions_custom = $options->actions_custom;
1015
1016
				foreach ( $actions_custom as $action => $action_opt ) {
1017
					if ( in_array( $action, $options->actions_disabled ) ) {
1018
						unset( $actions_custom[ $action ] );
1019
					}
1020
				}
1021
1022
				$options->actions_custom = $actions_custom;
1023
			}
1024
		}
1025
1026
        $options->validate( 'extra', $this->extra, 'array_merge' );