@@ 1048-1054 (lines=7) @@ | ||
1045 | ||
1046 | $this->field_options = (array) $this->args['options']; |
|
1047 | ||
1048 | if ( is_callable( $this->args['options_cb'] ) ) { |
|
1049 | $options = call_user_func( $this->args['options_cb'], $this ); |
|
1050 | ||
1051 | if ( $options && is_array( $options ) ) { |
|
1052 | $this->field_options = $options + $this->field_options; |
|
1053 | } |
|
1054 | } |
|
1055 | ||
1056 | if ( $key ) { |
|
1057 | return array_key_exists( $key, $this->field_options ) ? $this->field_options[ $key ] : false; |
|
@@ 1010-1016 (lines=7) @@ | ||
1007 | if ( null === $this->strings ) { |
|
1008 | $this->strings = (array) $this->args['text']; |
|
1009 | ||
1010 | if ( is_callable( $this->args['text_cb'] ) ) { |
|
1011 | $strings = call_user_func( $this->args['text_cb'], $this ); |
|
1012 | ||
1013 | if ( $strings && is_array( $strings ) ) { |
|
1014 | $this->strings += $strings; |
|
1015 | } |
|
1016 | } |
|
1017 | } |
|
1018 | ||
1019 | // If we have that string value, send it back. |