WordPress.org

Make WordPress Core

Ticket #30011: content-none-esc-html-fix.patch

File content-none-esc-html-fix.patch, 2.3 KB (added by dmchale, 5 years ago)

Patch to trunk which fixes /twentyfifteen/content-none.php

  • wp-admin/includes/class-wp-plugin-install-list-table.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    187187                        'per_page' => $args['per_page'],
    188188                ) );
    189189
     190        echo "<h1>page num $paged</h1>";
     191        echo "<h1>total items = " . $api->info['results'] . "</h1>";
     192        echo "<h1>per page = " . $args['per_page'] . "</h1>";
     193
    190194                if ( isset( $api->info['groups'] ) ) {
    191195                        $this->groups = $api->info['groups'];
    192196                }
  • wp-content/themes/twentyfifteen/content-none.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    1818        <div class="page-content">
    1919                <?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
    2020
    21                         <p><?php printf( esc_html__( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentyfifteen' ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p>
     21                        <p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentyfifteen' ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p>
    2222
    2323                <?php elseif ( is_search() ) : ?>
    2424
     25 No newline at end of file
  • wp-includes/query.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    24902490                // If true, forcibly turns off SQL_CALC_FOUND_ROWS even when limits are present.
    24912491                if ( isset($q['no_found_rows']) )
    24922492                        $q['no_found_rows'] = (bool) $q['no_found_rows'];
    2493                 else
    2494                         $q['no_found_rows'] = false;
     2493                else {
     2494            if (($q['nopaging'] == true) || ($q['posts_per_page'] = -1))
     2495                $q['no_found_rows'] = true;
     2496            else
     2497                $q['no_found_rows'] = false;
     2498        }
     2499
    24952500
    24962501                switch ( $q['fields'] ) {
    24972502                        case 'ids':