@@ 970-976 (lines=7) @@ | ||
967 | if ( null === $this->strings ) { |
|
968 | $this->strings = (array) $this->args['text']; |
|
969 | ||
970 | if ( is_callable( $this->args['text_cb'] ) ) { |
|
971 | $strings = call_user_func( $this->args['text_cb'], $this ); |
|
972 | ||
973 | if ( $strings && is_array( $strings ) ) { |
|
974 | $this->strings += $strings; |
|
975 | } |
|
976 | } |
|
977 | } |
|
978 | ||
979 | // If we have that string value, send it back. |
|
@@ 1007-1013 (lines=7) @@ | ||
1004 | ||
1005 | $this->field_options = (array) $this->args['options']; |
|
1006 | ||
1007 | if ( is_callable( $this->args['options_cb'] ) ) { |
|
1008 | $options = call_user_func( $this->args['options_cb'], $this ); |
|
1009 | ||
1010 | if ( $options && is_array( $options ) ) { |
|
1011 | $this->field_options = $options + $this->field_options; |
|
1012 | } |
|
1013 | } |
|
1014 | ||
1015 | if ( $key ) { |
|
1016 | return array_key_exists( $key, $this->field_options ) ? $this->field_options[ $key ] : false; |