Skip to content

Commit ae737af

Browse files
author
metaphorcreations
committed
Code cleanup and localization updates.
git-svn-id: http://plugins.svn.wordpress.org/post-duplicator/trunk@972614 b8457f37-d9ea-0310-8a92-e5e31aec5664
1 parent f92ad50 commit ae737af

25 files changed

+17
-22
lines changed

assets/js/pd-admin.js

100644100755
File mode changed.

includes/ajax.php

100644100755
File mode changed.

includes/edit.php

100644100755
File mode changed.

includes/functions.php

100644100755
File mode changed.

includes/scripts.php

100644100755
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/**
55
* Load the metaboxer scripts
66
*
7-
* @since 1.0
7+
* @since 2.4
88
*/
99
function mtphr_post_duplicator_metaboxer_scripts( $hook ) {
1010

@@ -13,10 +13,6 @@ function mtphr_post_duplicator_metaboxer_scripts( $hook ) {
1313
// Load the style sheet
1414
wp_register_style( 'mtphr-post-duplicator-metaboxer', MTPHR_POST_DUPLICATOR_URL.'/metaboxer/metaboxer.css', false, MTPHR_POST_DUPLICATOR_VERSION );
1515
wp_enqueue_style( 'mtphr-post-duplicator-metaboxer' );
16-
17-
// Load the jQuery
18-
//wp_register_script( 'mtphr-post-duplicator-metaboxer', MTPHR_POST_DUPLICATOR_URL.'/metaboxer/metaboxer.js', array('jquery'), MTPHR_POST_DUPLICATOR_VERSION, true );
19-
//wp_enqueue_script( 'mtphr-post-duplicator-metaboxer' );
2016
}
2117
}
2218

includes/settings.php

100644100755
File mode changed.

languages/post-duplicator-en_US.mo

100644100755
0 Bytes
Binary file not shown.

languages/post-duplicator-en_US.po

100644100755
Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
msgid ""
22
msgstr ""
3-
"Project-Id-Version: Post Duplicator v2.2\n"
3+
"Project-Id-Version: Post Duplicator v2.4\n"
44
"Report-Msgid-Bugs-To: \n"
55
"POT-Creation-Date: \n"
6-
"PO-Revision-Date: 2013-02-07 20:29:35+0000\n"
6+
"PO-Revision-Date: 2014-08-25 19:02:54+0000\n"
77
"Last-Translator: admin <joe@metaphorcreations.com>\n"
88
"Language-Team: \n"
99
"MIME-Version: 1.0\n"
@@ -100,8 +100,3 @@ msgstr ""
100100
msgid "Post Duplicator Settings"
101101
msgstr ""
102102

103-
#: metaboxer/metaboxer.php:943
104-
#@ post-duplicator
105-
msgid "Select Code"
106-
msgstr ""
107-

m4c-postduplicator.js

100644100755
File mode changed.

m4c-postduplicator.php

100644100755
Lines changed: 4 additions & 8 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.3
5+
Version: 2.4
66
Author: Metaphor Creations
77
Author URI: http://www.metaphorcreations.com
88
License: GPL2
@@ -29,11 +29,7 @@
2929

3030

3131
/**Define Widget Constants */
32-
if ( WP_DEBUG ) {
33-
define ( 'MTPHR_POST_DUPLICATOR_VERSION', '2.3-'.time() );
34-
} else {
35-
define ( 'MTPHR_POST_DUPLICATOR_VERSION', '2.3' );
36-
}
32+
define ( 'MTPHR_POST_DUPLICATOR_VERSION', '2.4' );
3733
define ( 'MTPHR_POST_DUPLICATOR_DIR', plugin_dir_path(__FILE__) );
3834
define ( 'MTPHR_POST_DUPLICATOR_URL', plugins_url().'/post-duplicator' );
3935

@@ -44,10 +40,10 @@
4440
/**
4541
* Setup localization
4642
*
47-
* @since 2.1.2
43+
* @since 2.4
4844
*/
4945
function mtphr_post_duplicator_localization() {
50-
load_plugin_textdomain( 'post-duplicator', false, MTPHR_POST_DUPLICATOR_DIR.'/languages/' );
46+
load_plugin_textdomain( 'post-duplicator', false, 'post-duplicator/languages/' );
5147
}
5248

5349

0 commit comments

Comments
 (0)