Version Description
- Fix table creation code not running on upgrade
- Fix snippets per page option not saving
Download this release
Release Info
Developer | bungeshea |
Plugin | Code Snippets |
Version | 2.0.1 |
Comparing to | |
See all releases |
Code changes from version 2.0 to 2.0.1
- code-snippets.php +3 -3
- includes/db.php +29 -45
- includes/edit/edit.php +1 -1
- includes/import/import.php +1 -1
- includes/manage/class-list-table.php +0 -18
- includes/manage/manage.php +19 -1
- includes/upgrade.php +6 -0
- languages/code-snippets.pot +33 -33
- readme.txt +6 -1
code-snippets.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* contribute to the localization, please see http://code-snippets.bungeshea.com
|
8 |
*
|
9 |
* @package Code_Snippets
|
10 |
-
* @version 2.0
|
11 |
* @author Shea Bunge <http://bungeshea.com/>
|
12 |
* @copyright Copyright (c) 2012-2014, Shea Bunge
|
13 |
* @link http://code-snippets.bungeshea.com
|
@@ -20,7 +20,7 @@ Plugin URI: http://code-snippets.bungeshea.com
|
|
20 |
Description: An easy, clean and simple way to add code snippets to your site. No need to edit to your theme's functions.php file again!
|
21 |
Author: Shea Bunge
|
22 |
Author URI: http://bungeshea.com
|
23 |
-
Version: 2.0
|
24 |
License: MIT
|
25 |
License URI: license.txt
|
26 |
Text Domain: code-snippets
|
@@ -42,7 +42,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
42 |
* @since 2.0
|
43 |
* @var string A PHP-standardized version number string
|
44 |
*/
|
45 |
-
define( 'CODE_SNIPPETS_VERSION', '2.0' );
|
46 |
|
47 |
/**
|
48 |
* The full path to the main file of this plugin
|
7 |
* contribute to the localization, please see http://code-snippets.bungeshea.com
|
8 |
*
|
9 |
* @package Code_Snippets
|
10 |
+
* @version 2.0.1
|
11 |
* @author Shea Bunge <http://bungeshea.com/>
|
12 |
* @copyright Copyright (c) 2012-2014, Shea Bunge
|
13 |
* @link http://code-snippets.bungeshea.com
|
20 |
Description: An easy, clean and simple way to add code snippets to your site. No need to edit to your theme's functions.php file again!
|
21 |
Author: Shea Bunge
|
22 |
Author URI: http://bungeshea.com
|
23 |
+
Version: 2.0.1
|
24 |
License: MIT
|
25 |
License URI: license.txt
|
26 |
Text Domain: code-snippets
|
42 |
* @since 2.0
|
43 |
* @var string A PHP-standardized version number string
|
44 |
*/
|
45 |
+
define( 'CODE_SNIPPETS_VERSION', '2.0.1' );
|
46 |
|
47 |
/**
|
48 |
* The full path to the main file of this plugin
|
includes/db.php
CHANGED
@@ -52,20 +52,14 @@ function get_snippets_table_name( $multisite = null ) {
|
|
52 |
}
|
53 |
|
54 |
/**
|
55 |
-
* Create the snippet tables
|
|
|
56 |
*
|
57 |
-
* @since
|
58 |
-
* @
|
59 |
-
* @param
|
60 |
-
* @param boolean $always_create_table Always create the site-wide table if it doesn't exist
|
61 |
*/
|
62 |
-
function create_code_snippets_tables( $
|
63 |
-
|
64 |
-
/* Bail early if we've done this already */
|
65 |
-
if ( ! $redo && true === wp_cache_get( 'snippet_tables_created', 'code_snippets' ) ) {
|
66 |
-
return;
|
67 |
-
}
|
68 |
-
|
69 |
global $wpdb;
|
70 |
|
71 |
/* Set the table name variables if not yet defined */
|
@@ -73,40 +67,38 @@ function create_code_snippets_tables( $redo = false, $always_create_table = fals
|
|
73 |
set_snippets_table_vars();
|
74 |
}
|
75 |
|
76 |
-
/* Always create the network-wide snippet table */
|
77 |
if ( is_multisite() ) {
|
78 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
}
|
80 |
|
81 |
-
/*
|
82 |
-
|
|
|
|
|
|
|
83 |
create_code_snippets_table( $wpdb->snippets );
|
84 |
}
|
85 |
-
|
86 |
-
/* Set the flag so we don't have to do this again */
|
87 |
-
wp_cache_set( 'snippet_tables_created', true, 'code_snippets' );
|
88 |
}
|
89 |
|
90 |
/**
|
91 |
* Create a single snippet table
|
92 |
-
* if one of the same name does not already exist
|
93 |
*
|
94 |
* @since 1.6
|
95 |
* @access private
|
96 |
*
|
97 |
-
* @uses dbDelta() To
|
98 |
-
*
|
99 |
* @param string $table_name The name of the table to create
|
100 |
-
* @param boolean $force_creation Skip the table exists check
|
101 |
*/
|
102 |
-
function create_code_snippets_table( $table_name
|
103 |
-
require_once ABSPATH . 'wp-admin/includes/upgrade.php';
|
104 |
-
|
105 |
global $wpdb;
|
106 |
-
|
107 |
-
if ( ! $force_creation && $wpdb->get_var( "SHOW TABLES LIKE '$wpdb->snippets'" ) === $wpdb->snippets ) {
|
108 |
-
return; // bail if the table already exists
|
109 |
-
}
|
110 |
|
111 |
/* Set the database charset */
|
112 |
|
@@ -120,27 +112,19 @@ function create_code_snippets_table( $table_name, $force_creation = false ) {
|
|
120 |
$charset_collate .= " COLLATE $wpdb->collate";
|
121 |
}
|
122 |
|
123 |
-
/* Set the snippet data columns */
|
124 |
-
|
125 |
-
$table_columns = apply_filters( 'code_snippets/database_table_columns', array(
|
126 |
-
'name tinytext not null',
|
127 |
-
'description text',
|
128 |
-
'code longtext not null',
|
129 |
-
'tags longtext',
|
130 |
-
) );
|
131 |
-
|
132 |
-
$table_columns_sql = implode( ",\n", $table_columns ); // convert the array into SQL code
|
133 |
-
|
134 |
/* Create the database table */
|
135 |
|
136 |
$sql = "CREATE TABLE $table_name (
|
137 |
-
id
|
138 |
-
|
139 |
-
|
|
|
|
|
|
|
140 |
PRIMARY KEY (id)
|
141 |
) {$charset_collate};";
|
142 |
|
143 |
-
dbDelta(
|
144 |
|
145 |
do_action( 'code_snippets/create_table', $table_name );
|
146 |
}
|
52 |
}
|
53 |
|
54 |
/**
|
55 |
+
* Create the snippet tables
|
56 |
+
* This function will only execute once per page load, except if $redo is true
|
57 |
*
|
58 |
+
* @since 1.7.1
|
59 |
+
* @param boolean $redo Skip the already-done-this check
|
60 |
+
* @param boolean $upgrade Run the table creation code even if the table exists
|
|
|
61 |
*/
|
62 |
+
function create_code_snippets_tables( $upgrade = false ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
global $wpdb;
|
64 |
|
65 |
/* Set the table name variables if not yet defined */
|
67 |
set_snippets_table_vars();
|
68 |
}
|
69 |
|
|
|
70 |
if ( is_multisite() ) {
|
71 |
+
|
72 |
+
/* Check if the network snippets table exists */
|
73 |
+
$ms_table_exists = ( $wpdb->get_var( "SHOW TABLES LIKE '$wpdb->ms_snippets'" ) === $wpdb->ms_snippets );
|
74 |
+
|
75 |
+
/* Create the network snippets table if it doesn't exist, or upgrade it */
|
76 |
+
if ( $upgrade || ! $ms_table_exists ) {
|
77 |
+
create_code_snippets_table( $wpdb->ms_snippets );
|
78 |
+
}
|
79 |
}
|
80 |
|
81 |
+
/* Check if the site-specific table exists */
|
82 |
+
$table_exists = ( $wpdb->get_var( "SHOW TABLES LIKE '$wpdb->snippets'" ) === $wpdb->snippets );
|
83 |
+
|
84 |
+
/* Create the table if it doesn't exist, or upgrade it */
|
85 |
+
if ( $upgrade || ! $table_exists ) {
|
86 |
create_code_snippets_table( $wpdb->snippets );
|
87 |
}
|
|
|
|
|
|
|
88 |
}
|
89 |
|
90 |
/**
|
91 |
* Create a single snippet table
|
|
|
92 |
*
|
93 |
* @since 1.6
|
94 |
* @access private
|
95 |
*
|
96 |
+
* @uses dbDelta() To apply the SQL code
|
|
|
97 |
* @param string $table_name The name of the table to create
|
|
|
98 |
*/
|
99 |
+
function create_code_snippets_table( $table_name ) {
|
|
|
|
|
100 |
global $wpdb;
|
101 |
+
require_once ABSPATH . 'wp-admin/includes/upgrade.php';
|
|
|
|
|
|
|
102 |
|
103 |
/* Set the database charset */
|
104 |
|
112 |
$charset_collate .= " COLLATE $wpdb->collate";
|
113 |
}
|
114 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
/* Create the database table */
|
116 |
|
117 |
$sql = "CREATE TABLE $table_name (
|
118 |
+
id bigint(20) not null unsigned auto_increment,
|
119 |
+
name tinytext not null,
|
120 |
+
description text,
|
121 |
+
code longtext not null,
|
122 |
+
tags longtext,
|
123 |
+
active tinyint(1) not null default 0,
|
124 |
PRIMARY KEY (id)
|
125 |
) {$charset_collate};";
|
126 |
|
127 |
+
dbDelta( $sql );
|
128 |
|
129 |
do_action( 'code_snippets/create_table', $table_name );
|
130 |
}
|
includes/edit/edit.php
CHANGED
@@ -84,7 +84,7 @@ function code_snippets_load_single_menu() {
|
|
84 |
}
|
85 |
|
86 |
/* Create the snippet tables if they don't exist */
|
87 |
-
create_code_snippets_tables(
|
88 |
|
89 |
/* Load the screen help tabs */
|
90 |
require plugin_dir_path( __FILE__ ) . 'admin-help.php';
|
84 |
}
|
85 |
|
86 |
/* Create the snippet tables if they don't exist */
|
87 |
+
create_code_snippets_tables();
|
88 |
|
89 |
/* Load the screen help tabs */
|
90 |
require plugin_dir_path( __FILE__ ) . 'admin-help.php';
|
includes/import/import.php
CHANGED
@@ -93,7 +93,7 @@ function code_snippets_load_import_menu() {
|
|
93 |
}
|
94 |
|
95 |
/* Create the snippet tables if they don't exist */
|
96 |
-
create_code_snippets_tables(
|
97 |
|
98 |
/* Process import files */
|
99 |
|
93 |
}
|
94 |
|
95 |
/* Create the snippet tables if they don't exist */
|
96 |
+
create_code_snippets_tables();
|
97 |
|
98 |
/* Process import files */
|
99 |
|
includes/manage/class-list-table.php
CHANGED
@@ -53,8 +53,6 @@ class Code_Snippets_List_Table extends WP_List_Table {
|
|
53 |
'option' => 'snippets_per_page'
|
54 |
) );
|
55 |
|
56 |
-
add_filter( 'set-screen-option', array( $this, 'set_screen_option' ), 10, 3 );
|
57 |
-
|
58 |
/* Set the table columns hidden in Screen Options by default */
|
59 |
add_filter( "get_user_option_manage{$screen->id}columnshidden", array( $this, 'get_default_hidden_columns' ), 15 );
|
60 |
|
@@ -76,22 +74,6 @@ class Code_Snippets_List_Table extends WP_List_Table {
|
|
76 |
) );
|
77 |
}
|
78 |
|
79 |
-
/**
|
80 |
-
* Handles saving the user's snippets per page preference
|
81 |
-
*
|
82 |
-
* @param unknown $status
|
83 |
-
* @param string $option
|
84 |
-
* @param unknown $value
|
85 |
-
* @return unknown
|
86 |
-
*/
|
87 |
-
function set_screen_option( $status, $option, $value ) {
|
88 |
-
if ( 'snippets_per_page' === $option ) {
|
89 |
-
return $value;
|
90 |
-
}
|
91 |
-
|
92 |
-
return $status;
|
93 |
-
}
|
94 |
-
|
95 |
/**
|
96 |
* Define the output of all columns that have no callback function
|
97 |
* @param object $snippet The snippet object used for the current row
|
53 |
'option' => 'snippets_per_page'
|
54 |
) );
|
55 |
|
|
|
|
|
56 |
/* Set the table columns hidden in Screen Options by default */
|
57 |
add_filter( "get_user_option_manage{$screen->id}columnshidden", array( $this, 'get_default_hidden_columns' ), 15 );
|
58 |
|
74 |
) );
|
75 |
}
|
76 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
/**
|
78 |
* Define the output of all columns that have no callback function
|
79 |
* @param object $snippet The snippet object used for the current row
|
includes/manage/manage.php
CHANGED
@@ -71,7 +71,7 @@ function code_snippets_load_manage_menu() {
|
|
71 |
add_action( 'admin_enqueue_scripts', 'code_snippets_manage_menu_assets' );
|
72 |
|
73 |
/* Create the snippet tables if they don't exist */
|
74 |
-
create_code_snippets_tables(
|
75 |
|
76 |
/* Load the screen help tabs */
|
77 |
require plugin_dir_path( __FILE__ ) . 'admin-help.php';
|
@@ -104,3 +104,21 @@ function code_snippets_manage_menu_assets( $hook ) {
|
|
104 |
CODE_SNIPPETS_VERSION
|
105 |
);
|
106 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
add_action( 'admin_enqueue_scripts', 'code_snippets_manage_menu_assets' );
|
72 |
|
73 |
/* Create the snippet tables if they don't exist */
|
74 |
+
create_code_snippets_tables();
|
75 |
|
76 |
/* Load the screen help tabs */
|
77 |
require plugin_dir_path( __FILE__ ) . 'admin-help.php';
|
104 |
CODE_SNIPPETS_VERSION
|
105 |
);
|
106 |
}
|
107 |
+
|
108 |
+
/**
|
109 |
+
* Handles saving the user's snippets per page preference
|
110 |
+
*
|
111 |
+
* @param unknown $status
|
112 |
+
* @param string $option
|
113 |
+
* @param unknown $value
|
114 |
+
* @return unknown
|
115 |
+
*/
|
116 |
+
function code_snippets_set_screen_option( $status, $option, $value ) {
|
117 |
+
if ( 'snippets_per_page' === $option ) {
|
118 |
+
return $value;
|
119 |
+
}
|
120 |
+
|
121 |
+
return $status;
|
122 |
+
}
|
123 |
+
|
124 |
+
add_filter( 'set-screen-option', 'code_snippets_set_screen_option', 10, 3 );
|
includes/upgrade.php
CHANGED
@@ -17,6 +17,9 @@ function code_snippets_upgrader() {
|
|
17 |
/* Check if this is the first plugin run */
|
18 |
if ( ! $prev_version ) {
|
19 |
|
|
|
|
|
|
|
20 |
/* Register capabilities */
|
21 |
$role = get_role( apply_filters( 'code_snippets_role', 'administrator' ) );
|
22 |
$role->add_cap( apply_filters( 'code_snippets_cap', 'manage_snippets' ) );
|
@@ -25,6 +28,9 @@ function code_snippets_upgrader() {
|
|
25 |
/* Check if we have upgraded from an older version */
|
26 |
if ( version_compare( $prev_version, CODE_SNIPPETS_VERSION, '<' ) ) {
|
27 |
|
|
|
|
|
|
|
28 |
/* Update the plugin version stored in the database */
|
29 |
update_option( 'code_snippets_version', CODE_SNIPPETS_VERSION );
|
30 |
}
|
17 |
/* Check if this is the first plugin run */
|
18 |
if ( ! $prev_version ) {
|
19 |
|
20 |
+
/* Create the snippet tables */
|
21 |
+
create_code_snippets_tables();
|
22 |
+
|
23 |
/* Register capabilities */
|
24 |
$role = get_role( apply_filters( 'code_snippets_role', 'administrator' ) );
|
25 |
$role->add_cap( apply_filters( 'code_snippets_cap', 'manage_snippets' ) );
|
28 |
/* Check if we have upgraded from an older version */
|
29 |
if ( version_compare( $prev_version, CODE_SNIPPETS_VERSION, '<' ) ) {
|
30 |
|
31 |
+
/* Upgrade the database tables */
|
32 |
+
create_code_snippets_tables( true );
|
33 |
+
|
34 |
/* Update the plugin version stored in the database */
|
35 |
update_option( 'code_snippets_version', CODE_SNIPPETS_VERSION );
|
36 |
}
|
languages/code-snippets.pot
CHANGED
@@ -8,7 +8,7 @@ msgid ""
|
|
8 |
msgstr ""
|
9 |
"Project-Id-Version: code-snippets 2.0.0-dev\n"
|
10 |
"Report-Msgid-Bugs-To: \n"
|
11 |
-
"POT-Creation-Date: 2015-02-
|
12 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
@@ -251,8 +251,8 @@ msgstr ""
|
|
251 |
msgid "Save Changes and Deactivate"
|
252 |
msgstr ""
|
253 |
|
254 |
-
#: includes/edit/admin.php:109 includes/manage/class-list-table.php:
|
255 |
-
#: includes/manage/class-list-table.php:
|
256 |
msgid "Export"
|
257 |
msgstr ""
|
258 |
|
@@ -262,8 +262,8 @@ msgid ""
|
|
262 |
"'Cancel' to stop, 'OK' to delete."
|
263 |
msgstr ""
|
264 |
|
265 |
-
#: includes/edit/admin.php:121 includes/manage/class-list-table.php:
|
266 |
-
#: includes/manage/class-list-table.php:
|
267 |
msgid "Delete"
|
268 |
msgstr ""
|
269 |
|
@@ -271,11 +271,11 @@ msgstr ""
|
|
271 |
msgid "You are not authorized to access this page."
|
272 |
msgstr ""
|
273 |
|
274 |
-
#: includes/edit/edit.php:176 includes/manage/class-list-table.php:
|
275 |
msgid "Description"
|
276 |
msgstr ""
|
277 |
|
278 |
-
#: includes/edit/edit.php:205 includes/manage/class-list-table.php:
|
279 |
msgid "Tags"
|
280 |
msgstr ""
|
281 |
|
@@ -477,107 +477,107 @@ msgstr ""
|
|
477 |
msgid "Snippets per page"
|
478 |
msgstr ""
|
479 |
|
480 |
-
#: includes/manage/class-list-table.php:
|
481 |
-
#: includes/manage/class-list-table.php:
|
482 |
msgid "Network Deactivate"
|
483 |
msgstr ""
|
484 |
|
485 |
-
#: includes/manage/class-list-table.php:
|
486 |
-
#: includes/manage/class-list-table.php:
|
487 |
msgid "Deactivate"
|
488 |
msgstr ""
|
489 |
|
490 |
-
#: includes/manage/class-list-table.php:
|
491 |
-
#: includes/manage/class-list-table.php:
|
492 |
msgid "Network Activate"
|
493 |
msgstr ""
|
494 |
|
495 |
-
#: includes/manage/class-list-table.php:
|
496 |
-
#: includes/manage/class-list-table.php:
|
497 |
msgid "Activate"
|
498 |
msgstr ""
|
499 |
|
500 |
-
#: includes/manage/class-list-table.php:
|
501 |
msgid "Edit"
|
502 |
msgstr ""
|
503 |
|
504 |
-
#: includes/manage/class-list-table.php:
|
505 |
msgid ""
|
506 |
"You are about to permanently delete the selected item.\n"
|
507 |
"\t\t\t\t'Cancel' to stop, 'OK' to delete."
|
508 |
msgstr ""
|
509 |
|
510 |
-
#: includes/manage/class-list-table.php:
|
511 |
#, php-format
|
512 |
msgid "Untitled #%d"
|
513 |
msgstr ""
|
514 |
|
515 |
-
#: includes/manage/class-list-table.php:
|
516 |
msgid "Name"
|
517 |
msgstr ""
|
518 |
|
519 |
-
#: includes/manage/class-list-table.php:
|
520 |
msgid "ID"
|
521 |
msgstr ""
|
522 |
|
523 |
-
#: includes/manage/class-list-table.php:
|
524 |
msgid "Export to PHP"
|
525 |
msgstr ""
|
526 |
|
527 |
-
#: includes/manage/class-list-table.php:
|
528 |
#, php-format
|
529 |
msgid "All <span class=\"count\">(%s)</span>"
|
530 |
msgstr ""
|
531 |
|
532 |
-
#: includes/manage/class-list-table.php:
|
533 |
#, php-format
|
534 |
msgid "Active <span class=\"count\">(%s)</span>"
|
535 |
msgstr ""
|
536 |
|
537 |
-
#: includes/manage/class-list-table.php:
|
538 |
#, php-format
|
539 |
msgid "Recently Active <span class=\"count\">(%s)</span>"
|
540 |
msgstr ""
|
541 |
|
542 |
-
#: includes/manage/class-list-table.php:
|
543 |
#, php-format
|
544 |
msgid "Inactive <span class=\"count\">(%s)</span>"
|
545 |
msgstr ""
|
546 |
|
547 |
-
#: includes/manage/class-list-table.php:
|
548 |
msgid "Show all tags"
|
549 |
msgstr ""
|
550 |
|
551 |
-
#: includes/manage/class-list-table.php:
|
552 |
msgid "Filter"
|
553 |
msgstr ""
|
554 |
|
555 |
-
#: includes/manage/class-list-table.php:
|
556 |
msgid "Clear List"
|
557 |
msgstr ""
|
558 |
|
559 |
-
#: includes/manage/class-list-table.php:
|
560 |
#, php-format
|
561 |
msgid ""
|
562 |
"You do not appear to have any snippets available at this time. <a href=\"%s"
|
563 |
"\">Add New→</a>"
|
564 |
msgstr ""
|
565 |
|
566 |
-
#: includes/manage/class-list-table.php:
|
567 |
msgid "Search results"
|
568 |
msgstr ""
|
569 |
|
570 |
-
#: includes/manage/class-list-table.php:
|
571 |
#, php-format
|
572 |
msgid " for “%s”"
|
573 |
msgstr ""
|
574 |
|
575 |
-
#: includes/manage/class-list-table.php:
|
576 |
#, php-format
|
577 |
msgid " in tag “%s”"
|
578 |
msgstr ""
|
579 |
|
580 |
-
#: includes/manage/class-list-table.php:
|
581 |
msgid "Clear Filters"
|
582 |
msgstr ""
|
583 |
|
8 |
msgstr ""
|
9 |
"Project-Id-Version: code-snippets 2.0.0-dev\n"
|
10 |
"Report-Msgid-Bugs-To: \n"
|
11 |
+
"POT-Creation-Date: 2015-02-25 13:59+1030\n"
|
12 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
251 |
msgid "Save Changes and Deactivate"
|
252 |
msgstr ""
|
253 |
|
254 |
+
#: includes/edit/admin.php:109 includes/manage/class-list-table.php:139
|
255 |
+
#: includes/manage/class-list-table.php:264
|
256 |
msgid "Export"
|
257 |
msgstr ""
|
258 |
|
262 |
"'Cancel' to stop, 'OK' to delete."
|
263 |
msgstr ""
|
264 |
|
265 |
+
#: includes/edit/admin.php:121 includes/manage/class-list-table.php:148
|
266 |
+
#: includes/manage/class-list-table.php:265
|
267 |
msgid "Delete"
|
268 |
msgstr ""
|
269 |
|
271 |
msgid "You are not authorized to access this page."
|
272 |
msgstr ""
|
273 |
|
274 |
+
#: includes/edit/edit.php:176 includes/manage/class-list-table.php:224
|
275 |
msgid "Description"
|
276 |
msgstr ""
|
277 |
|
278 |
+
#: includes/edit/edit.php:205 includes/manage/class-list-table.php:225
|
279 |
msgid "Tags"
|
280 |
msgstr ""
|
281 |
|
477 |
msgid "Snippets per page"
|
478 |
msgstr ""
|
479 |
|
480 |
+
#: includes/manage/class-list-table.php:114
|
481 |
+
#: includes/manage/class-list-table.php:263
|
482 |
msgid "Network Deactivate"
|
483 |
msgstr ""
|
484 |
|
485 |
+
#: includes/manage/class-list-table.php:114
|
486 |
+
#: includes/manage/class-list-table.php:263
|
487 |
msgid "Deactivate"
|
488 |
msgstr ""
|
489 |
|
490 |
+
#: includes/manage/class-list-table.php:123
|
491 |
+
#: includes/manage/class-list-table.php:262
|
492 |
msgid "Network Activate"
|
493 |
msgstr ""
|
494 |
|
495 |
+
#: includes/manage/class-list-table.php:123
|
496 |
+
#: includes/manage/class-list-table.php:262
|
497 |
msgid "Activate"
|
498 |
msgstr ""
|
499 |
|
500 |
+
#: includes/manage/class-list-table.php:133
|
501 |
msgid "Edit"
|
502 |
msgstr ""
|
503 |
|
504 |
+
#: includes/manage/class-list-table.php:155
|
505 |
msgid ""
|
506 |
"You are about to permanently delete the selected item.\n"
|
507 |
"\t\t\t\t'Cancel' to stop, 'OK' to delete."
|
508 |
msgstr ""
|
509 |
|
510 |
+
#: includes/manage/class-list-table.php:163
|
511 |
#, php-format
|
512 |
msgid "Untitled #%d"
|
513 |
msgstr ""
|
514 |
|
515 |
+
#: includes/manage/class-list-table.php:222
|
516 |
msgid "Name"
|
517 |
msgstr ""
|
518 |
|
519 |
+
#: includes/manage/class-list-table.php:223
|
520 |
msgid "ID"
|
521 |
msgstr ""
|
522 |
|
523 |
+
#: includes/manage/class-list-table.php:266
|
524 |
msgid "Export to PHP"
|
525 |
msgstr ""
|
526 |
|
527 |
+
#: includes/manage/class-list-table.php:303
|
528 |
#, php-format
|
529 |
msgid "All <span class=\"count\">(%s)</span>"
|
530 |
msgstr ""
|
531 |
|
532 |
+
#: includes/manage/class-list-table.php:306
|
533 |
#, php-format
|
534 |
msgid "Active <span class=\"count\">(%s)</span>"
|
535 |
msgstr ""
|
536 |
|
537 |
+
#: includes/manage/class-list-table.php:309
|
538 |
#, php-format
|
539 |
msgid "Recently Active <span class=\"count\">(%s)</span>"
|
540 |
msgstr ""
|
541 |
|
542 |
+
#: includes/manage/class-list-table.php:312
|
543 |
#, php-format
|
544 |
msgid "Inactive <span class=\"count\">(%s)</span>"
|
545 |
msgstr ""
|
546 |
|
547 |
+
#: includes/manage/class-list-table.php:372
|
548 |
msgid "Show all tags"
|
549 |
msgstr ""
|
550 |
|
551 |
+
#: includes/manage/class-list-table.php:386
|
552 |
msgid "Filter"
|
553 |
msgstr ""
|
554 |
|
555 |
+
#: includes/manage/class-list-table.php:394
|
556 |
msgid "Clear List"
|
557 |
msgstr ""
|
558 |
|
559 |
+
#: includes/manage/class-list-table.php:542
|
560 |
#, php-format
|
561 |
msgid ""
|
562 |
"You do not appear to have any snippets available at this time. <a href=\"%s"
|
563 |
"\">Add New→</a>"
|
564 |
msgstr ""
|
565 |
|
566 |
+
#: includes/manage/class-list-table.php:766
|
567 |
msgid "Search results"
|
568 |
msgstr ""
|
569 |
|
570 |
+
#: includes/manage/class-list-table.php:769
|
571 |
#, php-format
|
572 |
msgid " for “%s”"
|
573 |
msgstr ""
|
574 |
|
575 |
+
#: includes/manage/class-list-table.php:773
|
576 |
#, php-format
|
577 |
msgid " in tag “%s”"
|
578 |
msgstr ""
|
579 |
|
580 |
+
#: includes/manage/class-list-table.php:779
|
581 |
msgid "Clear Filters"
|
582 |
msgstr ""
|
583 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://code-snippets.bungeshea.com/donate/
|
|
4 |
Tags: code-snippets, snippets, code, php, network, multisite
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 4.1.1
|
7 |
-
Stable tag: 2.0
|
8 |
License: MIT
|
9 |
License URI: license.txt
|
10 |
|
@@ -125,6 +125,11 @@ That's fantastic! Join me on [GitHub](http://github.com/bungeshea/code-snippets)
|
|
125 |
|
126 |
== Changelog ==
|
127 |
|
|
|
|
|
|
|
|
|
|
|
128 |
= 2.0 =
|
129 |
|
130 |
**Highlights:**
|
4 |
Tags: code-snippets, snippets, code, php, network, multisite
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 4.1.1
|
7 |
+
Stable tag: 2.0.1
|
8 |
License: MIT
|
9 |
License URI: license.txt
|
10 |
|
125 |
|
126 |
== Changelog ==
|
127 |
|
128 |
+
= 2.0.1 =
|
129 |
+
|
130 |
+
* Fix table creation code not running on upgrade
|
131 |
+
* Fix snippets per page option not saving
|
132 |
+
|
133 |
= 2.0 =
|
134 |
|
135 |
**Highlights:**
|