WordPress.org

Plugin Directory

Changeset 491594


Ignore:
Timestamp:
01/18/12 09:11:43 (2 years ago)
Author:
ramon fincken
Message:

New version

Location:
simple-add-pages-or-posts
Files:
7 added
2 edited

Legend:

Unmodified
Added
Removed
  • simple-add-pages-or-posts/trunk/form.php

    r321311 r491594  
    6262 
    6363            foreach ($titles as $title) { 
     64                // Remove whitespaces left and right             
    6465                $title = trim($title); 
    65                 $level = substr_count($title, '-'); 
    66  
    67                 $title = str_replace('-','',$title); 
    68                 // Remove spaces before and after titles 
    69                 $title = trim($title); 
     66 
     67                // Now remove minus'ses at left position 
     68                $title_ltrim = ltrim($title,'-'); 
     69                 
     70                // The level is the difference between trim and ltrim 
     71                $level = strlen($title)-strlen($title_ltrim); 
     72                 
     73                // Fix for minus within title like: "Some-title" 
     74                // $level = substr_count($title, '-'); 
     75                 
     76                // Now store title 
     77                $title = $title_ltrim; 
    7078 
    7179                // Init 
  • simple-add-pages-or-posts/trunk/readme.txt

    r394365 r491594  
    44Tags: admin,admins,add,mass,simple,easy,post,posts,page,pages,multiple,about,default 
    55Requires at least: 2.0.2 
    6 Tested up to: 3.1.3 
    7 Stable tag: 1.5 
     6Tested up to: 3.3.1 
     7Stable tag: 1.6 
    88 
    99Plugin to simply add multiple posts or pages at once by entering their titles. Handy tool if you have a new blog and want to quickly add pages.. 
     
    3131 
    3232== Changelog == 
     33= 1.6 = 
     34* Added: Support for minus within title like: "Some-title" 
     35 
    3336= 1.5 = 
    34 Bugfix: Framework did not work on multisite, is_admin() problem.<br>If anyone could help me with that ? :) 
     37* Bugfix: Framework did not work on multisite, is_admin() problem.<br>If anyone could help me with that ? :) 
    3538 
    3639= 1.2 = 
Note: See TracChangeset for help on using the changeset viewer.