Skip to content

Commit

Permalink
Plugin Directory: Correct a typo.
Browse files Browse the repository at this point in the history
See #407


git-svn-id: https://meta.svn.wordpress.org/sites/trunk@14311 74240141-8908-4e6f-9713-ba540dce6ec7
  • Loading branch information
dd32 committed Dec 18, 2024
1 parent 45f1f00 commit 49198a4
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1735,9 +1735,9 @@ public static function get_releases( $plugin ) {
$plugin = self::get_plugin_post( $plugin );
$releases = get_post_meta( $plugin->ID, 'releases', true );

// Meta doesn't exist yet? Lets fill it out.
// Data doesn't exist yet? Lets fill it out.
if ( false === $releases || ! is_array( $releases ) ) {
$releases = self::prefill_releses_meta( $plugin );
$releases = self::prefill_releases_meta( $plugin );
}

/**
Expand All @@ -1756,12 +1756,12 @@ public static function get_releases( $plugin ) {
}

/**
* Prefill the releases meta for a plugin.
* Prefill the releases meta items for a plugin.
*
* @param \WP_Post $plugin Plugin post object.
* @return array
*/
public static function prefill_releses_meta( $plugin ) {
public static function prefill_releases_meta( $plugin ) {
if ( ! $plugin->releases ) {
update_post_meta( $plugin->ID, 'releases', [] );
}
Expand Down

0 comments on commit 49198a4

Please sign in to comment.