Making WordPress.org

Changeset 7675


Ignore:
Timestamp:
09/20/2018 05:44:16 AM (8 years ago)
Author:
dd32
Message:

WordPress.TV: Sync open-sourced theme with the master source.

See #1625, #3392.

Location:
sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/comments.php

    r6374 r7675  
    2424                        if ( 1 == $comments_number ) {
    2525                                /* translators: %s: post title */
    26                                 printf( _x( 'One response on &ldquo;%2$s&rdquo;', 'comments title', 'wptv' ), '<span>' . get_the_title() . '</span>' );
     26                                printf( _x( 'One response on &ldquo;%s&rdquo;', 'comments title', 'wptv' ), '<span>' . get_the_title() . '</span>' );
    2727                        } else {
    2828                                printf(
  • sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/functions.php

    r6380 r7675  
    264264         * @return string
    265265         */
    266         function search_posts_search( $search, &$query ) {
     266        function search_posts_search( $search, $query ) {
    267267                global $wpdb;
    268268                if ( ! $query->is_main_query() || ! $query->is_search || is_admin() ) {
  • sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/plugins/wordpresstv-anon-upload/anon-upload.php

    r5015 r7675  
    214214                $anon_post = get_object_vars( $anon_post );
    215215
    216                 $anon_post['post_title']   = 'Uploaded video';
     216                $anon_post['post_title']   = $this->sanitize_text( $_posted['wptv_video_title'] );
    217217                $anon_post['post_excerpt'] = '';
    218218                $anon_post['post_author']  = $this->drafts_author;
  • sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/sidebar-single.php

    r6374 r7675  
    124124                        <?php endif; ?>
    125125
     126        <?php
     127                the_widget(
     128                        'WP_Widget_Custom_HTML',
     129                        [
     130                                'content' => '<p></p><a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"><img alt="Creative Commons License" style="border-width:0;" src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>.',
     131                        ]
     132                );
     133        ?>
    126134</div><!-- .secondary-content -->
  • sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/sidebar.php

    r2335 r7675  
    88                        </ul>
    99                </li>
     10                <?php
     11                        the_widget(
     12                                'WP_Widget_Custom_HTML',
     13                                [
     14                                        'content' => '<a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"><img alt="Creative Commons License" style="border-width:0;" src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>.',
     15                                ],
     16                                [
     17                                        'before_widget' => '<li class="widget %s">',
     18                                        'after_widget'  => '</li>',
     19                                ]
     20                        );
     21                ?>
    1022        <ul/>
    1123</div><!-- .secondary_content -->
Note: See TracChangeset for help on using the changeset viewer.