Making WordPress.org


Ignore:
Timestamp:
07/12/2018 05:49:22 PM (6 years ago)
Author:
obenland
Message:

Plugins: Update jQuery dependencies.

Properly specifies dependencies, removes unused script, and refrains from using CDN on sandboxes.

See [7436], [7437].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/inc/template-tags.php

    r6541 r7439  
    8585        </span>
    8686        </a>
    87         <script>
    88             jQuery( '.plugin-favorite-heart' )
     87    </div>
     88    <?php
     89        wp_add_inline_script(
     90            'wporg-plugins-faq',
     91            "jQuery( '.plugin-favorite-heart' )
    8992                .on( 'click touchstart animationend', function () {
    9093                    jQuery( this ).toggleClass( 'is-animating' );
     
    9295                .on( 'click', function () {
    9396                    jQuery( this ).toggleClass( 'favorited' );
    94                 } );
    95         </script>
    96     </div>
    97     <?php
     97                } );"
     98        );
    9899}
    99100
Note: See TracChangeset for help on using the changeset viewer.