Plugin Directory

Changeset 1854654


Ignore:
Timestamp:
04/07/2018 11:40:26 PM (8 years ago)
Author:
rich_
Message:

updated readme, changed textarea selector in js to avoid potential conflict with other modules

Location:
page-creator/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • page-creator/trunk/index.php

    r1391568 r1854654  
    11<?php
    22/*
    3 
    43Plugin name: Page Creator
    54Author: Richard Keller
    6 URI:
    7 Version: 1
     5URI: https://richardkeller.net
     6Version: 1.1
    87Description: Create pages quickly
    98*/
     
    6564    <div>
    6665       
    67     <textarea name="page_titles" id="" cols="100" rows="10"></textarea>
     66    <textarea id="page_creator_textarea" name="page_titles" id="" cols="100" rows="10"></textarea>
    6867    </div>
    6968   
     
    8483            $(document).on('click', '#create', function(e){
    8584                e.preventDefault();
    86 
    87                 console.log( $('textarea').val().split("\n") );
    88 
    89                 data.titles = $('textarea').val().split("\n");
     85                data.titles = $('#page_creator_textarea').val().split("\n");
    9086                data.parent_id = $('select[name="parent_page"]').val();
    9187
    9288                $.post(ajaxurl, data, function(response) {
    9389                    if( response == 'Pages created!' ) {
    94                         $('textarea').val('');
     90                        $('#page_creator_textarea').val('');
    9591                        alert(response);
    9692                    } else {
  • page-creator/trunk/readme.txt

    r1391575 r1854654  
    44Tags: pages
    55Requires at least: 3.0.1
    6 Tested up to: 4.3.1
    7 Stable tag: 4.3
     6Tested up to: 4.9.5
     7Stable tag: 1.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1414Create pages quickly by pasting a list of page titles in a textarea. Each title should be on one line.
    1515
    16 The plugin used ajax to create the pages. 
     16The plugin used ajax to create the pages.
    1717
    18 You can create subpages as well by selecting a parent page.
     18You can create subpages as well by selecting a parent page.
     19
     20To use the plugin goto "Setting -> Page Creator" in the WordPress Admin
    1921
    2022== Installation ==
    2123
    22 NA
     24Standard WordPress activation process.
    2325
    2426== Frequently Asked Questions ==
Note: See TracChangeset for help on using the changeset viewer.