WordPress.org

Make WordPress Core

Ticket #4169: wp-admin_widgets.2.php

File wp-admin_widgets.2.php, 655 bytes (added by filosofo, 7 years ago)
Line 
1Index: wp-admin/widgets.php
2===================================================================
3--- wp-admin/widgets.php        (revision 5307)
4+++ wp-admin/widgets.php        (working copy)
5@@ -38,7 +38,7 @@
6       
7        $output = '<li class="module" id="widgetprefix-%1$s"><span class="handle">%2$s</span></li>';
8       
9-       printf( $output, $sanitized_name, $name . $popper );
10+       printf( $output, $sanitized_name, $wp_registered_widgets[$name]['name'] . $popper );
11 }
12 
13 $title = __( 'Widgets' );
14@@ -236,4 +236,4 @@
15       
16        <?php do_action( 'sidebar_admin_page' ); ?>
17 
18-<?php require_once 'admin-footer.php'; ?>
19\ No newline at end of file
20+<?php require_once 'admin-footer.php'; ?>