Plugin Directory

Changeset 329278


Ignore:
Timestamp:
01/06/2011 02:12:41 AM (15 years ago)
Author:
Webstractions
Message:

Update ONET coding

Location:
wp-simplyhired-api/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-simplyhired-api/trunk/shortcodes.php

    r329273 r329278  
    88 function wphsa_joblist_shortcode($atts) {
    99    extract(shortcode_atts(array(
    10         'onet' => '',
    1110        'query' => '',
    1211        'location' => '',
     
    2019    $wpsha->set_query( $query );
    2120    $wpsha->set_location( $location );
    22     $wpsha->set_onet( $onet );
     21    if( isset($onet) )
     22        $wpsha->set_onet( $onet );
    2323    //$shJobs->set_radius( $args['radius'] );
    2424    //var_dump($wpsha);
  • wp-simplyhired-api/trunk/wp-simplyhired.php

    r329263 r329278  
    7676            /* Set broad ONET code (can be over-ridden via shortcode ) */
    7777            if ( $this->options['broad_onet_code'] ) {
    78                 $this->set_onet($this->options['broad_onet_code']);
     78            $this->set_onet($this->options['broad_onet_code']);
    7979            }
    8080        }
Note: See TracChangeset for help on using the changeset viewer.