Plugin Directory

Changeset 1741779


Ignore:
Timestamp:
10/05/2017 05:27:03 PM (8 years ago)
Author:
postpostmodern
Message:

v1.0.2

Location:
taxonomy-taxi/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • taxonomy-taxi/trunk/_plugin.php

    r1741772 r1741779  
    44*   Plugin URI:     http://wordpress.org/plugins/taxonomy-taxi/
    55*   Description:    Show custom taxonomies in /wp-admin/edit.php automatically
    6 *   Version:        1.0.1
     6*   Version:        1.0.2
    77*   Author:         postpostmodern, pinecone-dot-website
    88*   Author URI:     http://rack.and.pinecone.website
  • taxonomy-taxi/trunk/composer.json

    r1688542 r1741779  
    1616            "Taxonomy_Taxi\\": "lib/Taxonomy_Taxi/"
    1717        }
    18     },
    19     "require": {
    20         "composer/installers": "~1.0"
    2118    }
    2219}
  • taxonomy-taxi/trunk/index.php

    r1688542 r1741779  
    55define( 'TAXONOMY_TAXI_FILE', __FILE__ );
    66
    7 require_once __DIR__.'/functions.php';
     7if (file_exists(__DIR__.'/vendor/autoload.php')) {
     8    require __DIR__.'/vendor/autoload.php';
     9}
    810
    911if (is_admin()) {
    1012    require __DIR__.'/admin.php';
    1113}
    12 
    13 /**
    14 *   PSR-4
    15 *   @param string
    16 */
    17 function autoload($class)
    18 {
    19     if (strpos($class, __NAMESPACE__) !== 0) {
    20         return;
    21     }
    22 
    23     $file = __DIR__ .'/lib/'. str_replace('\\', '/', $class) . '.php';
    24     if (file_exists($file)) {
    25         require $file;
    26     }
    27 }
    28 spl_autoload_register( __NAMESPACE__.'\autoload' );
Note: See TracChangeset for help on using the changeset viewer.