Skip to content

Commit 98da2cd

Browse files
author
metaphorcreations
committed
Added page duplication support for the WP Customer Area plugin
git-svn-id: http://plugins.svn.wordpress.org/post-duplicator/trunk@1281295 b8457f37-d9ea-0310-8a92-e5e31aec5664
1 parent 54412b6 commit 98da2cd

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

includes/ajax.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Thehe jQuery ajax call to create a new post.
55
* Duplicates all the data including custom meta.
66
*
7-
* @since 2.7
7+
* @since 2.9
88
*/
99
function m4c_duplicate_post() {
1010

includes/edit.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
<?php
22

3-
add_filter( 'post_row_actions', 'mtphr_post_duplicator_action_row', 10, 2 );
4-
add_filter( 'page_row_actions', 'mtphr_post_duplicator_action_row', 10, 2 );
53
/**
64
* Add a duplicate post link.
75
*
8-
* @since 1.0.0
6+
* @since 2.10
97
*/
108
function mtphr_post_duplicator_action_row( $actions, $post ){
119

@@ -18,4 +16,7 @@ function mtphr_post_duplicator_action_row( $actions, $post ){
1816

1917
return $actions;
2018
}
19+
add_filter( 'post_row_actions', 'mtphr_post_duplicator_action_row', 10, 2 );
20+
add_filter( 'page_row_actions', 'mtphr_post_duplicator_action_row', 10, 2 );
21+
add_filter( 'cuar/core/admin/content-list-table/row-actions', 'mtphr_post_duplicator_action_row', 10, 2 );
2122

includes/scripts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function mtphr_post_duplicator_metaboxer_scripts( $hook ) {
2626
* @since 1.0.0
2727
*/
2828
function m4c_duplicate_post_scripts( $hook_suffix ) {
29-
if( $hook_suffix == 'edit.php' ) {
29+
if( $hook_suffix == 'edit.php' || $hook_suffix == 'customer-area_page_wpca-list,content,cuar_private_page' ) {
3030
wp_enqueue_script( 'mtphr-post-duplicator', MTPHR_POST_DUPLICATOR_URL.'/assets/js/pd-admin.js', array('jquery'), MTPHR_POST_DUPLICATOR_VERSION );
3131
}
3232
}

m4c-postduplicator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*
33
Plugin Name: Post Duplicator
44
Description: Creates functionality to duplicate any and all post types, including taxonomies & custom fields
5-
Version: 2.9
5+
Version: 2.10
66
Author: Metaphor Creations
77
Author URI: http://www.metaphorcreations.com
88
License: GPL2
@@ -29,7 +29,7 @@
2929

3030

3131
/**Define Widget Constants */
32-
define ( 'MTPHR_POST_DUPLICATOR_VERSION', '2.9' );
32+
define ( 'MTPHR_POST_DUPLICATOR_VERSION', '2.10' );
3333
define ( 'MTPHR_POST_DUPLICATOR_DIR', plugin_dir_path(__FILE__) );
3434
define ( 'MTPHR_POST_DUPLICATOR_URL', plugins_url().'/post-duplicator' );
3535

readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ Check out the 'Installation' tab.
4141

4242
== Changelog ==
4343

44+
= 2.10 =
45+
* Added page duplication support for the WP Customer Area plugin
46+
4447
= 2.9 =
4548
* Now supports multiple values of a single custom field during duplication
4649

@@ -84,4 +87,4 @@ Must upgrade in order for the plugin to work. The file paths where initially wro
8487

8588
== Upgrade Notice ==
8689

87-
Now supports multiple values of a single custom field during duplication.
90+
Added page duplication support for the WP Customer Area plugin.

0 commit comments

Comments
 (0)