Make WordPress Core


Ignore:
Timestamp:
03/01/2004 06:13:32 AM (22 years ago)
Author:
saxmatt
Message:

Migration to get_settings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/profile.php

    r945 r956  
    179179
    180180
    181         $bookmarklet_tbpb  = ($use_trackback) ? '&trackback=1' : '';
    182         $bookmarklet_tbpb .= ($use_pingback)  ? '&pingback=1'  : '';
    183         $bookmarklet_height= ($use_trackback) ? 590 : 550;
     181        $bookmarklet_tbpb  = (get_settings('use_trackback')) ? '&trackback=1' : '';
     182        $bookmarklet_tbpb .= (get_settings('use_pingback'))  ? '&pingback=1'  : '';
     183        $bookmarklet_height= (get_settings('use_trackback')) ? 590 : 550;
    184184
    185185        ?>
     
    192192        <p>To have a one-click bookmarklet, just copy and paste this<br />into a new text file:</p>
    193193        <?php
    194         $regedit = "REGEDIT4\r\n[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\Post To &WP : ".$blogname."]\r\n@=\"javascript:doc=external.menuArguments.document;Q=doc.selection.createRange().text;void(btw=window.open('". get_settings('siteurl') ."/wp-admin/bookmarklet.php?text='+escape(Q)+'".$bookmarklet_tbpb."&popupurl='+escape(doc.location.href)+'&popuptitle='+escape(doc.title),'bookmarklet','scrollbars=no,width=480,height=".$bookmarklet_height.",left=100,top=150,status=yes'));btw.focus();\"\r\n\"contexts\"=hex:31\"";
     194        $regedit = "REGEDIT4\r\n[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\Post To &WP : ". get_settings('blogname') ."]\r\n@=\"javascript:doc=external.menuArguments.document;Q=doc.selection.createRange().text;void(btw=window.open('". get_settings('siteurl') ."/wp-admin/bookmarklet.php?text='+escape(Q)+'".$bookmarklet_tbpb."&popupurl='+escape(doc.location.href)+'&popuptitle='+escape(doc.title),'bookmarklet','scrollbars=no,width=480,height=".$bookmarklet_height.",left=100,top=150,status=yes'));btw.focus();\"\r\n\"contexts\"=hex:31\"";
    195195        ?>
    196196        <pre style="margin: 20px; background-color: #cccccc; border: 1px dashed #333333; padding: 5px; font-size: 12px;"><?php echo $regedit; ?></pre>
     
    217217        $profiledata=get_userdata($user_ID);
    218218
    219         $bookmarklet_tbpb  = ($use_trackback) ? '&trackback=1' : '';
    220         $bookmarklet_tbpb .= ($use_pingback)  ? '&pingback=1'  : '';
    221         $bookmarklet_height= ($use_trackback) ? 480 : 440;
     219        $bookmarklet_tbpb  = (get_settings('use_trackback')) ? '&trackback=1' : '';
     220        $bookmarklet_tbpb .= (get_settings('use_pingback'))  ? '&pingback=1'  : '';
     221        $bookmarklet_height= (get_settings('use_trackback')) ? 480 : 440;
    222222
    223223        ?>
     
    324324        {
    325325          if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function"))
    326             window.sidebar.addPanel("WordPress Post: <?php echo $blogname ?>","<?php echo get_settings('siteurl'); ?>/wp-admin/sidebar.php","");
     326            window.sidebar.addPanel("WordPress Post: <?php echo get_settings('blogname'); ?>","<?php echo get_settings('siteurl'); ?>/wp-admin/sidebar.php","");
    327327          else
    328328            alert('No Sidebar found!  You must use Mozilla 0.9.4 or later!');
Note: See TracChangeset for help on using the changeset viewer.