Bulk Page Creator - Version 1.1.0

Version Description

Deprecated class constructor for PHP 7 support

=

Download this release

Release Info

Developer DaganLev
Plugin Icon wp plugin Bulk Page Creator
Version 1.1.0
Comparing to
See all releases

Code changes from version 1.0.9 to 1.1.0

Files changed (2) hide show
  1. bulk-page-creator.php +3 -4
  2. readme.txt +4 -1
bulk-page-creator.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Bulk Page Creator
4
  Plugin URI: http://solid-code.co.uk/2011/05/bulk-page-creator/
5
  Description: Allows you to create multiple pages in a batch/bulk manner saving time when initially setting up your WordPress site.
6
- Version: 1.0.9
7
  Author: Dagan Lev
8
  Author URI: http://solid-code.co.uk
9
 
@@ -28,9 +28,7 @@ if ( ! defined( 'ABSPATH' ) ) {
28
 
29
  if (!class_exists("sc_bulk_page_creator")) {
30
  class sc_bulk_page_creator{
31
- //the constructor that initializes the class
32
- function sc_bulk_page_creator() {
33
- }
34
  }
35
 
36
  //initialize the class to a variable
@@ -62,6 +60,7 @@ if (!class_exists("sc_bulk_page_creator")) {
62
  }
63
 
64
  function sc_bpc_page_create(){
 
65
  if(isset($_POST['sc-pages'])&&$_POST['sc-pages']!=''){
66
  //form submitted
67
  if(preg_match_all('/(\d+\|(-|new)?\d+\|[^\|]*\|[^\n]*)/',$_POST['sc-pages'],$match_pg)){
3
  Plugin Name: Bulk Page Creator
4
  Plugin URI: http://solid-code.co.uk/2011/05/bulk-page-creator/
5
  Description: Allows you to create multiple pages in a batch/bulk manner saving time when initially setting up your WordPress site.
6
+ Version: 1.1.0
7
  Author: Dagan Lev
8
  Author URI: http://solid-code.co.uk
9
 
28
 
29
  if (!class_exists("sc_bulk_page_creator")) {
30
  class sc_bulk_page_creator{
31
+ //Empty class
 
 
32
  }
33
 
34
  //initialize the class to a variable
60
  }
61
 
62
  function sc_bpc_page_create(){
63
+ if(!current_user_can('manage_options')) exit('Restricted');
64
  if(isset($_POST['sc-pages'])&&$_POST['sc-pages']!=''){
65
  //form submitted
66
  if(preg_match_all('/(\d+\|(-|new)?\d+\|[^\|]*\|[^\n]*)/',$_POST['sc-pages'],$match_pg)){
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: DaganLev
3
  Tags: Solid Code, Dagan Lev, Bulk Page Creator, batch action, add pages, add posts
4
  Requires at least: 3.1
5
- Tested up to: 4.1
6
  Stable tag: trunk
7
 
8
  Allows you to create multiple pages in a batch/bulk manner saving time when initially setting up your WordPress site
@@ -49,6 +49,9 @@ Added template support - if templates exist in the theme will create a template
49
  = 1.0.9 =
50
  Added support for HTTPS logins
51
 
 
 
 
52
  == Screenshots ==
53
 
54
  1. View of bulk page creator screen
2
  Contributors: DaganLev
3
  Tags: Solid Code, Dagan Lev, Bulk Page Creator, batch action, add pages, add posts
4
  Requires at least: 3.1
5
+ Tested up to: 4.4.2
6
  Stable tag: trunk
7
 
8
  Allows you to create multiple pages in a batch/bulk manner saving time when initially setting up your WordPress site
49
  = 1.0.9 =
50
  Added support for HTTPS logins
51
 
52
+ = 1.1.0 =
53
+ Deprecated class constructor for PHP 7 support
54
+
55
  == Screenshots ==
56
 
57
  1. View of bulk page creator screen