docblocks
This commit is contained in:
parent
e0de3643bc
commit
2beddc59a7
|
@ -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 ) );
|
||||
|
|
|
@ -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' );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue