Plugin Directory

Changeset 2728428


Ignore:
Timestamp:
05/23/2022 10:21:06 AM (4 years ago)
Author:
hamworks
Message:

Update to version 1.1.0 from GitHub

Location:
schedule-terms
Files:
2 added
18 edited
1 copied

Legend:

Unmodified
Added
Removed
  • schedule-terms/tags/1.1.0/includes/Plugin.php

    r2727069 r2728428  
    1717     */
    1818    public function __construct() {
    19         $meta_key = 'schedule_terms_active';
     19        $term_meta_key = 'schedule_terms_active';
     20        $post_meta_key = 'schedule_terms';
    2021        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 );
    2526    }
    2627
  • schedule-terms/tags/1.1.0/includes/Term_Manager.php

    r2727069 r2728428  
    88namespace HAMWORKS\WP\Schedule_Terms;
    99
     10use WP_Term;
     11
    1012/**
    1113 * Term attach or detach from post.
     
    1416
    1517    /**
    16      * Post meta name for save term info.
     18     * Post meta key for save term info.
    1719     *
    1820     * @var string
     
    2022    private $post_meta_key;
    2123
     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
    2239    /**
    2340     * Constructor.
    2441     *
    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.
    2645     */
    27     public function __construct( string $post_meta_key ) {
     46    public function __construct( string $post_meta_key, string $term_meta_key, int $time = null ) {
    2847        $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 );
    3051        add_action( 'wp_after_insert_post', array( $this, 'update_schedule' ), 100, 1 );
    3152        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 );
    3267    }
    3368
     
    3772     * @param int $post_id Post id.
    3873     *
    39      * @return array
     74     * @return Schedule[]
    4075     */
    4176    private function get_schedules( int $post_id ): array {
     
    4580        }
    4681
    47         $attach_terms = array_filter(
    48             $meta_values,
     82        return array_map(
    4983            function ( $value ) {
    50                 return 'attach' === $value['type'];
    51             }
     84                return new Schedule( $value );
     85            },
     86            $meta_values
    5287        );
    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 );
    6288    }
    6389
    6490    /**
    65      * Get unixtime.
     91     * Filter schedules.
    6692     *
    67      * @param string $iso_datetime ISO 8601 formatted datetime.
     93     * @param Schedule[] $schedules Schedules.
     94     * @param string     $type Schedule type.
    6895     *
    69      * @return int
     96     * @return Schedule[]
    7097     */
    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            }
    76122        }
    77123
    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        }
    79130    }
    80131
     
    85136     */
    86137    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 );
    120144            }
    121145        }
  • schedule-terms/tags/1.1.0/readme.txt

    r2727307 r2728428  
    77Tested up to:      5.9 
    88Requires PHP:      7.3 
    9 Stable tag:        1.0.6
     9Stable tag:        1.1.0
    1010License:           GPLv2 or later 
    1111License URI:       https://www.gnu.org/licenses/gpl-2.0.html 
  • schedule-terms/tags/1.1.0/schedule-terms.php

    r2727307 r2728428  
    1010 * Text Domain:     schedule-terms
    1111 * Domain Path:     /languages
    12  * Version: 1.0.6
     12 * Version: 1.1.0
    1313 *
    1414 * @package Schedule_Terms
  • schedule-terms/tags/1.1.0/vendor/autoload.php

    r2727307 r2728428  
    1010require_once __DIR__ . '/composer/autoload_real.php';
    1111
    12 return ComposerAutoloaderInit3ec1cecb83e54af786b71a28bfc07ff2::getLoader();
     12return ComposerAutoloaderInitb8e8ca5e277ab7e8339552141195988c::getLoader();
  • schedule-terms/tags/1.1.0/vendor/composer/autoload_classmap.php

    r2727069 r2728428  
    6969    'HAMWORKS\\WP\\Schedule_Terms\\Plugin' => $baseDir . '/includes/Plugin.php',
    7070    'HAMWORKS\\WP\\Schedule_Terms\\Post_Meta' => $baseDir . '/includes/Post_Meta.php',
     71    'HAMWORKS\\WP\\Schedule_Terms\\Schedule' => $baseDir . '/includes/Schedule.php',
    7172    'HAMWORKS\\WP\\Schedule_Terms\\Term\\UI' => $baseDir . '/includes/Term/UI.php',
    7273    'HAMWORKS\\WP\\Schedule_Terms\\Term_Manager' => $baseDir . '/includes/Term_Manager.php',
  • schedule-terms/tags/1.1.0/vendor/composer/autoload_real.php

    r2727307 r2728428  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit3ec1cecb83e54af786b71a28bfc07ff2
     5class ComposerAutoloaderInitb8e8ca5e277ab7e8339552141195988c
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit3ec1cecb83e54af786b71a28bfc07ff2', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInitb8e8ca5e277ab7e8339552141195988c', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit3ec1cecb83e54af786b71a28bfc07ff2', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInitb8e8ca5e277ab7e8339552141195988c', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInit3ec1cecb83e54af786b71a28bfc07ff2::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInitb8e8ca5e277ab7e8339552141195988c::getInitializer($loader));
    3333
    3434        $loader->register(true);
    3535
    36         $includeFiles = \Composer\Autoload\ComposerStaticInit3ec1cecb83e54af786b71a28bfc07ff2::$files;
     36        $includeFiles = \Composer\Autoload\ComposerStaticInitb8e8ca5e277ab7e8339552141195988c::$files;
    3737        foreach ($includeFiles as $fileIdentifier => $file) {
    38             composerRequire3ec1cecb83e54af786b71a28bfc07ff2($fileIdentifier, $file);
     38            composerRequireb8e8ca5e277ab7e8339552141195988c($fileIdentifier, $file);
    3939        }
    4040
     
    4848 * @return void
    4949 */
    50 function composerRequire3ec1cecb83e54af786b71a28bfc07ff2($fileIdentifier, $file)
     50function composerRequireb8e8ca5e277ab7e8339552141195988c($fileIdentifier, $file)
    5151{
    5252    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • schedule-terms/tags/1.1.0/vendor/composer/autoload_static.php

    r2727307 r2728428  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit3ec1cecb83e54af786b71a28bfc07ff2
     7class ComposerStaticInitb8e8ca5e277ab7e8339552141195988c
    88{
    99    public static $files = array (
     
    139139        'HAMWORKS\\WP\\Schedule_Terms\\Plugin' => __DIR__ . '/../..' . '/includes/Plugin.php',
    140140        'HAMWORKS\\WP\\Schedule_Terms\\Post_Meta' => __DIR__ . '/../..' . '/includes/Post_Meta.php',
     141        'HAMWORKS\\WP\\Schedule_Terms\\Schedule' => __DIR__ . '/../..' . '/includes/Schedule.php',
    141142        'HAMWORKS\\WP\\Schedule_Terms\\Term\\UI' => __DIR__ . '/../..' . '/includes/Term/UI.php',
    142143        'HAMWORKS\\WP\\Schedule_Terms\\Term_Manager' => __DIR__ . '/../..' . '/includes/Term_Manager.php',
     
    180181    {
    181182        return \Closure::bind(function () use ($loader) {
    182             $loader->prefixLengthsPsr4 = ComposerStaticInit3ec1cecb83e54af786b71a28bfc07ff2::$prefixLengthsPsr4;
    183             $loader->prefixDirsPsr4 = ComposerStaticInit3ec1cecb83e54af786b71a28bfc07ff2::$prefixDirsPsr4;
    184             $loader->classMap = ComposerStaticInit3ec1cecb83e54af786b71a28bfc07ff2::$classMap;
     183            $loader->prefixLengthsPsr4 = ComposerStaticInitb8e8ca5e277ab7e8339552141195988c::$prefixLengthsPsr4;
     184            $loader->prefixDirsPsr4 = ComposerStaticInitb8e8ca5e277ab7e8339552141195988c::$prefixDirsPsr4;
     185            $loader->classMap = ComposerStaticInitb8e8ca5e277ab7e8339552141195988c::$classMap;
    185186
    186187        }, null, ClassLoader::class);
  • schedule-terms/tags/1.1.0/vendor/composer/installed.php

    r2727307 r2728428  
    11<?php return array(
    22    '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',
    55        'type' => 'library',
    66        'install_path' => __DIR__ . '/../../',
    77        'aliases' => array(),
    8         'reference' => '563711b1554200c60d00b8d67d22e8256cf0dd7f',
     8        'reference' => 'f0e574653b6281a4c7195ddc75f5afe5e94de954',
    99        'name' => 'hamworks/schedule-terms',
    1010        'dev' => false,
     
    1212    'versions' => array(
    1313        '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',
    1616            'type' => 'library',
    1717            'install_path' => __DIR__ . '/../../',
    1818            'aliases' => array(),
    19             'reference' => '563711b1554200c60d00b8d67d22e8256cf0dd7f',
     19            'reference' => 'f0e574653b6281a4c7195ddc75f5afe5e94de954',
    2020            'dev_requirement' => false,
    2121        ),
  • schedule-terms/trunk/includes/Plugin.php

    r2727069 r2728428  
    1717     */
    1818    public function __construct() {
    19         $meta_key = 'schedule_terms_active';
     19        $term_meta_key = 'schedule_terms_active';
     20        $post_meta_key = 'schedule_terms';
    2021        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 );
    2526    }
    2627
  • schedule-terms/trunk/includes/Term_Manager.php

    r2727069 r2728428  
    88namespace HAMWORKS\WP\Schedule_Terms;
    99
     10use WP_Term;
     11
    1012/**
    1113 * Term attach or detach from post.
     
    1416
    1517    /**
    16      * Post meta name for save term info.
     18     * Post meta key for save term info.
    1719     *
    1820     * @var string
     
    2022    private $post_meta_key;
    2123
     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
    2239    /**
    2340     * Constructor.
    2441     *
    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.
    2645     */
    27     public function __construct( string $post_meta_key ) {
     46    public function __construct( string $post_meta_key, string $term_meta_key, int $time = null ) {
    2847        $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 );
    3051        add_action( 'wp_after_insert_post', array( $this, 'update_schedule' ), 100, 1 );
    3152        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 );
    3267    }
    3368
     
    3772     * @param int $post_id Post id.
    3873     *
    39      * @return array
     74     * @return Schedule[]
    4075     */
    4176    private function get_schedules( int $post_id ): array {
     
    4580        }
    4681
    47         $attach_terms = array_filter(
    48             $meta_values,
     82        return array_map(
    4983            function ( $value ) {
    50                 return 'attach' === $value['type'];
    51             }
     84                return new Schedule( $value );
     85            },
     86            $meta_values
    5287        );
    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 );
    6288    }
    6389
    6490    /**
    65      * Get unixtime.
     91     * Filter schedules.
    6692     *
    67      * @param string $iso_datetime ISO 8601 formatted datetime.
     93     * @param Schedule[] $schedules Schedules.
     94     * @param string     $type Schedule type.
    6895     *
    69      * @return int
     96     * @return Schedule[]
    7097     */
    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            }
    76122        }
    77123
    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        }
    79130    }
    80131
     
    85136     */
    86137    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 );
    120144            }
    121145        }
  • schedule-terms/trunk/readme.txt

    r2727307 r2728428  
    77Tested up to:      5.9 
    88Requires PHP:      7.3 
    9 Stable tag:        1.0.6
     9Stable tag:        1.1.0
    1010License:           GPLv2 or later 
    1111License URI:       https://www.gnu.org/licenses/gpl-2.0.html 
  • schedule-terms/trunk/schedule-terms.php

    r2727307 r2728428  
    1010 * Text Domain:     schedule-terms
    1111 * Domain Path:     /languages
    12  * Version: 1.0.6
     12 * Version: 1.1.0
    1313 *
    1414 * @package Schedule_Terms
  • schedule-terms/trunk/vendor/autoload.php

    r2727307 r2728428  
    1010require_once __DIR__ . '/composer/autoload_real.php';
    1111
    12 return ComposerAutoloaderInit3ec1cecb83e54af786b71a28bfc07ff2::getLoader();
     12return ComposerAutoloaderInitb8e8ca5e277ab7e8339552141195988c::getLoader();
  • schedule-terms/trunk/vendor/composer/autoload_classmap.php

    r2727069 r2728428  
    6969    'HAMWORKS\\WP\\Schedule_Terms\\Plugin' => $baseDir . '/includes/Plugin.php',
    7070    'HAMWORKS\\WP\\Schedule_Terms\\Post_Meta' => $baseDir . '/includes/Post_Meta.php',
     71    'HAMWORKS\\WP\\Schedule_Terms\\Schedule' => $baseDir . '/includes/Schedule.php',
    7172    'HAMWORKS\\WP\\Schedule_Terms\\Term\\UI' => $baseDir . '/includes/Term/UI.php',
    7273    'HAMWORKS\\WP\\Schedule_Terms\\Term_Manager' => $baseDir . '/includes/Term_Manager.php',
  • schedule-terms/trunk/vendor/composer/autoload_real.php

    r2727307 r2728428  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit3ec1cecb83e54af786b71a28bfc07ff2
     5class ComposerAutoloaderInitb8e8ca5e277ab7e8339552141195988c
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit3ec1cecb83e54af786b71a28bfc07ff2', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInitb8e8ca5e277ab7e8339552141195988c', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit3ec1cecb83e54af786b71a28bfc07ff2', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInitb8e8ca5e277ab7e8339552141195988c', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInit3ec1cecb83e54af786b71a28bfc07ff2::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInitb8e8ca5e277ab7e8339552141195988c::getInitializer($loader));
    3333
    3434        $loader->register(true);
    3535
    36         $includeFiles = \Composer\Autoload\ComposerStaticInit3ec1cecb83e54af786b71a28bfc07ff2::$files;
     36        $includeFiles = \Composer\Autoload\ComposerStaticInitb8e8ca5e277ab7e8339552141195988c::$files;
    3737        foreach ($includeFiles as $fileIdentifier => $file) {
    38             composerRequire3ec1cecb83e54af786b71a28bfc07ff2($fileIdentifier, $file);
     38            composerRequireb8e8ca5e277ab7e8339552141195988c($fileIdentifier, $file);
    3939        }
    4040
     
    4848 * @return void
    4949 */
    50 function composerRequire3ec1cecb83e54af786b71a28bfc07ff2($fileIdentifier, $file)
     50function composerRequireb8e8ca5e277ab7e8339552141195988c($fileIdentifier, $file)
    5151{
    5252    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • schedule-terms/trunk/vendor/composer/autoload_static.php

    r2727307 r2728428  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit3ec1cecb83e54af786b71a28bfc07ff2
     7class ComposerStaticInitb8e8ca5e277ab7e8339552141195988c
    88{
    99    public static $files = array (
     
    139139        'HAMWORKS\\WP\\Schedule_Terms\\Plugin' => __DIR__ . '/../..' . '/includes/Plugin.php',
    140140        'HAMWORKS\\WP\\Schedule_Terms\\Post_Meta' => __DIR__ . '/../..' . '/includes/Post_Meta.php',
     141        'HAMWORKS\\WP\\Schedule_Terms\\Schedule' => __DIR__ . '/../..' . '/includes/Schedule.php',
    141142        'HAMWORKS\\WP\\Schedule_Terms\\Term\\UI' => __DIR__ . '/../..' . '/includes/Term/UI.php',
    142143        'HAMWORKS\\WP\\Schedule_Terms\\Term_Manager' => __DIR__ . '/../..' . '/includes/Term_Manager.php',
     
    180181    {
    181182        return \Closure::bind(function () use ($loader) {
    182             $loader->prefixLengthsPsr4 = ComposerStaticInit3ec1cecb83e54af786b71a28bfc07ff2::$prefixLengthsPsr4;
    183             $loader->prefixDirsPsr4 = ComposerStaticInit3ec1cecb83e54af786b71a28bfc07ff2::$prefixDirsPsr4;
    184             $loader->classMap = ComposerStaticInit3ec1cecb83e54af786b71a28bfc07ff2::$classMap;
     183            $loader->prefixLengthsPsr4 = ComposerStaticInitb8e8ca5e277ab7e8339552141195988c::$prefixLengthsPsr4;
     184            $loader->prefixDirsPsr4 = ComposerStaticInitb8e8ca5e277ab7e8339552141195988c::$prefixDirsPsr4;
     185            $loader->classMap = ComposerStaticInitb8e8ca5e277ab7e8339552141195988c::$classMap;
    185186
    186187        }, null, ClassLoader::class);
  • schedule-terms/trunk/vendor/composer/installed.php

    r2727307 r2728428  
    11<?php return array(
    22    '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',
    55        'type' => 'library',
    66        'install_path' => __DIR__ . '/../../',
    77        'aliases' => array(),
    8         'reference' => '563711b1554200c60d00b8d67d22e8256cf0dd7f',
     8        'reference' => 'f0e574653b6281a4c7195ddc75f5afe5e94de954',
    99        'name' => 'hamworks/schedule-terms',
    1010        'dev' => false,
     
    1212    'versions' => array(
    1313        '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',
    1616            'type' => 'library',
    1717            'install_path' => __DIR__ . '/../../',
    1818            'aliases' => array(),
    19             'reference' => '563711b1554200c60d00b8d67d22e8256cf0dd7f',
     19            'reference' => 'f0e574653b6281a4c7195ddc75f5afe5e94de954',
    2020            'dev_requirement' => false,
    2121        ),
Note: See TracChangeset for help on using the changeset viewer.