Changeset 53758 for trunk/src/wp-admin/theme-editor.php
- Timestamp:
- 07/22/2022 11:31:27 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/theme-editor.php
r53186 r53758 165 165 $functions = wp_doc_link_parse( $content ); 166 166 167 $docs_select = '<select name="docs-list" id="docs-list">'; 168 $docs_select .= '<option value="">' . esc_attr__( 'Function Name…' ) . '</option>'; 169 foreach ( $functions as $function ) { 170 $docs_select .= '<option value="' . esc_attr( urlencode( $function ) ) . '">' . htmlspecialchars( $function ) . '()</option>'; 167 if ( ! empty( $functions ) ) { 168 $docs_select = '<select name="docs-list" id="docs-list">'; 169 $docs_select .= '<option value="">' . esc_html__( 'Function Name…' ) . '</option>'; 170 171 foreach ( $functions as $function ) { 172 $docs_select .= '<option value="' . esc_attr( $function ) . '">' . esc_html( $function ) . '()</option>'; 173 } 174 175 $docs_select .= '</select>'; 171 176 } 172 $docs_select .= '</select>';173 177 } 174 178
Note: See TracChangeset
for help on using the changeset viewer.