Plugin Directory

Changeset 2101126


Ignore:
Timestamp:
06/05/2019 03:17:37 PM (7 years ago)
Author:
leocolomb
Message:

Update to version 3.0.2 from GitHub

Location:
wp-algolia
Files:
34 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wp-algolia/tags/3.0.2/src/class-algolia-admin.php

    r2100083 r2101126  
    129129            ob_end_clean();
    130130
    131             $response = array(
     131            $response = [
    132132                'totalPagesCount' => $total_pages,
    133133                'finished'        => $page >= $total_pages,
    134             );
     134            ];
    135135
    136136            wp_send_json($response);
  • wp-algolia/tags/3.0.2/src/class-algolia-api.php

    r2100083 r2101126  
    9494        $key = $client->getApiKey((string) $api_key);
    9595
    96         $required_acls = array(
     96        $required_acls = [
    9797            'addObject',
    9898            'deleteObject',
     
    101101            'settings',
    102102            'editSettings',
    103         );
     103        ];
    104104
    105         $missing_acls = array();
     105        $missing_acls = [];
    106106        foreach ($required_acls as $required_acl) {
    107107            if (! in_array($required_acl, $key['acl'])) {
  • wp-algolia/tags/3.0.2/src/class-algolia-utils.php

    r2100083 r2101126  
    4040    /**
    4141     * Returns an array like:
    42      * array(
     42     * [
    4343     *    'lvl0' => ['Sales', 'Marketing'],
    4444     *    'lvl1' => ['Sales > Strategies', 'Marketing > Tips & Tricks']
    4545     *    ...
    46      * );.
     46     * ]
    4747     *
    4848     * This is useful when building hierarchical menus.
     
    6060        $term_ids = wp_list_pluck($terms, 'term_id');
    6161
    62         $parents = array();
     62        $parents = [];
    6363        foreach ($term_ids as $term_id) {
    6464            $path      = self::get_term_parents($term_id, $taxonomy, $separator);
     
    6666        }
    6767
    68         $terms = array();
     68        $terms = [];
    6969        foreach ($parents as $parent) {
    7070            $levels = explode($separator, $parent);
     
    9191    public static function get_post_images($post_id)
    9292    {
    93         $images = array();
     93        $images = [];
    9494
    9595        if (get_post_type($post_id) === 'attachment') {
     
    100100
    101101        if ($post_thumbnail_id) {
    102             $sizes = (array) apply_filters('algolia_post_images_sizes', array( 'thumbnail' ));
     102            $sizes = (array) apply_filters('algolia_post_images_sizes', ['thumbnail']);
    103103            foreach ($sizes as $size) {
    104104                $info = wp_get_attachment_image_src($post_thumbnail_id, $size);
     
    107107                }
    108108
    109                 $images[ $size ] = array(
     109                $images[$size] = [
    110110                    'url'    => $info[0],
    111111                    'width'  => $info[1],
    112112                    'height' => $info[2],
    113                 );
     113                ];
    114114            }
    115115        }
     
    127127    public static function remove_content_noise($content)
    128128    {
    129         $noise_patterns = array(
     129        $noise_patterns = [
    130130            // strip out comments.
    131131            "'<!--(.*?)-->'is",
     
    145145            "'<\s*pre[^>]*[^/]>(.*?)<\s*/\s*pre\s*>'is",
    146146            "'<\s*pre\s*>(.*?)<\s*/\s*pre\s*>'is",
    147         );
     147        ];
    148148
    149149        // If there is ET builder (Divi), remove shortcodes.
     
    173173        }
    174174
    175         $parts  = array();
     175        $parts  = [];
    176176        $prefix = '';
    177177        while (true) {
  • wp-algolia/tags/3.0.2/src/indices/class-algolia-index-replica.php

    r2100083 r2101126  
    4747    public function get_ranking()
    4848    {
    49         return array( $this->order . '(' . $this->attribute_name . ')', 'typo', 'geo', 'words', 'filters', 'proximity', 'attribute', 'exact', 'custom' );
     49        return [
     50            "{$this->order}({$this->attribute_name})",
     51            'typo',
     52            'geo',
     53            'words',
     54            'filters',
     55            'proximity',
     56            'attribute',
     57            'exact',
     58            'custom'
     59        ];
    5060    }
    5161
  • wp-algolia/tags/3.0.2/src/indices/class-algolia-index.php

    r2100083 r2101126  
    262262        $items = $this->get_items($page, $batch_size);
    263263
    264         $records = array();
     264        $records = [];
    265265        foreach ($items as $item) {
    266266            if (! $this->should_index($item)) {
     
    421421    public function get_default_autocomplete_config()
    422422    {
    423         return array(
     423        return [
    424424            'index_id'        => $this->get_id(),
    425425            'index_name'      => $this->get_name(),
     
    429429            'max_suggestions' => 5,
    430430            'tmpl_suggestion' => 'autocomplete-post-suggestion',
    431         );
     431        ];
    432432    }
    433433
     
    439439        $replicas = $this->get_replicas();
    440440
    441         $items = array();
     441        $items = [];
    442442        foreach ($replicas as $replica) {
    443             $items[] = array(
     443            $items[] = [
    444444                'name' => $replica->get_replica_index_name($this),
    445             );
    446         }
    447 
    448         return array(
     445            ];
     446        }
     447
     448        return [
    449449            'name'     => $this->get_name(),
    450450            'id'       => $this->get_id(),
    451451            'enabled'  => $this->enabled,
    452452            'replicas' => $items,
    453         );
     453        ];
    454454    }
    455455
     
    459459    public function get_replicas()
    460460    {
    461         $replicas = (array) apply_filters('algolia_index_replicas', array(), $this);
     461        $replicas = (array) apply_filters('algolia_index_replicas', [], $this);
    462462        $replicas = (array) apply_filters('algolia_' . $this->get_id() . '_index_replicas', $replicas, $this);
    463463
    464         $filtered = array();
     464        $filtered = [];
    465465        // Filter out invalid inputs.
    466466        foreach ($replicas as $replica) {
     
    482482        }
    483483
    484         $replica_index_names = array();
     484        $replica_index_names = [];
    485485        foreach ($replicas as $replica) {
    486486            /** @var Algolia_Index_Replica $replica */
     
    489489
    490490        $this->get_index()->setSettings(
    491             array(
     491            [
    492492                'replicas' => $replica_index_names,
    493             ),
     493            ],
    494494            false
    495495        );
  • wp-algolia/tags/3.0.2/src/indices/class-algolia-posts-index-abstract.php

    r2100698 r2101126  
    6767
    6868        if (defined('ALGOLIA_SPLIT_POSTS') && false === ALGOLIA_SPLIT_POSTS) {
    69             $parts = array( array_shift($parts) );
    70         }
    71 
    72         $records = array();
     69            $parts = [array_shift($parts)];
     70        }
     71
     72        $records = [];
    7373        foreach ($parts as $i => $part) {
    7474            $record                 = $shared_attributes;
     
    106106        $author = get_userdata($post->post_author);
    107107        if ($author) {
    108             $shared_attributes['post_author'] = array(
     108            $shared_attributes['post_author'] = [
    109109                'user_id'      => (int) $post->post_author,
    110110                'display_name' => $author->display_name,
    111111                'user_url'     => $author->user_url,
    112112                'user_login'   => $author->user_login,
    113             );
     113            ];
    114114        }
    115115
     
    122122        $taxonomy_objects = get_object_taxonomies($post->post_type, 'objects');
    123123
    124         $shared_attributes['taxonomies']              = array();
    125         $shared_attributes['taxonomies_hierarchical'] = array();
     124        $shared_attributes['taxonomies']              = [];
     125        $shared_attributes['taxonomies_hierarchical'] = [];
    126126        foreach ($taxonomy_objects as $taxonomy) {
    127127            $terms = wp_get_object_terms($post->ID, $taxonomy->name);
    128             $terms = is_array($terms) ? $terms : array();
     128            $terms = is_array($terms) ? $terms : [];
    129129
    130130            if ($taxonomy->hierarchical) {
     
    189189     * @param array   $records
    190190     */
    191     abstract protected function update_post_records(WP_Post $post, array $records);
     191    protected function update_post_records(WP_Post $post, array $records)
     192    {
     193        // If there are no records, parent `update_records` will take care of the deletion.
     194        // In case of posts, we ALWAYS need to delete existing records.
     195        if (! empty($records)) {
     196            $this->delete_item($post);
     197        }
     198
     199        parent::update_records($post, $records);
     200
     201        // Keep track of the new record count for future updates relying on the objectID's naming convention .
     202        $new_records_count = count($records);
     203        $this->set_post_records_count($post, $new_records_count);
     204    }
    192205
    193206    /**
     
    199212
    200213        $records_count = $this->get_post_records_count($item->ID);
    201         $object_ids    = array();
     214        $object_ids    = [];
    202215        for ($i = 0; $i < $records_count; $i++) {
    203216            $object_ids[] = $this->get_post_object_id($item->ID, $i);
  • wp-algolia/tags/3.0.2/src/indices/class-algolia-posts-index.php

    r2100083 r2101126  
    7979    protected function get_settings()
    8080    {
    81         $settings = array(
    82             'attributesToIndex'     => array(
     81        $settings = [
     82            'attributesToIndex'     => [
    8383                'unordered(post_title)',
    8484                'unordered(taxonomies)',
    8585                'unordered(content)',
    86             ),
    87             'customRanking'         => array(
     86            ],
     87            'customRanking'         => [
    8888                'desc(is_sticky)',
    8989                'desc(post_date)',
    9090                'asc(record_index)',
    91             ),
     91            ],
    9292            'attributeForDistinct'  => 'post_id',
    9393            'distinct'              => true,
    94             'attributesForFaceting' => array(
     94            'attributesForFaceting' => [
    9595                'taxonomies',
    9696                'taxonomies_hierarchical',
    9797                'post_author.display_name',
    98             ),
    99             'attributesToSnippet'   => array(
     98            ],
     99            'attributesToSnippet'   => [
    100100                'post_title:30',
    101101                'content:30',
    102             ),
     102            ],
    103103            'snippetEllipsisText'   => '…',
    104         );
     104        ];
    105105
    106106        $settings = (array) apply_filters('algolia_posts_index_settings', $settings, $this->post_type);
     
    115115    protected function get_synonyms()
    116116    {
    117         $synonyms = (array) apply_filters('algolia_posts_index_synonyms', array(), $this->post_type);
     117        $synonyms = (array) apply_filters('algolia_posts_index_synonyms', [], $this->post_type);
    118118        $synonyms = (array) apply_filters('algolia_posts_' . $this->post_type . '_index_synonyms', $synonyms);
    119119
     
    127127    protected function update_post_records(WP_Post $post, array $records)
    128128    {
    129         // If there are no records, parent `update_records` will take care of the deletion.
    130         // In case of posts, we ALWAYS need to delete existing records.
    131         if (! empty($records)) {
    132             $this->delete_item($post);
    133         }
    134 
    135         parent::update_records($post, $records);
    136 
    137         // Keep track of the new record count for future updates relying on the objectID's naming convention .
    138         $new_records_count = count($records);
    139         $this->set_post_records_count($post, $new_records_count);
     129        parent::update_post_records($post, $records);
    140130
    141131        do_action('algolia_posts_index_post_updated', $post, $records);
     
    156146    protected function get_re_index_items_count()
    157147    {
    158         $query = new WP_Query(
    159             array(
    160                 'post_type'        => $this->post_type,
    161                 'post_status'      => 'any', // Let the `should_index` take care of the filtering.
    162                 'suppress_filters' => true,
    163             )
    164         );
     148        $query = new WP_Query([
     149            'post_type'        => $this->post_type,
     150            'post_status'      => 'any', // Let the `should_index` take care of the filtering.
     151            'suppress_filters' => true,
     152        ]);
    165153
    166154        return (int) $query->found_posts;
     
    175163    protected function get_items($page, $batch_size)
    176164    {
    177         $query = new WP_Query(
    178             array(
    179                 'post_type'        => $this->post_type,
    180                 'posts_per_page'   => $batch_size,
    181                 'post_status'      => 'any',
    182                 'order'            => 'ASC',
    183                 'orderby'          => 'ID',
    184                 'paged'            => $page,
    185                 'suppress_filters' => true,
    186             )
    187         );
     165        $query = new WP_Query([
     166            'post_type'        => $this->post_type,
     167            'posts_per_page'   => $batch_size,
     168            'post_status'      => 'any',
     169            'order'            => 'ASC',
     170            'orderby'          => 'ID',
     171            'paged'            => $page,
     172            'suppress_filters' => true,
     173        ]);
    188174
    189175        return $query->posts;
  • wp-algolia/tags/3.0.2/src/indices/class-algolia-searchable-posts-index.php

    r2100698 r2101126  
    122122    protected function update_post_records(WP_Post $post, array $records)
    123123    {
    124         // If there are no records, parent `update_records` will take care of the deletion.
    125         // In case of posts, we ALWAYS need to delete existing records.
    126         if (! empty($records)) {
    127             $this->delete_item($post);
    128         }
    129 
    130         parent::update_records($post, $records);
    131 
    132         // Keep track of the new record count for future updates relying on the objectID's naming convention .
    133         $new_records_count = count($records);
    134         $this->set_post_records_count($post, $new_records_count);
     124        parent::update_post_records($post, $records);
    135125
    136126        do_action('algolia_searchable_posts_index_post_updated', $post, $records);
  • wp-algolia/tags/3.0.2/src/indices/class-algolia-terms-index.php

    r2100083 r2101126  
    5454    protected function get_records($item)
    5555    {
    56         $record                = array();
     56        $record                = [];
    5757        $record['objectID']    = $item->term_id;
    5858        $record['term_id']     = $item->term_id;
     
    7171        $record = (array) apply_filters('algolia_term_' . $item->taxonomy . '_record', $record, $item);
    7272
    73         return array( $record );
     73        return [$record];
    7474    }
    7575
     
    8787    protected function get_settings()
    8888    {
    89         $settings = array(
    90             'attributesToIndex' => array(
     89        $settings = [
     90            'attributesToIndex' => [
    9191                'unordered(name)',
    9292                'unordered(description)',
    93             ),
    94             'customRanking'     => array(
     93            ],
     94            'customRanking'     => [
    9595                'desc(posts_count)',
    96             ),
    97         );
     96            ],
     97        ];
    9898
    9999        $settings = (array) apply_filters('algolia_terms_index_settings', $settings, $this->taxonomy);
     
    108108    protected function get_synonyms()
    109109    {
    110         return (array) apply_filters('algolia_terms_index_synonyms', array());
     110        return (array) apply_filters('algolia_terms_index_synonyms', []);
    111111    }
    112112
     
    130130        $offset = $batch_size * ( $page - 1 );
    131131
    132         $args = array(
     132        $args = [
    133133            'order'      => 'ASC',
    134134            'orderby'    => 'id',
     
    136136            'number'     => $batch_size,
    137137            'hide_empty' => false, // Let users choose what to index.
    138         );
     138        ];
    139139
    140140        // We use prior to 4.5 syntax for BC purposes.
     
    162162    public function get_default_autocomplete_config()
    163163    {
    164         $config = array(
     164        $config = [
    165165            'position'        => 20,
    166166            'max_suggestions' => 3,
    167167            'tmpl_suggestion' => 'autocomplete-term-suggestion',
    168         );
     168        ];
    169169
    170170        return array_merge(parent::get_default_autocomplete_config(), $config);
  • wp-algolia/tags/3.0.2/src/indices/class-algolia-users-index.php

    r2100083 r2101126  
    4040    protected function get_records($item)
    4141    {
    42         $record                 = array();
     42        $record                 = [];
    4343        $record['objectID']     = $item->ID;
    4444        $record['user_id']      = $item->ID;
     
    5757            $record['avatar_url'] = get_avatar_url(
    5858                $item->ID,
    59                 array(
     59                [
    6060                    'size' => $avatar_size,
    61                 )
     61                ]
    6262            );
    6363        } else {
     
    6868        $record = (array) apply_filters('algolia_user_record', $record, $item);
    6969
    70         return array( $record );
     70        return [$record];
    7171    }
    7272
     
    8686    protected function get_settings()
    8787    {
    88         $settings = array(
    89             'attributesToIndex' => array(
     88        $settings = [
     89            'attributesToIndex' => [
    9090                'unordered(display_name)',
    91             ),
    92             'customRanking'     => array(
     91            ],
     92            'customRanking'     => [
    9393                'desc(posts_count)',
    94             ),
    95         );
     94            ],
     95        ];
    9696
    9797        return (array) apply_filters('algolia_users_index_settings', $settings);
     
    103103    protected function get_synonyms()
    104104    {
    105         return (array) apply_filters('algolia_users_index_synonyms', array());
     105        return (array) apply_filters('algolia_users_index_synonyms', []);
    106106    }
    107107
     
    125125        $offset = $batch_size * ( $page - 1 );
    126126
    127         $args = array(
     127        $args = [
    128128            'order'   => 'ASC',
    129129            'orderby' => 'ID',
    130130            'offset'  => $offset,
    131131            'number'  => $batch_size,
    132         );
     132        ];
    133133
    134134        // We use prior to 4.5 syntax for BC purposes, no `paged` arg.
     
    153153    public function get_default_autocomplete_config()
    154154    {
    155         $config = array(
     155        $config = [
    156156            'position'        => 30,
    157157            'max_suggestions' => 3,
    158158            'tmpl_suggestion' => 'autocomplete-user-suggestion',
    159         );
     159        ];
    160160
    161161        return array_merge(parent::get_default_autocomplete_config(), $config);
  • wp-algolia/tags/3.0.2/src/watchers/class-algolia-post-changes-watcher.php

    r2100083 r2101126  
    2222    {
    2323        // Fires once a post has been saved.
    24         add_action('save_post', array( $this, 'sync_item' ));
     24        add_action('save_post', [$this, 'sync_item']);
    2525
    2626        // Fires before a post is deleted, at the start of wp_delete_post().
    2727        // At this stage the post metas are still available, and we need them.
    28         add_action('before_delete_post', array( $this, 'delete_item' ));
     28        add_action('before_delete_post', [$this, 'delete_item']);
    2929
    3030        // Handle meta changes after the change occurred.
    31         add_action('added_post_meta', array( $this, 'on_meta_change' ), 10, 4);
    32         add_action('updated_post_meta', array( $this, 'on_meta_change' ), 10, 4);
    33         add_action('deleted_post_meta', array( $this, 'on_meta_change' ), 10, 4);
     31        add_action('added_post_meta', [$this, 'on_meta_change'], 10, 4);
     32        add_action('updated_post_meta', [$this, 'on_meta_change'], 10, 4);
     33        add_action('deleted_post_meta', [$this, 'on_meta_change'], 10, 4);
    3434
    3535        // Handle attachment changes. These are required because the other post hooks are not triggered.
    36         add_action('add_attachment', array( $this, 'sync_item' ));
    37         add_action('attachment_updated', array( $this, 'sync_item' ));
    38         add_action('delete_attachment', array( $this, 'delete_item' ));
     36        add_action('add_attachment', [$this, 'sync_item']);
     37        add_action('attachment_updated', [$this, 'sync_item']);
     38        add_action('delete_attachment', [$this, 'delete_item']);
    3939    }
    4040
     
    8484    public function on_meta_change($meta_id, $object_id, $meta_key)
    8585    {
    86         $keys = array( '_thumbnail_id' );
     86        $keys = ['_thumbnail_id'];
    8787        $keys = (array) apply_filters('algolia_watch_post_meta_keys', $keys, $object_id);
    8888
  • wp-algolia/tags/3.0.2/src/watchers/class-algolia-term-changes-watcher.php

    r2100083 r2101126  
    2222    {
    2323        // Fires immediately after the given terms are edited.
    24         add_action('edited_term', array( $this, 'sync_item' ));
     24        add_action('edited_term', [$this, 'sync_item']);
    2525
    2626        // Fires after an object's terms have been set.
    27         add_action('set_object_terms', array( $this, 'handle_changes' ), 10, 6);
     27        add_action('set_object_terms', [$this, 'handle_changes'], 10, 6);
    2828
    2929        // Fires after a term is deleted from the database and the cache is cleaned.
    30         add_action('delete_term', array( $this, 'on_delete_term' ), 10, 4);
     30        add_action('delete_term', [$this, 'on_delete_term'], 10, 4);
    3131    }
    3232
  • wp-algolia/tags/3.0.2/src/watchers/class-algolia-user-changes-watcher.php

    r2100083 r2101126  
    2222    {
    2323        // Fires immediately after an existing user is updated.
    24         add_action('profile_update', array( $this, 'sync_item' ));
     24        add_action('profile_update', [$this, 'sync_item']);
    2525
    2626        // Fires immediately after a new user is registered.
    27         add_action('user_register', array( $this, 'sync_item' ));
     27        add_action('user_register', [$this, 'sync_item']);
    2828
    2929        // Fires immediately before a user is deleted.
    30         add_action('delete_user', array( $this, 'delete_item' ));
     30        add_action('delete_user', [$this, 'delete_item']);
    3131
    3232        // Fires once a post has been saved.
    33         add_action('save_post', array( $this, 'on_save_post' ), 10, 2);
     33        add_action('save_post', [$this, 'on_save_post'], 10, 2);
    3434
    3535        // Fires before a post is deleted, at the start of wp_delete_post().
    3636        // At this stage the post metas are still available, and we need them.
    37         add_action('before_delete_post', array( $this, 'on_delete_post' ));
     37        add_action('before_delete_post', [$this, 'on_delete_post']);
    3838    }
    3939
  • wp-algolia/tags/3.0.2/vendor/autoload.php

    r2100698 r2101126  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInit18009676d0bcc7296499ee1203467cc0::getLoader();
     7return ComposerAutoloaderInitc49d78d344667cc430651fb080c0d596::getLoader();
  • wp-algolia/tags/3.0.2/vendor/composer/autoload_real.php

    r2100698 r2101126  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit18009676d0bcc7296499ee1203467cc0
     5class ComposerAutoloaderInitc49d78d344667cc430651fb080c0d596
    66{
    77    private static $loader;
     
    2020        }
    2121
    22         spl_autoload_register(array('ComposerAutoloaderInit18009676d0bcc7296499ee1203467cc0', 'loadClassLoader'), true, true);
     22        spl_autoload_register(array('ComposerAutoloaderInitc49d78d344667cc430651fb080c0d596', 'loadClassLoader'), true, true);
    2323        self::$loader = $loader = new \Composer\Autoload\ClassLoader();
    24         spl_autoload_unregister(array('ComposerAutoloaderInit18009676d0bcc7296499ee1203467cc0', 'loadClassLoader'));
     24        spl_autoload_unregister(array('ComposerAutoloaderInitc49d78d344667cc430651fb080c0d596', 'loadClassLoader'));
    2525
    2626        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    2828            require_once __DIR__ . '/autoload_static.php';
    2929
    30             call_user_func(\Composer\Autoload\ComposerStaticInit18009676d0bcc7296499ee1203467cc0::getInitializer($loader));
     30            call_user_func(\Composer\Autoload\ComposerStaticInitc49d78d344667cc430651fb080c0d596::getInitializer($loader));
    3131        } else {
    3232            $map = require __DIR__ . '/autoload_namespaces.php';
     
    4949
    5050        if ($useStaticLoader) {
    51             $includeFiles = Composer\Autoload\ComposerStaticInit18009676d0bcc7296499ee1203467cc0::$files;
     51            $includeFiles = Composer\Autoload\ComposerStaticInitc49d78d344667cc430651fb080c0d596::$files;
    5252        } else {
    5353            $includeFiles = require __DIR__ . '/autoload_files.php';
    5454        }
    5555        foreach ($includeFiles as $fileIdentifier => $file) {
    56             composerRequire18009676d0bcc7296499ee1203467cc0($fileIdentifier, $file);
     56            composerRequirec49d78d344667cc430651fb080c0d596($fileIdentifier, $file);
    5757        }
    5858
     
    6161}
    6262
    63 function composerRequire18009676d0bcc7296499ee1203467cc0($fileIdentifier, $file)
     63function composerRequirec49d78d344667cc430651fb080c0d596($fileIdentifier, $file)
    6464{
    6565    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • wp-algolia/tags/3.0.2/vendor/composer/autoload_static.php

    r2100698 r2101126  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit18009676d0bcc7296499ee1203467cc0
     7class ComposerStaticInitc49d78d344667cc430651fb080c0d596
    88{
    99    public static $files = array (
     
    338338    {
    339339        return \Closure::bind(function () use ($loader) {
    340             $loader->prefixLengthsPsr4 = ComposerStaticInit18009676d0bcc7296499ee1203467cc0::$prefixLengthsPsr4;
    341             $loader->prefixDirsPsr4 = ComposerStaticInit18009676d0bcc7296499ee1203467cc0::$prefixDirsPsr4;
    342             $loader->classMap = ComposerStaticInit18009676d0bcc7296499ee1203467cc0::$classMap;
     340            $loader->prefixLengthsPsr4 = ComposerStaticInitc49d78d344667cc430651fb080c0d596::$prefixLengthsPsr4;
     341            $loader->prefixDirsPsr4 = ComposerStaticInitc49d78d344667cc430651fb080c0d596::$prefixDirsPsr4;
     342            $loader->classMap = ComposerStaticInitc49d78d344667cc430651fb080c0d596::$classMap;
    343343
    344344        }, null, ClassLoader::class);
  • wp-algolia/tags/3.0.2/wp-algolia.php

    r2100698 r2101126  
    55Plugin URI:        https://www.algolia.com/
    66Description:       WordPress plugin to use Algolia as a search engine.
    7 Version:           3.0.1
     7Version:           3.0.2
    88Author:            Léo Colombaro
    99Author URI:        https://colombaro.fr/
  • wp-algolia/trunk/src/class-algolia-admin.php

    r2100083 r2101126  
    129129            ob_end_clean();
    130130
    131             $response = array(
     131            $response = [
    132132                'totalPagesCount' => $total_pages,
    133133                'finished'        => $page >= $total_pages,
    134             );
     134            ];
    135135
    136136            wp_send_json($response);
  • wp-algolia/trunk/src/class-algolia-api.php

    r2100083 r2101126  
    9494        $key = $client->getApiKey((string) $api_key);
    9595
    96         $required_acls = array(
     96        $required_acls = [
    9797            'addObject',
    9898            'deleteObject',
     
    101101            'settings',
    102102            'editSettings',
    103         );
     103        ];
    104104
    105         $missing_acls = array();
     105        $missing_acls = [];
    106106        foreach ($required_acls as $required_acl) {
    107107            if (! in_array($required_acl, $key['acl'])) {
  • wp-algolia/trunk/src/class-algolia-utils.php

    r2100083 r2101126  
    4040    /**
    4141     * Returns an array like:
    42      * array(
     42     * [
    4343     *    'lvl0' => ['Sales', 'Marketing'],
    4444     *    'lvl1' => ['Sales > Strategies', 'Marketing > Tips & Tricks']
    4545     *    ...
    46      * );.
     46     * ]
    4747     *
    4848     * This is useful when building hierarchical menus.
     
    6060        $term_ids = wp_list_pluck($terms, 'term_id');
    6161
    62         $parents = array();
     62        $parents = [];
    6363        foreach ($term_ids as $term_id) {
    6464            $path      = self::get_term_parents($term_id, $taxonomy, $separator);
     
    6666        }
    6767
    68         $terms = array();
     68        $terms = [];
    6969        foreach ($parents as $parent) {
    7070            $levels = explode($separator, $parent);
     
    9191    public static function get_post_images($post_id)
    9292    {
    93         $images = array();
     93        $images = [];
    9494
    9595        if (get_post_type($post_id) === 'attachment') {
     
    100100
    101101        if ($post_thumbnail_id) {
    102             $sizes = (array) apply_filters('algolia_post_images_sizes', array( 'thumbnail' ));
     102            $sizes = (array) apply_filters('algolia_post_images_sizes', ['thumbnail']);
    103103            foreach ($sizes as $size) {
    104104                $info = wp_get_attachment_image_src($post_thumbnail_id, $size);
     
    107107                }
    108108
    109                 $images[ $size ] = array(
     109                $images[$size] = [
    110110                    'url'    => $info[0],
    111111                    'width'  => $info[1],
    112112                    'height' => $info[2],
    113                 );
     113                ];
    114114            }
    115115        }
     
    127127    public static function remove_content_noise($content)
    128128    {
    129         $noise_patterns = array(
     129        $noise_patterns = [
    130130            // strip out comments.
    131131            "'<!--(.*?)-->'is",
     
    145145            "'<\s*pre[^>]*[^/]>(.*?)<\s*/\s*pre\s*>'is",
    146146            "'<\s*pre\s*>(.*?)<\s*/\s*pre\s*>'is",
    147         );
     147        ];
    148148
    149149        // If there is ET builder (Divi), remove shortcodes.
     
    173173        }
    174174
    175         $parts  = array();
     175        $parts  = [];
    176176        $prefix = '';
    177177        while (true) {
  • wp-algolia/trunk/src/indices/class-algolia-index-replica.php

    r2100083 r2101126  
    4747    public function get_ranking()
    4848    {
    49         return array( $this->order . '(' . $this->attribute_name . ')', 'typo', 'geo', 'words', 'filters', 'proximity', 'attribute', 'exact', 'custom' );
     49        return [
     50            "{$this->order}({$this->attribute_name})",
     51            'typo',
     52            'geo',
     53            'words',
     54            'filters',
     55            'proximity',
     56            'attribute',
     57            'exact',
     58            'custom'
     59        ];
    5060    }
    5161
  • wp-algolia/trunk/src/indices/class-algolia-index.php

    r2100083 r2101126  
    262262        $items = $this->get_items($page, $batch_size);
    263263
    264         $records = array();
     264        $records = [];
    265265        foreach ($items as $item) {
    266266            if (! $this->should_index($item)) {
     
    421421    public function get_default_autocomplete_config()
    422422    {
    423         return array(
     423        return [
    424424            'index_id'        => $this->get_id(),
    425425            'index_name'      => $this->get_name(),
     
    429429            'max_suggestions' => 5,
    430430            'tmpl_suggestion' => 'autocomplete-post-suggestion',
    431         );
     431        ];
    432432    }
    433433
     
    439439        $replicas = $this->get_replicas();
    440440
    441         $items = array();
     441        $items = [];
    442442        foreach ($replicas as $replica) {
    443             $items[] = array(
     443            $items[] = [
    444444                'name' => $replica->get_replica_index_name($this),
    445             );
    446         }
    447 
    448         return array(
     445            ];
     446        }
     447
     448        return [
    449449            'name'     => $this->get_name(),
    450450            'id'       => $this->get_id(),
    451451            'enabled'  => $this->enabled,
    452452            'replicas' => $items,
    453         );
     453        ];
    454454    }
    455455
     
    459459    public function get_replicas()
    460460    {
    461         $replicas = (array) apply_filters('algolia_index_replicas', array(), $this);
     461        $replicas = (array) apply_filters('algolia_index_replicas', [], $this);
    462462        $replicas = (array) apply_filters('algolia_' . $this->get_id() . '_index_replicas', $replicas, $this);
    463463
    464         $filtered = array();
     464        $filtered = [];
    465465        // Filter out invalid inputs.
    466466        foreach ($replicas as $replica) {
     
    482482        }
    483483
    484         $replica_index_names = array();
     484        $replica_index_names = [];
    485485        foreach ($replicas as $replica) {
    486486            /** @var Algolia_Index_Replica $replica */
     
    489489
    490490        $this->get_index()->setSettings(
    491             array(
     491            [
    492492                'replicas' => $replica_index_names,
    493             ),
     493            ],
    494494            false
    495495        );
  • wp-algolia/trunk/src/indices/class-algolia-posts-index-abstract.php

    r2100698 r2101126  
    6767
    6868        if (defined('ALGOLIA_SPLIT_POSTS') && false === ALGOLIA_SPLIT_POSTS) {
    69             $parts = array( array_shift($parts) );
    70         }
    71 
    72         $records = array();
     69            $parts = [array_shift($parts)];
     70        }
     71
     72        $records = [];
    7373        foreach ($parts as $i => $part) {
    7474            $record                 = $shared_attributes;
     
    106106        $author = get_userdata($post->post_author);
    107107        if ($author) {
    108             $shared_attributes['post_author'] = array(
     108            $shared_attributes['post_author'] = [
    109109                'user_id'      => (int) $post->post_author,
    110110                'display_name' => $author->display_name,
    111111                'user_url'     => $author->user_url,
    112112                'user_login'   => $author->user_login,
    113             );
     113            ];
    114114        }
    115115
     
    122122        $taxonomy_objects = get_object_taxonomies($post->post_type, 'objects');
    123123
    124         $shared_attributes['taxonomies']              = array();
    125         $shared_attributes['taxonomies_hierarchical'] = array();
     124        $shared_attributes['taxonomies']              = [];
     125        $shared_attributes['taxonomies_hierarchical'] = [];
    126126        foreach ($taxonomy_objects as $taxonomy) {
    127127            $terms = wp_get_object_terms($post->ID, $taxonomy->name);
    128             $terms = is_array($terms) ? $terms : array();
     128            $terms = is_array($terms) ? $terms : [];
    129129
    130130            if ($taxonomy->hierarchical) {
     
    189189     * @param array   $records
    190190     */
    191     abstract protected function update_post_records(WP_Post $post, array $records);
     191    protected function update_post_records(WP_Post $post, array $records)
     192    {
     193        // If there are no records, parent `update_records` will take care of the deletion.
     194        // In case of posts, we ALWAYS need to delete existing records.
     195        if (! empty($records)) {
     196            $this->delete_item($post);
     197        }
     198
     199        parent::update_records($post, $records);
     200
     201        // Keep track of the new record count for future updates relying on the objectID's naming convention .
     202        $new_records_count = count($records);
     203        $this->set_post_records_count($post, $new_records_count);
     204    }
    192205
    193206    /**
     
    199212
    200213        $records_count = $this->get_post_records_count($item->ID);
    201         $object_ids    = array();
     214        $object_ids    = [];
    202215        for ($i = 0; $i < $records_count; $i++) {
    203216            $object_ids[] = $this->get_post_object_id($item->ID, $i);
  • wp-algolia/trunk/src/indices/class-algolia-posts-index.php

    r2100083 r2101126  
    7979    protected function get_settings()
    8080    {
    81         $settings = array(
    82             'attributesToIndex'     => array(
     81        $settings = [
     82            'attributesToIndex'     => [
    8383                'unordered(post_title)',
    8484                'unordered(taxonomies)',
    8585                'unordered(content)',
    86             ),
    87             'customRanking'         => array(
     86            ],
     87            'customRanking'         => [
    8888                'desc(is_sticky)',
    8989                'desc(post_date)',
    9090                'asc(record_index)',
    91             ),
     91            ],
    9292            'attributeForDistinct'  => 'post_id',
    9393            'distinct'              => true,
    94             'attributesForFaceting' => array(
     94            'attributesForFaceting' => [
    9595                'taxonomies',
    9696                'taxonomies_hierarchical',
    9797                'post_author.display_name',
    98             ),
    99             'attributesToSnippet'   => array(
     98            ],
     99            'attributesToSnippet'   => [
    100100                'post_title:30',
    101101                'content:30',
    102             ),
     102            ],
    103103            'snippetEllipsisText'   => '…',
    104         );
     104        ];
    105105
    106106        $settings = (array) apply_filters('algolia_posts_index_settings', $settings, $this->post_type);
     
    115115    protected function get_synonyms()
    116116    {
    117         $synonyms = (array) apply_filters('algolia_posts_index_synonyms', array(), $this->post_type);
     117        $synonyms = (array) apply_filters('algolia_posts_index_synonyms', [], $this->post_type);
    118118        $synonyms = (array) apply_filters('algolia_posts_' . $this->post_type . '_index_synonyms', $synonyms);
    119119
     
    127127    protected function update_post_records(WP_Post $post, array $records)
    128128    {
    129         // If there are no records, parent `update_records` will take care of the deletion.
    130         // In case of posts, we ALWAYS need to delete existing records.
    131         if (! empty($records)) {
    132             $this->delete_item($post);
    133         }
    134 
    135         parent::update_records($post, $records);
    136 
    137         // Keep track of the new record count for future updates relying on the objectID's naming convention .
    138         $new_records_count = count($records);
    139         $this->set_post_records_count($post, $new_records_count);
     129        parent::update_post_records($post, $records);
    140130
    141131        do_action('algolia_posts_index_post_updated', $post, $records);
     
    156146    protected function get_re_index_items_count()
    157147    {
    158         $query = new WP_Query(
    159             array(
    160                 'post_type'        => $this->post_type,
    161                 'post_status'      => 'any', // Let the `should_index` take care of the filtering.
    162                 'suppress_filters' => true,
    163             )
    164         );
     148        $query = new WP_Query([
     149            'post_type'        => $this->post_type,
     150            'post_status'      => 'any', // Let the `should_index` take care of the filtering.
     151            'suppress_filters' => true,
     152        ]);
    165153
    166154        return (int) $query->found_posts;
     
    175163    protected function get_items($page, $batch_size)
    176164    {
    177         $query = new WP_Query(
    178             array(
    179                 'post_type'        => $this->post_type,
    180                 'posts_per_page'   => $batch_size,
    181                 'post_status'      => 'any',
    182                 'order'            => 'ASC',
    183                 'orderby'          => 'ID',
    184                 'paged'            => $page,
    185                 'suppress_filters' => true,
    186             )
    187         );
     165        $query = new WP_Query([
     166            'post_type'        => $this->post_type,
     167            'posts_per_page'   => $batch_size,
     168            'post_status'      => 'any',
     169            'order'            => 'ASC',
     170            'orderby'          => 'ID',
     171            'paged'            => $page,
     172            'suppress_filters' => true,
     173        ]);
    188174
    189175        return $query->posts;
  • wp-algolia/trunk/src/indices/class-algolia-searchable-posts-index.php

    r2100698 r2101126  
    122122    protected function update_post_records(WP_Post $post, array $records)
    123123    {
    124         // If there are no records, parent `update_records` will take care of the deletion.
    125         // In case of posts, we ALWAYS need to delete existing records.
    126         if (! empty($records)) {
    127             $this->delete_item($post);
    128         }
    129 
    130         parent::update_records($post, $records);
    131 
    132         // Keep track of the new record count for future updates relying on the objectID's naming convention .
    133         $new_records_count = count($records);
    134         $this->set_post_records_count($post, $new_records_count);
     124        parent::update_post_records($post, $records);
    135125
    136126        do_action('algolia_searchable_posts_index_post_updated', $post, $records);
  • wp-algolia/trunk/src/indices/class-algolia-terms-index.php

    r2100083 r2101126  
    5454    protected function get_records($item)
    5555    {
    56         $record                = array();
     56        $record                = [];
    5757        $record['objectID']    = $item->term_id;
    5858        $record['term_id']     = $item->term_id;
     
    7171        $record = (array) apply_filters('algolia_term_' . $item->taxonomy . '_record', $record, $item);
    7272
    73         return array( $record );
     73        return [$record];
    7474    }
    7575
     
    8787    protected function get_settings()
    8888    {
    89         $settings = array(
    90             'attributesToIndex' => array(
     89        $settings = [
     90            'attributesToIndex' => [
    9191                'unordered(name)',
    9292                'unordered(description)',
    93             ),
    94             'customRanking'     => array(
     93            ],
     94            'customRanking'     => [
    9595                'desc(posts_count)',
    96             ),
    97         );
     96            ],
     97        ];
    9898
    9999        $settings = (array) apply_filters('algolia_terms_index_settings', $settings, $this->taxonomy);
     
    108108    protected function get_synonyms()
    109109    {
    110         return (array) apply_filters('algolia_terms_index_synonyms', array());
     110        return (array) apply_filters('algolia_terms_index_synonyms', []);
    111111    }
    112112
     
    130130        $offset = $batch_size * ( $page - 1 );
    131131
    132         $args = array(
     132        $args = [
    133133            'order'      => 'ASC',
    134134            'orderby'    => 'id',
     
    136136            'number'     => $batch_size,
    137137            'hide_empty' => false, // Let users choose what to index.
    138         );
     138        ];
    139139
    140140        // We use prior to 4.5 syntax for BC purposes.
     
    162162    public function get_default_autocomplete_config()
    163163    {
    164         $config = array(
     164        $config = [
    165165            'position'        => 20,
    166166            'max_suggestions' => 3,
    167167            'tmpl_suggestion' => 'autocomplete-term-suggestion',
    168         );
     168        ];
    169169
    170170        return array_merge(parent::get_default_autocomplete_config(), $config);
  • wp-algolia/trunk/src/indices/class-algolia-users-index.php

    r2100083 r2101126  
    4040    protected function get_records($item)
    4141    {
    42         $record                 = array();
     42        $record                 = [];
    4343        $record['objectID']     = $item->ID;
    4444        $record['user_id']      = $item->ID;
     
    5757            $record['avatar_url'] = get_avatar_url(
    5858                $item->ID,
    59                 array(
     59                [
    6060                    'size' => $avatar_size,
    61                 )
     61                ]
    6262            );
    6363        } else {
     
    6868        $record = (array) apply_filters('algolia_user_record', $record, $item);
    6969
    70         return array( $record );
     70        return [$record];
    7171    }
    7272
     
    8686    protected function get_settings()
    8787    {
    88         $settings = array(
    89             'attributesToIndex' => array(
     88        $settings = [
     89            'attributesToIndex' => [
    9090                'unordered(display_name)',
    91             ),
    92             'customRanking'     => array(
     91            ],
     92            'customRanking'     => [
    9393                'desc(posts_count)',
    94             ),
    95         );
     94            ],
     95        ];
    9696
    9797        return (array) apply_filters('algolia_users_index_settings', $settings);
     
    103103    protected function get_synonyms()
    104104    {
    105         return (array) apply_filters('algolia_users_index_synonyms', array());
     105        return (array) apply_filters('algolia_users_index_synonyms', []);
    106106    }
    107107
     
    125125        $offset = $batch_size * ( $page - 1 );
    126126
    127         $args = array(
     127        $args = [
    128128            'order'   => 'ASC',
    129129            'orderby' => 'ID',
    130130            'offset'  => $offset,
    131131            'number'  => $batch_size,
    132         );
     132        ];
    133133
    134134        // We use prior to 4.5 syntax for BC purposes, no `paged` arg.
     
    153153    public function get_default_autocomplete_config()
    154154    {
    155         $config = array(
     155        $config = [
    156156            'position'        => 30,
    157157            'max_suggestions' => 3,
    158158            'tmpl_suggestion' => 'autocomplete-user-suggestion',
    159         );
     159        ];
    160160
    161161        return array_merge(parent::get_default_autocomplete_config(), $config);
  • wp-algolia/trunk/src/watchers/class-algolia-post-changes-watcher.php

    r2100083 r2101126  
    2222    {
    2323        // Fires once a post has been saved.
    24         add_action('save_post', array( $this, 'sync_item' ));
     24        add_action('save_post', [$this, 'sync_item']);
    2525
    2626        // Fires before a post is deleted, at the start of wp_delete_post().
    2727        // At this stage the post metas are still available, and we need them.
    28         add_action('before_delete_post', array( $this, 'delete_item' ));
     28        add_action('before_delete_post', [$this, 'delete_item']);
    2929
    3030        // Handle meta changes after the change occurred.
    31         add_action('added_post_meta', array( $this, 'on_meta_change' ), 10, 4);
    32         add_action('updated_post_meta', array( $this, 'on_meta_change' ), 10, 4);
    33         add_action('deleted_post_meta', array( $this, 'on_meta_change' ), 10, 4);
     31        add_action('added_post_meta', [$this, 'on_meta_change'], 10, 4);
     32        add_action('updated_post_meta', [$this, 'on_meta_change'], 10, 4);
     33        add_action('deleted_post_meta', [$this, 'on_meta_change'], 10, 4);
    3434
    3535        // Handle attachment changes. These are required because the other post hooks are not triggered.
    36         add_action('add_attachment', array( $this, 'sync_item' ));
    37         add_action('attachment_updated', array( $this, 'sync_item' ));
    38         add_action('delete_attachment', array( $this, 'delete_item' ));
     36        add_action('add_attachment', [$this, 'sync_item']);
     37        add_action('attachment_updated', [$this, 'sync_item']);
     38        add_action('delete_attachment', [$this, 'delete_item']);
    3939    }
    4040
     
    8484    public function on_meta_change($meta_id, $object_id, $meta_key)
    8585    {
    86         $keys = array( '_thumbnail_id' );
     86        $keys = ['_thumbnail_id'];
    8787        $keys = (array) apply_filters('algolia_watch_post_meta_keys', $keys, $object_id);
    8888
  • wp-algolia/trunk/src/watchers/class-algolia-term-changes-watcher.php

    r2100083 r2101126  
    2222    {
    2323        // Fires immediately after the given terms are edited.
    24         add_action('edited_term', array( $this, 'sync_item' ));
     24        add_action('edited_term', [$this, 'sync_item']);
    2525
    2626        // Fires after an object's terms have been set.
    27         add_action('set_object_terms', array( $this, 'handle_changes' ), 10, 6);
     27        add_action('set_object_terms', [$this, 'handle_changes'], 10, 6);
    2828
    2929        // Fires after a term is deleted from the database and the cache is cleaned.
    30         add_action('delete_term', array( $this, 'on_delete_term' ), 10, 4);
     30        add_action('delete_term', [$this, 'on_delete_term'], 10, 4);
    3131    }
    3232
  • wp-algolia/trunk/src/watchers/class-algolia-user-changes-watcher.php

    r2100083 r2101126  
    2222    {
    2323        // Fires immediately after an existing user is updated.
    24         add_action('profile_update', array( $this, 'sync_item' ));
     24        add_action('profile_update', [$this, 'sync_item']);
    2525
    2626        // Fires immediately after a new user is registered.
    27         add_action('user_register', array( $this, 'sync_item' ));
     27        add_action('user_register', [$this, 'sync_item']);
    2828
    2929        // Fires immediately before a user is deleted.
    30         add_action('delete_user', array( $this, 'delete_item' ));
     30        add_action('delete_user', [$this, 'delete_item']);
    3131
    3232        // Fires once a post has been saved.
    33         add_action('save_post', array( $this, 'on_save_post' ), 10, 2);
     33        add_action('save_post', [$this, 'on_save_post'], 10, 2);
    3434
    3535        // Fires before a post is deleted, at the start of wp_delete_post().
    3636        // At this stage the post metas are still available, and we need them.
    37         add_action('before_delete_post', array( $this, 'on_delete_post' ));
     37        add_action('before_delete_post', [$this, 'on_delete_post']);
    3838    }
    3939
  • wp-algolia/trunk/vendor/autoload.php

    r2100698 r2101126  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInit18009676d0bcc7296499ee1203467cc0::getLoader();
     7return ComposerAutoloaderInitc49d78d344667cc430651fb080c0d596::getLoader();
  • wp-algolia/trunk/vendor/composer/autoload_real.php

    r2100698 r2101126  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit18009676d0bcc7296499ee1203467cc0
     5class ComposerAutoloaderInitc49d78d344667cc430651fb080c0d596
    66{
    77    private static $loader;
     
    2020        }
    2121
    22         spl_autoload_register(array('ComposerAutoloaderInit18009676d0bcc7296499ee1203467cc0', 'loadClassLoader'), true, true);
     22        spl_autoload_register(array('ComposerAutoloaderInitc49d78d344667cc430651fb080c0d596', 'loadClassLoader'), true, true);
    2323        self::$loader = $loader = new \Composer\Autoload\ClassLoader();
    24         spl_autoload_unregister(array('ComposerAutoloaderInit18009676d0bcc7296499ee1203467cc0', 'loadClassLoader'));
     24        spl_autoload_unregister(array('ComposerAutoloaderInitc49d78d344667cc430651fb080c0d596', 'loadClassLoader'));
    2525
    2626        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    2828            require_once __DIR__ . '/autoload_static.php';
    2929
    30             call_user_func(\Composer\Autoload\ComposerStaticInit18009676d0bcc7296499ee1203467cc0::getInitializer($loader));
     30            call_user_func(\Composer\Autoload\ComposerStaticInitc49d78d344667cc430651fb080c0d596::getInitializer($loader));
    3131        } else {
    3232            $map = require __DIR__ . '/autoload_namespaces.php';
     
    4949
    5050        if ($useStaticLoader) {
    51             $includeFiles = Composer\Autoload\ComposerStaticInit18009676d0bcc7296499ee1203467cc0::$files;
     51            $includeFiles = Composer\Autoload\ComposerStaticInitc49d78d344667cc430651fb080c0d596::$files;
    5252        } else {
    5353            $includeFiles = require __DIR__ . '/autoload_files.php';
    5454        }
    5555        foreach ($includeFiles as $fileIdentifier => $file) {
    56             composerRequire18009676d0bcc7296499ee1203467cc0($fileIdentifier, $file);
     56            composerRequirec49d78d344667cc430651fb080c0d596($fileIdentifier, $file);
    5757        }
    5858
     
    6161}
    6262
    63 function composerRequire18009676d0bcc7296499ee1203467cc0($fileIdentifier, $file)
     63function composerRequirec49d78d344667cc430651fb080c0d596($fileIdentifier, $file)
    6464{
    6565    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • wp-algolia/trunk/vendor/composer/autoload_static.php

    r2100698 r2101126  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit18009676d0bcc7296499ee1203467cc0
     7class ComposerStaticInitc49d78d344667cc430651fb080c0d596
    88{
    99    public static $files = array (
     
    338338    {
    339339        return \Closure::bind(function () use ($loader) {
    340             $loader->prefixLengthsPsr4 = ComposerStaticInit18009676d0bcc7296499ee1203467cc0::$prefixLengthsPsr4;
    341             $loader->prefixDirsPsr4 = ComposerStaticInit18009676d0bcc7296499ee1203467cc0::$prefixDirsPsr4;
    342             $loader->classMap = ComposerStaticInit18009676d0bcc7296499ee1203467cc0::$classMap;
     340            $loader->prefixLengthsPsr4 = ComposerStaticInitc49d78d344667cc430651fb080c0d596::$prefixLengthsPsr4;
     341            $loader->prefixDirsPsr4 = ComposerStaticInitc49d78d344667cc430651fb080c0d596::$prefixDirsPsr4;
     342            $loader->classMap = ComposerStaticInitc49d78d344667cc430651fb080c0d596::$classMap;
    343343
    344344        }, null, ClassLoader::class);
  • wp-algolia/trunk/wp-algolia.php

    r2100698 r2101126  
    55Plugin URI:        https://www.algolia.com/
    66Description:       WordPress plugin to use Algolia as a search engine.
    7 Version:           3.0.1
     7Version:           3.0.2
    88Author:            Léo Colombaro
    99Author URI:        https://colombaro.fr/
Note: See TracChangeset for help on using the changeset viewer.