Add `public` keyword to public various methods
This commit is contained in:
parent
3c8c607809
commit
398ab8a016
|
@ -200,7 +200,7 @@ class WC_Customer {
|
|||
*
|
||||
* @return bool
|
||||
*/
|
||||
function is_paying_customer( $user_id ) {
|
||||
public function is_paying_customer( $user_id ) {
|
||||
return '1' === get_user_meta( $user_id, 'paying_customer', true );
|
||||
}
|
||||
|
||||
|
|
|
@ -1506,7 +1506,7 @@ class WC_Geo_IP {
|
|||
* @param int $ipnum
|
||||
* @return string
|
||||
*/
|
||||
function _geoip_seek_country_v6( $ipnum ) {
|
||||
public function _geoip_seek_country_v6( $ipnum ) {
|
||||
// arrays from unpack start with offset 1
|
||||
// yet another php mystery. array_merge work around
|
||||
// this broken behaviour
|
||||
|
|
|
@ -42,7 +42,7 @@ class WC_Widget_Product_Search extends WC_Widget {
|
|||
* @param array $args
|
||||
* @param array $instance
|
||||
*/
|
||||
function widget( $args, $instance ) {
|
||||
public function widget( $args, $instance ) {
|
||||
$this->widget_start( $args, $instance );
|
||||
|
||||
get_product_search_form();
|
||||
|
|
|
@ -50,7 +50,7 @@ class WC_Widget_Recently_Viewed extends WC_Widget {
|
|||
* @param array $args
|
||||
* @param array $instance
|
||||
*/
|
||||
function widget( $args, $instance ) {
|
||||
public function widget( $args, $instance ) {
|
||||
|
||||
$viewed_products = ! empty( $_COOKIE['woocommerce_recently_viewed'] ) ? (array) explode( '|', $_COOKIE['woocommerce_recently_viewed'] ) : array();
|
||||
$viewed_products = array_filter( array_map( 'absint', $viewed_products ) );
|
||||
|
|
Loading…
Reference in New Issue