Version Description
(2015-10-13): = * Update text domain to support language packs. Translations are now managed via http://translate.wordpress.org/projects/wp-plugins/public-post-preview.
Download this release
Release Info
Developer | ocean90 |
Plugin | Public Post Preview |
Version | 2.4.1 |
Comparing to | |
See all releases |
Code changes from version 2.4 to 2.4.1
lang/ds-public-post-preview-de_DE.mo
DELETED
Binary file
|
lang/ds-public-post-preview-de_DE.po
DELETED
@@ -1,88 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: Public Post Preview v2.2-beta\n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: \n"
|
6 |
-
"PO-Revision-Date: 2013-03-14 20:18:03+0000\n"
|
7 |
-
"Last-Translator: Dominik Schilling <dominik.schilling@gmail.com>\n"
|
8 |
-
"Language-Team: \n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
13 |
-
"X-Generator: CSL v1.x\n"
|
14 |
-
"X-Poedit-Language: German\n"
|
15 |
-
"X-Poedit-Country: GERMANY\n"
|
16 |
-
"X-Poedit-SourceCharset: utf-8\n"
|
17 |
-
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
|
18 |
-
"X-Poedit-Basepath: ../\n"
|
19 |
-
"X-Poedit-Bookmarks: \n"
|
20 |
-
"X-Poedit-SearchPath-0: .\n"
|
21 |
-
"X-Textdomain-Support: yes"
|
22 |
-
|
23 |
-
#. translators: plugin header field 'Name'
|
24 |
-
#: public-post-preview.php:0
|
25 |
-
#@ ds-public-post-preview
|
26 |
-
msgid "Public Post Preview"
|
27 |
-
msgstr "Öffentliche Vorschau"
|
28 |
-
|
29 |
-
#. translators: plugin header field 'PluginURI'
|
30 |
-
#: public-post-preview.php:0
|
31 |
-
#@ ds-public-post-preview
|
32 |
-
msgid "http://wpgrafie.de/wp-plugins/public-post-preview/en/"
|
33 |
-
msgstr "http://wpgrafie.de/wp-plugins/public-post-preview/"
|
34 |
-
|
35 |
-
#. translators: plugin header field 'Description'
|
36 |
-
#: public-post-preview.php:0
|
37 |
-
#@ ds-public-post-preview
|
38 |
-
msgid "Enables you to give a link to anonymous users for public preview of any post type before it is published."
|
39 |
-
msgstr "Bietet die Möglichkeit einen Link mit Dritten zu Teilen, um eine Vorschau eines bisher unveröffentlichten Inhaltstyp zu geben."
|
40 |
-
|
41 |
-
#. translators: plugin header field 'Author'
|
42 |
-
#: public-post-preview.php:0
|
43 |
-
#@ ds-public-post-preview
|
44 |
-
msgid "Dominik Schilling"
|
45 |
-
msgstr "Dominik Schilling"
|
46 |
-
|
47 |
-
#. translators: plugin header field 'AuthorURI'
|
48 |
-
#: public-post-preview.php:0
|
49 |
-
#@ ds-public-post-preview
|
50 |
-
msgid "http://wphelper.de/"
|
51 |
-
msgstr "http://wphelper.de/"
|
52 |
-
|
53 |
-
#: public-post-preview.php:121
|
54 |
-
#@ ds-public-post-preview
|
55 |
-
msgid "Enabled!"
|
56 |
-
msgstr "Aktiviert!"
|
57 |
-
|
58 |
-
#: public-post-preview.php:122
|
59 |
-
#@ ds-public-post-preview
|
60 |
-
msgid "Disabled!"
|
61 |
-
msgstr "Deaktiviert!"
|
62 |
-
|
63 |
-
#: public-post-preview.php:168
|
64 |
-
#@ ds-public-post-preview
|
65 |
-
msgid "Enable public preview"
|
66 |
-
msgstr "Öffentliche Vorschau aktivieren"
|
67 |
-
|
68 |
-
#: public-post-preview.php:173
|
69 |
-
#@ ds-public-post-preview
|
70 |
-
msgid "(Copy and share this link.)"
|
71 |
-
msgstr "(Kopiere und teile diesen Link.)"
|
72 |
-
|
73 |
-
#: public-post-preview.php:329
|
74 |
-
#@ ds-public-post-preview
|
75 |
-
msgid "The link has been expired!"
|
76 |
-
msgstr "Der Link ist nicht mehr gültig!"
|
77 |
-
|
78 |
-
#: public-post-preview.php:332
|
79 |
-
#@ ds-public-post-preview
|
80 |
-
msgid "No Public Preview available!"
|
81 |
-
msgstr "Keine öffentliche Vorschau verfügbar!"
|
82 |
-
|
83 |
-
#. translators: plugin header field 'Version'
|
84 |
-
#: public-post-preview.php:0
|
85 |
-
#@ ds-public-post-preview
|
86 |
-
msgid "2.2-beta"
|
87 |
-
msgstr ""
|
88 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lang/ds-public-post-preview-nb_NO.mo
DELETED
Binary file
|
lang/ds-public-post-preview-nb_NO.po
DELETED
@@ -1,73 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: Public Post Preview\n"
|
4 |
-
"POT-Creation-Date: 2015-06-17 21:22+0100\n"
|
5 |
-
"PO-Revision-Date: 2015-06-17 21:24+0100\n"
|
6 |
-
"Last-Translator: Bjørn Johansen <post@bjornjohansen.no>\n"
|
7 |
-
"Language-Team: Bjørn Johansen <post@bjornjohansen.no>\n"
|
8 |
-
"Language: nb_NO\n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Generator: Poedit 1.8.1\n"
|
13 |
-
"X-Poedit-Basepath: ..\n"
|
14 |
-
"X-Poedit-WPHeader: public-post-preview.php\n"
|
15 |
-
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
16 |
-
"X-Poedit-SourceCharset: UTF-8\n"
|
17 |
-
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
|
18 |
-
"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
|
19 |
-
"_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
|
20 |
-
"X-Poedit-SearchPath-0: .\n"
|
21 |
-
"X-Poedit-SearchPathExcluded-0: *.js\n"
|
22 |
-
|
23 |
-
#: public-post-preview.php:129
|
24 |
-
msgid "Enabled!"
|
25 |
-
msgstr "Aktivert!"
|
26 |
-
|
27 |
-
#: public-post-preview.php:130
|
28 |
-
msgid "Disabled!"
|
29 |
-
msgstr "Deaktivert!"
|
30 |
-
|
31 |
-
#: public-post-preview.php:142
|
32 |
-
msgid "Public Preview"
|
33 |
-
msgstr "Offentlig forhåndsvisning"
|
34 |
-
|
35 |
-
#: public-post-preview.php:215
|
36 |
-
msgid "Enable public preview"
|
37 |
-
msgstr "Aktiver offentlig forhåndsvisning"
|
38 |
-
|
39 |
-
#: public-post-preview.php:220
|
40 |
-
msgid "(Copy and share this link.)"
|
41 |
-
msgstr "(Kopiér og del denne lenken)."
|
42 |
-
|
43 |
-
#: public-post-preview.php:401
|
44 |
-
msgid "The link has been expired!"
|
45 |
-
msgstr "Lenken er utgått!"
|
46 |
-
|
47 |
-
#: public-post-preview.php:405
|
48 |
-
msgid "No Public Preview available!"
|
49 |
-
msgstr "Ingen offentlig forhåndsvisning tilgjengelig!"
|
50 |
-
|
51 |
-
#. Plugin Name of the plugin/theme
|
52 |
-
msgid "Public Post Preview"
|
53 |
-
msgstr "Public Post Preview"
|
54 |
-
|
55 |
-
#. Plugin URI of the plugin/theme
|
56 |
-
msgid "http://wpgrafie.de/wp-plugins/public-post-preview/en/"
|
57 |
-
msgstr "http://wpgrafie.de/wp-plugins/public-post-preview/en/"
|
58 |
-
|
59 |
-
#. Description of the plugin/theme
|
60 |
-
msgid ""
|
61 |
-
"Enables you to give a link to anonymous users for public preview of any post "
|
62 |
-
"type before it is published."
|
63 |
-
msgstr ""
|
64 |
-
"Lar deg dele en lenke med anonyme brukere for offentlig forhåndsvisning av "
|
65 |
-
"hvilken som helst posttype før den er publisert."
|
66 |
-
|
67 |
-
#. Author of the plugin/theme
|
68 |
-
msgid "Dominik Schilling"
|
69 |
-
msgstr "Dominik Schilling"
|
70 |
-
|
71 |
-
#. Author URI of the plugin/theme
|
72 |
-
msgid "http://wphelper.de/"
|
73 |
-
msgstr "http://wphelper.de/"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lang/ds-public-post-preview-xx_XX.pot
DELETED
@@ -1,21 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: PlaceHolder\n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: \n"
|
6 |
-
"PO-Revision-Date: 2012-07-21 23:01:26+0000\n"
|
7 |
-
"Last-Translator: none\n"
|
8 |
-
"Language-Team: \n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
13 |
-
"X-Poedit-Language: English\n"
|
14 |
-
"X-Poedit-Country: UNITED STATES\n"
|
15 |
-
"X-Poedit-SourceCharset: utf-8\n"
|
16 |
-
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
|
17 |
-
"X-Poedit-Basepath: ../\n"
|
18 |
-
"X-Poedit-Bookmarks: \n"
|
19 |
-
"X-Poedit-SearchPath-0: .\n"
|
20 |
-
"X-Textdomain-Support: yes"
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public-post-preview.php
CHANGED
@@ -1,14 +1,13 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Public Post Preview
|
4 |
-
* Version: 2.4
|
5 |
* Description: Enables you to give a link to anonymous users for public preview of any post type before it is published.
|
6 |
* Author: Dominik Schilling
|
7 |
* Author URI: http://wphelper.de/
|
8 |
-
* Plugin URI:
|
9 |
*
|
10 |
-
* Text Domain:
|
11 |
-
* Domain Path: /lang
|
12 |
*
|
13 |
* License: GPLv2 or later
|
14 |
*
|
@@ -95,11 +94,7 @@ class DS_Public_Post_Preview {
|
|
95 |
* @since 2.0.0
|
96 |
*/
|
97 |
public static function load_textdomain() {
|
98 |
-
return load_plugin_textdomain(
|
99 |
-
'ds-public-post-preview',
|
100 |
-
false,
|
101 |
-
dirname( plugin_basename( __FILE__ ) ) . '/lang'
|
102 |
-
);
|
103 |
}
|
104 |
|
105 |
/**
|
@@ -115,7 +110,7 @@ class DS_Public_Post_Preview {
|
|
115 |
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
|
116 |
|
117 |
wp_enqueue_script(
|
118 |
-
'
|
119 |
plugins_url( "js/public-post-preview$suffix.js", __FILE__ ),
|
120 |
array( 'jquery' ),
|
121 |
self::get_plugin_info( 'Version' ),
|
@@ -123,11 +118,11 @@ class DS_Public_Post_Preview {
|
|
123 |
);
|
124 |
|
125 |
wp_localize_script(
|
126 |
-
'
|
127 |
'DSPublicPostPreviewL10n',
|
128 |
array(
|
129 |
-
'enabled' => __( 'Enabled!', '
|
130 |
-
'disabled' => __( 'Disabled!', '
|
131 |
)
|
132 |
);
|
133 |
}
|
@@ -139,7 +134,7 @@ class DS_Public_Post_Preview {
|
|
139 |
*/
|
140 |
public static function display_preview_state( $post_states, $post ) {
|
141 |
if ( in_array( $post->ID, self::get_preview_post_ids() ) ) {
|
142 |
-
$post_states['ppp_enabled'] = __( 'Public Preview', '
|
143 |
}
|
144 |
|
145 |
return $post_states;
|
@@ -212,12 +207,12 @@ class DS_Public_Post_Preview {
|
|
212 |
$enabeld = in_array( $post->ID, $preview_post_ids );
|
213 |
?>
|
214 |
<label><input type="checkbox"<?php checked( $enabeld ); ?> name="public_post_preview" id="public-post-preview" value="1" />
|
215 |
-
<?php _e( 'Enable public preview', '
|
216 |
|
217 |
<div id="public-post-preview-link" style="margin-top:6px"<?php echo $enabeld ? '' : ' class="hidden"'; ?>>
|
218 |
<label>
|
219 |
<input type="text" name="public_post_preview_link" class="regular-text" value="<?php echo esc_attr( self::get_preview_link( $post ) ); ?>" style="width:99%" readonly />
|
220 |
-
<span class="description"><?php _e( '(Copy and share this link.)', '
|
221 |
</label>
|
222 |
</div>
|
223 |
<?php
|
@@ -398,11 +393,11 @@ class DS_Public_Post_Preview {
|
|
398 |
}
|
399 |
|
400 |
if ( ! self::verify_nonce( get_query_var( '_ppp' ), 'public_post_preview_' . $post_id ) ) {
|
401 |
-
wp_die( __( 'The link has been expired!', '
|
402 |
}
|
403 |
|
404 |
if ( ! in_array( $post_id, self::get_preview_post_ids() ) ) {
|
405 |
-
wp_die( __( 'No Public Preview available!', '
|
406 |
}
|
407 |
|
408 |
return true;
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Public Post Preview
|
4 |
+
* Version: 2.4.1
|
5 |
* Description: Enables you to give a link to anonymous users for public preview of any post type before it is published.
|
6 |
* Author: Dominik Schilling
|
7 |
* Author URI: http://wphelper.de/
|
8 |
+
* Plugin URI: https://dominikschilling.de/wp-plugins/public-post-preview/en/
|
9 |
*
|
10 |
+
* Text Domain: public-post-preview
|
|
|
11 |
*
|
12 |
* License: GPLv2 or later
|
13 |
*
|
94 |
* @since 2.0.0
|
95 |
*/
|
96 |
public static function load_textdomain() {
|
97 |
+
return load_plugin_textdomain( 'public-post-preview' );
|
|
|
|
|
|
|
|
|
98 |
}
|
99 |
|
100 |
/**
|
110 |
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
|
111 |
|
112 |
wp_enqueue_script(
|
113 |
+
'public-post-preview',
|
114 |
plugins_url( "js/public-post-preview$suffix.js", __FILE__ ),
|
115 |
array( 'jquery' ),
|
116 |
self::get_plugin_info( 'Version' ),
|
118 |
);
|
119 |
|
120 |
wp_localize_script(
|
121 |
+
'public-post-preview',
|
122 |
'DSPublicPostPreviewL10n',
|
123 |
array(
|
124 |
+
'enabled' => __( 'Enabled!', 'public-post-preview' ),
|
125 |
+
'disabled' => __( 'Disabled!', 'public-post-preview' )
|
126 |
)
|
127 |
);
|
128 |
}
|
134 |
*/
|
135 |
public static function display_preview_state( $post_states, $post ) {
|
136 |
if ( in_array( $post->ID, self::get_preview_post_ids() ) ) {
|
137 |
+
$post_states['ppp_enabled'] = __( 'Public Preview', 'public-post-preview' );
|
138 |
}
|
139 |
|
140 |
return $post_states;
|
207 |
$enabeld = in_array( $post->ID, $preview_post_ids );
|
208 |
?>
|
209 |
<label><input type="checkbox"<?php checked( $enabeld ); ?> name="public_post_preview" id="public-post-preview" value="1" />
|
210 |
+
<?php _e( 'Enable public preview', 'public-post-preview' ); ?> <span id="public-post-preview-ajax"></span></label>
|
211 |
|
212 |
<div id="public-post-preview-link" style="margin-top:6px"<?php echo $enabeld ? '' : ' class="hidden"'; ?>>
|
213 |
<label>
|
214 |
<input type="text" name="public_post_preview_link" class="regular-text" value="<?php echo esc_attr( self::get_preview_link( $post ) ); ?>" style="width:99%" readonly />
|
215 |
+
<span class="description"><?php _e( '(Copy and share this link.)', 'public-post-preview' ); ?></span>
|
216 |
</label>
|
217 |
</div>
|
218 |
<?php
|
393 |
}
|
394 |
|
395 |
if ( ! self::verify_nonce( get_query_var( '_ppp' ), 'public_post_preview_' . $post_id ) ) {
|
396 |
+
wp_die( __( 'The link has been expired!', 'public-post-preview' ) );
|
397 |
}
|
398 |
|
399 |
if ( ! in_array( $post_id, self::get_preview_post_ids() ) ) {
|
400 |
+
wp_die( __( 'No Public Preview available!', 'public-post-preview' ) );
|
401 |
}
|
402 |
|
403 |
return true;
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: ocean90
|
|
3 |
Tags: public, post, preview, posts, custom post types, draft
|
4 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=VR8YU922B7K46
|
5 |
Requires at least: 3.5
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 2.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -77,7 +77,10 @@ function my_nonce_life() {
|
|
77 |
Or use the [Public Post Preview Configurator](https://wordpress.org/plugins/public-post-preview-configurator/).
|
78 |
|
79 |
== Change Log ==
|
80 |
-
= 2.4 (
|
|
|
|
|
|
|
81 |
* Supports EditFlow and custom statuses
|
82 |
* Disables comments and pings during public post preview
|
83 |
* Adds **Public Preview** to the list of display states used in the Posts list table
|
3 |
Tags: public, post, preview, posts, custom post types, draft
|
4 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=VR8YU922B7K46
|
5 |
Requires at least: 3.5
|
6 |
+
Tested up to: 4.4
|
7 |
+
Stable tag: 2.4.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
77 |
Or use the [Public Post Preview Configurator](https://wordpress.org/plugins/public-post-preview-configurator/).
|
78 |
|
79 |
== Change Log ==
|
80 |
+
= 2.4.1 (2015-10-13): =
|
81 |
+
* Update text domain to support language packs. Translations are now managed via http://translate.wordpress.org/projects/wp-plugins/public-post-preview.
|
82 |
+
|
83 |
+
= 2.4 (2014-08-21): =
|
84 |
* Supports EditFlow and custom statuses
|
85 |
* Disables comments and pings during public post preview
|
86 |
* Adds **Public Preview** to the list of display states used in the Posts list table
|