wp/wp-content/plugins/option-tree/includes/ot-functions-deprecated.php
changeset 5 5e2f62d02dcd
parent 0 d970ebf37754
child 11 bf1778c34b9a
equal deleted inserted replaced
4:346c88efed21 5:5e2f62d02dcd
    26 if ( ! function_exists( 'get_option_tree' ) ) {
    26 if ( ! function_exists( 'get_option_tree' ) ) {
    27 
    27 
    28   function get_option_tree( $item_id = '', $options = '', $echo = false, $is_array = false, $offset = -1 ) {
    28   function get_option_tree( $item_id = '', $options = '', $echo = false, $is_array = false, $offset = -1 ) {
    29     /* load saved options */
    29     /* load saved options */
    30     if ( ! $options )
    30     if ( ! $options )
    31       $options = get_option( 'option_tree' );
    31       $options = get_option( ot_options_id() );
    32     
    32     
    33     /* no value return */
    33     /* no value return */
    34     if ( ! isset( $options[$item_id] ) || empty( $options[$item_id] ) )
    34     if ( ! isset( $options[$item_id] ) || empty( $options[$item_id] ) )
    35       return;
    35       return;
    36     
    36