|
@@ 1928-1929 (lines=2) @@
|
| 1925 |
|
|
| 1926 |
|
if ( is_object( $this->pod ) ) |
| 1927 |
|
$check = $this->pod->delete( $id ); |
| 1928 |
|
else |
| 1929 |
|
$check = $this->pods_data->delete( $this->sql[ 'table' ], array( $this->sql[ 'field_id' ] => $id ) ); |
| 1930 |
|
|
| 1931 |
|
if ( $check ) |
| 1932 |
|
$this->message( sprintf( __( "<strong>Deleted:</strong> %s has been deleted.", 'pods' ), $this->item ) ); |
|
@@ 1966-1967 (lines=2) @@
|
| 1963 |
|
} |
| 1964 |
|
elseif ( is_object( $this->pod ) ) |
| 1965 |
|
$check = $this->pod->delete( $id ); |
| 1966 |
|
else |
| 1967 |
|
$check = $this->pods_data->delete( $this->sql[ 'table' ], array( $this->sql[ 'field_id' ] => $id ) ); |
| 1968 |
|
|
| 1969 |
|
if ( $check ) |
| 1970 |
|
$success = true; |