@@ -70,22 +70,22 @@ |
||
| 70 | 70 | foreach ( array( 'start', 'end' ) as $context ) { |
| 71 | 71 | |
| 72 | 72 | // Make sure value is array. |
| 73 | - if ( ! isset( $value[ $context ] ) ) { |
|
| 74 | - $value[ $context ] = array(); |
|
| 73 | + if ( ! isset( $value[$context] ) ) { |
|
| 74 | + $value[$context] = array(); |
|
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | // Sanitize colors. |
| 78 | - if ( ! isset( $value[ $context ]['color'] ) ) { |
|
| 79 | - $value[ $context ]['color'] = ''; |
|
| 78 | + if ( ! isset( $value[$context]['color'] ) ) { |
|
| 79 | + $value[$context]['color'] = ''; |
|
| 80 | 80 | } |
| 81 | - $value[ $context ]['color'] = esc_attr( $value[ $context ]['color'] ); |
|
| 81 | + $value[$context]['color'] = esc_attr( $value[$context]['color'] ); |
|
| 82 | 82 | |
| 83 | 83 | // Sanitize positions. |
| 84 | - if ( ! isset( $value[ $context ]['position'] ) ) { |
|
| 85 | - $value[ $context ]['position'] = 0; |
|
| 84 | + if ( ! isset( $value[$context]['position'] ) ) { |
|
| 85 | + $value[$context]['position'] = 0; |
|
| 86 | 86 | }; |
| 87 | - $value[ $context ]['position'] = (int) $value[ $context ]['position']; |
|
| 88 | - $value[ $context ]['position'] = max( min( $value[ $context ]['position'], 100 ), 0 ); |
|
| 87 | + $value[$context]['position'] = (int) $value[$context]['position']; |
|
| 88 | + $value[$context]['position'] = max( min( $value[$context]['position'], 100 ), 0 ); |
|
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | // Sanitize angle. |