docblocks

This commit is contained in:
Mike Jolley 2017-08-23 14:38:00 +01:00
parent e0de3643bc
commit 2beddc59a7
2 changed files with 10 additions and 1 deletions

View File

@ -37,7 +37,7 @@ abstract class WC_REST_CRUD_Controller extends WC_REST_Posts_Controller {
* Get object.
*
* @param int $id Object ID.
* @return WP_Error|WC_Data
* @return object WC_Data object or WP_Error object.
*/
protected function get_object( $id ) {
return new WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass.", 'woocommerce' ), __METHOD__ ), array( 'status' => 405 ) );

View File

@ -477,6 +477,15 @@ class WC_Admin_Addons {
$theme = wp_get_theme();
$section_keys = array_keys( $sections );
$current_section = isset( $_GET['section'] ) ? sanitize_text_field( $_GET['section'] ) : current( $section_keys );
/**
* Addon page view.
*
* @uses $sections
* @uses $theme
* @uses $section_keys
* @uses $current_section
*/
include_once( dirname( __FILE__ ) . '/views/html-admin-page-addons.php' );
}