|
@@ -260,7 +260,7 @@ discard block |
|
|
block discarded – undo |
|
260
|
260
|
public static function get_duplicate_link( $entry, $view_id, $post_id = null ) { |
|
261
|
261
|
self::getInstance()->set_entry( $entry ); |
|
262
|
262
|
|
|
263
|
|
- $base = GravityView_API::directory_link( $post_id ? : $view_id, true ); |
|
|
263
|
+ $base = GravityView_API::directory_link( $post_id ? : $view_id, true ); |
|
264
|
264
|
|
|
265
|
265
|
if ( empty( $base ) ) { |
|
266
|
266
|
gravityview()->log->error( 'Post ID does not exist: {post_id}', array( 'post_id' => $post_id ) ); |
|
@@ -274,7 +274,7 @@ discard block |
|
|
block discarded – undo |
|
274
|
274
|
'action' => 'duplicate', |
|
275
|
275
|
'entry_id' => $entry_slug, |
|
276
|
276
|
'gvid' => $view_id, |
|
277
|
|
- 'view_id' => $view_id, |
|
|
277
|
+ 'view_id' => $view_id, |
|
278
|
278
|
), $base ); |
|
279
|
279
|
|
|
280
|
280
|
$url = wp_nonce_url( $actionurl, 'duplicate_'.$entry_slug, 'duplicate' ); |
|
@@ -469,7 +469,7 @@ discard block |
|
|
block discarded – undo |
|
469
|
469
|
* @since 2.5 |
|
470
|
470
|
* @param array $duplicated_entry The duplicated entry |
|
471
|
471
|
* @param array $entry The original entry |
|
472
|
|
- */ |
|
|
472
|
+ */ |
|
473
|
473
|
do_action( 'gravityview/duplicate-entry/duplicated', $duplicated_entry, $entry ); |
|
474
|
474
|
|
|
475
|
475
|
gravityview()->log->debug( 'Duplicate response: {duplicate_response}', array( 'duplicate_response' => $duplicate_response ) ); |
Please login to merge, or discard this patch.