Make WordPress Core

Changeset 28504


Ignore:
Timestamp:
05/19/2014 05:22:38 AM (11 years ago)
Author:
wonderboymusic
Message:

Add access modifiers to methods/members in Walker_Category and Walker_CategoryDropdown.

See #27881, #22234.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/category-template.php

    r28438 r28504  
    897897     * @var string
    898898     */
    899     var $tree_type = 'category';
     899    public $tree_type = 'category';
    900900
    901901    /**
     
    907907     * @var array
    908908     */
    909     var $db_fields = array ('parent' => 'parent', 'id' => 'term_id');
     909    public $db_fields = array ('parent' => 'parent', 'id' => 'term_id');
    910910
    911911    /**
     
    921921     *                       @see wp_list_categories()
    922922     */
    923     function start_lvl( &$output, $depth = 0, $args = array() ) {
     923    public function start_lvl( &$output, $depth = 0, $args = array() ) {
    924924        if ( 'list' != $args['style'] )
    925925            return;
     
    941941     *                       @wsee wp_list_categories()
    942942     */
    943     function end_lvl( &$output, $depth = 0, $args = array() ) {
     943    public function end_lvl( &$output, $depth = 0, $args = array() ) {
    944944        if ( 'list' != $args['style'] )
    945945            return;
     
    962962     * @param int    $id       ID of the current category.
    963963     */
    964     function start_el( &$output, $category, $depth = 0, $args = array(), $id = 0 ) {
     964    public function start_el( &$output, $category, $depth = 0, $args = array(), $id = 0 ) {
    965965        /** This filter is documented in wp-includes/category-template.php */
    966966        $cat_name = apply_filters(
     
    10521052     * @param array  $args   An array of arguments. Only uses 'list' for whether should append to output. @see wp_list_categories()
    10531053     */
    1054     function end_el( &$output, $page, $depth = 0, $args = array() ) {
     1054    public function end_el( &$output, $page, $depth = 0, $args = array() ) {
    10551055        if ( 'list' != $args['style'] )
    10561056            return;
     
    10741074     * @var string
    10751075     */
    1076     var $tree_type = 'category';
     1076    public $tree_type = 'category';
    10771077
    10781078    /**
     
    10821082     * @var array
    10831083     */
    1084     var $db_fields = array ('parent' => 'parent', 'id' => 'term_id');
     1084    public $db_fields = array ('parent' => 'parent', 'id' => 'term_id');
    10851085
    10861086    /**
     
    10951095     * @param array  $args     Uses 'selected' and 'show_count' keys, if they exist. @see wp_dropdown_categories()
    10961096     */
    1097     function start_el( &$output, $category, $depth = 0, $args = array(), $id = 0 ) {
     1097    public function start_el( &$output, $category, $depth = 0, $args = array(), $id = 0 ) {
    10981098        $pad = str_repeat(' ', $depth * 3);
    10991099
Note: See TracChangeset for help on using the changeset viewer.