X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/f9001779751f83dc8a10e478bfecb4d8dd5f964c..9c2096d803812dacbdf6cf8efe90053e39f00b96:/wp-includes/default-widgets.php
diff --git a/wp-includes/default-widgets.php b/wp-includes/default-widgets.php
index a3699051..df7ef39a 100644
--- a/wp-includes/default-widgets.php
+++ b/wp-includes/default-widgets.php
@@ -13,9 +13,9 @@
*/
class WP_Widget_Pages extends WP_Widget {
- function WP_Widget_Pages() {
+ function __construct() {
$widget_ops = array('classname' => 'widget_pages', 'description' => __( 'Your site’s WordPress Pages') );
- $this->WP_Widget('pages', __('Pages'), $widget_ops);
+ parent::__construct('pages', __('Pages'), $widget_ops);
}
function widget( $args, $instance ) {
@@ -89,9 +89,9 @@ class WP_Widget_Pages extends WP_Widget {
*/
class WP_Widget_Links extends WP_Widget {
- function WP_Widget_Links() {
+ function __construct() {
$widget_ops = array('description' => __( "Your blogroll" ) );
- $this->WP_Widget('links', __('Links'), $widget_ops);
+ parent::__construct('links', __('Links'), $widget_ops);
}
function widget( $args, $instance ) {
@@ -105,7 +105,7 @@ class WP_Widget_Links extends WP_Widget {
if ( is_admin() && !$category ) {
// Display All Links widget as such in the widgets screen
- echo $before_widget . $before_title. __('All Links') . $after_title . $after_widget;
+ echo $before_widget . $before_title . _x('All Links', 'links widget') . $after_title . $after_widget;
return;
}
@@ -140,7 +140,7 @@ class WP_Widget_Links extends WP_Widget {