WordPress.org

Make WordPress Core

Ticket #16682: 16682.diff

File 16682.diff, 93.5 KB (added by aaroncampbell, 2 years ago)

Everything

  • wp-admin/custom-background.php

     
    2222         * @since 3.0.0 
    2323         * @access private 
    2424         */ 
    25         var $admin_header_callback; 
     25        private $admin_header_callback; 
    2626 
    2727        /** 
    2828         * Callback for header div. 
     
    3131         * @since 3.0.0 
    3232         * @access private 
    3333         */ 
    34         var $admin_image_div_callback; 
     34        private $admin_image_div_callback; 
    3535 
    3636        /** 
    3737         * Holds the page menu hook. 
     
    4040         * @since 3.0.0 
    4141         * @access private 
    4242         */ 
    43         var $page = ''; 
     43        private $page = ''; 
    4444 
    4545        /** 
    4646         * PHP4 Constructor - Register administration header callback. 
  • wp-admin/custom-header.php

     
    2222         * @since 2.1.0 
    2323         * @access private 
    2424         */ 
    25         var $admin_header_callback; 
     25        private $admin_header_callback; 
    2626 
    2727        /** 
    2828         * Callback for header div. 
     
    3131         * @since 3.0.0 
    3232         * @access private 
    3333         */ 
    34         var $admin_image_div_callback; 
     34        private $admin_image_div_callback; 
    3535 
    3636        /** 
    3737         * Holds default headers. 
     
    4040         * @since 3.0.0 
    4141         * @access private 
    4242         */ 
    43         var $default_headers = array(); 
     43        private $default_headers = array(); 
    4444 
    4545        /** 
    4646         * Holds the page menu hook. 
     
    4949         * @since 3.0.0 
    5050         * @access private 
    5151         */ 
    52         var $page = ''; 
     52        private $page = ''; 
    5353 
    5454        /** 
    5555         * PHP4 Constructor - Register administration header callback. 
  • wp-admin/includes/class-wp-filesystem-base.php

     
    1919         * @access public 
    2020         * @var bool 
    2121         */ 
    22         var $verbose = false; 
     22        public $verbose = false; 
    2323        /** 
    2424         * Cached list of local filepaths to maped remote filepaths. 
    2525         * 
     
    2727         * @access private 
    2828         * @var array 
    2929         */ 
    30         var $cache = array(); 
     30        private $cache = array(); 
    3131 
    3232        /** 
    3333         * The Access method of the current connection, Set automatically. 
     
    3636         * @access public 
    3737         * @var string 
    3838         */ 
    39         var $method = ''; 
     39        public $method = ''; 
    4040 
    4141        /** 
    4242         * Returns the path on the remote filesystem of ABSPATH 
     
    4545         * @access public 
    4646         * @return string The location of the remote path. 
    4747         */ 
    48         function abspath() { 
     48        public function abspath() { 
    4949                $folder = $this->find_folder(ABSPATH); 
    5050                //Perhaps the FTP folder is rooted at the WordPress install, Check for wp-includes folder in root, Could have some false positives, but rare. 
    5151                if ( ! $folder && $this->is_dir('/wp-includes') ) 
     
    5959         * @access public 
    6060         * @return string The location of the remote path. 
    6161         */ 
    62         function wp_content_dir() { 
     62        public function wp_content_dir() { 
    6363                return $this->find_folder(WP_CONTENT_DIR); 
    6464        } 
    6565        /** 
     
    7070         * 
    7171         * @return string The location of the remote path. 
    7272         */ 
    73         function wp_plugins_dir() { 
     73        public function wp_plugins_dir() { 
    7474                return $this->find_folder(WP_PLUGIN_DIR); 
    7575        } 
    7676        /** 
     
    8181         * 
    8282         * @return string The location of the remote path. 
    8383         */ 
    84         function wp_themes_dir() { 
     84        public function wp_themes_dir() { 
    8585                return $this->wp_content_dir() . '/themes'; 
    8686        } 
    8787 
     
    9898         * @param bool $echo True to display debug information 
    9999         * @return string The location of the remote path. 
    100100         */ 
    101         function find_base_dir($base = '.', $echo = false) { 
     101        public function find_base_dir($base = '.', $echo = false) { 
    102102                _deprecated_function(__FUNCTION__, '2.7', 'WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir()' ); 
    103103                $this->verbose = $echo; 
    104104                return $this->abspath(); 
     
    116116         * @param bool $echo True to display debug information 
    117117         * @return string The location of the remote path. 
    118118         */ 
    119         function get_base_dir($base = '.', $echo = false) { 
     119        public function get_base_dir($base = '.', $echo = false) { 
    120120                _deprecated_function(__FUNCTION__, '2.7', 'WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir()' ); 
    121121                $this->verbose = $echo; 
    122122                return $this->abspath(); 
     
    134134         * @param string $folder the folder to locate 
    135135         * @return string The location of the remote path. 
    136136         */ 
    137         function find_folder($folder) { 
     137        public function find_folder($folder) { 
    138138 
    139139                if ( strpos($this->method, 'ftp') !== false ) { 
    140140                        $constant_overrides = array( 'FTP_BASE' => ABSPATH, 'FTP_CONTENT_DIR' => WP_CONTENT_DIR, 'FTP_PLUGIN_DIR' => WP_PLUGIN_DIR ); 
     
    175175         * @param bool $loop if the function has recursed, Internal use only 
    176176         * @return string The location of the remote path. 
    177177         */ 
    178         function search_for_folder($folder, $base = '.', $loop = false ) { 
     178        private function search_for_folder($folder, $base = '.', $loop = false ) { 
    179179                if ( empty( $base ) || '.' == $base ) 
    180180                        $base = trailingslashit($this->cwd()); 
    181181 
     
    229229         * @param string $file string filename 
    230230         * @return int octal representation of permissions 
    231231         */ 
    232         function gethchmod($file){ 
     232        public function gethchmod($file){ 
    233233                $perms = $this->getchmod($file); 
    234234                if (($perms & 0xC000) == 0xC000) // Socket 
    235235                        $info = 's'; 
     
    284284         * @param string $mode string *nix style file permission 
    285285         * @return int octal representation 
    286286         */ 
    287         function getnumchmodfromh($mode) { 
     287        public function getnumchmodfromh($mode) { 
    288288                $realmode = ''; 
    289289                $legal =  array('', 'w', 'r', 'x', '-'); 
    290290                $attarray = preg_split('//', $mode); 
     
    313313         * @param string $text String to test against 
    314314         * @return bool true if string is binary, false otherwise 
    315315         */ 
    316         function is_binary( $text ) { 
     316        private function is_binary( $text ) { 
    317317                return (bool) preg_match('|[^\x20-\x7E]|', $text); //chr(32)..chr(127) 
    318318        } 
    319319} 
  • wp-admin/includes/class-wp-list-table.php

     
    2424         * @var array 
    2525         * @access protected 
    2626         */ 
    27         var $items; 
     27        protected $items; 
    2828 
    2929        /** 
    3030         * Various information about the current table 
     
    3333         * @var array 
    3434         * @access private 
    3535         */ 
    36         var $_args; 
     36        private $_args; 
    3737 
    3838        /** 
    3939         * Various information needed for displaying the pagination 
     
    4242         * @var array 
    4343         * @access private 
    4444         */ 
    45         var $_pagination_args = array(); 
     45        private $_pagination_args = array(); 
    4646 
    4747        /** 
    4848         * The current screen 
     
    5151         * @var object 
    5252         * @access protected 
    5353         */ 
    54         var $screen; 
     54        protected $screen; 
    5555 
    5656        /** 
    5757         * Cached bulk actions 
     
    6060         * @var array 
    6161         * @access private 
    6262         */ 
    63         var $_actions; 
     63        private $_actions; 
    6464 
    6565        /** 
    6666         * Cached pagination output 
     
    6969         * @var string 
    7070         * @access private 
    7171         */ 
    72         var $_pagination; 
     72        private $_pagination; 
    7373 
    7474        /** 
    7575         * Constructor. The child class should call this constructor from it's own constructor 
     
    7777         * @param array $args An associative array with information about the current table 
    7878         * @access protected 
    7979         */ 
    80         function WP_List_Table( $args = array() ) { 
     80        protected function WP_List_Table( $args = array() ) { 
    8181                $args = wp_parse_args( $args, array( 
    8282                        'plural' => '', 
    8383                        'singular' => '', 
     
    107107         * @access public 
    108108         * @abstract 
    109109         */ 
    110         function ajax_user_can() { 
     110        public function ajax_user_can() { 
    111111                die( 'function WP_List_Table::ajax_user_can() must be over-ridden in a sub-class.' ); 
    112112        } 
    113113 
     
    119119         * @access public 
    120120         * @abstract 
    121121         */ 
    122         function prepare_items() { 
     122        public function prepare_items() { 
    123123                die( 'function WP_List_Table::prepare_items() must be over-ridden in a sub-class.' ); 
    124124        } 
    125125 
     
    129129         * @param array $args An associative array with information about the pagination 
    130130         * @access protected 
    131131         */ 
    132         function set_pagination_args( $args ) { 
     132        protected function set_pagination_args( $args ) { 
    133133                $args = wp_parse_args( $args, array( 
    134134                        'total_items' => 0, 
    135135                        'total_pages' => 0, 
     
    151151         * @param string $key 
    152152         * @return array 
    153153         */ 
    154         function get_pagination_arg( $key ) { 
     154        public function get_pagination_arg( $key ) { 
    155155                if ( 'page' == $key ) 
    156156                        return $this->get_pagenum(); 
    157157 
     
    167167         * 
    168168         * @return bool 
    169169         */ 
    170         function has_items() { 
     170        public function has_items() { 
    171171                return !empty( $this->items ); 
    172172        } 
    173173 
     
    177177         * @since 3.1.0 
    178178         * @access public 
    179179         */ 
    180         function no_items() { 
     180        public function no_items() { 
    181181                _e( 'No items found.' ); 
    182182        } 
    183183 
     
    190190         * @param string $text The search button text 
    191191         * @param string $input_id The search input id 
    192192         */ 
    193         function search_box( $text, $input_id ) { 
     193        public function search_box( $text, $input_id ) { 
    194194                if ( empty( $_REQUEST['s'] ) && !$this->has_items() ) 
    195195                        return; 
    196196 
     
    218218         * 
    219219         * @return array 
    220220         */ 
    221         function get_views() { 
     221        protected function get_views() { 
    222222                return array(); 
    223223        } 
    224224 
     
    228228         * @since 3.1.0 
    229229         * @access public 
    230230         */ 
    231         function views() { 
     231        public function views() { 
    232232                $screen = get_current_screen(); 
    233233 
    234234                $views = $this->get_views(); 
     
    254254         * 
    255255         * @return array 
    256256         */ 
    257         function get_bulk_actions() { 
     257        protected function get_bulk_actions() { 
    258258                return array(); 
    259259        } 
    260260 
     
    264264         * @since 3.1.0 
    265265         * @access public 
    266266         */ 
    267         function bulk_actions() { 
     267        public function bulk_actions() { 
    268268                $screen = get_current_screen(); 
    269269 
    270270                if ( is_null( $this->_actions ) ) { 
     
    298298         * 
    299299         * @return string|bool The action name or False if no action was selected 
    300300         */ 
    301         function current_action() { 
     301        public function current_action() { 
    302302                if ( isset( $_REQUEST['action'] ) && -1 != $_REQUEST['action'] ) 
    303303                        return $_REQUEST['action']; 
    304304 
     
    318318         * @param bool $always_visible Wether the actions should be always visible 
    319319         * @return string 
    320320         */ 
    321         function row_actions( $actions, $always_visible = false ) { 
     321        protected function row_actions( $actions, $always_visible = false ) { 
    322322                $action_count = count( $actions ); 
    323323                $i = 0; 
    324324 
     
    342342         * @since 3.1.0 
    343343         * @access protected 
    344344         */ 
    345         function months_dropdown( $post_type ) { 
     345        protected function months_dropdown( $post_type ) { 
    346346                global $wpdb, $wp_locale; 
    347347 
    348348                $months = $wpdb->get_results( $wpdb->prepare( " 
     
    386386         * @since 3.1.0 
    387387         * @access protected 
    388388         */ 
    389         function view_switcher( $current_mode ) { 
     389        protected function view_switcher( $current_mode ) { 
    390390                $modes = array( 
    391391                        'list'    => __( 'List View' ), 
    392392                        'excerpt' => __( 'Excerpt View' ) 
     
    414414         * @param int $post_id 
    415415         * @param int $pending_comments 
    416416         */ 
    417         function comments_bubble( $post_id, $pending_comments ) { 
     417        protected function comments_bubble( $post_id, $pending_comments ) { 
    418418                $pending_phrase = sprintf( __( '%s pending' ), number_format( $pending_comments ) ); 
    419419 
    420420                if ( $pending_comments ) 
     
    434434         * 
    435435         * @return int 
    436436         */ 
    437         function get_pagenum() { 
     437        protected function get_pagenum() { 
    438438                $pagenum = isset( $_REQUEST['paged'] ) ? absint( $_REQUEST['paged'] ) : 0; 
    439439 
    440440                if( isset( $this->_pagination_args['total_pages'] ) && $pagenum > $this->_pagination_args['total_pages'] ) 
     
    451451         * 
    452452         * @return int 
    453453         */ 
    454         function get_items_per_page( $option, $default = 20 ) { 
     454        protected function get_items_per_page( $option, $default = 20 ) { 
    455455                $per_page = (int) get_user_option( $option ); 
    456456                if ( empty( $per_page ) || $per_page < 1 ) 
    457457                        $per_page = $default; 
     
    465465         * @since 3.1.0 
    466466         * @access protected 
    467467         */ 
    468         function pagination( $which ) { 
     468        protected function pagination( $which ) { 
    469469                if ( empty( $this->_pagination_args ) ) 
    470470                        return; 
    471471 
     
    547547         * 
    548548         * @return array 
    549549         */ 
    550         function get_columns() { 
     550        protected function get_columns() { 
    551551                die( 'function WP_List_Table::get_columns() must be over-ridden in a sub-class.' ); 
    552552        } 
    553553 
     
    564564         * 
    565565         * @return array 
    566566         */ 
    567         function get_sortable_columns() { 
     567        protected function get_sortable_columns() { 
    568568                return array(); 
    569569        } 
    570570 
     
    576576         * 
    577577         * @return array 
    578578         */ 
    579         function get_column_info() { 
     579        protected function get_column_info() { 
    580580                if ( isset( $this->_column_headers ) ) 
    581581                        return $this->_column_headers; 
    582582 
     
    612612         * 
    613613         * @return int 
    614614         */ 
    615         function get_column_count() { 
     615        public function get_column_count() { 
    616616                list ( $columns, $hidden ) = $this->get_column_info(); 
    617617                $hidden = array_intersect( array_keys( $columns ), array_filter( $hidden ) ); 
    618618                return count( $columns ) - count( $hidden ); 
     
    626626         * 
    627627         * @param bool $with_id Whether to set the id attribute or not 
    628628         */ 
    629         function print_column_headers( $with_id = true ) { 
     629        protected function print_column_headers( $with_id = true ) { 
    630630                $screen = get_current_screen(); 
    631631 
    632632                list( $columns, $hidden, $sortable ) = $this->get_column_info(); 
     
    689689         * @since 3.1.0 
    690690         * @access public 
    691691         */ 
    692         function display() { 
     692        public function display() { 
    693693                extract( $this->_args ); 
    694694 
    695695                $this->display_tablenav( 'top' ); 
     
    724724         * 
    725725         * @return array 
    726726         */ 
    727         function get_table_classes() { 
     727        protected function get_table_classes() { 
    728728                return array( 'widefat', 'fixed', $this->_args['plural'] ); 
    729729        } 
    730730 
     
    734734         * @since 3.1.0 
    735735         * @access protected 
    736736         */ 
    737         function display_tablenav( $which ) { 
     737        protected function display_tablenav( $which ) { 
    738738                if ( 'top' == $which ) 
    739739                        wp_nonce_field( 'bulk-' . $this->_args['plural'] ); 
    740740?> 
     
    759759         * @since 3.1.0 
    760760         * @access protected 
    761761         */ 
    762         function extra_tablenav( $which ) {} 
     762        protected function extra_tablenav( $which ) {} 
    763763 
    764764        /** 
    765765         * Generate the <tbody> part of the table 
     
    767767         * @since 3.1.0 
    768768         * @access protected 
    769769         */ 
    770         function display_rows_or_placeholder() { 
     770        protected function display_rows_or_placeholder() { 
    771771                if ( $this->has_items() ) { 
    772772                        $this->display_rows(); 
    773773                } else { 
     
    784784         * @since 3.1.0 
    785785         * @access protected 
    786786         */ 
    787         function display_rows() { 
     787        protected function display_rows() { 
    788788                foreach ( $this->items as $item ) 
    789789                        $this->single_row( $item ); 
    790790        } 
     
    797797         * 
    798798         * @param object $item The current item 
    799799         */ 
    800         function single_row( $item ) { 
     800        protected function single_row( $item ) { 
    801801                static $row_class = ''; 
    802802                $row_class = ( $row_class == '' ? ' class="alternate"' : '' ); 
    803803 
     
    814814         * 
    815815         * @param object $item The current item 
    816816         */ 
    817         function single_row_columns( $item ) { 
     817        protected function single_row_columns( $item ) { 
    818818                list( $columns, $hidden ) = $this->get_column_info(); 
    819819 
    820820                foreach ( $columns as $column_name => $column_display_name ) { 
     
    850850         * @since 3.1.0 
    851851         * @access public 
    852852         */ 
    853         function ajax_response() { 
     853        public function ajax_response() { 
    854854                $this->prepare_items(); 
    855855 
    856856                extract( $this->_args ); 
     
    882882         * 
    883883         * @access private 
    884884         */ 
    885         function _js_vars() { 
     885        private function _js_vars() { 
    886886                $args = array( 
    887887                        'class' => get_class( $this ), 
    888888                        'screen' => get_current_screen() 
  • wp-admin/includes/class-wp-posts-list-table.php

     
    1616         * @var bool 
    1717         * @access protected 
    1818         */ 
    19         var $hierarchical_display; 
     19        protected $hierarchical_display; 
    2020 
    2121        /** 
    2222         * Holds the number of pending comments for each post 
     
    2525         * @var int 
    2626         * @access protected 
    2727         */ 
    28         var $comment_pending_count; 
     28        protected $comment_pending_count; 
    2929 
    3030        /** 
    3131         * Holds the number of posts for this user 
     
    3434         * @var int 
    3535         * @access private 
    3636         */ 
    37         var $user_posts_count; 
     37        private $user_posts_count; 
    3838 
    3939        /** 
    4040         * Holds the number of posts which are sticky. 
     
    4343         * @var int 
    4444         * @access private 
    4545         */ 
    46         var $sticky_posts_count = 0; 
     46        private $sticky_posts_count = 0; 
    4747 
    4848        function WP_Posts_List_Table() { 
    4949                global $post_type_object, $post_type, $wpdb; 
  • wp-admin/includes/deprecated.php

     
    304304         * @access private 
    305305         * @var unknown_type 
    306306         */ 
    307         var $results; 
     307        private $results; 
    308308 
    309309        /** 
    310310         * {@internal Missing Description}} 
     
    313313         * @access private 
    314314         * @var unknown_type 
    315315         */ 
    316         var $search_term; 
     316        private $search_term; 
    317317 
    318318        /** 
    319319         * Page number. 
     
    322322         * @access private 
    323323         * @var int 
    324324         */ 
    325         var $page; 
     325        private $page; 
    326326 
    327327        /** 
    328328         * Role name that users have. 
     
    331331         * @access private 
    332332         * @var string 
    333333         */ 
    334         var $role; 
     334        private $role; 
    335335 
    336336        /** 
    337337         * Raw page number. 
     
    340340         * @access private 
    341341         * @var int|bool 
    342342         */ 
    343         var $raw_page; 
     343        private $raw_page; 
    344344 
    345345        /** 
    346346         * Amount of users to display per page. 
     
    349349         * @access public 
    350350         * @var int 
    351351         */ 
    352         var $users_per_page = 50; 
     352        public $users_per_page = 50; 
    353353 
    354354        /** 
    355355         * {@internal Missing Description}} 
     
    358358         * @access private 
    359359         * @var unknown_type 
    360360         */ 
    361         var $first_user; 
     361        private $first_user; 
    362362 
    363363        /** 
    364364         * {@internal Missing Description}} 
     
    367367         * @access private 
    368368         * @var int 
    369369         */ 
    370         var $last_user; 
     370        private $last_user; 
    371371 
    372372        /** 
    373373         * {@internal Missing Description}} 
     
    376376         * @access private 
    377377         * @var string 
    378378         */ 
    379         var $query_limit; 
     379        private $query_limit; 
    380380 
    381381        /** 
    382382         * {@internal Missing Description}} 
     
    385385         * @access private 
    386386         * @var string 
    387387         */ 
    388         var $query_orderby; 
     388        private $query_orderby; 
    389389 
    390390        /** 
    391391         * {@internal Missing Description}} 
     
    394394         * @access private 
    395395         * @var string 
    396396         */ 
    397         var $query_from; 
     397        private $query_from; 
    398398 
    399399        /** 
    400400         * {@internal Missing Description}} 
     
    403403         * @access private 
    404404         * @var string 
    405405         */ 
    406         var $query_where; 
     406        private $query_where; 
    407407 
    408408        /** 
    409409         * {@internal Missing Description}} 
     
    412412         * @access private 
    413413         * @var int 
    414414         */ 
    415         var $total_users_for_query = 0; 
     415        private $total_users_for_query = 0; 
    416416 
    417417        /** 
    418418         * {@internal Missing Description}} 
     
    421421         * @access private 
    422422         * @var bool 
    423423         */ 
    424         var $too_many_total_users = false; 
     424        private $too_many_total_users = false; 
    425425 
    426426        /** 
    427427         * {@internal Missing Description}} 
     
    430430         * @access private 
    431431         * @var unknown_type 
    432432         */ 
    433         var $search_errors; 
     433        private $search_errors; 
    434434 
    435435        /** 
    436436         * {@internal Missing Description}} 
     
    439439         * @access private 
    440440         * @var unknown_type 
    441441         */ 
    442         var $paging_text; 
     442        private $paging_text; 
    443443 
    444444        /** 
    445445         * PHP4 Constructor - Sets up the object properties. 
     
    473473         * @since 2.1.0 
    474474         * @access public 
    475475         */ 
    476         function prepare_query() { 
     476        public function prepare_query() { 
    477477                global $wpdb; 
    478478                $this->first_user = ($this->page - 1) * $this->users_per_page; 
    479479 
     
    513513         * @since 2.1.0 
    514514         * @access public 
    515515         */ 
    516         function query() { 
     516        public function query() { 
    517517                global $wpdb; 
    518518 
    519519                $this->results = $wpdb->get_col("SELECT DISTINCT($wpdb->users.ID)" . $this->query_from . $this->query_where . $this->query_orderby . $this->query_limit); 
     
    532532         * @since 2.1.0 
    533533         * @access public 
    534534         */ 
    535         function prepare_vars_for_template_usage() { 
     535        public function prepare_vars_for_template_usage() { 
    536536                $this->search_term = stripslashes($this->search_term); // done with DB, from now on we want slashes gone 
    537537        } 
    538538 
     
    544544         * @since 2.1.0 
    545545         * @access public 
    546546         */ 
    547         function do_paging() { 
     547        public function do_paging() { 
    548548                if ( $this->total_users_for_query > $this->users_per_page ) { // have to page the results 
    549549                        $args = array(); 
    550550                        if( ! empty($this->search_term) ) 
     
    580580         * 
    581581         * @return unknown 
    582582         */ 
    583         function get_results() { 
     583        public function get_results() { 
    584584                return (array) $this->results; 
    585585        } 
    586586 
     
    592592         * @since 2.1.0 
    593593         * @access public 
    594594         */ 
    595         function page_links() { 
     595        public function page_links() { 
    596596                echo $this->paging_text; 
    597597        } 
    598598 
     
    606606         * 
    607607         * @return bool 
    608608         */ 
    609         function results_are_paged() { 
     609        public function results_are_paged() { 
    610610                if ( $this->paging_text ) 
    611611                        return true; 
    612612                return false; 
     
    620620         * 
    621621         * @return bool 
    622622         */ 
    623         function is_search() { 
     623        public function is_search() { 
    624624                if ( $this->search_term ) 
    625625                        return true; 
    626626                return false; 
  • wp-admin/link-parse-opml.php

     
    4343 * @param string $tagName XML element name. 
    4444 * @param array $attrs XML element attributes. 
    4545 */ 
    46 function startElement($parser, $tagName, $attrs) { 
     46private function startElement($parser, $tagName, $attrs) { 
    4747        global $updated_timestamp, $all_links, $map; 
    4848        global $names, $urls, $targets, $descriptions, $feeds; 
    4949 
     
    7676 * @param mixed $parser XML Parser resource. 
    7777 * @param string $tagName XML tag name. 
    7878 */ 
    79 function endElement($parser, $tagName) { 
     79private function endElement($parser, $tagName) { 
    8080        // nothing to do. 
    8181} 
    8282 
  • wp-admin/menu-header.php

     
    3333 * @param array $submenu 
    3434 * @param bool $submenu_as_parent 
    3535 */ 
    36 function _wp_menu_output( $menu, $submenu, $submenu_as_parent = true ) { 
     36private function _wp_menu_output( $menu, $submenu, $submenu_as_parent = true ) { 
    3737        global $self, $parent_file, $submenu_file, $plugin_page, $pagenow, $typenow; 
    3838 
    3939        $first = true; 
  • wp-includes/cache.php

     
    203203         * @access private 
    204204         * @since 2.0.0 
    205205         */ 
    206         var $cache = array (); 
     206        private $cache = array (); 
    207207 
    208208        /** 
    209209         * Cache objects that do not exist in the cache 
     
    212212         * @access private 
    213213         * @since 2.0.0 
    214214         */ 
    215         var $non_existent_objects = array (); 
     215        private $non_existent_objects = array (); 
    216216 
    217217        /** 
    218218         * The amount of times the cache data was already stored in the cache. 
     
    221221         * @access private 
    222222         * @var int 
    223223         */ 
    224         var $cache_hits = 0; 
     224        private $cache_hits = 0; 
    225225 
    226226        /** 
    227227         * Amount of times the cache did not have the request in cache 
     
    230230         * @access public 
    231231         * @since 2.0.0 
    232232         */ 
    233         var $cache_misses = 0; 
     233        public $cache_misses = 0; 
    234234 
    235235        /** 
    236236         * List of global groups 
     
    239239         * @access protected 
    240240         * @since 3.0.0 
    241241         */ 
    242         var $global_groups = array(); 
     242        protected $global_groups = array(); 
    243243 
    244244        /** 
    245245         * Adds data to the cache if it doesn't already exist. 
  • wp-includes/capabilities.php

     
    3434         * @access public 
    3535         * @var array 
    3636         */ 
    37         var $roles; 
     37        public $roles; 
    3838 
    3939        /** 
    4040         * List of the role objects. 
     
    4343         * @access public 
    4444         * @var array 
    4545         */ 
    46         var $role_objects = array(); 
     46        public $role_objects = array(); 
    4747 
    4848        /** 
    4949         * List of role names. 
     
    5252         * @access public 
    5353         * @var array 
    5454         */ 
    55         var $role_names = array(); 
     55        public $role_names = array(); 
    5656 
    5757        /** 
    5858         * Option name for storing role list. 
     
    6161         * @access public 
    6262         * @var string 
    6363         */ 
    64         var $role_key; 
     64        public $role_key; 
    6565 
    6666        /** 
    6767         * Whether to use the database for retrieval and storage. 
     
    7070         * @access public 
    7171         * @var bool 
    7272         */ 
    73         var $use_db = true; 
     73        public $use_db = true; 
    7474 
    7575        /** 
    7676         * PHP4 Constructor - Call {@link WP_Roles::_init()} method. 
     
    8080         * 
    8181         * @return WP_Roles 
    8282         */ 
    83         function WP_Roles() { 
     83        public function WP_Roles() { 
    8484                $this->_init(); 
    8585        } 
    8686 
     
    9696         * @uses $wpdb Used to get the database prefix. 
    9797         * @global array $wp_user_roles Used to set the 'roles' property value. 
    9898         */ 
    99         function _init () { 
     99        protected function _init () { 
    100100                global $wpdb, $wp_user_roles; 
    101101                $this->role_key = $wpdb->prefix . 'user_roles'; 
    102102                if ( ! empty( $wp_user_roles ) ) { 
     
    133133         * @param array $capabilities List of role capabilities in the above format. 
    134134         * @return null|WP_Role WP_Role object if role is added, null if already exists. 
    135135         */ 
    136         function add_role( $role, $display_name, $capabilities = array() ) { 
     136        public function add_role( $role, $display_name, $capabilities = array() ) { 
    137137                if ( isset( $this->roles[$role] ) ) 
    138138                        return; 
    139139 
     
    156156         * 
    157157         * @param string $role Role name. 
    158158         */ 
    159         function remove_role( $role ) { 
     159        public function remove_role( $role ) { 
    160160                if ( ! isset( $this->role_objects[$role] ) ) 
    161161                        return; 
    162162 
     
    178178         * @param string $cap Capability name. 
    179179         * @param bool $grant Optional, default is true. Whether role is capable of performing capability. 
    180180         */ 
    181         function add_cap( $role, $cap, $grant = true ) { 
     181        public function add_cap( $role, $cap, $grant = true ) { 
    182182                $this->roles[$role]['capabilities'][$cap] = $grant; 
    183183                if ( $this->use_db ) 
    184184                        update_option( $this->role_key, $this->roles ); 
     
    193193         * @param string $role Role name. 
    194194         * @param string $cap Capability name. 
    195195         */ 
    196         function remove_cap( $role, $cap ) { 
     196        public function remove_cap( $role, $cap ) { 
    197197                unset( $this->roles[$role]['capabilities'][$cap] ); 
    198198                if ( $this->use_db ) 
    199199                        update_option( $this->role_key, $this->roles ); 
     
    208208         * @param string $role Role name. 
    209209         * @return object|null Null, if role does not exist. WP_Role object, if found. 
    210210         */ 
    211         function &get_role( $role ) { 
     211        public function &get_role( $role ) { 
    212212                if ( isset( $this->role_objects[$role] ) ) 
    213213                        return $this->role_objects[$role]; 
    214214                else 
     
    223223         * 
    224224         * @return array List of role names. 
    225225         */ 
    226         function get_names() { 
     226        public function get_names() { 
    227227                return $this->role_names; 
    228228        } 
    229229 
     
    236236         * @param string $role Role name to look up. 
    237237         * @return bool 
    238238         */ 
    239         function is_role( $role ) 
     239        public function is_role( $role ) 
    240240        { 
    241241                return isset( $this->role_names[$role] ); 
    242242        } 
     
    257257         * @access public 
    258258         * @var string 
    259259         */ 
    260         var $name; 
     260        public $name; 
    261261 
    262262        /** 
    263263         * List of capabilities the role contains. 
     
    266266         * @access public 
    267267         * @var array 
    268268         */ 
    269         var $capabilities; 
     269        public $capabilities; 
    270270 
    271271        /** 
    272272         * PHP4 Constructor - Set up object properties. 
     
    281281         * @param array $capabilities List of capabilities. 
    282282         * @return WP_Role 
    283283         */ 
    284         function WP_Role( $role, $capabilities ) { 
     284        public function WP_Role( $role, $capabilities ) { 
    285285                $this->name = $role; 
    286286                $this->capabilities = $capabilities; 
    287287        } 
     
    296296         * @param string $cap Capability name. 
    297297         * @param bool $grant Whether role has capability privilege. 
    298298         */ 
    299         function add_cap( $cap, $grant = true ) { 
     299        public function add_cap( $cap, $grant = true ) { 
    300300                global $wp_roles; 
    301301 
    302302                if ( ! isset( $wp_roles ) ) 
     
    319319         * 
    320320         * @param string $cap Capability name. 
    321321         */ 
    322         function remove_cap( $cap ) { 
     322        public function remove_cap( $cap ) { 
    323323                global $wp_roles; 
    324324 
    325325                if ( ! isset( $wp_roles ) ) 
     
    343343         * @param string $cap Capability name. 
    344344         * @return bool True, if user has capability. False, if doesn't have capability. 
    345345         */ 
    346         function has_cap( $cap ) { 
     346        public function has_cap( $cap ) { 
    347347                $capabilities = apply_filters( 'role_has_cap', $this->capabilities, $cap, $this->name ); 
    348348                if ( !empty( $capabilities[$cap] ) ) 
    349349                        return $capabilities[$cap]; 
     
    370370         * @access private 
    371371         * @var array 
    372372         */ 
    373         var $data; 
     373        private $data; 
    374374 
    375375        /** 
    376376         * The user's ID. 
     
    379379         * @access public 
    380380         * @var int 
    381381         */ 
    382         var $ID = 0; 
     382        public $ID = 0; 
    383383 
    384384        /** 
    385385         * The deprecated user's ID. 
     
    390390         * @see WP_User::$ID 
    391391         * @var int 
    392392         */ 
    393         var $id = 0; 
     393        public $id = 0; 
    394394 
    395395        /** 
    396396         * The individual capabilities the user has been given. 
     
    399399         * @access public 
    400400         * @var array 
    401401         */ 
    402         var $caps = array(); 
     402        public $caps = array(); 
    403403 
    404404        /** 
    405405         * User metadata option name. 
     
    408408         * @access public 
    409409         * @var string 
    410410         */ 
    411         var $cap_key; 
     411        public $cap_key; 
    412412 
    413413        /** 
    414414         * The roles the user is part of. 
     
    417417         * @access public 
    418418         * @var array 
    419419         */ 
    420         var $roles = array(); 
     420        public $roles = array(); 
    421421 
    422422        /** 
    423423         * All capabilities the user has, including individual and role based. 
     
    426426         * @access public 
    427427         * @var array 
    428428         */ 
    429         var $allcaps = array(); 
     429        public $allcaps = array(); 
    430430 
    431431        /** 
    432432         * First name of the user. 
     
    437437         * @access public 
    438438         * @var string 
    439439         */ 
    440         var $first_name = ''; 
     440        public $first_name = ''; 
    441441 
    442442        /** 
    443443         * Last name of the user. 
     
    448448         * @access public 
    449449         * @var string 
    450450         */ 
    451         var $last_name = ''; 
     451        public $last_name = ''; 
    452452 
    453453        /** 
    454454         * The filter context applied to user data fields. 
     
    457457         * @access private 
    458458         * @var string 
    459459         */ 
    460         var $filter = null; 
     460        private $filter = null; 
    461461 
    462462        /** 
    463463         * PHP4 Constructor - Sets up the object properties. 
     
    474474         * @param int $blog_id Optional Blog ID, defaults to current blog. 
    475475         * @return WP_User 
    476476         */ 
    477         function WP_User( $id, $name = '', $blog_id = '' ) { 
     477        public function WP_User( $id, $name = '', $blog_id = '' ) { 
    478478 
    479479                if ( empty( $id ) && empty( $name ) ) 
    480480                        return; 
     
    513513         * @param string $cap_key Optional capability key 
    514514         * @access protected 
    515515         */ 
    516         function _init_caps( $cap_key = '' ) { 
     516        protected function _init_caps( $cap_key = '' ) { 
    517517                global $wpdb; 
    518518                if ( empty($cap_key) ) 
    519519                        $this->cap_key = $wpdb->prefix . 'capabilities'; 
     
    537537         * @uses $wp_roles 
    538538         * @access public 
    539539         */ 
    540         function get_role_caps() { 
     540        public function get_role_caps() { 
    541541                global $wp_roles; 
    542542 
    543543                if ( ! isset( $wp_roles ) ) 
     
    566566         * 
    567567         * @param string $role Role name. 
    568568         */ 
    569         function add_role( $role ) { 
     569        public function add_role( $role ) { 
    570570                $this->caps[$role] = true; 
    571571                update_user_meta( $this->ID, $this->cap_key, $this->caps ); 
    572572                $this->get_role_caps(); 
     
    581581         * 
    582582         * @param string $role Role name. 
    583583         */ 
    584         function remove_role( $role ) { 
     584        public function remove_role( $role ) { 
    585585                if ( !in_array($role, $this->roles) ) 
    586586                        return; 
    587587                unset( $this->caps[$role] ); 
     
    602602         * 
    603603         * @param string $role Role name. 
    604604         */ 
    605         function set_role( $role ) { 
     605        public function set_role( $role ) { 
    606606                foreach ( (array) $this->roles as $oldrole ) 
    607607                        unset( $this->caps[$oldrole] ); 
    608608 
     
    640640         * @param string $item Level capability name. 
    641641         * @return int Max Level. 
    642642         */ 
    643         function level_reduction( $max, $item ) { 
     643        public function level_reduction( $max, $item ) { 
    644644                if ( preg_match( '/^level_(10|[0-9])$/i', $item, $matches ) ) { 
    645645                        $level = intval( $matches[1] ); 
    646646                        return max( $max, $level ); 
     
    659659         * @since 2.0.0 
    660660         * @access public 
    661661         */ 
    662         function update_user_level_from_caps() { 
     662        public function update_user_level_from_caps() { 
    663663                global $wpdb; 
    664664                $this->user_level = array_reduce( array_keys( $this->allcaps ), array( &$this, 'level_reduction' ), 0 ); 
    665665                update_user_meta( $this->ID, $wpdb->prefix . 'user_level', $this->user_level ); 
     
    674674         * @param string $cap Capability name. 
    675675         * @param bool $grant Whether to grant capability to user. 
    676676         */ 
    677         function add_cap( $cap, $grant = true ) { 
     677        public function add_cap( $cap, $grant = true ) { 
    678678                $this->caps[$cap] = $grant; 
    679679                update_user_meta( $this->ID, $this->cap_key, $this->caps ); 
    680680        } 
     
    687687         * 
    688688         * @param string $cap Capability name. 
    689689         */ 
    690         function remove_cap( $cap ) { 
     690        public function remove_cap( $cap ) { 
    691691                if ( empty( $this->caps[$cap] ) ) 
    692692                        return; 
    693693                unset( $this->caps[$cap] ); 
     
    700700         * @since 2.1.0 
    701701         * @access public 
    702702         */ 
    703         function remove_all_caps() { 
     703        public function remove_all_caps() { 
    704704                global $wpdb; 
    705705                $this->caps = array(); 
    706706                delete_user_meta( $this->ID, $this->cap_key ); 
     
    722722         * @param int $post_id Optional. Post ID to check capability against specific post. 
    723723         * @return bool True, if user has capability; false, if user does not have capability. 
    724724         */ 
    725         function has_cap( $cap ) { 
     725        public function has_cap( $cap ) { 
    726726                if ( is_numeric( $cap ) ) { 
    727727                        _deprecated_argument( __FUNCTION__, '2.0', __('Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead.') ); 
    728728                        $cap = $this->translate_level_to_cap( $cap ); 
     
    762762         * @param int $level Level number, 1 to 10. 
    763763         * @return string 
    764764         */ 
    765         function translate_level_to_cap( $level ) { 
     765        public function translate_level_to_cap( $level ) { 
    766766                return 'level_' . $level; 
    767767        } 
    768768 
  • wp-includes/class-feed.php

     
    99         * 
    1010         * @access private 
    1111         */ 
    12         function WP_Feed_Cache() { 
     12        private function WP_Feed_Cache() { 
    1313                trigger_error('Please call SimplePie_Cache::create() instead of the constructor', E_USER_ERROR); 
    1414        } 
    1515 
     
    1919         * @static 
    2020         * @access public 
    2121         */ 
    22         function create($location, $filename, $extension) { 
     22        public function create($location, $filename, $extension) { 
    2323                return new WP_Feed_Cache_Transient($location, $filename, $extension); 
    2424        } 
    2525} 
     
    100100                        } 
    101101                } 
    102102        } 
    103 } 
    104  No newline at end of file 
     103} 
  • wp-includes/class-http.php

     
    8585         * @param array $args Request args, default us an empty array 
    8686         * @return object|null Null if no transports are available, HTTP transport object. 
    8787         */ 
    88         function &_getTransport( $args = array() ) { 
     88        private function &_getTransport( $args = array() ) { 
    8989                static $working_transport, $blocking_transport, $nonblocking_transport; 
    9090 
    9191                if ( is_null($working_transport) ) { 
     
    130130         * @param array $args Request args, default us an empty array 
    131131         * @return object|null Null if no transports are available, HTTP transport object. 
    132132         */ 
    133         function &_postTransport( $args = array() ) { 
     133        private function &_postTransport( $args = array() ) { 
    134134                static $working_transport, $blocking_transport, $nonblocking_transport; 
    135135 
    136136                if ( is_null($working_transport) ) { 
     
    207207         * @param str|array $args Optional. Override the defaults. 
    208208         * @return array containing 'headers', 'body', 'response', 'cookies' 
    209209         */ 
    210         function request( $url, $args = array() ) { 
     210        public function request( $url, $args = array() ) { 
    211211                global $wp_version; 
    212212 
    213213                $defaults = array( 
     
    330330         * @param str|array $args Optional. Override the defaults. 
    331331         * @return boolean 
    332332         */ 
    333         function post($url, $args = array()) { 
     333        public function post($url, $args = array()) { 
    334334                $defaults = array('method' => 'POST'); 
    335335                $r = wp_parse_args( $args, $defaults ); 
    336336                return $this->request($url, $r); 
     
    348348         * @param str|array $args Optional. Override the defaults. 
    349349         * @return boolean 
    350350         */ 
    351         function get($url, $args = array()) { 
     351        public function get($url, $args = array()) { 
    352352                $defaults = array('method' => 'GET'); 
    353353                $r = wp_parse_args( $args, $defaults ); 
    354354                return $this->request($url, $r); 
     
    366366         * @param str|array $args Optional. Override the defaults. 
    367367         * @return boolean 
    368368         */ 
    369         function head($url, $args = array()) { 
     369        public function head($url, $args = array()) { 
    370370                $defaults = array('method' => 'HEAD'); 
    371371                $r = wp_parse_args( $args, $defaults ); 
    372372                return $this->request($url, $r); 
     
    382382         * @param string $strResponse The full response string 
    383383         * @return array Array with 'headers' and 'body' keys. 
    384384         */ 
    385         function processResponse($strResponse) { 
     385        public function processResponse($strResponse) { 
    386386                $res = explode("\r\n\r\n", $strResponse, 2); 
    387387 
    388388                return array('headers' => isset($res[0]) ? $res[0] : array(), 'body' => isset($res[1]) ? $res[1] : ''); 
     
    402402         * @return array Processed string headers. If duplicate headers are encountered, 
    403403         *                                      Then a numbered array is returned as the value of that header-key. 
    404404         */ 
    405         function processHeaders($headers) { 
     405        public function processHeaders($headers) { 
    406406                // split headers, one per array element 
    407407                if ( is_string($headers) ) { 
    408408                        // tolerate line terminator: CRLF = LF (RFC 2616 19.3) 
     
    467467         * 
    468468         * @param array $r Full array of args passed into ::request() 
    469469         */ 
    470         function buildCookieHeader( &$r ) { 
     470        public function buildCookieHeader( &$r ) { 
    471471                if ( ! empty($r['cookies']) ) { 
    472472                        $cookies_header = ''; 
    473473                        foreach ( (array) $r['cookies'] as $cookie ) { 
     
    492492         * @param string $body Body content 
    493493         * @return string Chunked decoded body on success or raw body on failure. 
    494494         */ 
    495         function chunkTransferDecode($body) { 
     495        public function chunkTransferDecode($body) { 
    496496                $body = str_replace(array("\r\n", "\r"), "\n", $body); 
    497497                // The body is not chunked encoding or is malformed. 
    498498                if ( ! preg_match( '/^[0-9a-f]+(\s|\n)+/mi', trim($body) ) ) 
     
    618618         * @param str|array $args Optional. Override the defaults. 
    619619         * @return array 'headers', 'body', 'cookies' and 'response' keys. 
    620620         */ 
    621         function request($url, $args = array()) { 
     621        public function request($url, $args = array()) { 
    622622                $defaults = array( 
    623623                        'method' => 'GET', 'timeout' => 5, 
    624624                        'redirection' => 5, 'httpversion' => '1.0', 
     
    821821         * @param str|array $args Optional. Override the defaults. 
    822822         * @return array 'headers', 'body', 'cookies' and 'response' keys. 
    823823         */ 
    824         function request($url, $args = array()) { 
     824        public function request($url, $args = array()) { 
    825825                $defaults = array( 
    826826                        'method' => 'GET', 'timeout' => 5, 
    827827                        'redirection' => 5, 'httpversion' => '1.0', 
     
    947947         * 
    948948         * @return boolean False means this class can not be used, true means it can. 
    949949         */ 
    950         function test($args = array()) { 
     950        public function test($args = array()) { 
    951951                if ( ! function_exists('fopen') || (function_exists('ini_get') && true != ini_get('allow_url_fopen')) ) 
    952952                        return false; 
    953953 
     
    979979         * @param str|array $args Optional. Override the defaults. 
    980980         * @return array 'headers', 'body', 'cookies' and 'response' keys. 
    981981         */ 
    982         function request($url, $args = array()) { 
     982        public function request($url, $args = array()) { 
    983983                $defaults = array( 
    984984                        'method' => 'GET', 'timeout' => 5, 
    985985                        'redirection' => 5, 'httpversion' => '1.0', 
     
    11291129         * @param str|array $args Optional. Override the defaults. 
    11301130         * @return array 'headers', 'body', 'cookies' and 'response' keys. 
    11311131         */ 
    1132         function request($url, $args = array()) { 
     1132        public function request($url, $args = array()) { 
    11331133                $defaults = array( 
    11341134                        'method' => 'GET', 'timeout' => 5, 
    11351135                        'redirection' => 5, 'httpversion' => '1.0', 
     
    15471547         * @since 2.8.0 
    15481548         * @param string|array $data Raw cookie data. 
    15491549         */ 
    1550         function WP_Http_Cookie( $data ) { 
     1550        public function WP_Http_Cookie( $data ) { 
    15511551                $this->__construct( $data ); 
    15521552        } 
    15531553 
     
    15711571         * 
    15721572         * @param string|array $data Raw cookie data. 
    15731573         */ 
    1574         function __construct( $data ) { 
     1574        public function __construct( $data ) { 
    15751575                if ( is_string( $data ) ) { 
    15761576                        // Assume it's a header string direct from a previous request 
    15771577                        $pairs = explode( ';', $data ); 
     
    16231623         * @param string $url URL you intend to send this cookie to 
    16241624         * @return boolean TRUE if allowed, FALSE otherwise. 
    16251625         */ 
    1626         function test( $url ) { 
     1626        public function test( $url ) { 
    16271627                // Expires - if expired then nothing else matters 
    16281628                if ( time() > $this->expires ) 
    16291629                        return false; 
     
    16641664         * 
    16651665         * @return string Header encoded cookie name and value. 
    16661666         */ 
    1667         function getHeaderValue() { 
     1667        public function getHeaderValue() { 
    16681668                if ( empty( $this->name ) || empty( $this->value ) ) 
    16691669                        return ''; 
    16701670 
     
    16791679         * 
    16801680         * @return string 
    16811681         */ 
    1682         function getFullHeader() { 
     1682        public function getFullHeader() { 
    16831683                return 'Cookie: ' . $this->getHeaderValue(); 
    16841684        } 
    16851685} 
  • wp-includes/class-oembed.php

     
    187187         * @param string $format Format to use 
    188188         * @return bool|object False on failure, otherwise the result in the form of an object. 
    189189         */ 
    190         function _fetch_with_format( $provider_url_with_args, $format ) { 
     190        private function _fetch_with_format( $provider_url_with_args, $format ) { 
    191191                $provider_url_with_args = add_query_arg( 'format', $format, $provider_url_with_args ); 
    192192                $response = wp_remote_get( $provider_url_with_args ); 
    193193                if ( 501 == wp_remote_retrieve_response_code( $response ) ) 
     
    204204         * @since 3.0.0 
    205205         * @access private 
    206206         */ 
    207         function _parse_json( $response_body ) { 
     207        private function _parse_json( $response_body ) { 
    208208                return ( ( $data = json_decode( trim( $response_body ) ) ) && is_object( $data ) ) ? $data : false; 
    209209        } 
    210210 
     
    214214         * @since 3.0.0 
    215215         * @access private 
    216216         */ 
    217         function _parse_xml( $response_body ) { 
     217        private function _parse_xml( $response_body ) { 
    218218                if ( function_exists('simplexml_load_string') ) { 
    219219                        $errors = libxml_use_internal_errors( 'true' ); 
    220220                        $data = simplexml_load_string( $response_body ); 
     
    271271         * @param string $url The original URL passed to oEmbed. 
    272272         * @return string Possibly modified $html 
    273273         */ 
    274         function _strip_newlines( $html, $data, $url ) { 
     274        private function _strip_newlines( $html, $data, $url ) { 
    275275                if ( false !== strpos( $html, "\n" ) ) 
    276276                        $html = str_replace( array( "\r\n", "\n" ), '', $html ); 
    277277 
     
    299299        return $wp_oembed; 
    300300} 
    301301 
    302 ?> 
    303  No newline at end of file 
     302?> 
  • wp-includes/class-wp-ajax-response.php

     
    1313         * @var array 
    1414         * @access private 
    1515         */ 
    16         var $responses = array(); 
     16        private $responses = array(); 
    1717 
    1818        /** 
    1919         * PHP4 Constructor - Passes args to {@link WP_Ajax_Response::add()}. 
  • wp-includes/class-wp-error.php

     
    2626         * @var array 
    2727         * @access private 
    2828         */ 
    29         var $errors = array(); 
     29        private $errors = array(); 
    3030 
    3131        /** 
    3232         * Stores the list of data for error codes. 
     
    3535         * @var array 
    3636         * @access private 
    3737         */ 
    38         var $error_data = array(); 
     38        private $error_data = array(); 
    3939 
    4040        /** 
    4141         * PHP4 Constructor - Sets up error message. 
     
    7272         * 
    7373         * @return array List of error codes, if avaiable. 
    7474         */ 
    75         function get_error_codes() { 
     75        public function get_error_codes() { 
    7676                if ( empty($this->errors) ) 
    7777                        return array(); 
    7878 
     
    8787         * 
    8888         * @return string|int Empty string, if no error codes. 
    8989         */ 
    90         function get_error_code() { 
     90        public function get_error_code() { 
    9191                $codes = $this->get_error_codes(); 
    9292 
    9393                if ( empty($codes) ) 
     
    167167         * @param string $message Error message. 
    168168         * @param mixed $data Optional. Error data. 
    169169         */ 
    170         function add($code, $message, $data = '') { 
     170        public function add($code, $message, $data = '') { 
    171171                $this->errors[$code][] = $message; 
    172172                if ( ! empty($data) ) 
    173173                        $this->error_data[$code] = $data; 
     
    209209        return false; 
    210210} 
    211211 
    212 ?> 
    213  No newline at end of file 
     212?> 
  • wp-includes/class-wp-walker.php

     
    2020         * @var string 
    2121         * @access public 
    2222         */ 
    23         var $tree_type; 
     23        public $tree_type; 
    2424 
    2525        /** 
    2626         * DB fields to use. 
     
    2929         * @var array 
    3030         * @access protected 
    3131         */ 
    32         var $db_fields; 
     32        protected $db_fields; 
    3333 
    3434        /** 
    3535         * Max number of pages walked by the paged walker 
     
    3838         * @var int 
    3939         * @access protected 
    4040         */ 
    41         var $max_pages = 1; 
     41        protected $max_pages = 1; 
    4242 
    4343        /** 
    4444         * Starts the list before the elements are added. 
     
    396396        } 
    397397} 
    398398 
    399 ?> 
    400  No newline at end of file 
     399?> 
  • wp-includes/class-wp-xmlrpc-server.php

     
    16801680         * 
    16811681         * @access protected 
    16821682         */ 
    1683         function _multisite_getUsersBlogs($args) { 
     1683        protected function _multisite_getUsersBlogs($args) { 
    16841684                global $current_blog; 
    16851685                $domain = $current_blog->domain; 
    16861686                $path = $current_blog->path . 'xmlrpc.php'; 
     
    35243524                return $pingbacks; 
    35253525        } 
    35263526} 
    3527 ?> 
    3528  No newline at end of file 
     3527?> 
  • wp-includes/class-wp.php

     
    1515         * @access public 
    1616         * @var array 
    1717         */ 
    18         var $public_query_vars = array('m', 'p', 'posts', 'w', 'cat', 'withcomments', 'withoutcomments', 's', 'search', 'exact', 'sentence', 'debug', 'calendar', 'page', 'paged', 'more', 'tb', 'pb', 'author', 'order', 'orderby', 'year', 'monthnum', 'day', 'hour', 'minute', 'second', 'name', 'category_name', 'tag', 'feed', 'author_name', 'static', 'pagename', 'page_id', 'error', 'comments_popup', 'attachment', 'attachment_id', 'subpost', 'subpost_id', 'preview', 'robots', 'taxonomy', 'term', 'cpage', 'post_type'); 
     18        public $public_query_vars = array('m', 'p', 'posts', 'w', 'cat', 'withcomments', 'withoutcomments', 's', 'search', 'exact', 'sentence', 'debug', 'calendar', 'page', 'paged', 'more', 'tb', 'pb', 'author', 'order', 'orderby', 'year', 'monthnum', 'day', 'hour', 'minute', 'second', 'name', 'category_name', 'tag', 'feed', 'author_name', 'static', 'pagename', 'page_id', 'error', 'comments_popup', 'attachment', 'attachment_id', 'subpost', 'subpost_id', 'preview', 'robots', 'taxonomy', 'term', 'cpage', 'post_type'); 
    1919 
    2020        /** 
    2121         * Private query variables. 
     
    530530         * @access private 
    531531         * @var array 
    532532         */ 
    533         var $_matches; 
     533        private $_matches; 
    534534 
    535535        /** 
    536536         * store for mapping result 
     
    538538         * @access public 
    539539         * @var string 
    540540         */ 
    541         var $output; 
     541        public $output; 
    542542 
    543543        /** 
    544544         * subject to perform mapping on (query string containing $matches[] references 
     
    546546         * @access private 
    547547         * @var string 
    548548         */ 
    549         var $_subject; 
     549        private $_subject; 
    550550 
    551551        /** 
    552552         * regexp pattern to match $matches[] references 
     
    578578         * @param array  $matches data used for subsitution 
    579579         * @return string 
    580580         */ 
    581         function apply($subject, $matches) { 
     581        public function apply($subject, $matches) { 
    582582                $oSelf =& new WP_MatchesMapRegex($subject, $matches); 
    583583                return $oSelf->output; 
    584584        } 
     
    589589         * @access private 
    590590         * @return string 
    591591         */ 
    592         function _map() { 
     592        private function _map() { 
    593593                $callback = array(&$this, 'callback'); 
    594594                return preg_replace_callback($this->_pattern, $callback, $this->_subject); 
    595595        } 
     
    601601         * @param  array $matches preg_replace regexp matches 
    602602         * @return string 
    603603         */ 
    604         function callback($matches) { 
     604        public function callback($matches) { 
    605605                $index = intval(substr($matches[0], 9, -1)); 
    606606                return ( isset( $this->_matches[$index] ) ? urlencode($this->_matches[$index]) : '' ); 
    607607        } 
  • wp-includes/comment.php

     
    347347         * @param array $cols 
    348348         * @return string 
    349349         */ 
    350         function get_search_sql( $string, $cols ) { 
     350        protected function get_search_sql( $string, $cols ) { 
    351351                $string = esc_sql( like_escape( $string ) ); 
    352352 
    353353                $searches = array(); 
  • wp-includes/locale.php

     
    1919         * @var array 
    2020         * @access private 
    2121         */ 
    22         var $weekday; 
     22        private $weekday; 
    2323 
    2424        /** 
    2525         * Stores the translated strings for the one character weekday names. 
     
    3333         * @var array 
    3434         * @access private 
    3535         */ 
    36         var $weekday_initial; 
     36        private $weekday_initial; 
    3737 
    3838        /** 
    3939         * Stores the translated strings for the abbreviated weekday names. 
     
    4242         * @var array 
    4343         * @access private 
    4444         */ 
    45         var $weekday_abbrev; 
     45        private $weekday_abbrev; 
    4646 
    4747        /** 
    4848         * Stores the translated strings for the full month names. 
     
    5151         * @var array 
    5252         * @access private 
    5353         */ 
    54         var $month; 
     54        private $month; 
    5555 
    5656        /** 
    5757         * Stores the translated strings for the abbreviated month names. 
     
    6060         * @var array 
    6161         * @access private 
    6262         */ 
    63         var $month_abbrev; 
     63        private $month_abbrev; 
    6464 
    6565        /** 
    6666         * Stores the translated strings for 'am' and 'pm'. 
     
    7171         * @var array 
    7272         * @access private 
    7373         */ 
    74         var $meridiem; 
     74        private $meridiem; 
    7575 
    7676        /** 
    7777         * The text direction of the locale language. 
     
    8282         * @var string 
    8383         * @access private 
    8484         */ 
    85         var $text_direction = 'ltr'; 
     85        private $text_direction = 'ltr'; 
    8686 
    8787        /** 
    8888         * Imports the global version to the class property. 
     
    9191         * @var array 
    9292         * @access private 
    9393         */ 
    94         var $locale_vars = array('text_direction'); 
     94        private $locale_vars = array('text_direction'); 
    9595 
    9696        /** 
    9797         * Sets up the translated strings and object properties. 
     
    103103         * @since 2.1.0 
    104104         * @access private 
    105105         */ 
    106         function init() { 
     106        private function init() { 
    107107                // The Weekdays 
    108108                $this->weekday[0] = /* translators: weekday */ __('Sunday'); 
    109109                $this->weekday[1] = /* translators: weekday */ __('Monday'); 
     
    207207         * @param int $weekday_number 0 for Sunday through 6 Saturday 
    208208         * @return string Full translated weekday 
    209209         */ 
    210         function get_weekday($weekday_number) { 
     210        public function get_weekday($weekday_number) { 
    211211                return $this->weekday[$weekday_number]; 
    212212        } 
    213213 
     
    225225         * @param string $weekday_name 
    226226         * @return string 
    227227         */ 
    228         function get_weekday_initial($weekday_name) { 
     228        public function get_weekday_initial($weekday_name) { 
    229229                return $this->weekday_initial[$weekday_name]; 
    230230        } 
    231231 
     
    241241         * @param string $weekday_name Full translated weekday word 
    242242         * @return string Translated weekday abbreviation 
    243243         */ 
    244         function get_weekday_abbrev($weekday_name) { 
     244        public function get_weekday_abbrev($weekday_name) { 
    245245                return $this->weekday_abbrev[$weekday_name]; 
    246246        } 
    247247 
     
    262262         * @param string|int $month_number '01' through '12' 
    263263         * @return string Translated full month name 
    264264         */ 
    265         function get_month($month_number) { 
     265        public function get_month($month_number) { 
    266266                return $this->month[zeroise($month_number, 2)]; 
    267267        } 
    268268 
     
    278278         * @param string $month_name Translated month to get abbreviated version 
    279279         * @return string Translated abbreviated month 
    280280         */ 
    281         function get_month_abbrev($month_name) { 
     281        public function get_month_abbrev($month_name) { 
    282282                return $this->month_abbrev[$month_name]; 
    283283        } 
    284284 
     
    293293         * @param string $meridiem Either 'am', 'pm', 'AM', or 'PM'. Not translated version. 
    294294         * @return string Translated version 
    295295         */ 
    296         function get_meridiem($meridiem) { 
     296        public function get_meridiem($meridiem) { 
    297297                return $this->meridiem[$meridiem]; 
    298298        } 
    299299 
     
    305305         * 
    306306         * @since 2.1.0 
    307307         */ 
    308         function register_globals() { 
     308        private function register_globals() { 
    309309                $GLOBALS['weekday']         = $this->weekday; 
    310310                $GLOBALS['weekday_initial'] = $this->weekday_initial; 
    311311                $GLOBALS['weekday_abbrev']  = $this->weekday_abbrev; 
  • wp-includes/pomo/po.php

     
    166166         * @param string $char character to denote a special PO comment, 
    167167         *      like :, default is a space 
    168168         */ 
    169         function comment_block($text, $char=' ') { 
     169        private function comment_block($text, $char=' ') { 
    170170                $text = wordwrap($text, PO_MAX_LINE_LEN - 3); 
    171171                return PO::prepend_each_line($text, "#$char "); 
    172172        } 
  • wp-includes/query.php

     
    828828         * @access public 
    829829         * @var array 
    830830         */ 
    831         var $query; 
     831        public $query; 
    832832 
    833833        /** 
    834834         * Query vars, after parsing 
     
    837837         * @access public 
    838838         * @var array 
    839839         */ 
    840         var $query_vars = array(); 
     840        public $query_vars = array(); 
    841841 
    842842        /** 
    843843         * Taxonomy query, as passed to get_tax_sql() 
     
    846846         * @access public 
    847847         * @var object WP_Tax_Query 
    848848         */ 
    849         var $tax_query; 
     849        public $tax_query; 
    850850 
    851851        /** 
    852852         * Holds the data for a single object that is queried. 
     
    857857         * @access public 
    858858         * @var object|array 
    859859         */ 
    860         var $queried_object; 
     860        public $queried_object; 
    861861 
    862862        /** 
    863863         * The ID of the queried object. 
     
    866866         * @access public 
    867867         * @var int 
    868868         */ 
    869         var $queried_object_id; 
     869        public $queried_object_id; 
    870870 
    871871        /** 
    872872         * Get post database query. 
     
    875875         * @access public 
    876876         * @var string 
    877877         */ 
    878         var $request; 
     878        public $request; 
    879879 
    880880        /** 
    881881         * List of posts. 
     
    884884         * @access public 
    885885         * @var array 
    886886         */ 
    887         var $posts; 
     887        public $posts; 
    888888 
    889889        /** 
    890890         * The amount of posts for the current query. 
     
    893893         * @access public 
    894894         * @var int 
    895895         */ 
    896         var $post_count = 0; 
     896        public $post_count = 0; 
    897897 
    898898        /** 
    899899         * Index of the current item in the loop. 
     
    902902         * @access public 
    903903         * @var int 
    904904         */ 
    905         var $current_post = -1; 
     905        public $current_post = -1; 
    906906 
    907907        /** 
    908908         * Whether the loop has started and the caller is in the loop. 
     
    911911         * @access public 
    912912         * @var bool 
    913913         */ 
    914         var $in_the_loop = false; 
     914        public $in_the_loop = false; 
    915915 
    916916        /** 
    917917         * The current post ID. 
     
    920920         * @access public 
    921921         * @var object 
    922922         */ 
    923         var $post; 
     923        public $post; 
    924924 
    925925        /** 
    926926         * The list of comments for current post. 
     
    929929         * @access public 
    930930         * @var array 
    931931         */ 
    932         var $comments; 
     932        public $comments; 
    933933 
    934934        /** 
    935935         * The amount of comments for the posts. 
     
    938938         * @access public 
    939939         * @var int 
    940940         */ 
    941         var $comment_count = 0; 
     941        public $comment_count = 0; 
    942942 
    943943        /** 
    944944         * The index of the comment in the comment loop. 
     
    947947         * @access public 
    948948         * @var int 
    949949         */ 
    950         var $current_comment = -1; 
     950        public $current_comment = -1; 
    951951 
    952952        /** 
    953953         * Current comment ID. 
     
    956956         * @access public 
    957957         * @var int 
    958958         */ 
    959         var $comment; 
     959        public $comment; 
    960960 
    961961        /** 
    962962         * Amount of posts if limit clause was not used. 
     
    965965         * @access public 
    966966         * @var int 
    967967         */ 
    968         var $found_posts = 0; 
     968        public $found_posts = 0; 
    969969 
    970970        /** 
    971971         * The amount of pages. 
     
    974974         * @access public 
    975975         * @var int 
    976976         */ 
    977         var $max_num_pages = 0; 
     977        public $max_num_pages = 0; 
    978978 
    979979        /** 
    980980         * The amount of comment pages. 
     
    983983         * @access public 
    984984         * @var int 
    985985         */ 
    986         var $max_num_comment_pages = 0; 
     986        public $max_num_comment_pages = 0; 
    987987 
    988988        /** 
    989989         * Set if query is single post. 
     
    992992         * @access public 
    993993         * @var bool 
    994994         */ 
    995         var $is_single = false; 
     995        public $is_single = false; 
    996996 
    997997        /** 
    998998         * Set if query is preview of blog. 
     
    10011001         * @access public 
    10021002         * @var bool 
    10031003         */ 
    1004         var $is_preview = false; 
     1004        public $is_preview = false; 
    10051005 
    10061006        /** 
    10071007         * Set if query returns a page. 
     
    10101010         * @access public 
    10111011         * @var bool 
    10121012         */ 
    1013         var $is_page = false; 
     1013        public $is_page = false; 
    10141014 
    10151015        /** 
    10161016         * Set if query is an archive list. 
     
    10191019         * @access public 
    10201020         * @var bool 
    10211021         */ 
    1022         var $is_archive = false; 
     1022        public $is_archive = false; 
    10231023 
    10241024        /** 
    10251025         * Set if query is part of a date. 
     
    10281028         * @access public 
    10291029         * @var bool 
    10301030         */ 
    1031         var $is_date = false; 
     1031        public $is_date = false; 
    10321032 
    10331033        /** 
    10341034         * Set if query contains a year. 
     
    10371037         * @access public 
    10381038         * @var bool 
    10391039         */ 
    1040         var $is_year = false; 
     1040        public $is_year = false; 
    10411041 
    10421042        /** 
    10431043         * Set if query contains a month. 
     
    10461046         * @access public 
    10471047         * @var bool 
    10481048         */ 
    1049         var $is_month = false; 
     1049        public $is_month = false; 
    10501050 
    10511051        /** 
    10521052         * Set if query contains a day. 
     
    10551055         * @access public 
    10561056         * @var bool 
    10571057         */ 
    1058         var $is_day = false; 
     1058        public $is_day = false; 
    10591059 
    10601060        /** 
    10611061         * Set if query contains time. 
     
    10641064         * @access public 
    10651065         * @var bool 
    10661066         */ 
    1067         var $is_time = false; 
     1067        public $is_time = false; 
    10681068 
    10691069        /** 
    10701070         * Set if query contains an author. 
     
    10731073         * @access public 
    10741074         * @var bool 
    10751075         */ 
    1076         var $is_author = false; 
     1076        public $is_author = false; 
    10771077 
    10781078        /** 
    10791079         * Set if query contains category. 
     
    10821082         * @access public 
    10831083         * @var bool 
    10841084         */ 
    1085         var $is_category = false; 
     1085        public $is_category = false; 
    10861086 
    10871087        /** 
    10881088         * Set if query contains tag. 
     
    10911091         * @access public 
    10921092         * @var bool 
    10931093         */ 
    1094         var $is_tag = false; 
     1094        public $is_tag = false; 
    10951095 
    10961096        /** 
    10971097         * Set if query contains taxonomy. 
     
    11001100         * @access public 
    11011101         * @var bool 
    11021102         */ 
    1103         var $is_tax = false; 
     1103        public $is_tax = false; 
    11041104 
    11051105        /** 
    11061106         * Set if query was part of a search result. 
     
    11091109         * @access public 
    11101110         * @var bool 
    11111111         */ 
    1112         var $is_search = false; 
     1112        public $is_search = false; 
    11131113 
    11141114        /** 
    11151115         * Set if query is feed display. 
     
    11181118         * @access public 
    11191119         * @var bool 
    11201120         */ 
    1121         var $is_feed = false; 
     1121        public $is_feed = false; 
    11221122 
    11231123        /** 
    11241124         * Set if query is comment feed display. 
     
    11271127         * @access public 
    11281128         * @var bool 
    11291129         */ 
    1130         var $is_comment_feed = false; 
     1130        public $is_comment_feed = false; 
    11311131 
    11321132        /** 
    11331133         * Set if query is trackback. 
     
    11361136         * @access public 
    11371137         * @var bool 
    11381138         */ 
    1139         var $is_trackback = false; 
     1139        public $is_trackback = false; 
    11401140 
    11411141        /** 
    11421142         * Set if query is blog homepage. 
     
    11451145         * @access public 
    11461146         * @var bool 
    11471147         */ 
    1148         var $is_home = false; 
     1148        public $is_home = false; 
    11491149 
    11501150        /** 
    11511151         * Set if query couldn't found anything. 
     
    11541154         * @access public 
    11551155         * @var bool 
    11561156         */ 
    1157         var $is_404 = false; 
     1157        public $is_404 = false; 
    11581158 
    11591159        /** 
    11601160         * Set if query is within comments popup window. 
     
    11631163         * @access public 
    11641164         * @var bool 
    11651165         */ 
    1166         var $is_comments_popup = false; 
     1166        public $is_comments_popup = false; 
    11671167 
    11681168        /** 
    11691169         * Set if query is paged 
     
    11721172         * @access public 
    11731173         * @var bool 
    11741174         */ 
    1175         var $is_paged = false; 
     1175        public $is_paged = false; 
    11761176 
    11771177        /** 
    11781178         * Set if query is part of administration page. 
     
    11811181         * @access public 
    11821182         * @var bool 
    11831183         */ 
    1184         var $is_admin = false; 
     1184        public $is_admin = false; 
    11851185 
    11861186        /** 
    11871187         * Set if query is an attachment. 
     
    11901190         * @access public 
    11911191         * @var bool 
    11921192         */ 
    1193         var $is_attachment = false; 
     1193        public $is_attachment = false; 
    11941194 
    11951195        /** 
    11961196         * Set if is single, is a page, or is an attachment. 
     
    11991199         * @access public 
    12001200         * @var bool 
    12011201         */ 
    1202         var $is_singular = false; 
     1202        public $is_singular = false; 
    12031203 
    12041204        /** 
    12051205         * Set if query is for robots. 
     
    12081208         * @access public 
    12091209         * @var bool 
    12101210         */ 
    1211         var $is_robots = false; 
     1211        public $is_robots = false; 
    12121212 
    12131213        /** 
    12141214         * Set if query contains posts. 
     
    12191219         * @access public 
    12201220         * @var bool 
    12211221         */ 
    1222         var $is_posts_page = false; 
     1222        public $is_posts_page = false; 
    12231223 
    12241224        /** 
    12251225         * Set if query is for a post type archive. 
     
    12281228         * @access public 
    12291229         * @var bool 
    12301230         */ 
    1231         var $is_post_type_archive = false; 
     1231        public $is_post_type_archive = false; 
    12321232 
    12331233        /** 
    12341234         * Stores the ->query_vars state like md5(serialize( $this->query_vars ) ) so we know 
     
    12371237         * @since 3.1.0 
    12381238         * @access private 
    12391239         */ 
    1240         var $query_vars_hash = false; 
     1240        private $query_vars_hash = false; 
    12411241 
    12421242        /** 
    12431243         * Resets query flags to false. 
     
    12471247         * @since 2.0.0 
    12481248         * @access private 
    12491249         */ 
    1250         function init_query_flags() { 
     1250        private function init_query_flags() { 
    12511251                $this->is_single = false; 
    12521252                $this->is_preview = false; 
    12531253                $this->is_page = false; 
     
    12831283         * @since 1.5.0 
    12841284         * @access public 
    12851285         */ 
    1286         function init() { 
     1286        public function init() { 
    12871287                unset($this->posts); 
    12881288                unset($this->query); 
    12891289                $this->query_vars = array(); 
     
    13111311         * @since 1.5.0 
    13121312         * @access public 
    13131313         */ 
    1314         function parse_query_vars() { 
     1314        public function parse_query_vars() { 
    13151315                $this->parse_query(); 
    13161316        } 
    13171317 
     
    13241324         * @param array $array Defined query variables. 
    13251325         * @return array Complete query variables with undefined ones filled in empty. 
    13261326         */ 
    1327         function fill_query_vars($array) { 
     1327        public function fill_query_vars($array) { 
    13281328                $keys = array( 
    13291329                        'error' 
    13301330                        , 'm' 
     
    13851385         * 
    13861386         * @param string|array $query Optional query. 
    13871387         */ 
    1388         function parse_query( $query =  '' ) { 
     1388        public function parse_query( $query =  '' ) { 
    13891389                if ( ! empty( $query ) ) { 
    13901390                        $this->init(); 
    13911391                        $this->query = $this->query_vars = wp_parse_args( $query ); 
     
    16381638         * 
    16391639         * @param array &$q The query variables 
    16401640         */ 
    1641         function parse_tax_query( &$q ) { 
     1641        protected function parse_tax_query( &$q ) { 
    16421642                if ( ! empty( $q['tax_query'] ) && is_array( $q['tax_query'] ) ) { 
    16431643                        $tax_query = $q['tax_query']; 
    16441644                } else { 
     
    18221822         * @since 2.0.0 
    18231823         * @access public 
    18241824         */ 
    1825         function set_404() { 
     1825        public function set_404() { 
    18261826                $is_feed = $this->is_feed; 
    18271827 
    18281828                $this->init_query_flags(); 
     
    18401840         * @param string $query_var Query variable key. 
    18411841         * @return mixed 
    18421842         */ 
    1843         function get($query_var) { 
     1843        public function get($query_var) { 
    18441844                if ( isset($this->query_vars[$query_var]) ) 
    18451845                        return $this->query_vars[$query_var]; 
    18461846 
     
    18561856         * @param string $query_var Query variable key. 
    18571857         * @param mixed $value Query variable value. 
    18581858         */ 
    1859         function set($query_var, $value) { 
     1859        public function set($query_var, $value) { 
    18601860                $this->query_vars[$query_var] = $value; 
    18611861        } 
    18621862 
     
    18721872         * 
    18731873         * @return array List of posts. 
    18741874         */ 
    1875         function &get_posts() { 
     1875        public function &get_posts() { 
    18761876                global $wpdb, $user_ID, $_wp_using_ext_object_cache; 
    18771877 
    18781878                $this->parse_query(); 
     
    27172717         * 
    27182718         * @return object Next post. 
    27192719         */ 
    2720         function next_post() { 
     2720        public function next_post() { 
    27212721 
    27222722                $this->current_post++; 
    27232723 
     
    27362736         * @uses $post 
    27372737         * @uses do_action_ref_array() Calls 'loop_start' if loop has just started 
    27382738         */ 
    2739         function the_post() { 
     2739        public function the_post() { 
    27402740                global $post; 
    27412741                $this->in_the_loop = true; 
    27422742 
     
    27582758         * 
    27592759         * @return bool True if posts are available, false if end of loop. 
    27602760         */ 
    2761         function have_posts() { 
     2761        public function have_posts() { 
    27622762                if ( $this->current_post + 1 < $this->post_count ) { 
    27632763                        return true; 
    27642764                } elseif ( $this->current_post + 1 == $this->post_count && $this->post_count > 0 ) { 
     
    27772777         * @since 1.5.0 
    27782778         * @access public 
    27792779         */ 
    2780         function rewind_posts() { 
     2780        public function rewind_posts() { 
    27812781                $this->current_post = -1; 
    27822782                if ( $this->post_count > 0 ) { 
    27832783                        $this->post = $this->posts[0]; 
     
    27922792         * 
    27932793         * @return object Comment object. 
    27942794         */ 
    2795         function next_comment() { 
     2795        public function next_comment() { 
    27962796                $this->current_comment++; 
    27972797 
    27982798                $this->comment = $this->comments[$this->current_comment]; 
     
    28072807         * @global object $comment Current comment. 
    28082808         * @uses do_action() Calls 'comment_loop_start' hook when first comment is processed. 
    28092809         */ 
    2810         function the_comment() { 
     2810        public function the_comment() { 
    28112811                global $comment; 
    28122812 
    28132813                $comment = $this->next_comment(); 
     
    28272827         * 
    28282828         * @return bool True, if more comments. False, if no more posts. 
    28292829         */ 
    2830         function have_comments() { 
     2830        public function have_comments() { 
    28312831                if ( $this->current_comment + 1 < $this->comment_count ) { 
    28322832                        return true; 
    28332833                } elseif ( $this->current_comment + 1 == $this->comment_count ) { 
     
    28432843         * @since 2.2.0 
    28442844         * @access public 
    28452845         */ 
    2846         function rewind_comments() { 
     2846        public function rewind_comments() { 
    28472847                $this->current_comment = -1; 
    28482848                if ( $this->comment_count > 0 ) { 
    28492849                        $this->comment = $this->comments[0]; 
     
    28592859         * @param string $query URL query string. 
    28602860         * @return array List of posts. 
    28612861         */ 
    2862         function &query( $query ) { 
     2862        public function &query( $query ) { 
    28632863                $this->init(); 
    28642864                $this->query = $this->query_vars = wp_parse_args( $query ); 
    28652865                return $this->get_posts(); 
     
    28772877         * 
    28782878         * @return object 
    28792879         */ 
    2880         function get_queried_object() { 
     2880        public function get_queried_object() { 
    28812881                if ( isset($this->queried_object) ) 
    28822882                        return $this->queried_object; 
    28832883 
     
    29262926         * 
    29272927         * @return int 
    29282928         */ 
    2929         function get_queried_object_id() { 
     2929        public function get_queried_object_id() { 
    29302930                $this->get_queried_object(); 
    29312931 
    29322932                if ( isset($this->queried_object_id) ) { 
     
    29472947         * @param string $query URL query string. 
    29482948         * @return WP_Query 
    29492949         */ 
    2950         function WP_Query($query = '') { 
     2950        public function WP_Query($query = '') { 
    29512951                if ( ! empty($query) ) { 
    29522952                        $this->query($query); 
    29532953                } 
  • wp-includes/rewrite.php

     
    362362         * @access private 
    363363         * @var string 
    364364         */ 
    365         var $permalink_structure; 
     365        private $permalink_structure; 
    366366 
    367367        /** 
    368368         * Whether to add trailing slashes. 
     
    371371         * @access private 
    372372         * @var bool 
    373373         */ 
    374         var $use_trailing_slashes; 
     374        private $use_trailing_slashes; 
    375375 
    376376        /** 
    377377         * Permalink author request base ( example.com/author/authorname ). 
     
    380380         * @access private 
    381381         * @var string 
    382382         */ 
    383         var $author_base = 'author'; 
     383        private $author_base = 'author'; 
    384384 
    385385        /** 
    386386         * Permalink request structure for author pages. 
     
    389389         * @access private 
    390390         * @var string 
    391391         */ 
    392         var $author_structure; 
     392        private $author_structure; 
    393393 
    394394        /** 
    395395         * Permalink request structure for dates. 
     
    398398         * @access private 
    399399         * @var string 
    400400         */ 
    401         var $date_structure; 
     401        private $date_structure; 
    402402 
    403403        /** 
    404404         * Permalink request structure for pages. 
     
    407407         * @access private 
    408408         * @var string 
    409409         */ 
    410         var $page_structure; 
     410        private $page_structure; 
    411411 
    412412        /** 
    413413         * Search permalink base ( example.com/search/query ). 
     
    416416         * @access private 
    417417         * @var string 
    418418         */ 
    419         var $search_base = 'search'; 
     419        private $search_base = 'search'; 
    420420 
    421421        /** 
    422422         * Permalink request structure for searches. 
     
    425425         * @access private 
    426426         * @var string 
    427427         */ 
    428         var $search_structure; 
     428        private $search_structure; 
    429429 
    430430        /** 
    431431         * Comments permalink base. 
     
    434434         * @access private 
    435435         * @var string 
    436436         */ 
    437         var $comments_base = 'comments'; 
     437        private $comments_base = 'comments'; 
    438438 
    439439        /** 
    440440         * Pagination permalink base. 
     
    443443         * @access private 
    444444         * @var string 
    445445         */ 
    446         var $pagination_base = 'page'; 
     446        private $pagination_base = 'page'; 
    447447 
    448448        /** 
    449449         * Feed permalink base. 
     
    452452         * @access private 
    453453         * @var string 
    454454         */ 
    455         var $feed_base = 'feed'; 
     455        private $feed_base = 'feed'; 
    456456 
    457457        /** 
    458458         * Comments feed request structure permalink. 
     
    461461         * @access private 
    462462         * @var string 
    463463         */ 
    464         var $comments_feed_structure; 
     464        private $comments_feed_structure; 
    465465 
    466466        /** 
    467467         * Feed request structure permalink. 
     
    470470         * @access private 
    471471         * @var string 
    472472         */ 
    473         var $feed_structure; 
     473        private $feed_structure; 
    474474 
    475475        /** 
    476476         * Front URL path. 
     
    484484         * @access private 
    485485         * @var string 
    486486         */ 
    487         var $front; 
     487        private $front; 
    488488 
    489489        /** 
    490490         * Root URL path to WordPress (without domain). 
     
    496496         * @access private 
    497497         * @var string 
    498498         */ 
    499         var $root = ''; 
     499        private $root = ''; 
    500500 
    501501        /** 
    502502         * Permalink to the home page. 
     
    505505         * @access public 
    506506         * @var string 
    507507         */ 
    508         var $index = 'index.php'; 
     508        public $index = 'index.php'; 
    509509 
    510510        /** 
    511511         * Request match string. 
     
    514514         * @access private 
    515515         * @var string 
    516516         */ 
    517         var $matches = ''; 
     517        private $matches = ''; 
    518518 
    519519        /** 
    520520         * Rewrite rules to match against the request to find the redirect or query. 
     
    523523         * @access private 
    524524         * @var array 
    525525         */ 
    526         var $rules; 
     526        private $rules; 
    527527 
    528528        /** 
    529529         * Additional rules added external to the rewrite class. 
     
    534534         * @access private 
    535535         * @var array 
    536536         */ 
    537         var $extra_rules = array(); // 
     537        private $extra_rules = array(); // 
    538538 
    539539        /** 
    540540         * Additional rules that belong at the beginning to match first. 
     
    545545         * @access private 
    546546         * @var array 
    547547         */ 
    548         var $extra_rules_top = array(); // 
     548        private $extra_rules_top = array(); // 
    549549 
    550550        /** 
    551551         * Rules that don't redirect to WP's index.php. 
     
    556556         * @access private 
    557557         * @var array 
    558558         */ 
    559         var $non_wp_rules = array(); // 
     559        private $non_wp_rules = array(); // 
    560560 
    561561        /** 
    562562         * Extra permalink structures. 
     
    565565         * @access private 
    566566         * @var array 
    567567         */ 
    568         var $extra_permastructs = array(); 
     568        private $extra_permastructs = array(); 
    569569 
    570570        /** 
    571571         * Endpoints permalinks 
     
    574574         * @access private 
    575575         * @var array 
    576576         */ 
    577         var $endpoints; 
     577        private $endpoints; 
    578578 
    579579        /** 
    580580         * Whether to write every mod_rewrite rule for WordPress. 
     
    586586         * @access public 
    587587         * @var bool 
    588588         */ 
    589         var $use_verbose_rules = false; 
     589        public $use_verbose_rules = false; 
    590590 
    591591        /** 
    592592         * Whether to write every mod_rewrite rule for WordPress pages. 
     
    595595         * @access public 
    596596         * @var bool 
    597597         */ 
    598         var $use_verbose_page_rules = true; 
     598        public $use_verbose_page_rules = true; 
    599599 
    600600        /** 
    601601         * Permalink structure search for preg_replace. 
     
    604604         * @access private 
    605605         * @var array 
    606606         */ 
    607         var $rewritecode = 
     607        private $rewritecode = 
    608608                array( 
    609609                                        '%year%', 
    610610                                        '%monthnum%', 
     
    626626         * @access private 
    627627         * @var array 
    628628         */ 
    629         var $rewritereplace = 
     629        private $rewritereplace = 
    630630                array( 
    631631                                        '([0-9]{4})', 
    632632                                        '([0-9]{1,2})', 
     
    648648         * @access private 
    649649         * @var array 
    650650         */ 
    651         var $queryreplace = 
     651        private $queryreplace = 
    652652                array ( 
    653653                                        'year=', 
    654654                                        'monthnum=', 
     
    670670         * @access private 
    671671         * @var array 
    672672         */ 
    673         var $feeds = array ( 'feed', 'rdf', 'rss', 'rss2', 'atom' ); 
     673        private $feeds = array ( 'feed', 'rdf', 'rss', 'rss2', 'atom' ); 
    674674 
    675675        /** 
    676676         * Whether permalinks are being used. 
     
    682682         * 
    683683         * @return bool True, if permalinks are enabled. 
    684684         */ 
    685         function using_permalinks() { 
     685        public function using_permalinks() { 
    686686                return ! empty($this->permalink_structure); 
    687687        } 
    688688 
     
    696696         * 
    697697         * @return bool 
    698698         */ 
    699         function using_index_permalinks() { 
     699        public function using_index_permalinks() { 
    700700                if ( empty($this->permalink_structure) ) 
    701701                        return false; 
    702702 
     
    717717         * 
    718718         * @return bool 
    719719         */ 
    720         function using_mod_rewrite_permalinks() { 
     720        public function using_mod_rewrite_permalinks() { 
    721721                if ( $this->using_permalinks() && ! $this->using_index_permalinks() ) 
    722722                        return true; 
    723723                else 
     
    740740         * @param int $number Index number. 
    741741         * @return string 
    742742         */ 
    743         function preg_index($number) { 
     743        public function preg_index($number) { 
    744744                $match_prefix = '$'; 
    745745                $match_suffix = ''; 
    746746 
     
    763763         * 
    764764         * @return array Array of page URIs as first element and attachment URIs as second element. 
    765765         */ 
    766         function page_uri_index() { 
     766        public function page_uri_index() { 
    767767                global $wpdb; 
    768768 
    769769                //get pages in order of hierarchy, i.e. children after parents 
     
    809809         * 
    810810         * @return array 
    811811         */ 
    812         function page_rewrite_rules() { 
     812        public function page_rewrite_rules() { 
    813813                $rewrite_rules = array(); 
    814814                $page_structure = $this->get_page_permastruct(); 
    815815 
     
    859859         * 
    860860         * @return bool|string False on no permalink structure. Date permalink structure. 
    861861         */ 
    862         function get_date_permastruct() { 
     862        public function get_date_permastruct() { 
    863863                if ( isset($this->date_structure) ) 
    864864                        return $this->date_structure; 
    865865 
     
    913913         * 
    914914         * @return bool|string False on failure. Year structure on success. 
    915915         */ 
    916         function get_year_permastruct() { 
     916        public function get_year_permastruct() { 
    917917                $structure = $this->get_date_permastruct($this->permalink_structure); 
    918918 
    919919                if ( empty($structure) ) 
     
    938938         * 
    939939         * @return bool|string False on failure. Year/Month structure on success. 
    940940         */ 
    941         function get_month_permastruct() { 
     941        public function get_month_permastruct() { 
    942942                $structure = $this->get_date_permastruct($this->permalink_structure); 
    943943 
    944944                if ( empty($structure) ) 
     
    961961         * 
    962962         * @return bool|string False on failure. Year/Month/Day structure on success. 
    963963         */ 
    964         function get_day_permastruct() { 
     964        public function get_day_permastruct() { 
    965965                return $this->get_date_permastruct($this->permalink_structure); 
    966966        } 
    967967 
     
    978978         * 
    979979         * @return bool|string False on failure. Category permalink structure. 
    980980         */ 
    981         function get_category_permastruct() { 
     981        public function get_category_permastruct() { 
    982982                return $this->get_extra_permastruct('category'); 
    983983        } 
    984984 
     
    995995         * 
    996996         * @return bool|string False on failure. Tag permalink structure. 
    997997         */ 
    998         function get_tag_permastruct() { 
     998        public function get_tag_permastruct() { 
    999999                return $this->get_extra_permastruct('post_tag'); 
    10001000        } 
    10011001 
     
    10081008         * @param string $name Permalink structure name. 
    10091009         * @return string|bool False if not found. Permalink structure string. 
    10101010         */ 
    1011         function get_extra_permastruct($name) { 
     1011        public function get_extra_permastruct($name) { 
    10121012                if ( empty($this->permalink_structure) ) 
    10131013                        return false; 
    10141014 
     
    10301030         * 
    10311031         * @return string|bool False if not found. Permalink structure string. 
    10321032         */ 
    1033         function get_author_permastruct() { 
     1033        public function get_author_permastruct() { 
    10341034                if ( isset($this->author_structure) ) 
    10351035                        return $this->author_structure; 
    10361036 
     
    10561056         * 
    10571057         * @return string|bool False if not found. Permalink structure string. 
    10581058         */ 
    1059         function get_search_permastruct() { 
     1059        public function get_search_permastruct() { 
    10601060                if ( isset($this->search_structure) ) 
    10611061                        return $this->search_structure; 
    10621062 
     
    10821082         * 
    10831083         * @return string|bool False if not found. Permalink structure string. 
    10841084         */ 
    1085         function get_page_permastruct() { 
     1085        public function get_page_permastruct() { 
    10861086                if ( isset($this->page_structure) ) 
    10871087                        return $this->page_structure; 
    10881088 
     
    11081108         * 
    11091109         * @return string|bool False if not found. Permalink structure string. 
    11101110         */ 
    1111         function get_feed_permastruct() { 
     1111        public function get_feed_permastruct() { 
    11121112                if ( isset($this->feed_structure) ) 
    11131113                        return $this->feed_structure; 
    11141114 
     
    11341134         * 
    11351135         * @return string|bool False if not found. Permalink structure string. 
    11361136         */ 
    1137         function get_comment_feed_permastruct() { 
     1137        public function get_comment_feed_permastruct() { 
    11381138                if ( isset($this->comment_feed_structure) ) 
    11391139                        return $this->comment_feed_structure; 
    11401140 
     
    11651165         * @param string $pattern Append pattern to rewritereplace property array. 
    11661166         * @param string $query Append query to queryreplace property array. 
    11671167         */ 
    1168         function add_rewrite_tag($tag, $pattern, $query) { 
     1168        public function add_rewrite_tag($tag, $pattern, $query) { 
    11691169                $position = array_search($tag, $this->rewritecode); 
    11701170                if ( false !== $position && null !== $position ) { 
    11711171                        $this->rewritereplace[$position] = $pattern; 
     
    11961196         * @param bool $endpoints Optional, default is true. Whether endpoints are enabled. 
    11971197         * @return array Rewrite rule list. 
    11981198         */ 
    1199         function generate_rewrite_rules($permalink_structure, $ep_mask = EP_NONE, $paged = true, $feed = true, $forcomments = false, $walk_dirs = true, $endpoints = true) { 
     1199        public function generate_rewrite_rules($permalink_structure, $ep_mask = EP_NONE, $paged = true, $feed = true, $forcomments = false, $walk_dirs = true, $endpoints = true) { 
    12001200                //build a regex to match the feed section of URLs, something like (feed|atom|rss|rss2)/? 
    12011201                $feedregex2 = ''; 
    12021202                foreach ( (array) $this->feeds as $feed_name) 
     
    14661466         * @param bool $walk_dirs Optional, default is false. Whether to create list of directories to walk over. 
    14671467         * @return array 
    14681468         */ 
    1469         function generate_rewrite_rule($permalink_structure, $walk_dirs = false) { 
     1469        public function generate_rewrite_rule($permalink_structure, $walk_dirs = false) { 
    14701470                return $this->generate_rewrite_rules($permalink_structure, EP_NONE, false, false, false, $walk_dirs); 
    14711471        } 
    14721472 
     
    14881488         * 
    14891489         * @return array An associate array of matches and queries. 
    14901490         */ 
    1491         function rewrite_rules() { 
     1491        public function rewrite_rules() { 
    14921492                $rewrite = array(); 
    14931493 
    14941494                if ( empty($this->permalink_structure) ) 
     
    15821582         * 
    15831583         * @return array Rewrite rules. 
    15841584         */ 
    1585         function wp_rewrite_rules() { 
     1585        public function wp_rewrite_rules() { 
    15861586                $this->rules = get_option('rewrite_rules'); 
    15871587                if ( empty($this->rules) ) { 
    15881588                        $this->matches = 'matches'; 
     
    16071607         * 
    16081608         * @return string 
    16091609         */ 
    1610         function mod_rewrite_rules() { 
     1610        public function mod_rewrite_rules() { 
    16111611                if ( ! $this->using_permalinks() ) 
    16121612                        return ''; 
    16131613 
     
    16881688         * 
    16891689         * @return string 
    16901690         */ 
    1691         function iis7_url_rewrite_rules( $add_parent_tags = false ) { 
     1691        public function iis7_url_rewrite_rules( $add_parent_tags = false ) { 
    16921692 
    16931693                if ( ! $this->using_permalinks() ) 
    16941694                        return ''; 
     
    17941794         * @param string $redirect URL regex redirects to when regex matches request. 
    17951795         * @param string $after Optional, default is bottom. Location to place rule. 
    17961796         */ 
    1797         function add_rule($regex, $redirect, $after = 'bottom') { 
     1797        public function add_rule($regex, $redirect, $after = 'bottom') { 
    17981798                //get everything up to the first ? 
    17991799                $index = (strpos($redirect, '?') == false ? strlen($redirect) : strpos($redirect, '?')); 
    18001800                $front = substr($redirect, 0, $index); 
     
    18201820         * @param string $regex Regular expression to match against request. 
    18211821         * @param string $redirect URL regex redirects to when regex matches request. 
    18221822         */ 
    1823         function add_external_rule($regex, $redirect) { 
     1823        public function add_external_rule($regex, $redirect) { 
    18241824                $this->non_wp_rules[$regex] = $redirect; 
    18251825        } 
    18261826 
     
    18351835         * @param string $name Name of endpoint. 
    18361836         * @param array $places URL types that endpoint can be used. 
    18371837         */ 
    1838         function add_endpoint($name, $places) { 
     1838        public function add_endpoint($name, $places) { 
    18391839                global $wp; 
    18401840                $this->endpoints[] = array ( $places, $name ); 
    18411841                $wp->add_query_var($name); 
     
    18541854         * @param string $struct Permalink structure. 
    18551855         * @param bool $with_front Prepend front base to permalink structure. 
    18561856         */ 
    1857         function add_permastruct($name, $struct, $with_front = true, $ep_mask = EP_NONE) { 
     1857        public function add_permastruct($name, $struct, $with_front = true, $ep_mask = EP_NONE) { 
    18581858                if ( $with_front ) 
    18591859                        $struct = $this->front . $struct; 
    18601860                else 
     
    18731873         * @access public 
    18741874         * @param bool $hard Whether to update .htaccess (hard flush) or just update rewrite_rules option (soft flush). Default is true (hard). 
    18751875         */ 
    1876         function flush_rules($hard = true) { 
     1876        public function flush_rules($hard = true) { 
    18771877                delete_option('rewrite_rules'); 
    18781878                $this->wp_rewrite_rules(); 
    18791879                if ( $hard && function_exists('save_mod_rewrite_rules') ) 
     
    18921892         * @since 1.5.0 
    18931893         * @access public 
    18941894         */ 
    1895         function init() { 
     1895        public function init() { 
    18961896                $this->extra_rules = $this->non_wp_rules = $this->endpoints = array(); 
    18971897                $this->permalink_structure = get_option('permalink_structure'); 
    18981898                $this->front = substr($this->permalink_structure, 0, strpos($this->permalink_structure, '%')); 
     
    19291929         * 
    19301930         * @param string $permalink_structure Permalink structure. 
    19311931         */ 
    1932         function set_permalink_structure($permalink_structure) { 
     1932        public function set_permalink_structure($permalink_structure) { 
    19331933                if ( $permalink_structure != $this->permalink_structure ) { 
    19341934                        update_option('permalink_structure', $permalink_structure); 
    19351935                        $this->init(); 
     
    19491949         * 
    19501950         * @param string $category_base Category permalink structure base. 
    19511951         */ 
    1952         function set_category_base($category_base) { 
     1952        public function set_category_base($category_base) { 
    19531953                if ( $category_base != get_option('category_base') ) { 
    19541954                        update_option('category_base', $category_base); 
    19551955                        $this->init(); 
     
    19681968         * 
    19691969         * @param string $tag_base Tag permalink structure base. 
    19701970         */ 
    1971         function set_tag_base( $tag_base ) { 
     1971        public function set_tag_base( $tag_base ) { 
    19721972                if ( $tag_base != get_option( 'tag_base') ) { 
    19731973                        update_option( 'tag_base', $tag_base ); 
    19741974                        $this->init(); 
     
    19831983         * 
    19841984         * @return WP_Rewrite 
    19851985         */ 
    1986         function WP_Rewrite() { 
     1986        public function WP_Rewrite() { 
    19871987                $this->init(); 
    19881988        } 
    19891989} 
  • wp-includes/taxonomy.php

     
    548548         * @access public 
    549549         * @var array 
    550550         */ 
    551         var $queries = array(); 
     551        public $queries = array(); 
    552552 
    553553        /** 
    554554         * The relation between the queries. Can be one of 'AND' or 'OR'. 
     
    557557         * @access public 
    558558         * @var string 
    559559         */ 
    560         var $relation; 
     560        public $relation; 
    561561 
    562562        /** 
    563563         * PHP4 type constructor. 
     
    584584         * 
    585585         * @return WP_Tax_Query 
    586586         */ 
    587         function WP_Tax_Query( $tax_query ) { 
     587        public function WP_Tax_Query( $tax_query ) { 
    588588                if ( isset( $tax_query['relation'] ) && strtoupper( $tax_query['relation'] ) == 'OR' ) { 
    589589                        $this->relation = 'OR'; 
    590590                } else { 
     
    621621         * @param string $primary_id_column 
    622622         * @return array 
    623623         */ 
    624         function get_sql( $primary_table, $primary_id_column ) { 
     624        public function get_sql( $primary_table, $primary_id_column ) { 
    625625                global $wpdb; 
    626626 
    627627                $join = ''; 
     
    724724         * @param string $field The initial field 
    725725         * @param string $resulting_field The resulting field 
    726726         */ 
    727         function _transform_terms( &$terms, $taxonomy, $field, $resulting_field ) { 
     727        private function _transform_terms( &$terms, $taxonomy, $field, $resulting_field ) { 
    728728                global $wpdb; 
    729729 
    730730                if ( empty( $terms ) ) 
  • wp-includes/user.php

     
    342342         * @access private 
    343343         * @var array 
    344344         */ 
    345         var $results; 
     345        private $results; 
    346346 
    347347        /** 
    348348         * Total number of found users for the current query 
     
    351351         * @access private 
    352352         * @var int 
    353353         */ 
    354         var $total_users = 0; 
     354        private $total_users = 0; 
    355355 
    356356        // SQL clauses 
    357357        var $query_fields; 
     
    405405         * @since 3.1.0 
    406406         * @access private 
    407407         */ 
    408         function prepare_query() { 
     408        private function prepare_query() { 
    409409                global $wpdb; 
    410410 
    411411                $qv = &$this->query_vars; 
     
    540540         * @since 3.1.0 
    541541         * @access private 
    542542         */ 
    543         function query() { 
     543        private function query() { 
    544544                global $wpdb; 
    545545 
    546546                if ( is_array( $this->query_vars['fields'] ) || 'all' == $this->query_vars['fields'] ) { 
     
    578578         *  single site. Single site allows leading and trailing wildcards, Network Admin only trailing. 
    579579         * @return string 
    580580         */ 
    581         function get_search_sql( $string, $cols, $wild = false ) { 
     581        protected function get_search_sql( $string, $cols, $wild = false ) { 
    582582                $string = esc_sql( $string ); 
    583583 
    584584                $searches = array(); 
     
    602602         * 
    603603         * @return array 
    604604         */ 
    605         function get_results() { 
     605        public function get_results() { 
    606606                return $this->results; 
    607607        } 
    608608 
     
    614614         * 
    615615         * @return array 
    616616         */ 
    617         function get_total() { 
     617        public function get_total() { 
    618618                return $this->total_users; 
    619619        } 
    620620} 
  • wp-includes/wp-db.php

     
    5858         * @access private 
    5959         * @var bool 
    6060         */ 
    61         var $show_errors = false; 
     61        private $show_errors = false; 
    6262 
    6363        /** 
    6464         * Whether to suppress errors during the DB bootstrapping. 
     
    6767         * @since 2.5.0 
    6868         * @var bool 
    6969         */ 
    70         var $suppress_errors = false; 
     70        private $suppress_errors = false; 
    7171 
    7272        /** 
    7373         * The last error during query. 
     
    7777         * @access private 
    7878         * @var string 
    7979         */ 
    80         var $last_error = ''; 
     80        private $last_error = ''; 
    8181 
    8282        /** 
    8383         * Amount of queries made 
     
    8686         * @access private 
    8787         * @var int 
    8888         */ 
    89         var $num_queries = 0; 
     89        private $num_queries = 0; 
    9090 
    9191        /** 
    9292         * Count of rows returned by previous query 
     
    9595         * @access private 
    9696         * @var int 
    9797         */ 
    98         var $num_rows = 0; 
     98        private $num_rows = 0; 
    9999 
    100100        /** 
    101101         * Count of affected rows by previous query 
     
    104104         * @access private 
    105105         * @var int 
    106106         */ 
    107         var $rows_affected = 0; 
     107        private $rows_affected = 0; 
    108108 
    109109        /** 
    110110         * The ID generated for an AUTO_INCREMENT column by the previous query (usually INSERT). 
     
    113113         * @access public 
    114114         * @var int 
    115115         */ 
    116         var $insert_id = 0; 
     116        public $insert_id = 0; 
    117117 
    118118        /** 
    119119         * Saved result of the last query made 
     
    122122         * @access private 
    123123         * @var array 
    124124         */ 
    125         var $last_query; 
     125        private $last_query; 
    126126 
    127127        /** 
    128128         * Results of the last query made 
     
    131131         * @access private 
    132132         * @var array|null 
    133133         */ 
    134         var $last_result; 
     134        private $last_result; 
    135135 
    136136        /** 
    137137         * Saved info on the table column 
     
    140140         * @access private 
    141141         * @var array 
    142142         */ 
    143         var $col_info; 
     143        private $col_info; 
    144144 
    145145        /** 
    146146         * Saved queries that were executed 
     
    149149         * @access private 
    150150         * @var array 
    151151         */ 
    152         var $queries; 
     152        private $queries; 
    153153 
    154154        /** 
    155155         * WordPress table prefix 
     
    162162         * @access private 
    163163         * @var string 
    164164         */ 
    165         var $prefix = ''; 
     165        private $prefix = ''; 
    166166 
    167167        /** 
    168168         * Whether the database queries are ready to start executing. 
     
    171171         * @access private 
    172172         * @var bool 
    173173         */ 
    174         var $ready = false; 
     174        private $ready = false; 
    175175 
    176176        /** 
    177177         * {@internal Missing Description}} 
     
    180180         * @access public 
    181181         * @var int 
    182182         */ 
    183         var $blogid = 0; 
     183        public $blogid = 0; 
    184184 
    185185        /** 
    186186         * {@internal Missing Description}} 
     
    189189         * @access public 
    190190         * @var int 
    191191         */ 
    192         var $siteid = 0; 
     192        public $siteid = 0; 
    193193 
    194194        /** 
    195195         * List of WordPress per-blog tables 
     
    199199         * @see wpdb::tables() 
    200200         * @var array 
    201201         */ 
    202         var $tables = array( 'posts', 'comments', 'links', 'options', 'postmeta', 
     202        private $tables = array( 'posts', 'comments', 'links', 'options', 'postmeta', 
    203203                'terms', 'term_taxonomy', 'term_relationships', 'commentmeta' ); 
    204204 
    205205        /** 
     
    212212         * @see wpdb::tables() 
    213213         * @var array 
    214214         */ 
    215         var $old_tables = array( 'categories', 'post2cat', 'link2cat' ); 
     215        private $old_tables = array( 'categories', 'post2cat', 'link2cat' ); 
    216216 
    217217        /** 
    218218         * List of WordPress global tables 
     
    222222         * @see wpdb::tables() 
    223223         * @var array 
    224224         */ 
    225         var $global_tables = array( 'users', 'usermeta' ); 
     225        private $global_tables = array( 'users', 'usermeta' ); 
    226226 
    227227        /** 
    228228         * List of Multisite global tables 
     
    232232         * @see wpdb::tables() 
    233233         * @var array 
    234234         */ 
    235         var $ms_global_tables = array( 'blogs', 'signups', 'site', 'sitemeta', 
     235        private $ms_global_tables = array( 'blogs', 'signups', 'site', 'sitemeta', 
    236236                'sitecategories', 'registration_log', 'blog_versions' ); 
    237237 
    238238        /** 
     
    242242         * @access public 
    243243         * @var string 
    244244         */ 
    245         var $comments; 
     245        public $comments; 
    246246 
    247247        /** 
    248248         * WordPress Comment Metadata table 
     
    251251         * @access public 
    252252         * @var string 
    253253         */ 
    254         var $commentmeta; 
     254        public $commentmeta; 
    255255 
    256256        /** 
    257257         * WordPress Links table 
     
    260260         * @access public 
    261261         * @var string 
    262262         */ 
    263         var $links; 
     263        public $links; 
    264264 
    265265        /** 
    266266         * WordPress Options table 
     
    269269         * @access public 
    270270         * @var string 
    271271         */ 
    272         var $options; 
     272        public $options; 
    273273 
    274274        /** 
    275275         * WordPress Post Metadata table 
     
    278278         * @access public 
    279279         * @var string 
    280280         */ 
    281         var $postmeta; 
     281        public $postmeta; 
    282282 
    283283        /** 
    284284         * WordPress Posts table 
     
    287287         * @access public 
    288288         * @var string 
    289289         */ 
    290         var $posts; 
     290        public $posts; 
    291291 
    292292        /** 
    293293         * WordPress Terms table 
     
    296296         * @access public 
    297297         * @var string 
    298298         */ 
    299         var $terms; 
     299        public $terms; 
    300300 
    301301        /** 
    302302         * WordPress Term Relationships table 
     
    305305         * @access public 
    306306         * @var string 
    307307         */ 
    308         var $term_relationships; 
     308        public $term_relationships; 
    309309 
    310310        /** 
    311311         * WordPress Term Taxonomy table 
     
    314314         * @access public 
    315315         * @var string 
    316316         */ 
    317         var $term_taxonomy; 
     317        public $term_taxonomy; 
    318318 
    319319        /* 
    320320         * Global and Multisite tables 
     
    327327         * @access public 
    328328         * @var string 
    329329         */ 
    330         var $usermeta; 
     330        public $usermeta; 
    331331 
    332332        /** 
    333333         * WordPress Users table 
     
    336336         * @access public 
    337337         * @var string 
    338338         */ 
    339         var $users; 
     339        public $users; 
    340340 
    341341        /** 
    342342         * Multisite Blogs table 
     
    345345         * @access public 
    346346         * @var string 
    347347         */ 
    348         var $blogs; 
     348        public $blogs; 
    349349 
    350350        /** 
    351351         * Multisite Blog Versions table 
     
    354354         * @access public 
    355355         * @var string 
    356356         */ 
    357         var $blog_versions; 
     357        public $blog_versions; 
    358358 
    359359        /** 
    360360         * Multisite Registration Log table 
     
    363363         * @access public 
    364364         * @var string 
    365365         */ 
    366         var $registration_log; 
     366        public $registration_log; 
    367367 
    368368        /** 
    369369         * Multisite Signups table 
     
    372372         * @access public 
    373373         * @var string 
    374374         */ 
    375         var $signups; 
     375        public $signups; 
    376376 
    377377        /** 
    378378         * Multisite Sites table 
     
    381381         * @access public 
    382382         * @var string 
    383383         */ 
    384         var $site; 
     384        public $site; 
    385385 
    386386        /** 
    387387         * Multisite Sitewide Terms table 
     
    390390         * @access public 
    391391         * @var string 
    392392         */ 
    393         var $sitecategories; 
     393        public $sitecategories; 
    394394 
    395395        /** 
    396396         * Multisite Site Metadata table 
     
    399399         * @access public 
    400400         * @var string 
    401401         */ 
    402         var $sitemeta; 
     402        public $sitemeta; 
    403403 
    404404        /** 
    405405         * Format specifiers for DB columns. Columns not listed here default to %s. Initialized during WP load. 
     
    414414         * @access public 
    415415         * @var array 
    416416         */ 
    417         var $field_types = array(); 
     417        public $field_types = array(); 
    418418 
    419419        /** 
    420420         * Database table columns charset 
     
    423423         * @access public 
    424424         * @var string 
    425425         */ 
    426         var $charset; 
     426        public $charset; 
    427427 
    428428        /** 
    429429         * Database table columns collate 
     
    432432         * @access public 
    433433         * @var string 
    434434         */ 
    435         var $collate; 
     435        public $collate; 
    436436 
    437437        /** 
    438438         * Whether to use mysql_real_escape_string 
     
    441441         * @access public 
    442442         * @var bool 
    443443         */ 
    444         var $real_escape = false; 
     444        public $real_escape = false; 
    445445 
    446446        /** 
    447447         * Database Username 
     
    450450         * @access private 
    451451         * @var string 
    452452         */ 
    453         var $dbuser; 
     453        private $dbuser; 
    454454 
    455455        /** 
    456456         * A textual description of the last query/get_row/get_var call 
     
    459459         * @access public 
    460460         * @var string 
    461461         */ 
    462         var $func_call; 
     462        public $func_call; 
    463463 
    464464        /** 
    465465         * Connects to the database server and selects a database 
     
    614614         * @param int $site_id Optional. 
    615615         * @return string previous blog id 
    616616         */ 
    617         function set_blog_id( $blog_id, $site_id = 0 ) { 
     617        public function set_blog_id( $blog_id, $site_id = 0 ) { 
    618618                if ( ! empty( $site_id ) ) 
    619619                        $this->siteid = $site_id; 
    620620 
     
    771771         * @param string $string 
    772772         * @return string 
    773773         */ 
    774         function _weak_escape( $string ) { 
     774        private function _weak_escape( $string ) { 
    775775                return addslashes( $string ); 
    776776        } 
    777777 
     
    786786         * @param  string $string to escape 
    787787         * @return string escaped 
    788788         */ 
    789         function _real_escape( $string ) { 
     789        private function _real_escape( $string ) { 
    790790                if ( $this->dbh && $this->real_escape ) 
    791791                        return mysql_real_escape_string( $string, $this->dbh ); 
    792792                else 
     
    804804         * @param  string|array $data 
    805805         * @return string|array escaped 
    806806         */ 
    807         function _escape( $data ) { 
     807        private function _escape( $data ) { 
    808808                if ( is_array( $data ) ) { 
    809809                        foreach ( (array) $data as $k => $v ) { 
    810810                                if ( is_array($v) ) 
     
    12011201         *      A format is one of '%d', '%s' (decimal number, string). If omitted, all values in $data will be treated as strings unless otherwise specified in wpdb::$field_types. 
    12021202         * @return int|false The number of rows affected, or false on error. 
    12031203         */ 
    1204         function _insert_replace_helper( $table, $data, $format = null, $type = 'INSERT' ) { 
     1204        private function _insert_replace_helper( $table, $data, $format = null, $type = 'INSERT' ) { 
    12051205                if ( ! in_array( strtoupper( $type ), array( 'REPLACE', 'INSERT' ) ) ) 
    12061206                        return false; 
    12071207                $formats = $format = (array) $format; 
  • wp-includes/wp-diff.php

     
    3131         * @access protected 
    3232         * @since 2.6.0 
    3333         */ 
    34         var $_leading_context_lines  = 10000; 
     34        protected $_leading_context_lines  = 10000; 
    3535 
    3636        /** 
    3737         * @see Text_Diff_Renderer::_trailing_context_lines 
     
    3939         * @access protected 
    4040         * @since 2.6.0 
    4141         */ 
    42         var $_trailing_context_lines = 10000; 
     42        protected $_trailing_context_lines = 10000; 
    4343 
    4444        /** 
    4545         * {@internal Missing Description}} 
     
    4848         * @access protected 
    4949         * @since 2.6.0 
    5050         */ 
    51         var $_diff_threshold = 0.6; 
     51        protected $_diff_threshold = 0.6; 
    5252 
    5353        /** 
    5454         * Inline display helper object name. 
     
    5757         * @access protected 
    5858         * @since 2.6.0 
    5959         */ 
    60         var $inline_diff_renderer = 'WP_Text_Diff_Renderer_inline'; 
     60        protected $inline_diff_renderer = 'WP_Text_Diff_Renderer_inline'; 
    6161 
    6262        /** 
    6363         * PHP4 Constructor - Call parent constructor with params array. 
     
    139139         * @param bool $encode 
    140140         * @return string 
    141141         */ 
    142         function _added( $lines, $encode = true ) { 
     142        private function _added( $lines, $encode = true ) { 
    143143                $r = ''; 
    144144                foreach ($lines as $line) { 
    145145                        if ( $encode ) 
     
    157157         * @param bool $encode 
    158158         * @return string 
    159159         */ 
    160         function _deleted( $lines, $encode = true ) { 
     160        private function _deleted( $lines, $encode = true ) { 
    161161                $r = ''; 
    162162                foreach ($lines as $line) { 
    163163                        if ( $encode ) 
     
    175175         * @param bool $encode 
    176176         * @return string 
    177177         */ 
    178         function _context( $lines, $encode = true ) { 
     178        private function _context( $lines, $encode = true ) { 
    179179                $r = ''; 
    180180                foreach ($lines as $line) { 
    181181                        if ( $encode ) 
     
    199199         * @param array $final 
    200200         * @return string 
    201201         */ 
    202         function _changed( $orig, $final ) { 
     202        private function _changed( $orig, $final ) { 
    203203                $r = ''; 
    204204 
    205205                // Does the aforementioned additional processing