Plugin Directory

Changeset 1302731


Ignore:
Timestamp:
12/08/2015 05:54:58 AM (10 years ago)
Author:
mattshaw
Message:

Updated to v1.2.9 (see readme.txt for further details)

Location:
better-search-replace/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • better-search-replace/trunk/README.md

    r1294419 r1302731  
    5757
    5858## Changelog ##
     59
     60### 1.2.9 - December 8, 2015 ###
     61* Fix: Bug with case-insensitive searches in serialized objects
    5962
    6063### 1.2.8 - November 25, 2015 ###
  • better-search-replace/trunk/README.txt

    r1294419 r1302731  
    9696== Changelog ==
    9797
     98= 1.2.9 - December 8, 2015 =
     99* Fix: Bug with case-insensitive searches in serialized objects
     100
    98101= 1.2.8 - November 25, 2015 =
    99102* Fix: Bug with report details
  • better-search-replace/trunk/better-search-replace.php

    r1294419 r1302731  
    1414 * Plugin URI:        http://expandedfronts.com/better-search-replace
    1515 * Description:       A small plugin for running a search/replace on your WordPress database.
    16  * Version:           1.2.8
     16 * Version:           1.2.9
    1717 * Author:            Expanded Fronts
    1818 * Author URI:        http://expandedfronts.com
     
    6969
    7070        // Defines the current version of the plugin.
    71         define( 'BSR_VERSION', '1.2.8' );
     71        define( 'BSR_VERSION', '1.2.9' );
    7272
    7373        /**
  • better-search-replace/trunk/includes/class-bsr-db.php

    r1280795 r1302731  
    311311     *
    312312     * @access private
    313      * @param  string       $from               String we're looking to replace.
    314      * @param  string       $to                 What we want it to be replaced with
    315      * @param  array        $data               Used to pass any subordinate arrays back to in.
    316      * @param  boolean      $serialised         Does the array passed via $data need serialising.
    317      * @param  boolean      $case_insensitive   If we should ignore case.
     313     * @param  string           $from               String we're looking to replace.
     314     * @param  string           $to                 What we want it to be replaced with
     315     * @param  array            $data               Used to pass any subordinate arrays back to in.
     316     * @param  boolean          $serialised         Does the array passed via $data need serialising.
     317     * @param  sting|boolean    $case_insensitive   Set to 'on' if we should ignore case, false otherwise.
    318318     *
    319319     * @return string|array The original array with all elements replaced as needed.
     
    323323
    324324            if ( is_string( $data ) && ( $unserialized = @unserialize( $data ) ) !== false ) {
    325                 $data = $this->recursive_unserialize_replace( $from, $to, $unserialized, true );
     325                $data = $this->recursive_unserialize_replace( $from, $to, $unserialized, true, $case_insensitive );
    326326            }
    327327
     
    329329                $_tmp = array( );
    330330                foreach ( $data as $key => $value ) {
    331                     $_tmp[ $key ] = $this->recursive_unserialize_replace( $from, $to, $value, false );
     331                    $_tmp[ $key ] = $this->recursive_unserialize_replace( $from, $to, $value, false, $case_insensitive );
    332332                }
    333333
     
    341341                $props  = get_object_vars( $data );
    342342                foreach ( $props as $key => $value ) {
    343                     $_tmp->$key = $this->recursive_unserialize_replace( $from, $to, $value, false );
     343                    $_tmp->$key = $this->recursive_unserialize_replace( $from, $to, $value, false, $case_insensitive );
    344344                }
    345345
Note: See TracChangeset for help on using the changeset viewer.