Changeset 628

Show
Ignore:
Timestamp:
12/18/03 09:36:13 (5 years ago)
Author:
saxmatt
Message:

Renaming Reloaded.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/b2rdf.php

    r601 r628  
    22$curpath = dirname(__FILE__).'/'; 
    33require_once ($curpath.'wp-config.php'); 
    4 require_once ($curpath.$b2inc.'/template-functions.php'); 
     4require_once ($curpath.WPINC.'/template-functions.php'); 
    55header('HTTP/1.0 301 Moved Permanently'); 
    66header('Location: ' . get_bloginfo('rdf_url') . "\n"); 
  • trunk/b2rss.php

    r601 r628  
    22$curpath = dirname(__FILE__).'/'; 
    33require_once ($curpath.'wp-config.php'); 
    4 require_once ($curpath.$b2inc.'/template-functions.php'); 
     4require_once ($curpath.WPINC.'/template-functions.php'); 
    55header('HTTP/1.0 301 Moved Permanently'); 
    66header('Location: ' . get_bloginfo('rss_url') . "\n"); 
  • trunk/b2rss2.php

    r601 r628  
    22$curpath = dirname(__FILE__).'/'; 
    33require_once ($curpath.'wp-config.php'); 
    4 require_once ($curpath.$b2inc.'/template-functions.php'); 
     4require_once ($curpath.WPINC.'/template-functions.php'); 
    55header('HTTP/1.0 301 Moved Permanently'); 
    66header('Location: ' . get_bloginfo('rss2_url') . "\n"); 
  • trunk/index-smarty.php

    r601 r628  
    1212$blog = 1; 
    1313require_once('wp-blog-header.php'); 
    14 require_once($abspath.'wp-links/links.php'); 
    15 // not on by default: require_once($abspath.'wp-links/links.weblogs.com.php'); 
     14require_once(ABSPATH.'wp-links/links.php'); 
     15// not on by default: require_once(ABSPATH.'wp-links/links.weblogs.com.php'); 
    1616 
    1717define( 'NODISPLAY', false ); 
    1818 
    1919$wpsmarty->assign( 'siteurl', $siteurl ); 
    20 $wpsmarty->assign( 'b2_version', $b2_version ); 
     20$wpsmarty->assign( 'b2_version', $wp_version ); 
    2121 
    2222if($posts)  
     
    2424    foreach ($posts as $post)  
    2525    {  
    26         start_b2();  
     26        start_wp();  
    2727        $content .= $wpsmarty->fetch( 'post.html' ); 
    2828        ob_start(); 
    29         include($abspath . 'wp-comments.php'); 
     29        include(ABSPATH . 'wp-comments.php'); 
    3030        $txt = ob_get_contents(); 
    3131        ob_end_clean(); 
  • trunk/index.php

    r617 r628  
    3131 
    3232<div id="content"> 
    33 <?php if ($posts) { foreach ($posts as $post) { start_b2(); ?> 
     33<?php if ($posts) { foreach ($posts as $post) { start_wp(); ?> 
    3434 
    3535<?php the_date('','<h2>','</h2>'); ?> 
     
    5252    --> 
    5353 
    54 <?php include($abspath . 'wp-comments.php'); ?> 
     54<?php include(ABSPATH . 'wp-comments.php'); ?> 
    5555</div> 
    5656 
  • trunk/wp-admin/admin-footer.php

    r606 r628  
    11 
    22 
    3 <p align="center" style="width: 100%" class="tabletoprow"><strong><a href="http://wordpress.org">WordPress</a></strong> <?php echo $b2_version ?> &#8212; <a href="http://wordpress.org/support/">Support Forums</a><br /> 
     3<p align="center" style="width: 100%" class="tabletoprow"><strong><a href="http://wordpress.org">WordPress</a></strong> <?php echo $wp_version ?> &#8212; <a href="http://wordpress.org/support/">Support Forums</a><br /> 
    44<?php 
    55    echo number_format(timer_stop(), 2)." seconds"; 
  • trunk/wp-admin/admin-header.php

    r617 r628  
    22 
    33require_once('../wp-config.php'); 
    4 require_once($abspath.'/wp-admin/auth.php'); 
     4require_once(ABSPATH.'/wp-admin/auth.php'); 
    55 
    66function gethelp_link($this_file, $helptag) { 
     
    3030    $use_quicktags = 0; 
    3131 
    32 $b2varstoreset = array('profile','standalone','redirect','redirect_url','a','popuptitle','popupurl','text', 'trackback', 'pingback'); 
    33 for ($i=0; $i<count($b2varstoreset); $i += 1) { 
    34     $b2var = $b2varstoreset[$i]; 
    35     if (!isset($$b2var)) { 
    36         if (empty($HTTP_POST_VARS["$b2var"])) { 
    37             if (empty($HTTP_GET_VARS["$b2var"])) { 
    38                 $$b2var = ''; 
     32$wpvarstoreset = array('profile','standalone','redirect','redirect_url','a','popuptitle','popupurl','text', 'trackback', 'pingback'); 
     33for ($i=0; $i<count($wpvarstoreset); $i += 1) { 
     34    $wpvar = $wpvarstoreset[$i]; 
     35    if (!isset($$wpvar)) { 
     36        if (empty($HTTP_POST_VARS["$wpvar"])) { 
     37            if (empty($HTTP_GET_VARS["$wpvar"])) { 
     38                $$wpvar = ''; 
    3939            } else { 
    40                 $$b2var = $HTTP_GET_VARS["$b2var"]; 
     40                $$wpvar = $HTTP_GET_VARS["$wpvar"]; 
    4141            } 
    4242        } else { 
    43             $$b2var = $HTTP_POST_VARS["$b2var"]; 
     43            $$wpvar = $HTTP_POST_VARS["$wpvar"]; 
    4444        } 
    4545    } 
  • trunk/wp-admin/bookmarklet.php

    r617 r628  
    9191 
    9292if (($is_macIE) && (!isset($IEMac_bookmarklet_fix))) { 
    93     $popuptitle = preg_replace($b2_macIE_correction["in"],$b2_macIE_correction["out"],$popuptitle); 
    94     $text = preg_replace($b2_macIE_correction["in"],$b2_macIE_correction["out"],$text); 
     93    $popuptitle = preg_replace($wp_macIE_correction["in"],$wp_macIE_correction["out"],$popuptitle); 
     94    $text = preg_replace($wp_macIE_correction["in"],$wp_macIE_correction["out"],$text); 
    9595} 
    9696 
     
    101101 
    102102if (($is_gecko) && (!isset($Gecko_bookmarklet_fix))) { 
    103     $popuptitle = preg_replace($b2_gecko_correction["in"],$b2_gecko_correction["out"],$popuptitle); 
    104     $text = preg_replace($b2_gecko_correction["in"],$b2_gecko_correction["out"],$text); 
     103    $popuptitle = preg_replace($wp_gecko_correction["in"],$wp_gecko_correction["out"],$popuptitle); 
     104    $text = preg_replace($wp_gecko_correction["in"],$wp_gecko_correction["out"],$text); 
    105105} 
    106106 
  • trunk/wp-admin/categories.php

    r601 r628  
    2020} 
    2121 
    22 $b2varstoreset = array('action','standalone','cat'); 
    23 for ($i=0; $i<count($b2varstoreset); $i += 1) { 
    24     $b2var = $b2varstoreset[$i]; 
    25     if (!isset($$b2var)) { 
    26         if (empty($HTTP_POST_VARS["$b2var"])) { 
    27             if (empty($HTTP_GET_VARS["$b2var"])) { 
    28                 $$b2var = ''; 
     22$wpvarstoreset = array('action','standalone','cat'); 
     23for ($i=0; $i<count($wpvarstoreset); $i += 1) { 
     24    $wpvar = $wpvarstoreset[$i]; 
     25    if (!isset($$wpvar)) { 
     26        if (empty($HTTP_POST_VARS["$wpvar"])) { 
     27            if (empty($HTTP_GET_VARS["$wpvar"])) { 
     28                $$wpvar = ''; 
    2929            } else { 
    30                 $$b2var = $HTTP_GET_VARS["$b2var"]; 
     30                $$wpvar = $HTTP_GET_VARS["$wpvar"]; 
    3131            } 
    3232        } else { 
    33             $$b2var = $HTTP_POST_VARS["$b2var"]; 
     33            $$wpvar = $HTTP_POST_VARS["$wpvar"]; 
    3434        } 
    3535    } 
  • trunk/wp-admin/edit-showposts.php

    r617 r628  
    235235    <?php 
    236236    // these lines are b2's "motor", do not alter nor remove them 
    237     include($abspath.'wp-blog-header.php'); 
     237    include(ABSPATH.'wp-blog-header.php'); 
    238238 
    239239    if ($posts) { 
    240240    foreach ($posts as $post) { 
    241241        //$posts_per_page = 10; 
    242         start_b2(); ?> 
     242        start_wp(); ?> 
    243243            <p> 
    244244                <strong><?php the_time('Y/m/d @ H:i:s'); ?></strong> [ <a href="post.php?p=<?php echo $id ?>&c=1"><?php comments_number('no comments', '1 comment', "% comments", true) ?></a> 
  • trunk/wp-admin/edit.php

    r601 r628  
    234234 
    235235<?php 
    236 include($abspath.'wp-blog-header.php'); 
     236include(ABSPATH.'wp-blog-header.php'); 
    237237 
    238238if ($posts) { 
    239 foreach ($posts as $post) { start_b2(); 
     239foreach ($posts as $post) { start_wp(); 
    240240?> 
    241241            <p> 
  • trunk/wp-admin/import-blogger.php

    r617 r628  
    11<?php // rename this to blogger-2-b2.php 
    22 
    3 $b2varstoreset = array('action'); 
    4 for ($i=0; $i<count($b2varstoreset); $i += 1) { 
    5     $b2var = $b2varstoreset[$i]; 
    6     if (!isset($$b2var)) { 
    7         if (empty($HTTP_POST_VARS["$b2var"])) { 
    8             if (empty($HTTP_GET_VARS["$b2var"])) { 
    9                 $$b2var = ''; 
     3$wpvarstoreset = array('action'); 
     4for ($i=0; $i<count($wpvarstoreset); $i += 1) { 
     5    $wpvar = $wpvarstoreset[$i]; 
     6    if (!isset($$wpvar)) { 
     7        if (empty($HTTP_POST_VARS["$wpvar"])) { 
     8            if (empty($HTTP_GET_VARS["$wpvar"])) { 
     9                $$wpvar = ''; 
    1010            } else { 
    11                 $$b2var = $HTTP_GET_VARS["$b2var"]; 
     11                $$wpvar = $HTTP_GET_VARS["$wpvar"]; 
    1212            } 
    1313        } else { 
    14             $$b2var = $HTTP_POST_VARS["$b2var"]; 
     14            $$wpvar = $HTTP_POST_VARS["$wpvar"]; 
    1515        } 
    1616    } 
     
    2222 
    2323    require_once('../wp-config.php'); 
    24     require_once($abspath.$b2inc.'/template-functions.php'); 
    25     require_once($abspath.$b2inc.'/functions.php'); 
    26     require_once($abspath.$b2inc.'/vars.php'); 
     24    require_once(ABSPATH.WPINC.'/template-functions.php'); 
     25    require_once(ABSPATH.WPINC.'/functions.php'); 
     26    require_once(ABSPATH.WPINC.'/vars.php'); 
    2727 
    2828?> 
  • trunk/wp-admin/import-greymatter.php

    r617 r628  
    66 
    77require_once('wp-config.php'); 
    8 require_once($abspath.$b2inc.'/functions.php'); 
    9  
    10 $b2varstoreset = array('action', 'gmpath', 'archivespath'); 
    11 for ($i=0; $i<count($b2varstoreset); $i += 1) { 
    12     $b2var = $b2varstoreset[$i]; 
    13     if (!isset($$b2var)) { 
    14         if (empty($HTTP_POST_VARS["$b2var"])) { 
    15             if (empty($HTTP_GET_VARS["$b2var"])) { 
    16                 $$b2var = ''; 
     8require_once(ABSPATH.WPINC.'/functions.php'); 
     9 
     10$wpvarstoreset = array('action', 'gmpath', 'archivespath'); 
     11for ($i=0; $i<count($wpvarstoreset); $i += 1) { 
     12    $wpvar = $wpvarstoreset[$i]; 
     13    if (!isset($$wpvar)) { 
     14        if (empty($HTTP_POST_VARS["$wpvar"])) { 
     15            if (empty($HTTP_GET_VARS["$wpvar"])) { 
     16                $$wpvar = ''; 
    1717            } else { 
    18                 $$b2var = $HTTP_GET_VARS["$b2var"]; 
     18                $$wpvar = $HTTP_GET_VARS["$wpvar"]; 
    1919            } 
    2020        } else { 
    21             $$b2var = $HTTP_POST_VARS["$b2var"]; 
     21            $$wpvar = $HTTP_POST_VARS["$wpvar"]; 
    2222        } 
    2323    } 
  • trunk/wp-admin/link-categories.php

    r616 r628  
    88$parent_file = 'link-manager.php'; 
    99 
    10 $b2varstoreset = array('action','standalone','cat', 'auto_toggle'); 
    11 for ($i=0; $i<count($b2varstoreset); $i += 1) { 
    12     $b2var = $b2varstoreset[$i]; 
    13     if (!isset($$b2var)) { 
    14         if (empty($HTTP_POST_VARS["$b2var"])) { 
    15             if (empty($HTTP_GET_VARS["$b2var"])) { 
    16                 $$b2var = ''; 
     10$wpvarstoreset = array('action','standalone','cat', 'auto_toggle'); 
     11for ($i=0; $i<count($wpvarstoreset); $i += 1) { 
     12    $wpvar = $wpvarstoreset[$i]; 
     13    if (!isset($$wpvar)) { 
     14        if (empty($HTTP_POST_VARS["$wpvar"])) { 
     15            if (empty($HTTP_GET_VARS["$wpvar"])) { 
     16                $$wpvar = ''; 
    1717            } else { 
    18                 $$b2var = $HTTP_GET_VARS["$b2var"]; 
     18                $$wpvar = $HTTP_GET_VARS["$wpvar"]; 
    1919            } 
    2020        } else { 
    21             $$b2var = $HTTP_POST_VARS["$b2var"]; 
     21            $$wpvar = $HTTP_POST_VARS["$wpvar"]; 
    2222        } 
    2323    } 
  • trunk/wp-admin/link-manager.php

    r601 r628  
    4242} 
    4343 
    44 $b2varstoreset = array('action','standalone','cat_id', 'linkurl', 'name', 'image', 
     44$wpvarstoreset = array('action','standalone','cat_id', 'linkurl', 'name', 'image', 
    4545                       'description', 'visible', 'target', 'category', 'link_id', 
    4646                       'submit', 'order_by', 'links_show_cat_id', 'rating', 'rel', 
    4747                       'notes', 'linkcheck[]'); 
    48 for ($i=0; $i<count($b2varstoreset); $i += 1) { 
    49     $b2var = $b2varstoreset[$i]; 
    50     if (!isset($$b2var)) { 
    51         if (empty($HTTP_POST_VARS["$b2var"])) { 
    52             if (empty($HTTP_GET_VARS["$b2var"])) { 
    53                 $$b2var = ''; 
     48for ($i=0; $i<count($wpvarstoreset); $i += 1) { 
     49    $wpvar = $wpvarstoreset[$i]; 
     50    if (!isset($$wpvar)) { 
     51        if (empty($HTTP_POST_VARS["$wpvar"])) { 
     52            if (empty($HTTP_GET_VARS["$wpvar"])) { 
     53                $$wpvar = ''; 
    5454            } else { 
    55                 $$b2var = $HTTP_GET_VARS["$b2var"]; 
     55                $$wpvar = $HTTP_GET_VARS["$wpvar"]; 
    5656            } 
    5757        } else { 
    58             $$b2var = $HTTP_POST_VARS["$b2var"]; 
     58            $$wpvar = $HTTP_POST_VARS["$wpvar"]; 
    5959        } 
    6060    } 
  • trunk/wp-admin/link-parse-opml.php

    r601 r628  
    11<?php 
    22require_once('../wp-config.php'); 
    3 require_once($abspath.$b2inc.'/functions.php'); 
     3require_once(ABSPATH.WPINC.'/functions.php'); 
    44 
    55// columns we wish to find are:  link_url, link_name, link_target, link_description 
  • trunk/wp-admin/moderation.php

    r601 r628  
    2121} 
    2222 
    23 $b2varstoreset = array('action','item_ignored','item_deleted','item_approved'); 
    24 for ($i=0; $i<count($b2varstoreset); $i += 1) { 
    25     $b2var = $b2varstoreset[$i]; 
    26     if (!isset($$b2var)) { 
    27         if (empty($HTTP_POST_VARS["$b2var"])) { 
    28             if (empty($HTTP_GET_VARS["$b2var"])) { 
    29                 $$b2var = ''; 
     23$wpvarstoreset = array('action','item_ignored','item_deleted','item_approved'); 
     24for ($i=0; $i<count($wpvarstoreset); $i += 1) { 
     25    $wpvar = $wpvarstoreset[$i]; 
     26    if (!isset($$wpvar)) { 
     27        if (empty($HTTP_POST_VARS["$wpvar"])) { 
     28            if (empty($HTTP_GET_VARS["$wpvar"])) { 
     29                $$wpvar = ''; 
    3030            } else { 
    31                 $$b2var = $HTTP_GET_VARS["$b2var"]; 
     31                $$wpvar = $HTTP_GET_VARS["$wpvar"]; 
    3232            } 
    3333        } else { 
    34             $$b2var = $HTTP_POST_VARS["$b2var"]; 
     34            $$wpvar = $HTTP_POST_VARS["$wpvar"]; 
    3535        } 
    3636    } 
  • trunk/wp-admin/options-permalink.php

    r613 r628  
    2020} 
    2121 
    22 $b2varstoreset = array('action','standalone', 'option_group_id'); 
    23 for ($i=0; $i<count($b2varstoreset); $i += 1) { 
    24     $b2var = $b2varstoreset[$i]; 
    25     if (!isset($$b2var)) { 
    26         if (empty($HTTP_POST_VARS["$b2var"])) { 
    27             if (empty($HTTP_GET_VARS["$b2var"])) { 
    28                 $$b2var = ''; 
     22$wpvarstoreset = array('action','standalone', 'option_group_id'); 
     23for ($i=0; $i<count($wpvarstoreset); $i += 1) { 
     24    $wpvar = $wpvarstoreset[$i]; 
     25    if (!isset($$wpvar)) { 
     26        if (empty($HTTP_POST_VARS["$wpvar"])) { 
     27            if (empty($HTTP_GET_VARS["$wpvar"])) { 
     28                $$wpvar = ''; 
    2929            } else { 
    30                 $$b2var = $HTTP_GET_VARS["$b2var"]; 
     30                $$wpvar = $HTTP_GET_VARS["$wpvar"]; 
    3131            } 
    3232        } else { 
    33             $$b2var = $HTTP_POST_VARS["$b2var"]; 
     33            $$wpvar = $HTTP_POST_VARS["$wpvar"]; 
    3434        } 
    3535    } 
  • trunk/wp-admin/options.php

    r620 r628  
    2020} 
    2121 
    22 $b2varstoreset = array('action','standalone', 'option_group_id'); 
    23 for ($i=0; $i<count($b2varstoreset); $i += 1) { 
    24     $b2var = $b2varstoreset[$i]; 
    25     if (!isset($$b2var)) { 
    26         if (empty($HTTP_POST_VARS["$b2var"])) { 
    27             if (empty($HTTP_GET_VARS["$b2var"])) { 
    28                 $$b2var = ''; 
     22$wpvarstoreset = array('action','standalone', 'option_group_id'); 
     23for ($i=0; $i<count($wpvarstoreset); $i += 1) { 
     24    $wpvar = $wpvarstoreset[$i]; 
     25    if (!isset($$wpvar)) { 
     26        if (empty($HTTP_POST_VARS["$wpvar"])) { 
     27            if (empty($HTTP_GET_VARS["$wpvar"])) { 
     28                $$wpvar = ''; 
    2929            } else { 
    30                 $$b2var = $HTTP_GET_VARS["$b2var"]; 
     30                $$wpvar = $HTTP_GET_VARS["$wpvar"]; 
    3131            } 
    3232        } else { 
    33             $$b2var = $HTTP_POST_VARS["$b2var"]; 
     33            $$wpvar = $HTTP_POST_VARS["$wpvar"]; 
    3434        } 
    3535    } 
  • trunk/wp-admin/post.php

    r607 r628  
    1919} 
    2020 
    21 $b2varstoreset = array('action', 'safe_mode', 'withcomments', 'c', 'posts', 'poststart', 'postend', 'content', 'edited_post_title', 'comment_error', 'profile', 'trackback_url', 'excerpt', 'showcomments', 'commentstart', 'commentend', 'commentorder'); 
    22  
    23 for ($i=0; $i<count($b2varstoreset); $i += 1) { 
    24     $b2var = $b2varstoreset[$i]; 
    25     if (!isset($$b2var)) { 
    26         if (empty($HTTP_POST_VARS["$b2var"])) { 
    27             if (empty($HTTP_GET_VARS["$b2var"])) { 
    28                 $$b2var = ''; 
     21$wpvarstoreset = array('action', 'safe_mode', 'withcomments', 'c', 'posts', 'poststart', 'postend', 'content', 'edited_post_title', 'comment_error', 'profile', 'trackback_url', 'excerpt', 'showcomments', 'commentstart', 'commentend', 'commentorder'); 
     22 
     23for ($i=0; $i<count($wpvarstoreset); $i += 1) { 
     24    $wpvar = $wpvarstoreset[$i]; 
     25    if (!isset($$wpvar)) { 
     26        if (empty($HTTP_POST_VARS["$wpvar"])) { 
     27            if (empty($HTTP_GET_VARS["$wpvar"])) { 
     28                $$wpvar = ''; 
    2929            } else { 
    30                 $$b2var = $HTTP_GET_VARS["$b2var"]; 
    31             } 
    32         } else { 
    33             $$b2var = $HTTP_POST_VARS["$b2var"]; 
     30                $$wpvar = $HTTP_GET_VARS["$wpvar"]; 
     31            } 
     32        } else { 
     33            $$wpvar = $HTTP_POST_VARS["$wpvar"]; 
    3434        } 
    3535    } 
  • trunk/wp-admin/profile.php

    r617 r628  
    1919} 
    2020 
    21 $b2varstoreset = array('action','standalone','redirect','profile','user'); 
    22 for ($i=0; $i<count($b2varstoreset); $i += 1) { 
    23     $b2var = $b2varstoreset[$i]; 
    24     if (!isset($$b2var)) { 
    25         if (empty($HTTP_POST_VARS["$b2var"])) { 
    26             if (empty($HTTP_GET_VARS["$b2var"])) { 
    27                 $$b2var = ''; 
     21$wpvarstoreset = array('action','standalone','redirect','profile','user'); 
     22for ($i=0; $i<count($wpvarstoreset); $i += 1) { 
     23    $wpvar = $wpvarstoreset[$i]; 
     24    if (!isset($$wpvar)) { 
     25        if (empty($HTTP_POST_VARS["$wpvar"])) { 
     26            if (empty($HTTP_GET_VARS["$wpvar"])) { 
     27                $$wpvar = ''; 
    2828            } else { 
    29                 $$b2var = $HTTP_GET_VARS["$b2var"]; 
     29                $$wpvar = $HTTP_GET_VARS["$wpvar"]; 
    3030            } 
    3131        } else { 
    32             $$b2var = $HTTP_POST_VARS["$b2var"]; 
     32            $$wpvar = $HTTP_POST_VARS["$wpvar"]; 
    3333        } 
    3434    } 
     
    3636 
    3737require_once('../wp-config.php'); 
    38 require_once($abspath.$b2inc.'/functions.php'); 
     38require_once(ABSPATH.WPINC.'/functions.php'); 
    3939 
    4040switch($action) { 
  • trunk/wp-admin/templates.php

    r618 r628  
    1919} 
    2020 
    21 $b2varstoreset = array('action','standalone','redirect','profile','error','warning','a','file'); 
    22 for ($i=0; $i<count($b2varstoreset); $i += 1) { 
    23     $b2var = $b2varstoreset[$i]; 
    24     if (!isset($$b2var)) { 
    25         if (empty($HTTP_POST_VARS["$b2var"])) { 
    26             if (empty($HTTP_GET_VARS["$b2var"])) { 
    27                 $$b2var = ''; 
     21$wpvarstoreset = array('action','standalone','redirect','profile','error','warning','a','file'); 
     22for ($i=0; $i<count($wpvarstoreset); $i += 1) { 
     23    $wpvar = $wpvarstoreset[$i]; 
     24    if (!isset($$wpvar)) { 
     25        if (empty($HTTP_POST_VARS["$wpvar"])) { 
     26            if (empty($HTTP_GET_VARS["$wpvar"])) { 
     27                $$wpvar = ''; 
    2828            } else { 
    29                 $$b2var = $HTTP_GET_VARS["$b2var"]; 
     29                $$wpvar = $HTTP_GET_VARS["$wpvar"]; 
    3030            } 
    3131        } else { 
    32             $$b2var = $HTTP_POST_VARS["$b2var"]; 
     32            $$wpvar = $HTTP_POST_VARS["$wpvar"]; 
    3333        } 
    3434    } 
  • trunk/wp-admin/upload.php

    r601 r628  
    1616<head> 
    1717<title>WordPress :: upload images/files</title> 
    18 <link rel="stylesheet" href="<?php echo $b2inc; ?>/b2.css" type="text/css"> 
     18<link rel="stylesheet" href="<?php echo WPINC; ?>/b2.css" type="text/css"> 
    1919<style type="text/css"> 
    2020<!-- 
  • trunk/wp-admin/users.php

    r601 r628  
    33/* <Team> */ 
    44     
    5 $b2varstoreset = array('action','standalone','redirect','profile'); 
    6 for ($i=0; $i<count($b2varstoreset); $i += 1) { 
    7     $b2var = $b2varstoreset[$i]; 
    8     if (!isset($$b2var)) { 
    9         if (empty($HTTP_POST_VARS["$b2var"])) { 
    10             if (empty($HTTP_GET_VARS["$b2var"])) { 
    11                 $$b2var = ''; 
     5$wpvarstoreset = array('action','standalone','redirect','profile'); 
     6for ($i=0; $i<count($wpvarstoreset); $i += 1) { 
     7    $wpvar = $wpvarstoreset[$i]; 
     8    if (!isset($$wpvar)) { 
     9        if (empty($HTTP_POST_VARS["$wpvar"])) { 
     10            if (empty($HTTP_GET_VARS["$wpvar"])) { 
     11                $$wpvar = ''; 
    1212            } else { 
    13                 $$b2var = $HTTP_GET_VARS["$b2var"]; 
     13                $$wpvar = $HTTP_GET_VARS["$wpvar"]; 
    1414            } 
    1515        } else { 
    16             $$b2var = $HTTP_POST_VARS["$b2var"]; 
     16            $$wpvar = $HTTP_POST_VARS["$wpvar"]; 
    1717        } 
    1818    } 
  • trunk/wp-blog-header.php

    r601 r628  
    1212require_once ($curpath.'/wp-config.php'); 
    1313 
    14 $b2varstoreset = array('m','p','posts','w','c', 'cat','withcomments','s','search','exact', 'sentence','poststart','postend','preview','debug', 'calendar','page','paged','more','tb', 'pb','author','order','orderby', 'year', 'monthnum', 'day', 'name', 'category_name'); 
    15  
    16     for ($i=0; $i<count($b2varstoreset); $i += 1) { 
    17         $b2var = $b2varstoreset[$i]; 
    18         if (!isset($$b2var)) { 
    19             if (empty($HTTP_POST_VARS[$b2var])) { 
    20                 if (empty($HTTP_GET_VARS[$b2var])) { 
    21                     $$b2var = ''; 
     14$wpvarstoreset = array('m','p','posts','w','c', 'cat','withcomments','s','search','exact', 'sentence','poststart','postend','preview','debug', 'calendar','page','paged','more','tb', 'pb','author','order','orderby', 'year', 'monthnum', 'day', 'name', 'category_name'); 
     15 
     16    for ($i=0; $i<count($wpvarstoreset); $i += 1) { 
     17        $wpvar = $wpvarstoreset[$i]; 
     18        if (!isset($$wpvar)) { 
     19            if (empty($HTTP_POST_VARS[$wpvar])) { 
     20                if (empty($HTTP_GET_VARS[$wpvar])) { 
     21                    $$wpvar = ''; 
    2222                } else { 
    23                     $$b2var = $HTTP_GET_VARS[$b2var]; 
     23                    $$wpvar = $HTTP_GET_VARS[$wpvar]; 
    2424                } 
    2525            } else { 
    26                 $$b2var = $HTTP_POST_VARS[$b2var]; 
     26                $$wpvar = $HTTP_POST_VARS[$wpvar]; 
    2727            } 
    2828        } 
  • trunk/wp-comments-popup.php

    r601 r628  
    44require ('wp-blog-header.php'); 
    55add_filter('comment_text', 'popuplinks'); 
    6 foreach ($posts as $post) { start_b2(); 
     6foreach ($posts as $post) { start_wp(); 
    77?> 
    88<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
  • trunk/wp-commentsrss2.php

    r601 r628  
    1313echo "<?xml version=\"1.0\"?".">";  
    1414?> 
    15 <!-- generator="wordpress/<?php echo $b2_version ?>" --> 
     15<!-- generator="wordpress/<?php echo $wp_version ?>" --> 
    1616<rss version="2.0"  
    1717    xmlns:dc="http://purl.org/dc/elements/1.1/" 
     
    2323<?php 
    2424$i = 0; 
    25 foreach ($posts as $post) { start_b2(); 
     25foreach ($posts as $post) { start_wp(); 
    2626    if ($i < 1) { 
    2727        $i++; 
     
    3434    <dc:rights>Copyright <?php echo mysql2date('Y', get_lastpostdate()); ?></dc:rights> 
    3535    <dc:date><?php echo gmdate('Y-m-d\TH:i:s'); ?></dc:date> 
    36     <admin:generatorAgent rdf:resource="http://wordpress.org/?v=<?php echo $b2_version ?>"/> 
     36    <admin:generatorAgent rdf:resource="http://wordpress.org/?v=<?php echo $wp_version ?>"/> 
    3737    <admin:errorReportsTo rdf:resource="mailto:<?php echo antispambot($admin_email) ?>"/> 
    3838    <sy:updatePeriod>hourly</sy:updatePeriod> 
  • trunk/wp-config-extra.php

    r372 r628  
    2727 
    2828// here's the conversion table, you can modify it if you know what you're doing 
    29 $b2smiliestrans = array( 
     29$wpsmiliestrans = array( 
    3030    ' :)'        => 'icon_smile.gif', 
    3131    ' :D'        => 'icon_biggrin.gif', 
  • trunk/wp-config-sample.php

    r601 r628  
    2020$base = DB_NAME; 
    2121 
    22 $abspath = dirname(__FILE__).'/'
     22define('ABSPATH', dirname(__FILE__).'/')
    2323 
    2424// Get everything else 
    25 require_once($abspath.'wp-settings.php'); 
     25require_once(ABSPATH.'wp-settings.php'); 
    2626?> 
  • trunk/wp-includes/functions.php

    r617 r628  
    229229function convert_chars($content,$flag='obsolete attribute left there for backwards compatibility') { // html/unicode entities output 
    230230 
    231     global $use_htmltrans, $b2_htmltrans, $b2_htmltranswinuni; 
     231    global $use_htmltrans, $wp_htmltrans, $wp_htmltranswinuni; 
    232232 
    233233    // removes metadata tags 
     
    242242        // converts HTML-entities to their display values in order to convert them again later 
    243243        $content = preg_replace('/['.chr(127).'-'.chr(255).']/e', '"&#".ord(\'\0\').";"', $content ); 
    244         $content = strtr($content, $b2_htmltrans); 
     244        $content = strtr($content, $wp_htmltrans); 
    245245 
    246246        // now converting: Windows CP1252 => Unicode (valid HTML) 
    247247        // (if you've ever pasted text from MSWord, you'll understand) 
    248248 
    249         $content = strtr($content, $b2_htmltranswinuni); 
     249        $content = strtr($content, $wp_htmltranswinuni); 
    250250 
    251251    } 
     
    260260 
    261261function convert_bbcode($content) { 
    262     global $b2_bbcode, $use_bbcode; 
     262    global $wp_bbcode, $use_bbcode; 
    263263    if ($use_bbcode) { 
    264         $content = preg_replace($b2_bbcode["in"], $b2_bbcode["out"], $content); 
     264        $content = preg_replace($wp_bbcode["in"], $wp_bbcode["out"], $content); 
    265265    } 
    266266    $content = convert_bbcode_email($content); 
     
    284284 
    285285function convert_gmcode($content) { 
    286     global $b2_gmcode, $use_gmcode; 
     286    global $wp_gmcode, $use_gmcode; 
    287287    if ($use_gmcode) { 
    288         $content = preg_replace($b2_gmcode["in"], $b2_gmcode["out"], $content); 
     288        $content = preg_replace($wp_gmcode["in"], $wp_gmcode["out"], $content); 
    289289    } 
    290290    return $content; 
     
    293293function convert_smilies($text) { 
    294294    global $smilies_directory, $use_smilies; 
    295     global $b2_smiliessearch, $b2_smiliesreplace; 
     295    global $wp_smiliessearch, $wp_smiliesreplace; 
    296296    $output = ''; 
    297297    if ($use_smilies) { 
     
    302302            $content = $textarr[$i]; 
    303303            if ((strlen($content) > 0) && ('<' != $content{0})) { // If it's not a tag 
    304                 $content = str_replace($b2_smiliessearch, $b2_smiliesreplace, $content); 
     304                $content = str_replace($wp_smiliessearch, $wp_smiliesreplace, $content); 
    305305            } 
    306306            $output .= $content; 
     
    10311031function pingback($content, $post_ID) { 
    10321032    // original code by Mort (http://mort.mine.nu:8080) 
    1033     global $siteurl, $blogfilename, $b2_version; 
     1033    global $siteurl, $blogfilename, $wp_version; 
    10341034    $log = debug_fopen('./pingback.log', 'a'); 
    10351035    $post_links = array(); 
     
    11001100 
    11011101        // Send the GET request 
    1102         $request = "GET $path HTTP/1.1\r\nHost: $host\r\nUser-Agent: b2/$b2_version PHP/" . phpversion() . "\r\n\r\n"; 
     1102        $request = "GET $path HTTP/1.1\r\nHost: $host\r\nUser-Agent: b2/$wp_version PHP/" . phpversion() . "\r\n\r\n"; 
    11031103        ob_end_flush(); 
    11041104        fputs($fp, $request); 
     
    15541554} 
    15551555 
    1556 function start_b2() { 
     1556function start_wp() { 
    15571557    global $post, $id, $postdata, $authordata, $day, $preview, $page, $pages, $multipage, $more, $numpages; 
    15581558    global $preview_userid,$preview_date,$preview_content,$preview_title,$preview_category,$preview_notify,$preview_make_clickable,$preview_autobr; 
     
    16101610 
    16111611function apply_filters($tag, $string) { 
    1612     global $b2_filter; 
    1613     if (isset($b2_filter['all'])) { 
    1614         $b2_filter['all'] = (is_string($b2_filter['all'])) ? array($b2_filter['all']) : $b2_filter['all']; 
    1615         if (isset($b2_filter[$tag])) 
    1616             $b2_filter[$tag] = array_merge($b2_filter['all'], $b2_filter[$tag]); 
     1612    global $wp_filter; 
     1613    if (isset($wp_filter['all'])) { 
     1614        $wp_filter['all'] = (is_string($wp_filter['all'])) ? array($wp_filter['all']) : $wp_filter['all']; 
     1615        if (isset($wp_filter[$tag])) 
     1616            $wp_filter[$tag] = array_merge($wp_filter['all'], $wp_filter[$tag]); 
    16171617        else 
    1618             $b2_filter[$tag] = array_merge($b2_filter['all'], array()); 
    1619         $b2_filter[$tag] = array_unique($b2_filter[$tag]); 
    1620     } 
    1621     if (isset($b2_filter[$tag])) { 
    1622         $b2_filter[$tag] = (is_string($b2_filter[$tag])) ? array($b2_filter[$tag]) : $b2_filter[$tag]; 
    1623         $functions = $b2_filter[$tag]; 
     1618            $wp_filter[$tag] = array_merge($wp_filter['all'], array()); 
     1619        $wp_filter[$tag] = array_unique($wp_filter[$tag]); 
     1620    } 
     1621    if (isset($wp_filter[$tag])) { 
     1622        $wp_filter[$tag] = (is_string($wp_filter[$tag])) ? array($wp_filter[$tag]) : $wp_filter[$tag]; 
     1623        $functions = $wp_filter[$tag]; 
    16241624        foreach($functions as $function) { 
    16251625            //error_log("apply_filters #1 applying filter $function"); 
     
    16311631 
    16321632function add_filter($tag, $function_to_add) { 
    1633     global $b2_filter; 
    1634     if (isset($b2_filter[$tag])) { 
    1635         $functions = $b2_filter[$tag]; 
     1633    global $wp_filter; 
     1634    if (isset($wp_filter[$tag])) { 
     1635        $functions = $wp_filter[$tag]; 
    16361636        if (is_array($functions)) { 
    16371637            foreach($functions as $function) { 
     
    16451645        if (is_array($function_to_add)) { 
    16461646            foreach($function_to_add as $function) { 
    1647                 if (!in_array($function, $b2_filter[$tag])) { 
     1647                if (!in_array($function, $wp_filter[$tag])) { 
    16481648                    $new_functions[] = $function; 
    16491649                } 
    16501650            } 
    16511651        } else */if (is_string($function_to_add)) { 
    1652             if (!@in_array($function_to_add, $b2_filter[$tag])) { 
     1652            if (!@in_array($function_to_add, $wp_filter[$tag])) { 
    16531653                $new_functions[] = $function_to_add; 
    16541654            } 
    16551655        } 
    1656         $b2_filter[$tag] = $new_functions; 
    1657     } else { 
    1658         $b2_filter[$tag] = array($function_to_add); 
     1656        $wp_filter[$tag] = $new_functions; 
     1657    } else { 
     1658        $wp_filter[$tag] = array($function_to_add); 
    16591659    } 
    16601660    return true; 
     
    16631663// Check for hacks file if the option is enabled 
    16641664if (get_settings('hack_file')) { 
    1665     if (file_exists($abspath . '/my-hacks.php')) 
    1666         require($abspath . '/my-hacks.php'); 
     1665    if (file_exists(ABSPATH . '/my-hacks.php')) 
     1666        require(ABSPATH . '/my-hacks.php'); 
    16671667} 
    16681668?> 
  • trunk/wp-includes/template-functions.php