Posts 2 Posts - Version 1.5.1

Version Description

  • fix fatal error on activation. props benmay
Download this release

Release Info

Developer scribu
Plugin Icon wp plugin Posts 2 Posts
Version 1.5.1
Comparing to
See all releases

Code changes from version 1.5 to 1.5.1

lang/posts-to-posts-ro_RO.mo CHANGED
Binary file
lang/posts-to-posts-ro_RO.po CHANGED
@@ -7,8 +7,8 @@ msgid ""
7
  msgstr ""
8
  "Project-Id-Version: Posts 2 Posts\n"
9
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/p2p\n"
10
- "POT-Creation-Date: 2012-08-17 07:40:29+00:00\n"
11
- "PO-Revision-Date: 2012-08-17 10:42+0200\n"
12
  "Last-Translator: scribu <mail@scribu.net>\n"
13
  "Language-Team: ROMANIAN <LL@li.org>\n"
14
  "Language: \n"
@@ -16,151 +16,152 @@ msgstr ""
16
  "Content-Type: text/plain; charset=UTF-8\n"
17
  "Content-Transfer-Encoding: 8bit\n"
18
 
19
- #: admin/box.php:38
20
  msgid "Are you sure you want to delete all connections?"
21
  msgstr "Sigur vreți să ștergeți toate conexiunile?"
22
 
23
- #: admin/box.php:114
24
  msgid "Search"
25
  msgstr "Căutare"
26
 
27
- #: admin/box.php:191
28
  msgid "previous"
29
  msgstr "anterioare"
30
 
31
- #: admin/box.php:192
32
  msgid "next"
33
  msgstr "următoare"
34
 
35
- #: admin/box.php:193
36
  msgid "of"
37
  msgstr "din"
38
 
39
- #: admin/box.php:236
40
- msgid "Can't create connection: %s"
41
- msgstr "Conexiunea nu poate fi creată: %s"
42
 
43
- #: admin/factory.php:30
44
  msgid " (from)"
45
  msgstr "(de la)"
46
 
47
- #: admin/factory.php:31
48
  msgid " (to)"
49
  msgstr "(la)"
50
 
51
- #: admin/fields.php:7
52
  msgid "Delete all connections"
53
  msgstr "Șterge toate conexiunile"
54
 
55
- #: admin/fields.php:16
56
  msgid "Delete connection"
57
  msgstr "Șterge conexiune"
58
 
59
- #: admin/tools.php:7
60
  msgid "Connection Types"
61
  msgstr "Tipuri de conexiuni"
62
 
63
- #: admin/tools.php:41
64
  msgid "<em>%s</em> is not a registered connection type."
65
  msgstr "<em>%s</em> nu e un tip de conexiune înregistrat."
66
 
67
- #: admin/tools.php:50
68
  msgid "Converted %1$s connections from <em>%2$s</em> to <em>%3$s</em>."
69
  msgstr "Am convertit %1$s conexiuni din <em>%2$s</em> în <em>%3$s</em>."
70
 
71
- #: admin/tools.php:64
72
  msgid "Name"
73
  msgstr "Nume"
74
 
75
- #: admin/tools.php:65
76
  msgid "Information"
77
  msgstr "Informații"
78
 
79
- #: admin/tools.php:66
80
  msgid "Connections"
81
  msgstr "Conexiuni"
82
 
83
- #: admin/tools.php:74
84
  msgid "No connection types registered."
85
  msgstr "Nu există tipuri de conexiuni înregistrate."
86
 
87
- #: admin/tools.php:76
88
  msgid "To register a connection type, see <a href=\"%s\">the wiki</a>."
89
  msgstr "Pentru a înregistra un tip de conexiune, vezi <a href=\"%s\">wiki-ul</a>."
90
 
91
- #: admin/tools.php:93
92
  msgid "Convert to registered connection type:"
93
  msgstr "Convertește într-un tip de conexiune înregistrat:"
94
 
95
- #: admin/tools.php:129
96
  msgid "Go"
97
  msgstr "Go"
98
 
99
- #: core/extra.php:16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
100
  msgid "Posts 2 Posts"
101
  msgstr "Posts 2 Posts"
102
 
103
- #: core/extra.php:17
104
  msgid "A list of posts connected to the current post"
105
  msgstr "O lista de postări conectate la postarea curentă"
106
 
107
- #: core/extra.php:34
108
  msgid "Title:"
109
  msgstr "Titlu:"
110
 
111
- #: core/extra.php:41
112
  msgid "Connection type:"
113
  msgstr "Tipul conexiunii:"
114
 
115
- #: core/extra.php:46
116
  msgid "Connection listing:"
117
  msgstr "Conexiuni de listat:"
118
 
119
- #: core/extra.php:52
120
  msgid "connected"
121
  msgstr "conectate"
122
 
123
- #: core/extra.php:53
124
  msgid "related"
125
  msgstr "înrudite"
126
 
127
- #: core/side.php:210
128
- msgid "Users"
129
- msgstr "Utilizatori"
130
-
131
- #: core/side.php:219
132
- msgid "User"
133
- msgstr "Utilizator"
134
-
135
- #: core/side.php:220
136
- msgid "Search Users"
137
- msgstr "Caută utilizatori"
138
-
139
- #: core/side.php:221
140
- msgid "No users found."
141
- msgstr "Niciun utilizator găsit."
142
-
143
- #: core/type.php:79
144
- msgid "Create connections"
145
- msgstr "Creează conexiuni"
146
-
147
- #: core/type.php:102
148
- msgid "Connected %s"
149
- msgstr "%s conectate"
150
-
151
- #: scb/AdminPage.php:172
152
  msgid "Settings <strong>saved</strong>."
153
  msgstr "Setări <strong>salvate</strong>."
154
 
155
- #: scb/AdminPage.php:185
156
- #: scb/AdminPage.php:196
157
- msgid "Save Changes"
158
- msgstr "Salvează schimbările"
159
-
160
- #: scb/AdminPage.php:346
161
  msgid "Settings"
162
  msgstr "Setări"
163
 
 
 
 
 
 
 
164
  #~ msgid "View All"
165
  #~ msgstr "Vezi toate"
166
 
7
  msgstr ""
8
  "Project-Id-Version: Posts 2 Posts\n"
9
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/p2p\n"
10
+ "POT-Creation-Date: 2013-02-17 08:06:11+00:00\n"
11
+ "PO-Revision-Date: 2013-02-17 10:07+0200\n"
12
  "Last-Translator: scribu <mail@scribu.net>\n"
13
  "Language-Team: ROMANIAN <LL@li.org>\n"
14
  "Language: \n"
16
  "Content-Type: text/plain; charset=UTF-8\n"
17
  "Content-Transfer-Encoding: 8bit\n"
18
 
19
+ #: admin/box.php:45
20
  msgid "Are you sure you want to delete all connections?"
21
  msgstr "Sigur vreți să ștergeți toate conexiunile?"
22
 
23
+ #: admin/box.php:136
24
  msgid "Search"
25
  msgstr "Căutare"
26
 
27
+ #: admin/box.php:213
28
  msgid "previous"
29
  msgstr "anterioare"
30
 
31
+ #: admin/box.php:214
32
  msgid "next"
33
  msgstr "următoare"
34
 
35
+ #: admin/box.php:215
36
  msgid "of"
37
  msgstr "din"
38
 
39
+ #: admin/dropdown-user.php:32
40
+ msgid "Filter"
41
+ msgstr "Filtru"
42
 
43
+ #: admin/factory.php:88
44
  msgid " (from)"
45
  msgstr "(de la)"
46
 
47
+ #: admin/factory.php:89
48
  msgid " (to)"
49
  msgstr "(la)"
50
 
51
+ #: admin/field-delete.php:7
52
  msgid "Delete all connections"
53
  msgstr "Șterge toate conexiunile"
54
 
55
+ #: admin/field-delete.php:16
56
  msgid "Delete connection"
57
  msgstr "Șterge conexiune"
58
 
59
+ #: admin/tools-page.php:7
60
  msgid "Connection Types"
61
  msgstr "Tipuri de conexiuni"
62
 
63
+ #: admin/tools-page.php:41
64
  msgid "<em>%s</em> is not a registered connection type."
65
  msgstr "<em>%s</em> nu e un tip de conexiune înregistrat."
66
 
67
+ #: admin/tools-page.php:50
68
  msgid "Converted %1$s connections from <em>%2$s</em> to <em>%3$s</em>."
69
  msgstr "Am convertit %1$s conexiuni din <em>%2$s</em> în <em>%3$s</em>."
70
 
71
+ #: admin/tools-page.php:64
72
  msgid "Name"
73
  msgstr "Nume"
74
 
75
+ #: admin/tools-page.php:65
76
  msgid "Information"
77
  msgstr "Informații"
78
 
79
+ #: admin/tools-page.php:66
80
  msgid "Connections"
81
  msgstr "Conexiuni"
82
 
83
+ #: admin/tools-page.php:74
84
  msgid "No connection types registered."
85
  msgstr "Nu există tipuri de conexiuni înregistrate."
86
 
87
+ #: admin/tools-page.php:76
88
  msgid "To register a connection type, see <a href=\"%s\">the wiki</a>."
89
  msgstr "Pentru a înregistra un tip de conexiune, vezi <a href=\"%s\">wiki-ul</a>."
90
 
91
+ #: admin/tools-page.php:93
92
  msgid "Convert to registered connection type:"
93
  msgstr "Convertește într-un tip de conexiune înregistrat:"
94
 
95
+ #: admin/tools-page.php:129
96
  msgid "Go"
97
  msgstr "Go"
98
 
99
+ #: core/connection-type.php:102
100
+ msgid "Create connections"
101
+ msgstr "Creează conexiuni"
102
+
103
+ #: core/connection-type.php:120
104
+ msgid "Connected %s"
105
+ msgstr "%s conectate"
106
+
107
+ #: core/side-user.php:16
108
+ msgid "Users"
109
+ msgstr "Utilizatori"
110
+
111
+ #: core/side-user.php:25
112
+ msgid "User"
113
+ msgstr "Utilizator"
114
+
115
+ #: core/side-user.php:26
116
+ msgid "Search Users"
117
+ msgstr "Caută utilizatori"
118
+
119
+ #: core/side-user.php:27
120
+ msgid "No users found."
121
+ msgstr "Niciun utilizator găsit."
122
+
123
+ #: core/widget.php:16
124
  msgid "Posts 2 Posts"
125
  msgstr "Posts 2 Posts"
126
 
127
+ #: core/widget.php:17
128
  msgid "A list of posts connected to the current post"
129
  msgstr "O lista de postări conectate la postarea curentă"
130
 
131
+ #: core/widget.php:34
132
  msgid "Title:"
133
  msgstr "Titlu:"
134
 
135
+ #: core/widget.php:41
136
  msgid "Connection type:"
137
  msgstr "Tipul conexiunii:"
138
 
139
+ #: core/widget.php:46
140
  msgid "Connection listing:"
141
  msgstr "Conexiuni de listat:"
142
 
143
+ #: core/widget.php:52
144
  msgid "connected"
145
  msgstr "conectate"
146
 
147
+ #: core/widget.php:53
148
  msgid "related"
149
  msgstr "înrudite"
150
 
151
+ #: scb/AdminPage.php:227
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
152
  msgid "Settings <strong>saved</strong>."
153
  msgstr "Setări <strong>salvate</strong>."
154
 
155
+ #: scb/AdminPage.php:466
 
 
 
 
 
156
  msgid "Settings"
157
  msgstr "Setări"
158
 
159
+ #~ msgid "Can't create connection: %s"
160
+ #~ msgstr "Conexiunea nu poate fi creată: %s"
161
+
162
+ #~ msgid "Save Changes"
163
+ #~ msgstr "Salvează schimbările"
164
+
165
  #~ msgid "View All"
166
  #~ msgstr "Vezi toate"
167
 
lang/posts-to-posts.pot CHANGED
@@ -1,157 +1,153 @@
1
- # Copyright (C) 2012
2
  # This file is distributed under the same license as the package.
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: \n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/p2p\n"
7
- "POT-Creation-Date: 2012-08-17 07:40:29+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
- "PO-Revision-Date: 2012-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
15
- #: admin/box.php:38
16
  msgid "Are you sure you want to delete all connections?"
17
  msgstr ""
18
 
19
- #: admin/box.php:114
20
  msgid "Search"
21
  msgstr ""
22
 
23
- #: admin/box.php:191
24
  msgid "previous"
25
  msgstr ""
26
 
27
- #: admin/box.php:192
28
  msgid "next"
29
  msgstr ""
30
 
31
- #: admin/box.php:193
32
  msgid "of"
33
  msgstr ""
34
 
35
- #: admin/box.php:236
36
- msgid "Can't create connection: %s"
37
  msgstr ""
38
 
39
- #: admin/factory.php:30
40
  msgid " (from)"
41
  msgstr ""
42
 
43
- #: admin/factory.php:31
44
  msgid " (to)"
45
  msgstr ""
46
 
47
- #: admin/fields.php:7
48
  msgid "Delete all connections"
49
  msgstr ""
50
 
51
- #: admin/fields.php:16
52
  msgid "Delete connection"
53
  msgstr ""
54
 
55
- #: admin/tools.php:7
56
  msgid "Connection Types"
57
  msgstr ""
58
 
59
- #: admin/tools.php:41
60
  msgid "<em>%s</em> is not a registered connection type."
61
  msgstr ""
62
 
63
- #: admin/tools.php:50
64
  msgid "Converted %1$s connections from <em>%2$s</em> to <em>%3$s</em>."
65
  msgstr ""
66
 
67
- #: admin/tools.php:64
68
  msgid "Name"
69
  msgstr ""
70
 
71
- #: admin/tools.php:65
72
  msgid "Information"
73
  msgstr ""
74
 
75
- #: admin/tools.php:66
76
  msgid "Connections"
77
  msgstr ""
78
 
79
- #: admin/tools.php:74
80
  msgid "No connection types registered."
81
  msgstr ""
82
 
83
- #: admin/tools.php:76
84
  msgid "To register a connection type, see <a href=\"%s\">the wiki</a>."
85
  msgstr ""
86
 
87
- #: admin/tools.php:93
88
  msgid "Convert to registered connection type:"
89
  msgstr ""
90
 
91
- #: admin/tools.php:129
92
  msgid "Go"
93
  msgstr ""
94
 
95
- #: core/extra.php:16
96
- msgid "Posts 2 Posts"
97
  msgstr ""
98
 
99
- #: core/extra.php:17
100
- msgid "A list of posts connected to the current post"
101
  msgstr ""
102
 
103
- #: core/extra.php:34
104
- msgid "Title:"
105
  msgstr ""
106
 
107
- #: core/extra.php:41
108
- msgid "Connection type:"
109
  msgstr ""
110
 
111
- #: core/extra.php:46
112
- msgid "Connection listing:"
113
  msgstr ""
114
 
115
- #: core/extra.php:52
116
- msgid "connected"
117
  msgstr ""
118
 
119
- #: core/extra.php:53
120
- msgid "related"
121
  msgstr ""
122
 
123
- #: core/side.php:210
124
- msgid "Users"
125
  msgstr ""
126
 
127
- #: core/side.php:219
128
- msgid "User"
129
  msgstr ""
130
 
131
- #: core/side.php:220
132
- msgid "Search Users"
133
  msgstr ""
134
 
135
- #: core/side.php:221
136
- msgid "No users found."
137
  msgstr ""
138
 
139
- #: core/type.php:79
140
- msgid "Create connections"
141
  msgstr ""
142
 
143
- #: core/type.php:102
144
- msgid "Connected %s"
145
  msgstr ""
146
 
147
- #: scb/AdminPage.php:172
148
  msgid "Settings <strong>saved</strong>."
149
  msgstr ""
150
 
151
- #: scb/AdminPage.php:185 scb/AdminPage.php:196
152
- msgid "Save Changes"
153
- msgstr ""
154
-
155
- #: scb/AdminPage.php:346
156
  msgid "Settings"
157
  msgstr ""
1
+ # Copyright (C) 2013
2
  # This file is distributed under the same license as the package.
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: \n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/p2p\n"
7
+ "POT-Creation-Date: 2013-02-17 08:06:11+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2013-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
15
+ #: admin/box.php:45
16
  msgid "Are you sure you want to delete all connections?"
17
  msgstr ""
18
 
19
+ #: admin/box.php:136
20
  msgid "Search"
21
  msgstr ""
22
 
23
+ #: admin/box.php:213
24
  msgid "previous"
25
  msgstr ""
26
 
27
+ #: admin/box.php:214
28
  msgid "next"
29
  msgstr ""
30
 
31
+ #: admin/box.php:215
32
  msgid "of"
33
  msgstr ""
34
 
35
+ #: admin/dropdown-user.php:32
36
+ msgid "Filter"
37
  msgstr ""
38
 
39
+ #: admin/factory.php:88
40
  msgid " (from)"
41
  msgstr ""
42
 
43
+ #: admin/factory.php:89
44
  msgid " (to)"
45
  msgstr ""
46
 
47
+ #: admin/field-delete.php:7
48
  msgid "Delete all connections"
49
  msgstr ""
50
 
51
+ #: admin/field-delete.php:16
52
  msgid "Delete connection"
53
  msgstr ""
54
 
55
+ #: admin/tools-page.php:7
56
  msgid "Connection Types"
57
  msgstr ""
58
 
59
+ #: admin/tools-page.php:41
60
  msgid "<em>%s</em> is not a registered connection type."
61
  msgstr ""
62
 
63
+ #: admin/tools-page.php:50
64
  msgid "Converted %1$s connections from <em>%2$s</em> to <em>%3$s</em>."
65
  msgstr ""
66
 
67
+ #: admin/tools-page.php:64
68
  msgid "Name"
69
  msgstr ""
70
 
71
+ #: admin/tools-page.php:65
72
  msgid "Information"
73
  msgstr ""
74
 
75
+ #: admin/tools-page.php:66
76
  msgid "Connections"
77
  msgstr ""
78
 
79
+ #: admin/tools-page.php:74
80
  msgid "No connection types registered."
81
  msgstr ""
82
 
83
+ #: admin/tools-page.php:76
84
  msgid "To register a connection type, see <a href=\"%s\">the wiki</a>."
85
  msgstr ""
86
 
87
+ #: admin/tools-page.php:93
88
  msgid "Convert to registered connection type:"
89
  msgstr ""
90
 
91
+ #: admin/tools-page.php:129
92
  msgid "Go"
93
  msgstr ""
94
 
95
+ #: core/connection-type.php:102
96
+ msgid "Create connections"
97
  msgstr ""
98
 
99
+ #: core/connection-type.php:120
100
+ msgid "Connected %s"
101
  msgstr ""
102
 
103
+ #: core/side-user.php:16
104
+ msgid "Users"
105
  msgstr ""
106
 
107
+ #: core/side-user.php:25
108
+ msgid "User"
109
  msgstr ""
110
 
111
+ #: core/side-user.php:26
112
+ msgid "Search Users"
113
  msgstr ""
114
 
115
+ #: core/side-user.php:27
116
+ msgid "No users found."
117
  msgstr ""
118
 
119
+ #: core/widget.php:16
120
+ msgid "Posts 2 Posts"
121
  msgstr ""
122
 
123
+ #: core/widget.php:17
124
+ msgid "A list of posts connected to the current post"
125
  msgstr ""
126
 
127
+ #: core/widget.php:34
128
+ msgid "Title:"
129
  msgstr ""
130
 
131
+ #: core/widget.php:41
132
+ msgid "Connection type:"
133
  msgstr ""
134
 
135
+ #: core/widget.php:46
136
+ msgid "Connection listing:"
137
  msgstr ""
138
 
139
+ #: core/widget.php:52
140
+ msgid "connected"
141
  msgstr ""
142
 
143
+ #: core/widget.php:53
144
+ msgid "related"
145
  msgstr ""
146
 
147
+ #: scb/AdminPage.php:227
148
  msgid "Settings <strong>saved</strong>."
149
  msgstr ""
150
 
151
+ #: scb/AdminPage.php:466
 
 
 
 
152
  msgid "Settings"
153
  msgstr ""
posts-to-posts.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Posts 2 Posts
4
  Description: Create many-to-many relationships between all types of posts.
5
- Version: 1.5
6
  Author: scribu
7
  Author URI: http://scribu.net/
8
  Plugin URI: http://scribu.net/wordpress/posts-to-posts
@@ -14,16 +14,16 @@ define( 'P2P_PLUGIN_VERSION', '1.5' );
14
 
15
  define( 'P2P_TEXTDOMAIN', 'posts-to-posts' );
16
 
17
- require dirname( __FILE__ ) . '/scb/load.php';
18
 
19
  function _p2p_load() {
20
  $base = dirname( __FILE__ );
21
 
22
  load_plugin_textdomain( P2P_TEXTDOMAIN, '', basename( $base ) . '/lang' );
23
 
24
- require $base . '/core/util.php';
25
- require $base . '/core/api.php';
26
- require $base . '/autoload.php';
27
 
28
  P2P_Autoload::register( 'P2P_', $base . '/core' );
29
 
2
  /*
3
  Plugin Name: Posts 2 Posts
4
  Description: Create many-to-many relationships between all types of posts.
5
+ Version: 1.5.1
6
  Author: scribu
7
  Author URI: http://scribu.net/
8
  Plugin URI: http://scribu.net/wordpress/posts-to-posts
14
 
15
  define( 'P2P_TEXTDOMAIN', 'posts-to-posts' );
16
 
17
+ require_once dirname( __FILE__ ) . '/scb/load.php';
18
 
19
  function _p2p_load() {
20
  $base = dirname( __FILE__ );
21
 
22
  load_plugin_textdomain( P2P_TEXTDOMAIN, '', basename( $base ) . '/lang' );
23
 
24
+ require_once $base . '/core/util.php';
25
+ require_once $base . '/core/api.php';
26
+ require_once $base . '/autoload.php';
27
 
28
  P2P_Autoload::register( 'P2P_', $base . '/core' );
29
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: scribu, ciobi
3
  Tags: connections, custom post types, relationships, many-to-many, users
4
  Requires at least: 3.5
5
  Tested up to: 3.5
6
- Stable tag: 1.5
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -53,6 +53,9 @@ Make sure your host is running PHP 5. The only foolproof way to do this is to ad
53
 
54
  == Changelog ==
55
 
 
 
 
56
  = 1.5 =
57
  * added [admin dropdowns](https://github.com/scribu/wp-posts-to-posts/wiki/Admin-dropdown-display)
58
  * fixed SQL error related to user connections
3
  Tags: connections, custom post types, relationships, many-to-many, users
4
  Requires at least: 3.5
5
  Tested up to: 3.5
6
+ Stable tag: 1.5.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
53
 
54
  == Changelog ==
55
 
56
+ = 1.5.1 =
57
+ * fix fatal error on activation. props benmay
58
+
59
  = 1.5 =
60
  * added [admin dropdowns](https://github.com/scribu/wp-posts-to-posts/wiki/Admin-dropdown-display)
61
  * fixed SQL error related to user connections