@@ 986-992 (lines=7) @@ | ||
983 | if ( null === $this->strings ) { |
|
984 | $this->strings = (array) $this->args['text']; |
|
985 | ||
986 | if ( is_callable( $this->args['text_cb'] ) ) { |
|
987 | $strings = call_user_func( $this->args['text_cb'], $this ); |
|
988 | ||
989 | if ( $strings && is_array( $strings ) ) { |
|
990 | $this->strings += $strings; |
|
991 | } |
|
992 | } |
|
993 | } |
|
994 | ||
995 | // If we have that string value, send it back. |
|
@@ 1023-1029 (lines=7) @@ | ||
1020 | ||
1021 | $this->field_options = (array) $this->args['options']; |
|
1022 | ||
1023 | if ( is_callable( $this->args['options_cb'] ) ) { |
|
1024 | $options = call_user_func( $this->args['options_cb'], $this ); |
|
1025 | ||
1026 | if ( $options && is_array( $options ) ) { |
|
1027 | $this->field_options += $options; |
|
1028 | } |
|
1029 | } |
|
1030 | ||
1031 | if ( $key ) { |
|
1032 | return array_key_exists( $key, $this->field_options ) ? $this->field_options[ $key ] : false; |