Plugin Directory

Changeset 1379241


Ignore:
Timestamp:
03/26/2016 06:20:43 AM (10 years ago)
Author:
Hermes Development
Message:

0.2.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • static-snapshot/trunk/main.php

    r1367903 r1379241  
    55Plugin URI: http://staticsnapshot.com
    66Description: Create a static version of your WordPress site.
    7 Version: 0.2.0
     7Version: 0.2.1
    88Author: Hermes Development
    99Author URI: http://hermesdevelopment.com
     
    333333 */
    334334function get_backtrack($root_path, $file, $pattern) {
    335   $path_after_root = explode($root_path, $file)[1];
     335  $path_after_root_array = explode($root_path, $file);
     336  $path_after_root = $path_after_root_array[1];
    336337  $count = count(explode('/', $path_after_root)) - 1; // don't beginning
    337338  $count = $count - 1; // don't count end
Note: See TracChangeset for help on using the changeset viewer.