WordPress.org

Make WordPress Core

Ticket #3931: 3931.diff

File 3931.diff, 5.0 KB (added by rob1n, 11 years ago)
  • wp-admin/upgrade-functions.php

     
    6464        $wpdb->query("INSERT INTO $wpdb->categories (cat_ID, cat_name, category_nicename, link_count, category_description) VALUES ('0', '".$wpdb->escape(__('Blogroll'))."', '".sanitize_title(__('Blogroll'))."', '7', '')");
    6565
    6666        // Now drop in some default links
    67         $wpdb->query("INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss, link_notes) VALUES ('http://inphotos.org/', 'Donncha', 0, 'http://inphotos.org/feed/', '');");
    68         $wpdb->query( "INSERT INTO $wpdb->link2cat (`link_id`, `category_id`) VALUES (1, 2)" );
     67        $default_links = array();
     68       
     69        $default_links[] = array('WordPress.org', 'http://wordpress.org/', '');
     70        $default_links[] = array('WordPress Codex', 'http://codex.wordpress.org/', '');
     71        $default_links[] = array('WordPress Blog', 'http://wordpress.org/development/', 'http://wordpress.org/development/feed/');
     72        $default_links[] = array('Automattic', 'http://automattic.com/', '');
     73       
     74        foreach ($default_links as $i => $link) {
     75                $insert_id = $wpdb->query("INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss, link_notes) VALUES('$link[1]', '$link[0]', 0, '$link[2]', '')");
     76                $wpdb->query("INSERT INTO $wpdb->link2cat (link_id, category_id) VALUES($insert_id, 2)");
     77        }
    6978
    70         $wpdb->query("INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss, link_notes) VALUES ('http://zengun.org/weblog/', 'Michel', 0, 'http://zengun.org/weblog/feed/', '');");
    71         $wpdb->query( "INSERT INTO $wpdb->link2cat (`link_id`, `category_id`) VALUES (2, 2)" );
    72 
    73         $wpdb->query("INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss, link_notes) VALUES ('http://boren.nu/', 'Ryan', 0, 'http://boren.nu/feed/', '');");
    74         $wpdb->query( "INSERT INTO $wpdb->link2cat (`link_id`, `category_id`) VALUES (3, 2)" );
    75 
    76         $wpdb->query("INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss, link_notes) VALUES ('http://photomatt.net/', 'Matt', 0, 'http://xml.photomatt.net/feed/', '');");
    77         $wpdb->query( "INSERT INTO $wpdb->link2cat (`link_id`, `category_id`) VALUES (4, 2)" );
    78 
    79         $wpdb->query("INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss, link_notes) VALUES ('http://zed1.com/journalized/', 'Mike', 0, 'http://zed1.com/journalized/feed/', '');");
    80         $wpdb->query( "INSERT INTO $wpdb->link2cat (`link_id`, `category_id`) VALUES (5, 2)" );
    81 
    82         $wpdb->query("INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss, link_notes) VALUES ('http://www.alexking.org/', 'Alex', 0, 'http://www.alexking.org/blog/wp-rss2.php', '');");
    83         $wpdb->query( "INSERT INTO $wpdb->link2cat (`link_id`, `category_id`) VALUES (6, 2)" );
    84 
    85         $wpdb->query("INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss, link_notes) VALUES ('http://dougal.gunters.org/', 'Dougal', 0, 'http://dougal.gunters.org/feed/', '');");
    86         $wpdb->query( "INSERT INTO $wpdb->link2cat (`link_id`, `category_id`) VALUES (7, 2)" );
    87 
    8879        // First post
    8980        $now = date('Y-m-d H:i:s');
    9081        $now_gmt = gmdate('Y-m-d H:i:s');
  • wp-content/themes/default/footer.php

     
    11
    22<hr />
    33<div id="footer">
    4 <!-- If you'd like to support WordPress, having the "powered by" link someone on your blog is the best way, it's our only promotion or advertising. -->
     4<!--
     5        If you'd like to support WordPress, having the "powered by" link someone on your
     6        blog is the best way, it's our only promotion or advertising.
     7-->
    58        <p>
    6                 <?php bloginfo('name'); ?> is proudly powered by
    7                 <a href="http://wordpress.org/">WordPress</a>
     9                <?php bloginfo('name'); ?> is powered by<a href="http://wordpress.org/">WordPress</a>
    810                <br /><a href="<?php bloginfo('rss2_url'); ?>">Entries (RSS)</a>
    911                and <a href="<?php bloginfo('comments_rss2_url'); ?>">Comments (RSS)</a>.
    1012                <!-- <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. -->
     
    1719
    1820                <?php wp_footer(); ?>
    1921</body>
    20 </html>
     22</html>
     23 No newline at end of file
  • wp-content/themes/default/sidebar.php

     
    5555                                <ul>
    5656                                        <?php wp_register(); ?>
    5757                                        <li><?php wp_loginout(); ?></li>
    58                                         <li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
    59                                         <li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
    6058                                        <li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
    6159                                        <?php wp_meta(); ?>
    6260                                </ul>