Changeset 10937
- Timestamp:
- 04/29/2021 10:07:27 PM (5 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer
- Files:
-
- 2 edited
-
inc/user-content-voting.php (modified) (1 diff)
-
js/user-notes-voting.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/user-content-voting.php
r7797 r10937 65 65 // Only need to enqueue voting-related resources if there are comments to vote on. 66 66 if ( self::user_can_vote() && is_singular() && '0' != get_comments_number() ) { 67 wp_register_script( 'wporg-developer-user-notes-voting', get_template_directory_uri() . '/js/user-notes-voting.js', array( 'wp-a11y' ), '20180606', true ); 68 wp_localize_script( 'wporg-developer-user-notes-voting', 'ajaxurl', admin_url( 'admin-ajax.php' ) ); 67 wp_register_script( 'wporg-developer-user-notes-voting', get_template_directory_uri() . '/js/user-notes-voting.js', array( 'wp-a11y' ), '20210428', true ); 68 wp_localize_script( 'wporg-developer-user-notes-voting', 'wporg_note_voting', array( 69 'ajaxurl' => admin_url( 'admin-ajax.php' ), 70 ) ); 69 71 wp_enqueue_script( 'wporg-developer-user-notes-voting' ); 70 72 } -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/js/user-notes-voting.js
r7276 r10937 12 12 13 13 $.post( 14 ajaxurl,14 wporg_note_voting.ajaxurl, 15 15 { 16 16 action: 'note_vote',
Note: See TracChangeset
for help on using the changeset viewer.