wp-content/themes/twentyfourteen/inc/featured-content.php:489Validates featured content settings.
$inputarrayarray public static function validate_settings( $input ) { $output = array(); if ( empty( $input['tag-name'] ) ) { $output['tag-id'] = 0; } else { $term = get_term_by( 'name', $input['tag-name'], 'post_tag' ); if ( $term ) { $output['tag-id'] = $term->term_id; } else { $new_tag = wp_create_tag( $input['tag-name'] ); if ( ! is_wp_error( $new_tag ) && isset( $new_tag['term_id'] ) ) { $output['tag-id'] = $new_tag['term_id']; } } $output['tag-name'] = $input['tag-name']; } $output['hide-tag'] = isset( $input['hide-tag'] ) && $input['hide-tag'] ? 1 : 0; // Delete the featured post IDs transient. self::delete_transient(); return $output; }Introduced in Twenty Fourteen 1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-content/themes/twentyfourteen/inc/featured-content.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.