WordPress.org

Plugin Directory

Changeset 1039427


Ignore:
Timestamp:
12/06/14 15:02:02 (3 years ago)
Author:
kevinlangleyjr
Message:

cancelling original WP_Query for search when Lift returns results and fixing php strict standards - static method warnings

Location:
lift-search/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • lift-search/trunk/admin/admin.php

    r954847 r1039427  
    409409     * @return array 
    410410     */ 
    411     public function filter__plugin_row_meta( $links, $page ) { 
     411    public static function filter__plugin_row_meta( $links, $page ) { 
    412412        if ( $page == self::OPTIONS_SLUG ) { 
    413413            $links[] = '<a href="' . admin_url( 'options-general.php?page=' . self::OPTIONS_SLUG ) . '">Settings</a>'; 
  • lift-search/trunk/lib/posts-to-sdf.php

    r819819 r1039427  
    2929     * @return string 
    3030     */ 
    31     function __strip_tags_shortcodes( $content ) { 
     31    public static function __strip_tags_shortcodes( $content ) { 
    3232        return strip_tags( strip_shortcodes( $content ) ); 
    3333    } 
     
    3939     * @return array 
    4040     */ 
    41     function __format_post_categories( $cats ) { 
     41    public static function __format_post_categories( $cats ) { 
    4242        return array_map( 'intval', array_values( $cats ) ); 
    4343    } 
     
    4949     * @return array 
    5050     */ 
    51     function __format_post_tags( $tags ) { 
     51    public static function __format_post_tags( $tags ) { 
    5252        // @TODO: performance 
    5353        return array_map( function( $tag ) { 
  • lift-search/trunk/lift-search.php

    r1030421 r1039427  
    22/* 
    33Plugin Name: Lift Search 
    4 Version: 1.9.9 
     4Version: 1.9.10 
    55Plugin URI: http://getliftsearch.com/ 
    66Description: Improves WordPress search using Amazon CloudSearch 
  • lift-search/trunk/readme.txt

    r1030421 r1039427  
    33Tags: search, cloudsearch, amazon, aws 
    44Requires at least: 3.4.2 
    5 Tested up to: 3.6.1 
    6 Stable tag: 1.9.9 
     5Tested up to: 4.0.1 
     6Stable tag: 1.9.10 
    77License: GPLv2 or later 
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    113113 
    114114== Changelog == 
     115== 1.9.10 == 
     116* Cancel original WP core search when Lift returns results 
     117* Fix PHP strict static warnings 
     118 
    115119== 1.9.9 == 
    116120* Adding changes per WP VIP 
  • lift-search/trunk/vendor/autoload.php

    r1030421 r1039427  
    55require_once __DIR__ . '/composer' . '/autoload_real.php'; 
    66 
    7 return ComposerAutoloaderInit0968cfa81deaddabad62a5e87bae86df::getLoader(); 
     7return ComposerAutoloaderInit489c742fb5ecbc12860bc1e74b17c587::getLoader(); 
  • lift-search/trunk/vendor/composer/autoload_real.php

    r1030421 r1039427  
    33// autoload_real.php @generated by Composer 
    44 
    5 class ComposerAutoloaderInit0968cfa81deaddabad62a5e87bae86df 
     5class ComposerAutoloaderInit489c742fb5ecbc12860bc1e74b17c587 
    66{ 
    77    private static $loader; 
     
    2020        } 
    2121 
    22         spl_autoload_register(array('ComposerAutoloaderInit0968cfa81deaddabad62a5e87bae86df', 'loadClassLoader'), true, true); 
     22        spl_autoload_register(array('ComposerAutoloaderInit489c742fb5ecbc12860bc1e74b17c587', 'loadClassLoader'), true, true); 
    2323        self::$loader = $loader = new \Composer\Autoload\ClassLoader(); 
    24         spl_autoload_unregister(array('ComposerAutoloaderInit0968cfa81deaddabad62a5e87bae86df', 'loadClassLoader')); 
     24        spl_autoload_unregister(array('ComposerAutoloaderInit489c742fb5ecbc12860bc1e74b17c587', 'loadClassLoader')); 
    2525 
    2626        $map = require __DIR__ . '/autoload_namespaces.php'; 
     
    4343        $includeFiles = require __DIR__ . '/autoload_files.php'; 
    4444        foreach ($includeFiles as $file) { 
    45             composerRequire0968cfa81deaddabad62a5e87bae86df($file); 
     45            composerRequire489c742fb5ecbc12860bc1e74b17c587($file); 
    4646        } 
    4747 
     
    5050} 
    5151 
    52 function composerRequire0968cfa81deaddabad62a5e87bae86df($file) 
     52function composerRequire489c742fb5ecbc12860bc1e74b17c587($file) 
    5353{ 
    5454    require $file; 
  • lift-search/trunk/wp/lift-wp-search.php

    r969984 r1039427  
    229229        if ( false !== $lift_results && is_object( $lift_results ) ) { 
    230230            $lift_query->set_results( $lift_results ); 
     231 
     232            // Since lift results exists, we no longer need to run the wp search 
     233            return ''; 
    231234        } 
    232235        return $request; 
Note: See TracChangeset for help on using the changeset viewer.