Code Embed - Version 2.2.1

Version Description

  • Maintenance: Updated branding, inc. adding donation links
Download this release

Release Info

Developer dartiss
Plugin Icon 128x128 Code Embed
Version 2.2.1
Comparing to
See all releases

Code changes from version 2.2 to 2.2.1

includes/admin-config.php CHANGED
@@ -52,6 +52,7 @@ function ce_set_plugin_meta( $links, $file ) {
52
  if ( strpos( $file, 'code-embed.php' ) !== false ) {
53
 
54
  $links = array_merge( $links, array( '<a href="http://wordpress.org/support/plugin/simple-embed-code">' . __( 'Support', 'simple-embed-code' ) . '</a>' ) );
 
55
 
56
  }
57
 
52
  if ( strpos( $file, 'code-embed.php' ) !== false ) {
53
 
54
  $links = array_merge( $links, array( '<a href="http://wordpress.org/support/plugin/simple-embed-code">' . __( 'Support', 'simple-embed-code' ) . '</a>' ) );
55
+ $links = array_merge( $links, array( '<a href="http://www.artiss.co.uk/donate">' . __( 'Donate', 'simple-embed-code' ) . '</a>' ) );
56
 
57
  }
58
 
languages/simple-embed-code.mo CHANGED
Binary file
languages/simple-embed-code.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Code Embed\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2015-09-08 17:18-0000\n"
6
- "PO-Revision-Date: 2015-09-08 17:18-0000\n"
7
  "Last-Translator: David Artiss <david.artiss@artiss.co.uk>\n"
8
  "Language-Team: \n"
9
  "Language: en_GB\n"
@@ -17,162 +17,171 @@ msgstr ""
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
  "X-Poedit-SearchPath-0: .\n"
19
 
20
- #: includes/ace-admin-config.php:29
 
 
 
 
 
 
 
 
 
 
 
 
21
  msgid "Settings"
22
  msgstr ""
23
 
24
- #: includes/ace-admin-config.php:53
25
  msgid "Support"
26
  msgstr ""
27
 
28
- #: includes/ace-admin-config.php:54
29
  msgid "Donate"
30
  msgstr ""
31
 
32
- #: includes/ace-admin-config.php:77 includes/ace-search.php:18
33
  msgid "Code Embed Search"
34
  msgstr ""
35
 
36
- #: includes/ace-admin-config.php:77
37
  msgid "Code Search"
38
  msgstr ""
39
 
40
- #: includes/ace-admin-config.php:85
41
  msgid "Code Embed Settings"
42
  msgstr ""
43
 
44
- #: includes/ace-admin-config.php:85
45
  msgid "Code Embed"
46
  msgstr ""
47
 
48
- #: includes/ace-admin-config.php:109 includes/ace-admin-config.php:129
49
  msgid "Help"
50
  msgstr ""
51
 
52
- #: includes/ace-admin-config.php:172
53
  msgid ""
54
  "Use this screen to modify the various settings, including the identifiers "
55
  "and keyword used to specify your embedded code."
56
  msgstr ""
57
 
58
- #: includes/ace-admin-config.php:173
59
  msgid ""
60
  "The first option allows to suppress debug output. Normally this is an HTML "
61
  "comment in your page source - if you wish to hide this then simply ticket "
62
  "this option."
63
  msgstr ""
64
 
65
- #: includes/ace-admin-config.php:174
 
 
 
 
 
 
66
  msgid ""
67
  "The keyword is the name used for your custom field. The custom field's value "
68
  "is the code that you wish to embed."
69
  msgstr ""
70
 
71
- #: includes/ace-admin-config.php:175
72
  msgid ""
73
  "The keyword, sandwiched with the identifier before and after, is what you "
74
  "then need to add to your post or page to activate the embed code."
75
  msgstr ""
76
 
77
- #: includes/ace-admin-config.php:176
78
- #, php-format
79
- msgid "You are using Code Embed version %s. It was written by David Artiss."
80
- msgstr ""
81
-
82
- #: includes/ace-admin-config.php:194
83
  msgid ""
84
  "This screen allows you to search for the post and pages that a particular "
85
  "code embed has been used in."
86
  msgstr ""
87
 
88
- #: includes/ace-admin-config.php:195
89
  msgid ""
90
  "Simply enter the code suffix that you wish to search for and press the "
91
  "'Search' key to display a list of all the posts using it. In addition the "
92
  "code will be shown alongside it. Click on the post name to edit the post."
93
  msgstr ""
94
 
95
- #: includes/ace-admin-config.php:196
96
  msgid ""
97
  "The search results are grouped together in matching code groups, so posts "
98
  "with the same code will be shown together with the same colour background."
99
  msgstr ""
100
 
101
- #: includes/ace-filter.php:234
102
- #, php-format
103
- msgid ""
104
- "Cannot use %s as a global code as it is being used to store %d unique pieces "
105
- "of code in %d posts - <a href=\"%s\">click here</a> for more details"
106
  msgstr ""
107
 
108
- #: includes/ace-filter.php:241
109
- #, php-format
110
- msgid "No embed code was found for %s"
111
  msgstr ""
112
 
113
- #: includes/ace-options.php:19
114
- msgid "Code Embed Options"
115
  msgstr ""
116
 
117
- #: includes/ace-options.php:46
118
- msgid "Hide Debug"
119
  msgstr ""
120
 
121
- #: includes/ace-options.php:47
122
- msgid "Hide debug HTML comments in source."
123
  msgstr ""
124
 
125
- #: includes/ace-options.php:51
126
  msgid "Identifier Format"
127
  msgstr ""
128
 
129
- #: includes/ace-options.php:51
130
  msgid ""
131
  "Specify the format that will be used to define the way the code is embedded "
132
  "in your post. The formats are case insensitive and characters &lt; &gt [ ] "
133
  "are invalid."
134
  msgstr ""
135
 
136
- #: includes/ace-options.php:56
137
  msgid "Keyword"
138
  msgstr ""
139
 
140
- #: includes/ace-options.php:57
141
  msgid ""
142
  "The keyword that is used to name the custom field and then place in your "
143
  "post where the code should be embedded. A suffix on any type can then be "
144
  "placed on the end."
145
  msgstr ""
146
 
147
- #: includes/ace-options.php:61
148
  msgid "Opening Identifier"
149
  msgstr ""
150
 
151
- #: includes/ace-options.php:62
152
  msgid ""
153
  "The character(s) that must be placed in the post before the keyword to "
154
  "uniquely identify it."
155
  msgstr ""
156
 
157
- #: includes/ace-options.php:66
158
  msgid "Closing Identifier"
159
  msgstr ""
160
 
161
- #: includes/ace-options.php:67
162
  msgid ""
163
  "The character(s) that must be placed in the post after the keyword to "
164
  "uniquely identify it."
165
  msgstr ""
166
 
167
- #: includes/ace-options.php:74
168
- msgid "Save Settings"
169
  msgstr ""
170
 
171
- #: includes/ace-options.php:82
172
  msgid "How to Embed"
173
  msgstr ""
174
 
175
- #: includes/ace-options.php:83
176
  #, php-format
177
  msgid ""
178
  "Based upon your current settings to embed some code simply add a custom "
@@ -180,14 +189,14 @@ msgid ""
180
  "added as the field value."
181
  msgstr ""
182
 
183
- #: includes/ace-options.php:84
184
  #, php-format
185
  msgid ""
186
  "Then, to add the code into your post simple add %s where you wish it to "
187
  "appear. %s is the suffix you used for the custom field name."
188
  msgstr ""
189
 
190
- #: includes/ace-options.php:85
191
  #, php-format
192
  msgid ""
193
  "For example, I may add a custom field named %s, where the value is the code "
@@ -195,29 +204,29 @@ msgid ""
195
  "then appear."
196
  msgstr ""
197
 
198
- #: includes/ace-options.php:86
199
  #, php-format
200
  msgid ""
201
  "To embed the same code but to make it responsive you would use %s. To set a "
202
  "maximum width you would use %s, where %s is the maximum width in pixels."
203
  msgstr ""
204
 
205
- #: includes/ace-options.php:87
206
  #, php-format
207
  msgid "To embed an external URL you would type %s, where %s is the URL."
208
  msgstr ""
209
 
210
- #: includes/ace-search.php:21
211
  msgid ""
212
  "Enter the suffix to search for below and press the 'Search' button to view "
213
  "the results. Further help can be found by clicking on the Help tab at the "
214
  "top right-hand of the screen."
215
  msgstr ""
216
 
217
- #: includes/ace-search.php:50
218
  msgid "Search"
219
  msgstr ""
220
 
221
- #: includes/ace-search.php:90
222
  msgid "No posts were found containing that embed code."
223
  msgstr ""
2
  msgstr ""
3
  "Project-Id-Version: Code Embed\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2016-04-14 13:36-0000\n"
6
+ "PO-Revision-Date: 2016-04-14 13:36-0000\n"
7
  "Last-Translator: David Artiss <david.artiss@artiss.co.uk>\n"
8
  "Language-Team: \n"
9
  "Language: en_GB\n"
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
  "X-Poedit-SearchPath-0: .\n"
19
 
20
+ #: includes/add-embeds.php:233
21
+ #, php-format
22
+ msgid ""
23
+ "Cannot use %s as a global code as it is being used to store %d unique pieces "
24
+ "of code in %d posts - <a href=\"%s\">click here</a> for more details"
25
+ msgstr ""
26
+
27
+ #: includes/add-embeds.php:240
28
+ #, php-format
29
+ msgid "No embed code was found for %s"
30
+ msgstr ""
31
+
32
+ #: includes/admin-config.php:29
33
  msgid "Settings"
34
  msgstr ""
35
 
36
+ #: includes/admin-config.php:54
37
  msgid "Support"
38
  msgstr ""
39
 
40
+ #: includes/admin-config.php:55
41
  msgid "Donate"
42
  msgstr ""
43
 
44
+ #: includes/admin-config.php:80 includes/search-screen.php:16
45
  msgid "Code Embed Search"
46
  msgstr ""
47
 
48
+ #: includes/admin-config.php:80
49
  msgid "Code Search"
50
  msgstr ""
51
 
52
+ #: includes/admin-config.php:88
53
  msgid "Code Embed Settings"
54
  msgstr ""
55
 
56
+ #: includes/admin-config.php:88
57
  msgid "Code Embed"
58
  msgstr ""
59
 
60
+ #: includes/admin-config.php:113 includes/admin-config.php:133
61
  msgid "Help"
62
  msgstr ""
63
 
64
+ #: includes/admin-config.php:176
65
  msgid ""
66
  "Use this screen to modify the various settings, including the identifiers "
67
  "and keyword used to specify your embedded code."
68
  msgstr ""
69
 
70
+ #: includes/admin-config.php:177
71
  msgid ""
72
  "The first option allows to suppress debug output. Normally this is an HTML "
73
  "comment in your page source - if you wish to hide this then simply ticket "
74
  "this option."
75
  msgstr ""
76
 
77
+ #: includes/admin-config.php:178
78
+ msgid ""
79
+ "The second option allows to specify whether code embed requests should work "
80
+ "in excerpts."
81
+ msgstr ""
82
+
83
+ #: includes/admin-config.php:179
84
  msgid ""
85
  "The keyword is the name used for your custom field. The custom field's value "
86
  "is the code that you wish to embed."
87
  msgstr ""
88
 
89
+ #: includes/admin-config.php:180
90
  msgid ""
91
  "The keyword, sandwiched with the identifier before and after, is what you "
92
  "then need to add to your post or page to activate the embed code."
93
  msgstr ""
94
 
95
+ #: includes/admin-config.php:197
 
 
 
 
 
96
  msgid ""
97
  "This screen allows you to search for the post and pages that a particular "
98
  "code embed has been used in."
99
  msgstr ""
100
 
101
+ #: includes/admin-config.php:198
102
  msgid ""
103
  "Simply enter the code suffix that you wish to search for and press the "
104
  "'Search' key to display a list of all the posts using it. In addition the "
105
  "code will be shown alongside it. Click on the post name to edit the post."
106
  msgstr ""
107
 
108
+ #: includes/admin-config.php:199
109
  msgid ""
110
  "The search results are grouped together in matching code groups, so posts "
111
  "with the same code will be shown together with the same colour background."
112
  msgstr ""
113
 
114
+ #: includes/options-screen.php:18
115
+ msgid "Code Embed Options"
 
 
 
116
  msgstr ""
117
 
118
+ #: includes/options-screen.php:51
119
+ msgid "Hide Debug"
 
120
  msgstr ""
121
 
122
+ #: includes/options-screen.php:52
123
+ msgid "Hide debug HTML comments in source"
124
  msgstr ""
125
 
126
+ #: includes/options-screen.php:56
127
+ msgid "Allow in Excerpts"
128
  msgstr ""
129
 
130
+ #: includes/options-screen.php:57
131
+ msgid "Allow embedded code to be shown in excerpts"
132
  msgstr ""
133
 
134
+ #: includes/options-screen.php:61
135
  msgid "Identifier Format"
136
  msgstr ""
137
 
138
+ #: includes/options-screen.php:61
139
  msgid ""
140
  "Specify the format that will be used to define the way the code is embedded "
141
  "in your post. The formats are case insensitive and characters &lt; &gt [ ] "
142
  "are invalid."
143
  msgstr ""
144
 
145
+ #: includes/options-screen.php:66
146
  msgid "Keyword"
147
  msgstr ""
148
 
149
+ #: includes/options-screen.php:67
150
  msgid ""
151
  "The keyword that is used to name the custom field and then place in your "
152
  "post where the code should be embedded. A suffix on any type can then be "
153
  "placed on the end."
154
  msgstr ""
155
 
156
+ #: includes/options-screen.php:71
157
  msgid "Opening Identifier"
158
  msgstr ""
159
 
160
+ #: includes/options-screen.php:72
161
  msgid ""
162
  "The character(s) that must be placed in the post before the keyword to "
163
  "uniquely identify it."
164
  msgstr ""
165
 
166
+ #: includes/options-screen.php:76
167
  msgid "Closing Identifier"
168
  msgstr ""
169
 
170
+ #: includes/options-screen.php:77
171
  msgid ""
172
  "The character(s) that must be placed in the post after the keyword to "
173
  "uniquely identify it."
174
  msgstr ""
175
 
176
+ #: includes/options-screen.php:84
177
+ msgid "Save Changes"
178
  msgstr ""
179
 
180
+ #: includes/options-screen.php:92
181
  msgid "How to Embed"
182
  msgstr ""
183
 
184
+ #: includes/options-screen.php:93
185
  #, php-format
186
  msgid ""
187
  "Based upon your current settings to embed some code simply add a custom "
189
  "added as the field value."
190
  msgstr ""
191
 
192
+ #: includes/options-screen.php:94
193
  #, php-format
194
  msgid ""
195
  "Then, to add the code into your post simple add %s where you wish it to "
196
  "appear. %s is the suffix you used for the custom field name."
197
  msgstr ""
198
 
199
+ #: includes/options-screen.php:95
200
  #, php-format
201
  msgid ""
202
  "For example, I may add a custom field named %s, where the value is the code "
204
  "then appear."
205
  msgstr ""
206
 
207
+ #: includes/options-screen.php:96
208
  #, php-format
209
  msgid ""
210
  "To embed the same code but to make it responsive you would use %s. To set a "
211
  "maximum width you would use %s, where %s is the maximum width in pixels."
212
  msgstr ""
213
 
214
+ #: includes/options-screen.php:97
215
  #, php-format
216
  msgid "To embed an external URL you would type %s, where %s is the URL."
217
  msgstr ""
218
 
219
+ #: includes/search-screen.php:19
220
  msgid ""
221
  "Enter the suffix to search for below and press the 'Search' button to view "
222
  "the results. Further help can be found by clicking on the Help tab at the "
223
  "top right-hand of the screen."
224
  msgstr ""
225
 
226
+ #: includes/search-screen.php:51
227
  msgid "Search"
228
  msgstr ""
229
 
230
+ #: includes/search-screen.php:91
231
  msgid "No posts were found containing that embed code."
232
  msgstr ""
readme.txt CHANGED
@@ -1,9 +1,10 @@
1
  === Code Embed ===
2
- Contributors: codedart
 
3
  Tags: code, embed, html, javascript, script, simple, video, xhtml, youtube
4
  Requires at least: 3.3
5
- Tested up to: 4.4.2
6
- Stable tag: 2.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -32,6 +33,8 @@ Here's how easy it is...
32
 
33
  And that's it - when the post or page is viewed `%CODE1%` will be replaced with the code that you asked to be embedded.
34
 
 
 
35
  This should get you started - for more information and advanced options please read the "Other Notes" tab. Alternatively, there's a fantastic guide at [Elftronix](http://www.elftronix.com/free-easy-plugin-add-javascript-to-wordpress-posts-pages/ "Free Easy Plugin! Add Javascript to WordPress Posts & Pages") which I would recommend.
36
 
37
  Although this plugin works for both posts and pages for simplicity I will simply refer to posts - bear in mind that pages work in the same way.
@@ -142,6 +145,12 @@ If your code contains the characters `]]>` then you'll find that it doesn't - Wo
142
 
143
  Otherwise, it's likely to be your code and not this plugin. The best way to confirm this is to look at the source of the page and compare the code output with what you embedded. Does it match? If it does, then your code is at fault.
144
 
 
 
 
 
 
 
145
  = What's the maximum size of the embed code that I can save in a custom field? =
146
 
147
  WordPress stores the custom field contents in a MySQL table using the `longtext` format. This can hold over 4 billion characters.
@@ -153,9 +162,13 @@ WordPress stores the custom field contents in a MySQL table using the `longtext`
153
  3. The resultant video from the previous example code
154
  4. The options screen
155
  5. The search screen, showing search results
 
156
 
157
  == Changelog ==
158
 
 
 
 
159
  = 2.2 =
160
  * Enhancement: Added support for embedding code in excerpts
161
  * Enhancement: Validated, sanitised and escaped the admin screen data
@@ -239,44 +252,5 @@ versions of this plugin
239
 
240
  == Upgrade Notice ==
241
 
242
- = 2.2 =
243
- * Upgrade to add ability to embed code in excerpts. Also tidied and refreshed
244
-
245
- = 2.1.2 =
246
- * Update with text domain, ready for automatic translation
247
-
248
- = 2.1.1 =
249
- * Various minor fixes and updates
250
-
251
- = 2.1 =
252
- * Upgrade for change of branding and removal of redundant features
253
-
254
- = 2.0.2 =
255
- * Upgrade to fix a [minor XSS vulnerability](https://bugzilla.mozilla.org/show_bug.cgi?id=771315 "Bug 771315 - WP Plugin Simple-embed-Code - Fix XSS Before Adding to Hacks Blog")
256
-
257
- = 2.0.1 =
258
- * Upgrade to remove embed code length restriction
259
-
260
- = 2.0 =
261
- * Upgrade to improve the administration menus and add further features such as internationalization and responsive video conversion
262
-
263
- = 1.6.1 =
264
- * Fixes critical bug in version 1.6
265
-
266
- = 1.6 =
267
- * Added ability to specify global code embeds
268
-
269
- = 1.5.1 =
270
- * Added form security
271
-
272
- = 1.5 =
273
- * Much more efficient performance and ability to totally personalise the embed code used in posts
274
-
275
- = 1.4.1 =
276
- * Minor bug fix
277
-
278
- = 1.4 =
279
- * Update to specify your own embed word and max. embeds per post
280
-
281
- = 1.3 =
282
- * Upgrade if you'd like to be able to embed more than 5 scripts on a single page
1
  === Code Embed ===
2
+ Contributors: dartiss
3
+ Donate link: https://artiss.blog/donate
4
  Tags: code, embed, html, javascript, script, simple, video, xhtml, youtube
5
  Requires at least: 3.3
6
+ Tested up to: 4.7.2
7
+ Stable tag: 2.2.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
33
 
34
  And that's it - when the post or page is viewed `%CODE1%` will be replaced with the code that you asked to be embedded.
35
 
36
+ **If you cannot find the location of the `Custom Fields` meta box on your post editor screen, please see the FAQ section for more information**
37
+
38
  This should get you started - for more information and advanced options please read the "Other Notes" tab. Alternatively, there's a fantastic guide at [Elftronix](http://www.elftronix.com/free-easy-plugin-add-javascript-to-wordpress-posts-pages/ "Free Easy Plugin! Add Javascript to WordPress Posts & Pages") which I would recommend.
39
 
40
  Although this plugin works for both posts and pages for simplicity I will simply refer to posts - bear in mind that pages work in the same way.
145
 
146
  Otherwise, it's likely to be your code and not this plugin. The best way to confirm this is to look at the source of the page and compare the code output with what you embedded. Does it match? If it does, then your code is at fault.
147
 
148
+ = I can't find the Custom Fields meta box =
149
+
150
+ This 'meta box' is not added by this plugin but is built into WordPress. If you cannot find it on the post or page editor screen then click the 'Screen Options' tab in the top right-hand corner. Ensure 'Custom Fields' is ticked. Please see the screenshots section for an image on how this appears on a 'box fresh' installation of WordPress.
151
+
152
+ If you still can't find it then you may have a theme or plugin that removes this or may have a problem with your WordPress installation - you will need to try normal diagnostics to try and resolve this, including requesting help on [the WordPress support forum](https://wordpress.org/support/forum/how-to-and-troubleshooting/ "Fixing WordPress Forum"). It would be greatly appreciated if you don't give me poor reviews in this situation as, I say, this component is not part of this plugin but, by using it, keeps this plugin simple to use and bloat-free :)
153
+
154
  = What's the maximum size of the embed code that I can save in a custom field? =
155
 
156
  WordPress stores the custom field contents in a MySQL table using the `longtext` format. This can hold over 4 billion characters.
162
  3. The resultant video from the previous example code
163
  4. The options screen
164
  5. The search screen, showing search results
165
+ 6. The Custom Fields meta-box and the screen switch - both highlighted in red
166
 
167
  == Changelog ==
168
 
169
+ = 2.2.1 =
170
+ * Maintenance: Updated branding, inc. adding donation links
171
+
172
  = 2.2 =
173
  * Enhancement: Added support for embedding code in excerpts
174
  * Enhancement: Validated, sanitised and escaped the admin screen data
252
 
253
  == Upgrade Notice ==
254
 
255
+ = 2.2.1 =
256
+ * Minor update to change branding
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
simple-code-embed.php CHANGED
@@ -3,9 +3,9 @@
3
  Plugin Name: Code Embed
4
  Plugin URI: https://wordpress.org/plugins/simple-code-embed/
5
  Description: Allows you to embed code into your posts & pages
6
- Version: 2.2
7
- Author: Coded Art
8
- Author URI: http://codedart.co
9
  Text Domain: simple-embed-code
10
  Domain Path: /languages
11
  */
@@ -19,7 +19,7 @@ Domain Path: /languages
19
  * @since 1.6
20
  */
21
 
22
- define( 'code_embed_version', '2.2' );
23
 
24
  // Include all the various functions
25
 
3
  Plugin Name: Code Embed
4
  Plugin URI: https://wordpress.org/plugins/simple-code-embed/
5
  Description: Allows you to embed code into your posts & pages
6
+ Version: 2.2.1
7
+ Author: David Artiss
8
+ Author URI: http://www.artiss.co.uk
9
  Text Domain: simple-embed-code
10
  Domain Path: /languages
11
  */
19
  * @since 1.6
20
  */
21
 
22
+ define( 'code_embed_version', '2.2.1' );
23
 
24
  // Include all the various functions
25