Making WordPress.org


Ignore:
Timestamp:
09/03/2017 12:17:22 AM (9 years ago)
Author:
SergeyBiryukov
Message:

Support Theme: Improve line wrapping for "The page I need help with" link.

See #3049, #2557.

File:
1 edited

Legend:

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

    r5824 r5859  
    3232        get_template_directory_uri() . '/style.css',
    3333        array( 'bb-base' ),
    34         '20170821'
     34        '20170903'
    3535    );
    3636
     
    249249    }
    250250
    251     $count = (int) $wpdb->get_var( $wpdb->prepare(
    252         "SELECT COUNT(*)
    253             FROM {$wpdb->posts}
    254             WHERE post_type = 'topic'
    255                 AND post_status IN ( 'publish', 'closed' )
    256                 AND post_parent <> %d
    257                 AND post_author = %d",
    258         WordPressdotorg\Forums\Plugin::REVIEWS_FORUM_ID,
    259         $user_id
    260     ) );
     251        $count = (int) $wpdb->get_var( $wpdb->prepare(
     252            "SELECT COUNT(*)
     253                FROM {$wpdb->posts}
     254                WHERE post_type = 'topic'
     255                    AND post_status IN ( 'publish', 'closed' )
     256                    AND post_parent <> %d
     257                    AND post_author = %d",
     258            WordPressdotorg\Forums\Plugin::REVIEWS_FORUM_ID,
     259            $user_id
     260        ) );
    261261
    262262    return $count;
     
    283283    }
    284284
    285     $count = (int) $wpdb->get_var( $wpdb->prepare(
    286         "SELECT COUNT(*)
    287             FROM {$wpdb->posts}
    288             WHERE post_type = 'topic'
    289                 AND post_status IN ( 'publish', 'closed' )
    290                 AND post_parent = %d
    291                 AND post_author = %d",
    292         WordPressdotorg\Forums\Plugin::REVIEWS_FORUM_ID,
    293         $user_id
    294     ) );
     285        $count = (int) $wpdb->get_var( $wpdb->prepare(
     286            "SELECT COUNT(*)
     287                FROM {$wpdb->posts}
     288                WHERE post_type = 'topic'
     289                    AND post_status IN ( 'publish', 'closed' )
     290                    AND post_parent = %d
     291                    AND post_author = %d",
     292            WordPressdotorg\Forums\Plugin::REVIEWS_FORUM_ID,
     293            $user_id
     294        ) );
    295295
    296296    return $count;
Note: See TracChangeset for help on using the changeset viewer.