~canonical-sysadmins/wordpress/3.9.x

« back to all changes in this revision

Viewing changes to wp-includes/widgets.php

  • Committer: Paul Collins
  • Date: 2011-07-13 02:31:10 UTC
  • Revision ID: paul.collins@canonical.com-20110713023110-rvp7cjj31rsaomkr
import Wordpress 3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
         * PHP4 constructor
75
75
         */
76
76
        function WP_Widget( $id_base = false, $name, $widget_options = array(), $control_options = array() ) {
77
 
                $this->__construct( $id_base, $name, $widget_options, $control_options );
 
77
                WP_Widget::__construct( $id_base, $name, $widget_options, $control_options );
78
78
        }
79
79
 
80
80
        /**
854
854
        }
855
855
 
856
856
        $sidebars_widgets = wp_get_sidebars_widgets();
 
857
        if ( empty( $sidebars_widgets ) )
 
858
                return false;
857
859
 
858
860
        if ( empty($wp_registered_sidebars[$index]) || !array_key_exists($index, $sidebars_widgets) || !is_array($sidebars_widgets[$index]) || empty($sidebars_widgets[$index]) )
859
861
                return false;
897
899
}
898
900
 
899
901
/**
900
 
 * Whether widget is displayied on the front-end.
 
902
 * Whether widget is displayed on the front-end.
901
903
 *
902
904
 * Either $callback or $id_base can be used
903
905
 * $id_base is the first argument when extending WP_Widget class