Making WordPress.org


Ignore:
Timestamp:
04/15/2014 10:15:33 PM (10 years ago)
Author:
samuelsidler
Message:

Handbook Plugin: Add class to watch widget so we can target it in CSS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/widgets.php

    r48 r540  
    2626        $watchlist = get_post_meta( $post->ID, '_wporg_watchlist', true );
    2727        if ( $watchlist && in_array( get_current_user_id(), $watchlist ) )
    28             printf( '<p>You are watching this page. <a href="%s">Unwatch</a></p>',
     28            printf( '<p class="handbook-watch">You are watching this page. <a href="%s">Unwatch</a></p>',
    2929                wp_nonce_url( admin_url( 'admin-post.php?action=wporg_watchlist&post_id=' . $post->ID ), 'unwatch-' . $post->ID ) );
    3030        else
    31             printf( '<p><a href="%s">Watch this page</a></p>',
     31            printf( '<p class="handbook-watch"><a href="%s">Watch this page</a></p>',
    3232                wp_nonce_url( admin_url( 'admin-post.php?action=wporg_watchlist&watch=1&post_id=' . $post->ID ), 'watch-' . $post->ID ) );
    3333    }
Note: See TracChangeset for help on using the changeset viewer.