Making WordPress.org


Ignore:
Timestamp:
02/05/2024 03:03:08 AM (3 years ago)
Author:
dufresnesteven
Message:

Support: Hide global view links in sidebar for plugins & themes.

Props: Clorith
See: https://meta.trac.wordpress.org/ticket/7434

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/functions.php

    r12892 r13168  
    457457
    458458        return $plugin_instance->users->get_user_report_count( $user_id );
     459}
     460
     461/**
     462 * Returns whether we are viewing a theme or plugin forum.
     463 *
     464 * @return bool Returns true if theme or plugin forum.
     465 */
     466function wporg_support_is_compat_forum() {
     467        return null !== wporg_support_get_compat_object();
    459468}
    460469
Note: See TracChangeset for help on using the changeset viewer.