Make WordPress Core

Changeset 468


Ignore:
Timestamp:
10/26/2003 12:19:23 AM (22 years ago)
Author:
saxmatt
Message:

Some options functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/b2-include/b2functions.php

    r465 r468  
    464464}
    465465
     466/* Options functions */
     467
    466468function get_settings($setting) {
    467469    global $wpdb, $cache_settings, $use_cache, $querycount;
     
    489491    return $all_options;
    490492}
    491    
     493
     494function update_option($option_name, $newvalue) {
     495    global $wpdb, $tableoptions;
     496    // No validation at the moment
     497    $wpdb->query("UPDATE $tableoptions SET option_value = '$newvalue' WHERE option_name = '$option_name'");
     498}
     499
     500function add_option() {
     501    // Adds an option if it doesn't already exist
     502    global $wpdb, $tableoptions;
     503    // TODO
     504}
     505
    492506function get_postdata($postid) {
    493507    global $tableusers, $tablecategories, $tableposts, $tablecomments, $querycount, $wpdb;
Note: See TracChangeset for help on using the changeset viewer.