Changeset 1741779
- Timestamp:
- 10/05/2017 05:27:03 PM (8 years ago)
- Location:
- taxonomy-taxi/trunk
- Files:
-
- 3 edited
-
_plugin.php (modified) (1 diff)
-
composer.json (modified) (1 diff)
-
index.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
taxonomy-taxi/trunk/_plugin.php
r1741772 r1741779 4 4 * Plugin URI: http://wordpress.org/plugins/taxonomy-taxi/ 5 5 * Description: Show custom taxonomies in /wp-admin/edit.php automatically 6 * Version: 1.0. 16 * Version: 1.0.2 7 7 * Author: postpostmodern, pinecone-dot-website 8 8 * Author URI: http://rack.and.pinecone.website -
taxonomy-taxi/trunk/composer.json
r1688542 r1741779 16 16 "Taxonomy_Taxi\\": "lib/Taxonomy_Taxi/" 17 17 } 18 },19 "require": {20 "composer/installers": "~1.0"21 18 } 22 19 } -
taxonomy-taxi/trunk/index.php
r1688542 r1741779 5 5 define( 'TAXONOMY_TAXI_FILE', __FILE__ ); 6 6 7 require_once __DIR__.'/functions.php'; 7 if (file_exists(__DIR__.'/vendor/autoload.php')) { 8 require __DIR__.'/vendor/autoload.php'; 9 } 8 10 9 11 if (is_admin()) { 10 12 require __DIR__.'/admin.php'; 11 13 } 12 13 /**14 * PSR-415 * @param string16 */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.