Changeset 2728428
- Timestamp:
- 05/23/2022 10:21:06 AM (4 years ago)
- Location:
- schedule-terms
- Files:
-
- 2 added
- 18 edited
- 1 copied
-
tags/1.1.0 (copied) (copied from schedule-terms/trunk)
-
tags/1.1.0/includes/Plugin.php (modified) (1 diff)
-
tags/1.1.0/includes/Schedule.php (added)
-
tags/1.1.0/includes/Term_Manager.php (modified) (6 diffs)
-
tags/1.1.0/readme.txt (modified) (1 diff)
-
tags/1.1.0/schedule-terms.php (modified) (1 diff)
-
tags/1.1.0/vendor/autoload.php (modified) (1 diff)
-
tags/1.1.0/vendor/composer/autoload_classmap.php (modified) (1 diff)
-
tags/1.1.0/vendor/composer/autoload_real.php (modified) (3 diffs)
-
tags/1.1.0/vendor/composer/autoload_static.php (modified) (3 diffs)
-
tags/1.1.0/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/includes/Plugin.php (modified) (1 diff)
-
trunk/includes/Schedule.php (added)
-
trunk/includes/Term_Manager.php (modified) (6 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/schedule-terms.php (modified) (1 diff)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_classmap.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_real.php (modified) (3 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (3 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
schedule-terms/tags/1.1.0/includes/Plugin.php
r2727069 r2728428 17 17 */ 18 18 public function __construct() { 19 $meta_key = 'schedule_terms_active'; 19 $term_meta_key = 'schedule_terms_active'; 20 $post_meta_key = 'schedule_terms'; 20 21 new Assets(); 21 new Term_UI( __DIR__, $ meta_key );22 new Term_Meta( $ meta_key );23 new Post_Meta( 'schedule_terms');24 new Term_Manager( 'schedule_terms');22 new Term_UI( __DIR__, $term_meta_key ); 23 new Term_Meta( $term_meta_key ); 24 new Post_Meta( $post_meta_key ); 25 new Term_Manager( $post_meta_key, $term_meta_key ); 25 26 } 26 27 -
schedule-terms/tags/1.1.0/includes/Term_Manager.php
r2727069 r2728428 8 8 namespace HAMWORKS\WP\Schedule_Terms; 9 9 10 use WP_Term; 11 10 12 /** 11 13 * Term attach or detach from post. … … 14 16 15 17 /** 16 * Post meta namefor save term info.18 * Post meta key for save term info. 17 19 * 18 20 * @var string … … 20 22 private $post_meta_key; 21 23 24 25 /** 26 * Term meta key. 27 * 28 * @var string 29 */ 30 private $term_meta_key; 31 32 /** 33 * Timestamp. 34 * 35 * @var int 36 */ 37 private $time; 38 22 39 /** 23 40 * Constructor. 24 41 * 25 * @param string $post_meta_key Post meta key. 42 * @param string $post_meta_key Post meta key. 43 * @param string $term_meta_key Term meta key. 44 * @param int|null $time timestamp. 26 45 */ 27 public function __construct( string $post_meta_key ) {46 public function __construct( string $post_meta_key, string $term_meta_key, int $time = null ) { 28 47 $this->post_meta_key = $post_meta_key; 29 48 $this->term_meta_key = $term_meta_key; 49 $this->time = $time ?? time(); 50 add_action( 'wp_after_insert_post', array( $this, 'update_post_term_relations' ), 100, 1 ); 30 51 add_action( 'wp_after_insert_post', array( $this, 'update_schedule' ), 100, 1 ); 31 52 add_action( 'schedule_terms_update_post_term_relations', array( $this, 'update_post_term_relations' ), 10, 4 ); 53 } 54 55 /** 56 * Check term scheduling activated. 57 * 58 * @param WP_Term | null $term WP_Term. 59 * 60 * @return bool 61 */ 62 private function is_active_term( ?WP_Term $term ): bool { 63 if ( ! $term ) { 64 return false; 65 } 66 return ! ! get_term_meta( $term->term_id, $this->term_meta_key, true ); 32 67 } 33 68 … … 37 72 * @param int $post_id Post id. 38 73 * 39 * @return array74 * @return Schedule[] 40 75 */ 41 76 private function get_schedules( int $post_id ): array { … … 45 80 } 46 81 47 $attach_terms = array_filter( 48 $meta_values, 82 return array_map( 49 83 function ( $value ) { 50 return 'attach' === $value['type']; 51 } 84 return new Schedule( $value ); 85 }, 86 $meta_values 52 87 ); 53 54 $detach_terms = array_filter(55 $meta_values,56 function ( $value ) {57 return 'detach' === $value['type'];58 }59 );60 61 return array_merge( $attach_terms, $detach_terms );62 88 } 63 89 64 90 /** 65 * Get unixtime.91 * Filter schedules. 66 92 * 67 * @param string $iso_datetime ISO 8601 formatted datetime. 93 * @param Schedule[] $schedules Schedules. 94 * @param string $type Schedule type. 68 95 * 69 * @return int96 * @return Schedule[] 70 97 */ 71 private function get_timestamp( string $iso_datetime ): int { 72 try { 73 $date_time = new \DateTime( $iso_datetime ); 74 } catch ( \Exception $e ) { 75 wp_die( esc_html( $e->getMessage() ) ); 98 private function filter_schedules( array $schedules, string $type ): array { 99 return array_filter( 100 $schedules, 101 function ( $schedule ) use ( $type ) { 102 return $type === $schedule->get_type(); 103 } 104 ); 105 } 106 107 /** 108 * Update post term relations. 109 * 110 * @param int $post_id Post id. 111 * 112 * @return void 113 */ 114 public function update_post_term_relations( int $post_id ) { 115 $schedules = $this->get_schedules( $post_id ); 116 117 // Attach. 118 foreach ( $this->filter_schedules( $schedules, Schedule::ATTACH ) as $schedule ) { 119 if ( $schedule->is_expired( $this->time ) && $this->is_active_term( $schedule->get_wp_term() ) ) { 120 wp_set_post_terms( $post_id, array( $schedule->get_wp_term()->term_id ), $schedule->get_taxonomy(), true ); 121 } 76 122 } 77 123 78 return $date_time->getTimestamp(); 124 // Detach. 125 foreach ( $this->filter_schedules( $schedules, Schedule::DETACH ) as $schedule ) { 126 if ( $schedule->is_expired( $this->time ) && $this->is_active_term( $schedule->get_wp_term() ) ) { 127 wp_remove_object_terms( $post_id, $schedule->get_wp_term()->term_id, $schedule->get_taxonomy() ); 128 } 129 } 79 130 } 80 131 … … 85 136 */ 86 137 public function update_schedule( int $post_id ) { 87 wp_clear_scheduled_hook( 'schedule_terms_update_post_term_relations', array( $post_id ) ); 88 89 $this->update_post_term_relations( $post_id ); 90 91 foreach ( $this->get_schedules( $post_id ) as $meta_value ) { 92 if ( $meta_value ) { 93 $time = $this->get_timestamp( $meta_value['datetime'] ); 94 if ( time() < $time ) { 95 wp_schedule_single_event( $time, 'schedule_terms_update_post_term_relations', array( $post_id ) ); 96 } 97 } 98 } 99 } 100 101 /** 102 * Update post terms relation. 103 * 104 * @param int $post_id post ID. 105 * 106 * @return void 107 */ 108 public function update_post_term_relations( int $post_id ) { 109 foreach ( $this->get_schedules( $post_id ) as $meta_value ) { 110 if ( $meta_value ) { 111 $time = $this->get_timestamp( $meta_value['datetime'] ); 112 $term = get_term_by( 'slug', $meta_value['term'], $meta_value['taxonomy'] ); 113 if ( time() >= $time ) { 114 if ( 'attach' === $meta_value['type'] ) { 115 wp_set_post_terms( $post_id, array( $term->term_id ), $meta_value['taxonomy'], true ); 116 } else { 117 wp_remove_object_terms( $post_id, $term->term_id, $meta_value['taxonomy'] ); 118 } 119 } 138 foreach ( $this->get_schedules( $post_id ) as $schedule ) { 139 if ( ! $schedule->is_expired( $this->time ) ) { 140 $time = $schedule->get_timestamp(); 141 $params = array( $post_id, array( $schedule->get_type() ), $schedule->get_taxonomy(), $schedule->get_term() ); 142 wp_clear_scheduled_hook( 'schedule_terms_update_post_term_relations', $params ); 143 wp_schedule_single_event( $time, 'schedule_terms_update_post_term_relations', $params ); 120 144 } 121 145 } -
schedule-terms/tags/1.1.0/readme.txt
r2727307 r2728428 7 7 Tested up to: 5.9 8 8 Requires PHP: 7.3 9 Stable tag: 1. 0.69 Stable tag: 1.1.0 10 10 License: GPLv2 or later 11 11 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
schedule-terms/tags/1.1.0/schedule-terms.php
r2727307 r2728428 10 10 * Text Domain: schedule-terms 11 11 * Domain Path: /languages 12 * Version: 1. 0.612 * Version: 1.1.0 13 13 * 14 14 * @package Schedule_Terms -
schedule-terms/tags/1.1.0/vendor/autoload.php
r2727307 r2728428 10 10 require_once __DIR__ . '/composer/autoload_real.php'; 11 11 12 return ComposerAutoloaderInit 3ec1cecb83e54af786b71a28bfc07ff2::getLoader();12 return ComposerAutoloaderInitb8e8ca5e277ab7e8339552141195988c::getLoader(); -
schedule-terms/tags/1.1.0/vendor/composer/autoload_classmap.php
r2727069 r2728428 69 69 'HAMWORKS\\WP\\Schedule_Terms\\Plugin' => $baseDir . '/includes/Plugin.php', 70 70 'HAMWORKS\\WP\\Schedule_Terms\\Post_Meta' => $baseDir . '/includes/Post_Meta.php', 71 'HAMWORKS\\WP\\Schedule_Terms\\Schedule' => $baseDir . '/includes/Schedule.php', 71 72 'HAMWORKS\\WP\\Schedule_Terms\\Term\\UI' => $baseDir . '/includes/Term/UI.php', 72 73 'HAMWORKS\\WP\\Schedule_Terms\\Term_Manager' => $baseDir . '/includes/Term_Manager.php', -
schedule-terms/tags/1.1.0/vendor/composer/autoload_real.php
r2727307 r2728428 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 3ec1cecb83e54af786b71a28bfc07ff25 class ComposerAutoloaderInitb8e8ca5e277ab7e8339552141195988c 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 3ec1cecb83e54af786b71a28bfc07ff2', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInitb8e8ca5e277ab7e8339552141195988c', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 3ec1cecb83e54af786b71a28bfc07ff2', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInitb8e8ca5e277ab7e8339552141195988c', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit 3ec1cecb83e54af786b71a28bfc07ff2::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInitb8e8ca5e277ab7e8339552141195988c::getInitializer($loader)); 33 33 34 34 $loader->register(true); 35 35 36 $includeFiles = \Composer\Autoload\ComposerStaticInit 3ec1cecb83e54af786b71a28bfc07ff2::$files;36 $includeFiles = \Composer\Autoload\ComposerStaticInitb8e8ca5e277ab7e8339552141195988c::$files; 37 37 foreach ($includeFiles as $fileIdentifier => $file) { 38 composerRequire 3ec1cecb83e54af786b71a28bfc07ff2($fileIdentifier, $file);38 composerRequireb8e8ca5e277ab7e8339552141195988c($fileIdentifier, $file); 39 39 } 40 40 … … 48 48 * @return void 49 49 */ 50 function composerRequire 3ec1cecb83e54af786b71a28bfc07ff2($fileIdentifier, $file)50 function composerRequireb8e8ca5e277ab7e8339552141195988c($fileIdentifier, $file) 51 51 { 52 52 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
schedule-terms/tags/1.1.0/vendor/composer/autoload_static.php
r2727307 r2728428 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 3ec1cecb83e54af786b71a28bfc07ff27 class ComposerStaticInitb8e8ca5e277ab7e8339552141195988c 8 8 { 9 9 public static $files = array ( … … 139 139 'HAMWORKS\\WP\\Schedule_Terms\\Plugin' => __DIR__ . '/../..' . '/includes/Plugin.php', 140 140 'HAMWORKS\\WP\\Schedule_Terms\\Post_Meta' => __DIR__ . '/../..' . '/includes/Post_Meta.php', 141 'HAMWORKS\\WP\\Schedule_Terms\\Schedule' => __DIR__ . '/../..' . '/includes/Schedule.php', 141 142 'HAMWORKS\\WP\\Schedule_Terms\\Term\\UI' => __DIR__ . '/../..' . '/includes/Term/UI.php', 142 143 'HAMWORKS\\WP\\Schedule_Terms\\Term_Manager' => __DIR__ . '/../..' . '/includes/Term_Manager.php', … … 180 181 { 181 182 return \Closure::bind(function () use ($loader) { 182 $loader->prefixLengthsPsr4 = ComposerStaticInit 3ec1cecb83e54af786b71a28bfc07ff2::$prefixLengthsPsr4;183 $loader->prefixDirsPsr4 = ComposerStaticInit 3ec1cecb83e54af786b71a28bfc07ff2::$prefixDirsPsr4;184 $loader->classMap = ComposerStaticInit 3ec1cecb83e54af786b71a28bfc07ff2::$classMap;183 $loader->prefixLengthsPsr4 = ComposerStaticInitb8e8ca5e277ab7e8339552141195988c::$prefixLengthsPsr4; 184 $loader->prefixDirsPsr4 = ComposerStaticInitb8e8ca5e277ab7e8339552141195988c::$prefixDirsPsr4; 185 $loader->classMap = ComposerStaticInitb8e8ca5e277ab7e8339552141195988c::$classMap; 185 186 186 187 }, null, ClassLoader::class); -
schedule-terms/tags/1.1.0/vendor/composer/installed.php
r2727307 r2728428 1 1 <?php return array( 2 2 'root' => array( 3 'pretty_version' => '1. 0.6',4 'version' => '1. 0.6.0',3 'pretty_version' => '1.1.0', 4 'version' => '1.1.0.0', 5 5 'type' => 'library', 6 6 'install_path' => __DIR__ . '/../../', 7 7 'aliases' => array(), 8 'reference' => ' 563711b1554200c60d00b8d67d22e8256cf0dd7f',8 'reference' => 'f0e574653b6281a4c7195ddc75f5afe5e94de954', 9 9 'name' => 'hamworks/schedule-terms', 10 10 'dev' => false, … … 12 12 'versions' => array( 13 13 'hamworks/schedule-terms' => array( 14 'pretty_version' => '1. 0.6',15 'version' => '1. 0.6.0',14 'pretty_version' => '1.1.0', 15 'version' => '1.1.0.0', 16 16 'type' => 'library', 17 17 'install_path' => __DIR__ . '/../../', 18 18 'aliases' => array(), 19 'reference' => ' 563711b1554200c60d00b8d67d22e8256cf0dd7f',19 'reference' => 'f0e574653b6281a4c7195ddc75f5afe5e94de954', 20 20 'dev_requirement' => false, 21 21 ), -
schedule-terms/trunk/includes/Plugin.php
r2727069 r2728428 17 17 */ 18 18 public function __construct() { 19 $meta_key = 'schedule_terms_active'; 19 $term_meta_key = 'schedule_terms_active'; 20 $post_meta_key = 'schedule_terms'; 20 21 new Assets(); 21 new Term_UI( __DIR__, $ meta_key );22 new Term_Meta( $ meta_key );23 new Post_Meta( 'schedule_terms');24 new Term_Manager( 'schedule_terms');22 new Term_UI( __DIR__, $term_meta_key ); 23 new Term_Meta( $term_meta_key ); 24 new Post_Meta( $post_meta_key ); 25 new Term_Manager( $post_meta_key, $term_meta_key ); 25 26 } 26 27 -
schedule-terms/trunk/includes/Term_Manager.php
r2727069 r2728428 8 8 namespace HAMWORKS\WP\Schedule_Terms; 9 9 10 use WP_Term; 11 10 12 /** 11 13 * Term attach or detach from post. … … 14 16 15 17 /** 16 * Post meta namefor save term info.18 * Post meta key for save term info. 17 19 * 18 20 * @var string … … 20 22 private $post_meta_key; 21 23 24 25 /** 26 * Term meta key. 27 * 28 * @var string 29 */ 30 private $term_meta_key; 31 32 /** 33 * Timestamp. 34 * 35 * @var int 36 */ 37 private $time; 38 22 39 /** 23 40 * Constructor. 24 41 * 25 * @param string $post_meta_key Post meta key. 42 * @param string $post_meta_key Post meta key. 43 * @param string $term_meta_key Term meta key. 44 * @param int|null $time timestamp. 26 45 */ 27 public function __construct( string $post_meta_key ) {46 public function __construct( string $post_meta_key, string $term_meta_key, int $time = null ) { 28 47 $this->post_meta_key = $post_meta_key; 29 48 $this->term_meta_key = $term_meta_key; 49 $this->time = $time ?? time(); 50 add_action( 'wp_after_insert_post', array( $this, 'update_post_term_relations' ), 100, 1 ); 30 51 add_action( 'wp_after_insert_post', array( $this, 'update_schedule' ), 100, 1 ); 31 52 add_action( 'schedule_terms_update_post_term_relations', array( $this, 'update_post_term_relations' ), 10, 4 ); 53 } 54 55 /** 56 * Check term scheduling activated. 57 * 58 * @param WP_Term | null $term WP_Term. 59 * 60 * @return bool 61 */ 62 private function is_active_term( ?WP_Term $term ): bool { 63 if ( ! $term ) { 64 return false; 65 } 66 return ! ! get_term_meta( $term->term_id, $this->term_meta_key, true ); 32 67 } 33 68 … … 37 72 * @param int $post_id Post id. 38 73 * 39 * @return array74 * @return Schedule[] 40 75 */ 41 76 private function get_schedules( int $post_id ): array { … … 45 80 } 46 81 47 $attach_terms = array_filter( 48 $meta_values, 82 return array_map( 49 83 function ( $value ) { 50 return 'attach' === $value['type']; 51 } 84 return new Schedule( $value ); 85 }, 86 $meta_values 52 87 ); 53 54 $detach_terms = array_filter(55 $meta_values,56 function ( $value ) {57 return 'detach' === $value['type'];58 }59 );60 61 return array_merge( $attach_terms, $detach_terms );62 88 } 63 89 64 90 /** 65 * Get unixtime.91 * Filter schedules. 66 92 * 67 * @param string $iso_datetime ISO 8601 formatted datetime. 93 * @param Schedule[] $schedules Schedules. 94 * @param string $type Schedule type. 68 95 * 69 * @return int96 * @return Schedule[] 70 97 */ 71 private function get_timestamp( string $iso_datetime ): int { 72 try { 73 $date_time = new \DateTime( $iso_datetime ); 74 } catch ( \Exception $e ) { 75 wp_die( esc_html( $e->getMessage() ) ); 98 private function filter_schedules( array $schedules, string $type ): array { 99 return array_filter( 100 $schedules, 101 function ( $schedule ) use ( $type ) { 102 return $type === $schedule->get_type(); 103 } 104 ); 105 } 106 107 /** 108 * Update post term relations. 109 * 110 * @param int $post_id Post id. 111 * 112 * @return void 113 */ 114 public function update_post_term_relations( int $post_id ) { 115 $schedules = $this->get_schedules( $post_id ); 116 117 // Attach. 118 foreach ( $this->filter_schedules( $schedules, Schedule::ATTACH ) as $schedule ) { 119 if ( $schedule->is_expired( $this->time ) && $this->is_active_term( $schedule->get_wp_term() ) ) { 120 wp_set_post_terms( $post_id, array( $schedule->get_wp_term()->term_id ), $schedule->get_taxonomy(), true ); 121 } 76 122 } 77 123 78 return $date_time->getTimestamp(); 124 // Detach. 125 foreach ( $this->filter_schedules( $schedules, Schedule::DETACH ) as $schedule ) { 126 if ( $schedule->is_expired( $this->time ) && $this->is_active_term( $schedule->get_wp_term() ) ) { 127 wp_remove_object_terms( $post_id, $schedule->get_wp_term()->term_id, $schedule->get_taxonomy() ); 128 } 129 } 79 130 } 80 131 … … 85 136 */ 86 137 public function update_schedule( int $post_id ) { 87 wp_clear_scheduled_hook( 'schedule_terms_update_post_term_relations', array( $post_id ) ); 88 89 $this->update_post_term_relations( $post_id ); 90 91 foreach ( $this->get_schedules( $post_id ) as $meta_value ) { 92 if ( $meta_value ) { 93 $time = $this->get_timestamp( $meta_value['datetime'] ); 94 if ( time() < $time ) { 95 wp_schedule_single_event( $time, 'schedule_terms_update_post_term_relations', array( $post_id ) ); 96 } 97 } 98 } 99 } 100 101 /** 102 * Update post terms relation. 103 * 104 * @param int $post_id post ID. 105 * 106 * @return void 107 */ 108 public function update_post_term_relations( int $post_id ) { 109 foreach ( $this->get_schedules( $post_id ) as $meta_value ) { 110 if ( $meta_value ) { 111 $time = $this->get_timestamp( $meta_value['datetime'] ); 112 $term = get_term_by( 'slug', $meta_value['term'], $meta_value['taxonomy'] ); 113 if ( time() >= $time ) { 114 if ( 'attach' === $meta_value['type'] ) { 115 wp_set_post_terms( $post_id, array( $term->term_id ), $meta_value['taxonomy'], true ); 116 } else { 117 wp_remove_object_terms( $post_id, $term->term_id, $meta_value['taxonomy'] ); 118 } 119 } 138 foreach ( $this->get_schedules( $post_id ) as $schedule ) { 139 if ( ! $schedule->is_expired( $this->time ) ) { 140 $time = $schedule->get_timestamp(); 141 $params = array( $post_id, array( $schedule->get_type() ), $schedule->get_taxonomy(), $schedule->get_term() ); 142 wp_clear_scheduled_hook( 'schedule_terms_update_post_term_relations', $params ); 143 wp_schedule_single_event( $time, 'schedule_terms_update_post_term_relations', $params ); 120 144 } 121 145 } -
schedule-terms/trunk/readme.txt
r2727307 r2728428 7 7 Tested up to: 5.9 8 8 Requires PHP: 7.3 9 Stable tag: 1. 0.69 Stable tag: 1.1.0 10 10 License: GPLv2 or later 11 11 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
schedule-terms/trunk/schedule-terms.php
r2727307 r2728428 10 10 * Text Domain: schedule-terms 11 11 * Domain Path: /languages 12 * Version: 1. 0.612 * Version: 1.1.0 13 13 * 14 14 * @package Schedule_Terms -
schedule-terms/trunk/vendor/autoload.php
r2727307 r2728428 10 10 require_once __DIR__ . '/composer/autoload_real.php'; 11 11 12 return ComposerAutoloaderInit 3ec1cecb83e54af786b71a28bfc07ff2::getLoader();12 return ComposerAutoloaderInitb8e8ca5e277ab7e8339552141195988c::getLoader(); -
schedule-terms/trunk/vendor/composer/autoload_classmap.php
r2727069 r2728428 69 69 'HAMWORKS\\WP\\Schedule_Terms\\Plugin' => $baseDir . '/includes/Plugin.php', 70 70 'HAMWORKS\\WP\\Schedule_Terms\\Post_Meta' => $baseDir . '/includes/Post_Meta.php', 71 'HAMWORKS\\WP\\Schedule_Terms\\Schedule' => $baseDir . '/includes/Schedule.php', 71 72 'HAMWORKS\\WP\\Schedule_Terms\\Term\\UI' => $baseDir . '/includes/Term/UI.php', 72 73 'HAMWORKS\\WP\\Schedule_Terms\\Term_Manager' => $baseDir . '/includes/Term_Manager.php', -
schedule-terms/trunk/vendor/composer/autoload_real.php
r2727307 r2728428 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 3ec1cecb83e54af786b71a28bfc07ff25 class ComposerAutoloaderInitb8e8ca5e277ab7e8339552141195988c 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 3ec1cecb83e54af786b71a28bfc07ff2', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInitb8e8ca5e277ab7e8339552141195988c', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 3ec1cecb83e54af786b71a28bfc07ff2', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInitb8e8ca5e277ab7e8339552141195988c', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit 3ec1cecb83e54af786b71a28bfc07ff2::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInitb8e8ca5e277ab7e8339552141195988c::getInitializer($loader)); 33 33 34 34 $loader->register(true); 35 35 36 $includeFiles = \Composer\Autoload\ComposerStaticInit 3ec1cecb83e54af786b71a28bfc07ff2::$files;36 $includeFiles = \Composer\Autoload\ComposerStaticInitb8e8ca5e277ab7e8339552141195988c::$files; 37 37 foreach ($includeFiles as $fileIdentifier => $file) { 38 composerRequire 3ec1cecb83e54af786b71a28bfc07ff2($fileIdentifier, $file);38 composerRequireb8e8ca5e277ab7e8339552141195988c($fileIdentifier, $file); 39 39 } 40 40 … … 48 48 * @return void 49 49 */ 50 function composerRequire 3ec1cecb83e54af786b71a28bfc07ff2($fileIdentifier, $file)50 function composerRequireb8e8ca5e277ab7e8339552141195988c($fileIdentifier, $file) 51 51 { 52 52 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
schedule-terms/trunk/vendor/composer/autoload_static.php
r2727307 r2728428 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 3ec1cecb83e54af786b71a28bfc07ff27 class ComposerStaticInitb8e8ca5e277ab7e8339552141195988c 8 8 { 9 9 public static $files = array ( … … 139 139 'HAMWORKS\\WP\\Schedule_Terms\\Plugin' => __DIR__ . '/../..' . '/includes/Plugin.php', 140 140 'HAMWORKS\\WP\\Schedule_Terms\\Post_Meta' => __DIR__ . '/../..' . '/includes/Post_Meta.php', 141 'HAMWORKS\\WP\\Schedule_Terms\\Schedule' => __DIR__ . '/../..' . '/includes/Schedule.php', 141 142 'HAMWORKS\\WP\\Schedule_Terms\\Term\\UI' => __DIR__ . '/../..' . '/includes/Term/UI.php', 142 143 'HAMWORKS\\WP\\Schedule_Terms\\Term_Manager' => __DIR__ . '/../..' . '/includes/Term_Manager.php', … … 180 181 { 181 182 return \Closure::bind(function () use ($loader) { 182 $loader->prefixLengthsPsr4 = ComposerStaticInit 3ec1cecb83e54af786b71a28bfc07ff2::$prefixLengthsPsr4;183 $loader->prefixDirsPsr4 = ComposerStaticInit 3ec1cecb83e54af786b71a28bfc07ff2::$prefixDirsPsr4;184 $loader->classMap = ComposerStaticInit 3ec1cecb83e54af786b71a28bfc07ff2::$classMap;183 $loader->prefixLengthsPsr4 = ComposerStaticInitb8e8ca5e277ab7e8339552141195988c::$prefixLengthsPsr4; 184 $loader->prefixDirsPsr4 = ComposerStaticInitb8e8ca5e277ab7e8339552141195988c::$prefixDirsPsr4; 185 $loader->classMap = ComposerStaticInitb8e8ca5e277ab7e8339552141195988c::$classMap; 185 186 186 187 }, null, ClassLoader::class); -
schedule-terms/trunk/vendor/composer/installed.php
r2727307 r2728428 1 1 <?php return array( 2 2 'root' => array( 3 'pretty_version' => '1. 0.6',4 'version' => '1. 0.6.0',3 'pretty_version' => '1.1.0', 4 'version' => '1.1.0.0', 5 5 'type' => 'library', 6 6 'install_path' => __DIR__ . '/../../', 7 7 'aliases' => array(), 8 'reference' => ' 563711b1554200c60d00b8d67d22e8256cf0dd7f',8 'reference' => 'f0e574653b6281a4c7195ddc75f5afe5e94de954', 9 9 'name' => 'hamworks/schedule-terms', 10 10 'dev' => false, … … 12 12 'versions' => array( 13 13 'hamworks/schedule-terms' => array( 14 'pretty_version' => '1. 0.6',15 'version' => '1. 0.6.0',14 'pretty_version' => '1.1.0', 15 'version' => '1.1.0.0', 16 16 'type' => 'library', 17 17 'install_path' => __DIR__ . '/../../', 18 18 'aliases' => array(), 19 'reference' => ' 563711b1554200c60d00b8d67d22e8256cf0dd7f',19 'reference' => 'f0e574653b6281a4c7195ddc75f5afe5e94de954', 20 20 'dev_requirement' => false, 21 21 ),
Note: See TracChangeset
for help on using the changeset viewer.