fixed some docblocks
This commit is contained in:
parent
76bccd4ddb
commit
78c7fefe3e
|
@ -60,7 +60,8 @@ abstract class WC_Widget extends WP_Widget {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Flush the cache
|
* Flush the cache
|
||||||
* @return [type]
|
*
|
||||||
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function flush_widget_cache() {
|
public function flush_widget_cache() {
|
||||||
wp_cache_delete( apply_filters( 'woocommerce_cached_widget_id', $this->widget_id ), 'widget' );
|
wp_cache_delete( apply_filters( 'woocommerce_cached_widget_id', $this->widget_id ), 'widget' );
|
||||||
|
@ -151,4 +152,4 @@ abstract class WC_Widget extends WP_Widget {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -98,7 +98,8 @@ class WC_Admin {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Preview email template
|
* Preview email template
|
||||||
* @return [type]
|
*
|
||||||
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function preview_emails() {
|
public function preview_emails() {
|
||||||
if ( isset( $_GET['preview_woocommerce_mail'] ) ) {
|
if ( isset( $_GET['preview_woocommerce_mail'] ) ) {
|
||||||
|
|
|
@ -208,7 +208,7 @@ class WC_Comments {
|
||||||
/**
|
/**
|
||||||
* Clear transients for a review.
|
* Clear transients for a review.
|
||||||
*
|
*
|
||||||
* @param mixed $comment_id
|
* @param mixed $post_id
|
||||||
*/
|
*/
|
||||||
public static function clear_transients( $post_id ) {
|
public static function clear_transients( $post_id ) {
|
||||||
delete_transient( 'wc_average_rating_' . absint( $post_id ) );
|
delete_transient( 'wc_average_rating_' . absint( $post_id ) );
|
||||||
|
|
|
@ -418,7 +418,7 @@ class WC_Customer {
|
||||||
* Sets session data for the city.
|
* Sets session data for the city.
|
||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @param mixed $postcode
|
* @param mixed $city
|
||||||
*/
|
*/
|
||||||
public function set_city( $city ) {
|
public function set_city( $city ) {
|
||||||
$this->city = $city;
|
$this->city = $city;
|
||||||
|
@ -494,7 +494,7 @@ class WC_Customer {
|
||||||
* Sets session data for the city.
|
* Sets session data for the city.
|
||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @param string $postcode
|
* @param string $city
|
||||||
*/
|
*/
|
||||||
public function set_shipping_city( $city ) {
|
public function set_shipping_city( $city ) {
|
||||||
$this->shipping_city = $city;
|
$this->shipping_city = $city;
|
||||||
|
|
|
@ -117,7 +117,8 @@ class WC_Query {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get query vars
|
* Get query vars
|
||||||
* @return array()
|
*
|
||||||
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function get_query_vars() {
|
public function get_query_vars() {
|
||||||
return $this->query_vars;
|
return $this->query_vars;
|
||||||
|
|
Loading…
Reference in New Issue