Skip to content

Commit 917d610

Browse files
committed
Updated to version 1.3.2
1 parent abebb26 commit 917d610

15 files changed

+103
-42
lines changed

code-snippets.php

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22
/*
33
Plugin Name: Code Snippets
4-
Plugin URI: http://bungeshea.wordpress.com/plugins/code-snippets/
5-
Description: Provides an easy-to-manage GUI interface for adding code snippets to your blog.
4+
Plugin URI: http://cs.bungeshea.com
5+
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!
66
Author: Shea Bunge
7-
Version: 1.3
8-
Author URI: http://bungeshea.wordpress.com/
7+
Version: 1.3.2
8+
Author URI: http://bungeshea.com
99
License: GPLv3 or later
1010
1111
Code Snippets - WordPress Plugin
@@ -26,19 +26,14 @@
2626
*/
2727

2828
// Exit if accessed directly
29-
if ( !defined( 'ABSPATH' ) ) exit;
29+
if ( ! defined( 'ABSPATH' ) ) exit;
3030

31-
if( !class_exists('Code_Snippets') ) :
31+
if( ! class_exists('Code_Snippets') ) :
3232

3333
class Code_Snippets {
3434

3535
public $table = 'snippets';
36-
public $version = '1.3';
37-
38-
public $file;
39-
public $plugin_dir;
40-
public $plugin_url;
41-
public $basename;
36+
public $version = '1.3.2';
4237

4338
var $admin_manage_url = 'snippets';
4439
var $admin_edit_url = 'snippet';
@@ -136,7 +131,7 @@ function admin_manage_loader() {
136131
if( $_GET['action'] == 'export' )
137132
cs_export( $_GET['id'], $this->table );
138133

139-
require_once $this->plugin_dir . 'includes/help/admin-manage-help.php';
134+
include $this->plugin_dir . 'includes/help/admin-manage-help.php';
140135
}
141136

142137
function admin_edit_title( $title ) {
@@ -148,11 +143,11 @@ function admin_edit_loader() {
148143
if( isset( $_GET['action'] ) && @$_GET['action'] == 'edit' )
149144
add_filter( 'admin_title', array( $this, 'admin_edit_title' ) );
150145

151-
require_once $this->plugin_dir . 'includes/help/admin-edit-help.php';
146+
include $this->plugin_dir . 'includes/help/admin-edit-help.php';
152147
}
153148

154149
function admin_import_loader() {
155-
require_once $this->plugin_dir . 'includes/help/admin-import-help.php';
150+
include $this->plugin_dir . 'includes/help/admin-import-help.php';
156151
}
157152

158153
function bulk_action( $action, $ids ) {
@@ -209,7 +204,7 @@ function admin_manage() {
209204
}
210205
}
211206

212-
require_once $this->plugin_dir . 'includes/admin-manage.php';
207+
require $this->plugin_dir . 'includes/admin/admin-manage.php';
213208
}
214209

215210
function admin_edit() {
@@ -236,7 +231,7 @@ function admin_edit() {
236231
$msg = 'Please provide a name for the snippet and the code.';
237232
}
238233
}
239-
require_once $this->plugin_dir . 'includes/admin-edit.php';
234+
require $this->plugin_dir . 'includes/admin/admin-edit.php';
240235
}
241236

242237
function admin_import() {
@@ -249,7 +244,7 @@ function admin_import() {
249244

250245
$msg = 'Imported ' . $xml->count() . ' snippets';
251246
}
252-
require_once( $this->plugin_dir . 'includes/admin-import.php');
247+
require $this->plugin_dir . 'includes/admin/admin-import.php';
253248
}
254249

255250
function settings_link( $links ) {
@@ -260,7 +255,7 @@ function settings_link( $links ) {
260255
function plugin_meta( $links, $file ) {
261256
if ( $file == $this->basename ) {
262257
return array_merge( $links, array(
263-
'<a href="http://wordpress.org/support/plugin/code-snippets/" title="Visit the WordPress.org plugin page">' . __( 'About' ) . '</a>',
258+
'<a href="http://wordpress.org/extend/plugins/code-snippets/" title="Visit the WordPress.org plugin page">' . __( 'About' ) . '</a>',
264259
'<a href="http://wordpress.org/support/plugin/code-snippets/" title="Visit the support forums">' . __( 'Support' ) . '</a>'
265260
) );
266261
}

css/index.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
/**
4+
* Do not modify the files in this folder.
5+
*/
6+
7+
?>

images/index.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
/**
4+
* Do not modify the files in this folder.
5+
*/
6+
7+
?>
File renamed without changes.
File renamed without changes.
File renamed without changes.

includes/admin/index.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
/**
4+
* Do not modify the files in this folder.
5+
*/
6+
7+
?>

includes/edit_area/index.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
/**
4+
* Do not modify the files in this folder.
5+
*/
6+
7+
?>

includes/help/admin-edit-help.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@
4343
"<p><strong>For more information:</strong></p>" .
4444
"<p><a href='http://wordpress.org/extend/plugins/code-snippets' target='_blank'>WordPress Extend</a></p>" .
4545
"<p><a href='http://wordpress.org/support/plugin/code-snippets' target='_blank'>Support Forums</a></p>" .
46-
"<p><a href='http://bungeshea.wordpress.com/plugins/code-snippets' target='_blank'>SheaPress</a></p>"
46+
"<p><a href='http://cs.bungeshea.com' target='_blank'>SheaPress</a></p>"
4747
);

includes/help/admin-import-help.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@
2525
"<p><strong>For more information:</strong></p>" .
2626
"<p><a href='http://wordpress.org/extend/plugins/code-snippets' target='_blank'>WordPress Extend</a></p>" .
2727
"<p><a href='http://wordpress.org/support/plugin/code-snippets' target='_blank'>Support Forums</a></p>" .
28-
"<p><a href='http://bungeshea.wordpress.com/plugins/code-snippets' target='_blank'>SheaPress</a></p>"
28+
"<p><a href='http://cs.bungeshea.com' target='_blank'>SheaPress</a></p>"
2929
);

0 commit comments

Comments
 (0)