Changeset 14311
- Timestamp:
- 12/18/2024 06:11:47 AM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
r14275 r14311 1736 1736 $releases = get_post_meta( $plugin->ID, 'releases', true ); 1737 1737 1738 // Meta doesn't exist yet? Lets fill it out.1738 // Data doesn't exist yet? Lets fill it out. 1739 1739 if ( false === $releases || ! is_array( $releases ) ) { 1740 $releases = self::prefill_rele ses_meta( $plugin );1740 $releases = self::prefill_releases_meta( $plugin ); 1741 1741 } 1742 1742 … … 1757 1757 1758 1758 /** 1759 * Prefill the releases meta for a plugin.1759 * Prefill the releases meta items for a plugin. 1760 1760 * 1761 1761 * @param \WP_Post $plugin Plugin post object. 1762 1762 * @return array 1763 1763 */ 1764 public static function prefill_rele ses_meta( $plugin ) {1764 public static function prefill_releases_meta( $plugin ) { 1765 1765 if ( ! $plugin->releases ) { 1766 1766 update_post_meta( $plugin->ID, 'releases', [] );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)