| 12 | | * ADD: bcn_get_option_inputvalue - Escape Option Values to be used inside |
| 13 | | * (X)HTML Element Attribute Values. |
| 14 | | * FIX: bcn_get - fixed issue solved inside wordpress main |
| 15 | | * codebase in 2007-09. |
| 16 | | * see http://trac.wordpress.org/ticket/4781 |
| | 14 | * ADD: bcn_get_option_inputvalue - Escape Option Values to be used inside |
| | 15 | * (X)HTML Element Attribute Values. |
| | 16 | * FIX: bcn_get - fixed issue solved inside wordpress main |
| | 17 | * codebase in 2007-09. |
| | 18 | * see http://trac.wordpress.org/ticket/4781 |
| 73 | | $bcn_value = " " . ltrim($bcn_value); |
| 74 | | } |
| 75 | | //Preserv the end space if exists |
| 76 | | $bcn_length = strlen($bcn_value) - 1; |
| 77 | | if(strpos($bcn_value, " ", $bcn_length - 1) === $bcn_length) |
| 78 | | { |
| 79 | | $bcn_value = rtrim($bcn_value) . " "; |
| | 75 | //Preserving the front space if exists |
| | 76 | if(strpos($bcn_value, " ") === 0) |
| | 77 | { |
| | 78 | $bcn_value = " " . ltrim($bcn_value); |
| | 79 | } |
| | 80 | //Preserv the end space if exists |
| | 81 | $bcn_length = strlen($bcn_value) - 1; |
| | 82 | if(strpos($bcn_value, " ", $bcn_length - 1) === $bcn_length) |
| | 83 | { |
| | 84 | $bcn_value = rtrim($bcn_value) . " "; |
| | 85 | } |