Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/28/2024 12:23:47 PM (2 years ago)
Author:
imath
Message:

Core: improve PHP code standards using WPCS

See #7228 (trunk)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-cssjs.php

    r13709 r13818  
    328328        <style type="text/css">
    329329                .jcrop-holder { float: left; margin: 0 20px 20px 0; text-align: left; }
    330                 #avatar-crop-pane { width: <?php echo bp_core_avatar_full_width() ?>px; height: <?php echo bp_core_avatar_full_height() ?>px; overflow: hidden; }
     330                #avatar-crop-pane { width: <?php echo intval( bp_core_avatar_full_width() ); ?>px; height: <?php echo intval( bp_core_avatar_full_height() ); ?>px; overflow: hidden; }
    331331                #avatar-crop-submit { margin: 20px 0; }
    332332                .jcrop-holder img,
     
    348348?>
    349349
    350         <script type="text/javascript">var ajaxurl = '<?php echo bp_core_ajax_url(); ?>';</script>
     350        <script type="text/javascript">var ajaxurl = '<?php echo esc_url( bp_core_ajax_url() ); ?>';</script>
    351351
    352352<?php
Note: See TracChangeset for help on using the changeset viewer.