Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/29/2024 08:15:44 PM (2 years ago)
Author:
imath
Message:

Deprecated functions: improve PHP code standards using WPCS

See #7228 (trunk)

File:
1 edited

Legend:

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

    r12588 r13824  
    138138        }
    139139
    140         echo '<tr class="plugin-update-tr' . $active_class . '" id="' . esc_attr( $response->slug . '-update' ) . '" data-slug="' . esc_attr( $response->slug ) . '" data-plugin="' . esc_attr( $file ) . '"><td colspan="' . esc_attr( $wp_list_table->get_column_count() ) . '" class="plugin-update colspanchange"><div class="update-message inline notice notice-error notice-alt">';
    141 
    142         printf( $p,
     140        echo '<tr class="plugin-update-tr' . esc_attr( $active_class ) . '" id="' . esc_attr( $response->slug . '-update' ) . '" data-slug="' . esc_attr( $response->slug ) . '" data-plugin="' . esc_attr( $file ) . '"><td colspan="' . esc_attr( $wp_list_table->get_column_count() ) . '" class="plugin-update colspanchange"><div class="update-message inline notice notice-error notice-alt">';
     141
     142        printf(
     143                // phpcs:ignore WordPress.Security.EscapeOutput
     144                $p,
    143145                esc_html__( 'A BuddyPress update is available, but your system is not compatible.', 'buddypress' ) . ' ' .
    144                 sprintf( __( 'See <a href="%s">the Codex guide</a> for more information.', 'buddypress' ), 'https://codex.buddypress.org/getting-started/buddypress-2-8-will-require-php-5-3/' )
     146                sprintf( esc_html__( 'See %s for more information.', 'buddypress' ), '<a href="https://codex.buddypress.org/getting-started/buddypress-2-8-will-require-php-5-3/">' . esc_html( 'the Codex guide', 'buddypress' ) . '</a>' )
    145147        );
    146148
     
    152154         */
    153155        $checkbox_id = 'checkbox_' . md5( $plugin_data['Name'] );
     156
     157        // phpcs:ignore WordPress.Security.EscapeOutput
    154158        echo "<script type='text/javascript'>document.getElementById('$checkbox_id').disabled = true;</script>";
    155159}
     
    204208                        <?php
    205209                        /* translators: %s: the url to a codex page */
    206                         printf( _x( 'See <a href="%s">the Codex guide</a> for more information.', 'deprecated string', 'buddypress' ), 'https://codex.buddypress.org/getting-started/buddypress-2-8-will-require-php-5-3/' );
     210                        printf( esc_html_x( 'See %s for more information.', 'deprecated string', 'buddypress' ), '<a href="https://codex.buddypress.org/getting-started/buddypress-2-8-will-require-php-5-3/">' . esc_html( 'the Codex guide', 'buddypress' ) . '</a>' );
    207211                        ?>
    208212                </p>
Note: See TracChangeset for help on using the changeset viewer.