Changeset 10740 for sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-repo-package.php
- Timestamp:
- 03/03/2021 04:57:29 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-repo-package.php
r9303 r10740 4 4 * Class WPORG_Themes_Repo_Package 5 5 * 6 * The WPORG_Themes_Repo_Package class extends the base package class fortheme-specific info.6 * The WPORG_Themes_Repo_Package class wraps the WP_Post class with theme-specific info. 7 7 * You can create one with new and pass it either a post or post id. 8 8 */ 9 class WPORG_Themes_Repo_Package extends Repo_Package { 9 class WPORG_Themes_Repo_Package { 10 11 /** 12 * Holds a WP_Post object representing this post. 13 * 14 * @var WP_Post 15 */ 16 public $wp_post; 17 18 /** 19 * Construct a new Package for the given post ID or object. 20 * 21 * @param WP_Post|int $post 22 */ 23 public function __construct( $post = 0 ) { 24 if ( $post ) { 25 $this->wp_post = get_post( $post ); 26 } 27 } 10 28 11 29 /**
Note: See TracChangeset
for help on using the changeset viewer.