Changeset 53888 for trunk/src/wp-admin/includes/media.php
- Timestamp:
- 08/12/2022 12:09:10 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/media.php
r53777 r53888 1704 1704 <tr><td style='display:none' colspan='2' class='image-editor' id='image-editor-$post->ID'></td></tr>\n 1705 1705 <tr><td colspan='2'><p class='media-types media-types-required-info'>" . 1706 /* translators: %s: Asterisk symbol (*). */ 1707 sprintf( __( 'Required fields are marked %s' ), '<span class="required">*</span>' ) . 1706 wp_required_field_message() . 1708 1707 "</p></td></tr>\n"; 1709 1708 … … 1785 1784 } 1786 1785 1787 $required = $field['required'] ? ' <span class="required">*</span>': '';1786 $required = $field['required'] ? ' ' . wp_required_field_indicator() : ''; 1788 1787 $required_attr = $field['required'] ? ' required' : ''; 1789 1788 $class = $id; … … 1976 1975 1977 1976 $readonly = ! $user_can_edit && ! empty( $field['taxonomy'] ) ? " readonly='readonly' " : ''; 1978 $required = $field['required'] ? ' <span class="required">*</span>': '';1977 $required = $field['required'] ? ' ' . wp_required_field_indicator() : ''; 1979 1978 $required_attr = $field['required'] ? ' required' : ''; 1980 1979 $class = 'compat-field-' . $id; … … 2032 2031 if ( $item ) { 2033 2032 $item = '<p class="media-types media-types-required-info">' . 2034 /* translators: %s: Asterisk symbol (*). */ 2035 sprintf( __( 'Required fields are marked %s' ), '<span class="required">*</span>' ) . 2033 wp_required_field_message() . 2036 2034 '</p>' . 2037 2035 '<table class="compat-attachment-fields">' . $item . '</table>'; … … 2930 2928 <p class="media-types"><label><input type="radio" name="media_type" value="image" id="image-only"' . checked( 'image-only', $view, false ) . ' /> ' . __( 'Image' ) . '</label> <label><input type="radio" name="media_type" value="generic" id="not-image"' . checked( 'not-image', $view, false ) . ' /> ' . __( 'Audio, Video, or Other File' ) . '</label></p> 2931 2929 <p class="media-types media-types-required-info">' . 2932 /* translators: %s: Asterisk symbol (*). */ 2933 sprintf( __( 'Required fields are marked %s' ), '<span class="required">*</span>' ) . 2930 wp_required_field_message() . 2934 2931 '</p> 2935 2932 <table class="describe ' . $table_class . '"><tbody> 2936 2933 <tr> 2937 2934 <th scope="row" class="label" style="width:130px;"> 2938 <label for="src"><span class="alignleft">' . __( 'URL' ) . '</span> <span class="required">*</span></label>2935 <label for="src"><span class="alignleft">' . __( 'URL' ) . '</span> ' . wp_required_field_indicator() . '</label> 2939 2936 <span class="alignright" id="status_img"></span> 2940 2937 </th> … … 2944 2941 <tr> 2945 2942 <th scope="row" class="label"> 2946 <label for="title"><span class="alignleft">' . __( 'Title' ) . '</span> <span class="required">*</span></label>2943 <label for="title"><span class="alignleft">' . __( 'Title' ) . '</span> ' . wp_required_field_indicator() . '</label> 2947 2944 </th> 2948 2945 <td class="field"><input id="title" name="title" value="" type="text" required /></td> … … 2953 2950 <tr class="image-only"> 2954 2951 <th scope="row" class="label"> 2955 <label for="alt"><span class="alignleft">' . __( 'Alternative Text' ) . '</span> </label>2952 <label for="alt"><span class="alignleft">' . __( 'Alternative Text' ) . '</span> ' . wp_required_field_indicator() . '</label> 2956 2953 </th> 2957 2954 <td class="field"><input id="alt" name="alt" value="" type="text" required />
Note: See TracChangeset
for help on using the changeset viewer.