Changeset 1302731
- Timestamp:
- 12/08/2015 05:54:58 AM (10 years ago)
- Location:
- better-search-replace/trunk
- Files:
-
- 4 edited
-
README.md (modified) (1 diff)
-
README.txt (modified) (1 diff)
-
better-search-replace.php (modified) (2 diffs)
-
includes/class-bsr-db.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
better-search-replace/trunk/README.md
r1294419 r1302731 57 57 58 58 ## Changelog ## 59 60 ### 1.2.9 - December 8, 2015 ### 61 * Fix: Bug with case-insensitive searches in serialized objects 59 62 60 63 ### 1.2.8 - November 25, 2015 ### -
better-search-replace/trunk/README.txt
r1294419 r1302731 96 96 == Changelog == 97 97 98 = 1.2.9 - December 8, 2015 = 99 * Fix: Bug with case-insensitive searches in serialized objects 100 98 101 = 1.2.8 - November 25, 2015 = 99 102 * Fix: Bug with report details -
better-search-replace/trunk/better-search-replace.php
r1294419 r1302731 14 14 * Plugin URI: http://expandedfronts.com/better-search-replace 15 15 * Description: A small plugin for running a search/replace on your WordPress database. 16 * Version: 1.2. 816 * Version: 1.2.9 17 17 * Author: Expanded Fronts 18 18 * Author URI: http://expandedfronts.com … … 69 69 70 70 // Defines the current version of the plugin. 71 define( 'BSR_VERSION', '1.2. 8' );71 define( 'BSR_VERSION', '1.2.9' ); 72 72 73 73 /** -
better-search-replace/trunk/includes/class-bsr-db.php
r1280795 r1302731 311 311 * 312 312 * @access private 313 * @param string $from String we're looking to replace.314 * @param string $to What we want it to be replaced with315 * @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. 318 318 * 319 319 * @return string|array The original array with all elements replaced as needed. … … 323 323 324 324 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 ); 326 326 } 327 327 … … 329 329 $_tmp = array( ); 330 330 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 ); 332 332 } 333 333 … … 341 341 $props = get_object_vars( $data ); 342 342 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 ); 344 344 } 345 345
Note: See TracChangeset
for help on using the changeset viewer.