WordPress.org

Plugin Directory

Changeset 536191


Ignore:
Timestamp:
04/25/12 12:52:58 (2 years ago)
Author:
jmdodd
Message:

Comment code

Location:
shadow-screen-options/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • shadow-screen-options/trunk/readme.txt

    r535925 r536191  
    44Requires at least: 3.1.4  
    55Tested up to: 3.3.2 
    6 Stable tag: 0.3 
     6Stable tag: 0.4 
    77 
    88Create a shadow system of blog-specific screen layout options in a multisite environment. 
     
    2525== Changelog == 
    2626 
     27= 0.4 = 
     28* Add comments to code.  
     29 
    2730= 0.3 = 
    2831* General cleanup to object-oriented code. 
     
    3942== Upgrade Notice == 
    4043 
     44= 0.4 = 
     45* Comment code.  
     46 
    4147= 0.3 = 
    4248* General cleanup. 
  • shadow-screen-options/trunk/shadow-screen-options.php

    r535925 r536191  
    33Plugin Name: Shadow Screen Options 
    44Description: Create a shadow system of blog-specific screen layout options in a multisite environment.  
    5 Version: 0.3 
     5Version: 0.4 
    66Author: Jennifer M. Dodd 
    77Author URI: http://uncommoncontent.com/ 
     
    5454    } 
    5555 
     56    // True if meta_key needs a shadow key generated. 
    5657    public function needs_shadow( $meta_key ) { 
    5758        foreach ( $this->actions as $action ) { 
     
    6667    } 
    6768 
     69    // Return shadow meta_key when meta_key is requested. 
    6870    public function get_user_metadata( $meta_type = null, $user_id, $meta_key, $single ) { 
    6971        if ( $this->needs_shadow( $meta_key ) ) { 
     
    7981    } 
    8082 
     83    // Update shadow meta_key when meta_key is sent. 
    8184    public function update_user_metadata( $meta_type = null, $user_id, $meta_key, $meta_value, $prev_value = '' ) { 
    8285        if ( $this->needs_shadow( $meta_key ) ) { 
     
    8992    } 
    9093  
     94    // Change meta_key requests into shadow meta_key requests. 
    9195    public function get_user_option( $result, $option, $user ) { 
    9296        $option = $this->prefix . $option; 
Note: See TracChangeset for help on using the changeset viewer.