|
@@ 236-246 (lines=11) @@
|
| 233 |
|
elseif ( 2 < count( $post_data ) || !isset( $post_data[ 'post_type' ] ) ) |
| 234 |
|
$post_data[ 'ID' ] = wp_update_post( $post_data, true ); |
| 235 |
|
|
| 236 |
|
if ( is_wp_error( $post_data[ 'ID' ] ) ) { |
| 237 |
|
if ( !$conflicted ) |
| 238 |
|
pods_no_conflict_off( 'post' ); |
| 239 |
|
|
| 240 |
|
/** |
| 241 |
|
* @var $post_error WP_Error |
| 242 |
|
*/ |
| 243 |
|
$post_error = $post_data[ 'ID' ]; |
| 244 |
|
|
| 245 |
|
return pods_error( $post_error->get_error_message(), $this ); |
| 246 |
|
} |
| 247 |
|
|
| 248 |
|
$this->save_post_meta( $post_data[ 'ID' ], $post_meta, $strict, $fields ); |
| 249 |
|
|
|
@@ 380-390 (lines=11) @@
|
| 377 |
|
elseif ( 1 < count( $user_data ) ) |
| 378 |
|
wp_update_user( $user_data ); |
| 379 |
|
|
| 380 |
|
if ( is_wp_error( $user_data[ 'ID' ] ) ) { |
| 381 |
|
if ( !$conflicted ) |
| 382 |
|
pods_no_conflict_off( 'user' ); |
| 383 |
|
|
| 384 |
|
/** |
| 385 |
|
* @var $user_error WP_Error |
| 386 |
|
*/ |
| 387 |
|
$user_error = $user_data[ 'ID' ]; |
| 388 |
|
|
| 389 |
|
return pods_error( $user_error->get_error_message(), $this ); |
| 390 |
|
} |
| 391 |
|
|
| 392 |
|
$this->save_user_meta( $user_data[ 'ID' ], $user_meta, $strict, $fields ); |
| 393 |
|
|
|
@@ 511-521 (lines=11) @@
|
| 508 |
|
elseif ( 1 < count( $comment_data ) ) |
| 509 |
|
wp_update_comment( $comment_data ); |
| 510 |
|
|
| 511 |
|
if ( is_wp_error( $comment_data[ 'comment_ID' ] ) ) { |
| 512 |
|
if ( !$conflicted ) |
| 513 |
|
pods_no_conflict_off( 'comment' ); |
| 514 |
|
|
| 515 |
|
/** |
| 516 |
|
* @var $comment_error WP_Error |
| 517 |
|
*/ |
| 518 |
|
$comment_error = $comment_data[ 'comment_ID' ]; |
| 519 |
|
|
| 520 |
|
return pods_error( $comment_error->get_error_message(), $this ); |
| 521 |
|
} |
| 522 |
|
|
| 523 |
|
$this->save_comment_meta( $comment_data[ 'comment_ID' ], $comment_meta, $strict, $fields ); |
| 524 |
|
|