Making WordPress.org


Ignore:
Timestamp:
09/08/2022 08:21:21 PM (23 months ago)
Author:
coffee2code
Message:

Photo Directory, User: Start to centralize user-related functions into the same include file.

  • Moves Admin::count_user_rejections() to count_rejected()
  • Moves Photos::count_user_published_photos() to count_published_photos()
  • Moves Photos::count_user_pending_photos() to count_pending_photos()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/badges.php

    r11880 r12057  
    3636        } elseif ( 'publish' === $old_status && 'publish' !== $new_status ) {
    3737            // If the user now has no published Photos, remove the badge.
    38             if ( ! Photo::count_user_published_photos( $post->post_author ) ) {
     38            if ( ! User::count_published_photos( $post->post_author ) ) {
    3939                remove_badge( 'photo-contributor', $post->post_author );
    4040            }
Note: See TracChangeset for help on using the changeset viewer.