Changeset 53758
- Timestamp:
- 07/22/2022 11:31:27 AM (2 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/plugin-editor.php
r53186 r53758 168 168 if ( ! empty( $functions ) ) { 169 169 $docs_select = '<select name="docs-list" id="docs-list">'; 170 $docs_select .= '<option value="">' . __( 'Function Name…' ) . '</option>'; 170 $docs_select .= '<option value="">' . esc_html__( 'Function Name…' ) . '</option>'; 171 171 172 foreach ( $functions as $function ) { 172 173 $docs_select .= '<option value="' . esc_attr( $function ) . '">' . esc_html( $function ) . '()</option>'; 173 174 } 175 174 176 $docs_select .= '</select>'; 175 177 } -
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.