Changeset 10821
- Timestamp:
- 03/16/2021 02:05:35 AM (4 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-bbp-also-viewing
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-bbp-also-viewing/wporg-bbp-also-viewing.js
r10655 r10821 20 20 } 21 21 22 jQuery( document ). on( 'ready', function($) {22 jQuery( document ).ready( function() { 23 23 maybeDisplay(); 24 24 … … 74 74 75 75 // Pin the banner to the top of the screen when scrolling. 76 jQuery(window). scroll(function() {76 jQuery(window).on( 'scroll', function() { 77 77 if ( ! banner ) { 78 78 return; … … 161 161 } ); 162 162 } ); 163 164 // DEBUG. Expose the functions for testing.165 window.alsoViewing = {166 refreshViewers: refreshViewers,167 updateState: updateState,168 transmitIsTyping: transmitIsTyping,169 transmitNoLongerTyping: transmitNoLongerTyping,170 }171 163 })(); -
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-bbp-also-viewing/wporg-bbp-also-viewing.php
r10662 r10821 200 200 checked( enabled( $user_id ), true, false ), 201 201 sprintf( 202 'Enable the <a href="%s">Also Viewing</a> feature.', // TODO: Translate once text is figured out __(, 'wporg-forums' ),202 __( 'Enable the <a href="%s">Also Viewing</a> feature.', 'wporg-forums' ), 203 203 'https://make.wordpress.org/support/handbook/appendix/helpful-tools/#avoiding-overlapping-replies' 204 204 ) … … 368 368 369 369 foreach ( $pages as $p ) { 370 wp_cache_delete( $p age, CACHE_GROUP );370 wp_cache_delete( $p, CACHE_GROUP ); 371 371 } 372 372 } … … 442 442 global $wpdb; 443 443 444 if ( get_ site_option( 'also-viewing' ) ) {444 if ( get_option( 'also-viewing' ) ) { 445 445 return; 446 446 } … … 462 462 ); 463 463 464 update_ site_option( 'also-viewing', true );465 } 464 update_option( 'also-viewing', true ); 465 }
Note: See TracChangeset
for help on using the changeset viewer.