Changeset 496522
- Timestamp:
- 01/28/2012 04:12:38 PM (14 years ago)
- Location:
- joemobi/trunk
- Files:
-
- 2 edited
-
ReadMe.txt (modified) (2 diffs)
-
singletons/response.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
joemobi/trunk/ReadMe.txt
r489390 r496522 4 4 Requires at least: 2.9.0 5 5 Tested up to: 3.3 6 Stable tag: 2.0 46 Stable tag: 2.05 7 7 8 8 Create Native Android and BlackBerry applications from your WordPress site using this plugin and http://www.JoeMobi.com … … 85 85 = 2.04 86 86 - Fixes publish interaction so that notification to not repeat on edits of published posts. 87 88 = 2.05 89 - Fixes json encoding issue with some plugins. 87 90 -
joemobi/trunk/singletons/response.php
r491242 r496522 62 62 // $encoded = str_replace('<br \/>', '<br \>', $encoded); 63 63 64 // Fix for parsing error? not sure. Leaving out for now. 65 //$encoded = str_replace('\\/', '/', $encoded); 66 //$encoded = str_replace('\>', '/>', $encoded); 67 68 64 // Test 65 66 $filtered = $encoded; 67 68 // Fix for parsing errors. 69 // Removes optional escaped / 70 while (stripos($filtered, '\\/') !== false) { 71 $filtered = str_replace('\\/', '/', $filtered); 72 } 73 //$filtered = str_replace('\\>', '/>', $filtered); 74 75 // After the filter test to ensure we can still decode the value. 76 $decoded = json_decode($filtered); 77 if ($decoded && $decoded != null) { 78 // Decode was ok. return filtered values. 79 return $filtered; 80 } 81 82 // Filter failed so return as it was. 69 83 return $encoded; 84 70 85 } else { 71 86 // Use PEAR's Services_JSON encoder otherwise
Note: See TracChangeset
for help on using the changeset viewer.