@@ 943-949 (lines=7) @@ | ||
940 | if ( null === $this->strings ) { |
|
941 | $this->strings = (array) $this->args['text']; |
|
942 | ||
943 | if ( is_callable( $this->args['text_cb'] ) ) { |
|
944 | $strings = call_user_func( $this->args['text_cb'], $this ); |
|
945 | ||
946 | if ( $strings && is_array( $strings ) ) { |
|
947 | $this->strings += $strings; |
|
948 | } |
|
949 | } |
|
950 | } |
|
951 | ||
952 | // If we have that string value, send it back. |
|
@@ 980-986 (lines=7) @@ | ||
977 | ||
978 | $this->field_options = (array) $this->args['options']; |
|
979 | ||
980 | if ( is_callable( $this->args['options_cb'] ) ) { |
|
981 | $options = call_user_func( $this->args['options_cb'], $this ); |
|
982 | ||
983 | if ( $options && is_array( $options ) ) { |
|
984 | $this->field_options = $options + $this->field_options; |
|
985 | } |
|
986 | } |
|
987 | ||
988 | if ( $key ) { |
|
989 | return array_key_exists( $key, $this->field_options ) ? $this->field_options[ $key ] : false; |