Plugin Directory

Changeset 864350


Ignore:
Timestamp:
02/24/2014 10:02:00 PM (12 years ago)
Author:
hunk
Message:

add tag 2.2.1

Location:
magic-fields-2/trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • magic-fields-2/trunk/admin/mf_admin.php

    r761841 r864350  
    8181    foreach ( $post_types as $key => $type ) {
    8282      if( $output == 'names' ) {
    83         if( $type == 'attachment' ) {
     83        if( $type == 'attachment' || $type == 'revision' || $type == 'nav_menu_item'   ) {
    8484          unset($post_types[$key]);
    8585        }
    8686      } else if ($output == 'object' ) {
    8787        unset($post_types['attachment']);
     88        unset($post_types['revision']);
     89        unset($post_types['nav_menu_item']);
    8890      }
    8991    }
     
    735737  }
    736738
    737   function mf_unregister_post_type( $post_type ) {
     739  public static function mf_unregister_post_type( $post_type ) {
    738740    /* Ideally we should just unset the post type from the array
    739741       but wordpress 3.2.1 this doesn't work */
  • magic-fields-2/trunk/admin/mf_custom_fields.php

    r640332 r864350  
    617617  }
    618618
    619   public function check_group($name,$post_type,$id = NULL){
     619  static public function check_group($name,$post_type,$id = NULL){
    620620    global $wpdb;
    621621
  • magic-fields-2/trunk/admin/mf_custom_group.php

    r640332 r864350  
    205205  }
    206206 
    207   public function check_group($name,$post_type,$id = NULL){
     207  static public function check_group($name,$post_type,$id = NULL){
    208208    global $wpdb;
    209209 
  • magic-fields-2/trunk/admin/mf_menu.php

    r640332 r864350  
    22class mf_menu
    33{
    4     public function unique_post_type(){
     4    public static function unique_post_type(){
    55        global $submenu,$menu,$mf_pt_unique,$wpdb;
    66
  • magic-fields-2/trunk/admin/mf_posttype.php

    r761841 r864350  
    752752  }
    753753 
    754   public function check_post_type($post_type,$id = NULL){
     754  static public function check_post_type($post_type,$id = NULL){
    755755    global $wpdb;
    756756 
  • magic-fields-2/trunk/admin/mf_settings.php

    r640332 r864350  
    66class mf_settings extends mf_admin {
    77
    8   function main() {
     8  public static function main() {
    99
    1010    if($_POST){
     
    4242  }
    4343
    44   public function form_options($options){
     44  public static function form_options($options){
    4545    global $mf_domain;
    4646    ?>
     
    7979  }
    8080
    81   public function fields_form() {
     81  public static function fields_form() {
    8282    global $mf_domain;
    8383 
     
    153153  }
    154154
    155   function get($key = null) {
     155  public static function get($key = null) {
    156156    if (get_option(MF_SETTINGS_KEY) == "") return "";
    157157    if (is_array(get_option(MF_SETTINGS_KEY)))
  • magic-fields-2/trunk/main.php

    r761841 r864350  
    44Plugin URI: http://magicfields.org
    55Description: Create custom fields for your post types
    6 Version: 2.2
     6Version: 2.2.1
    77Author:  Hunk and Gnuget
    88Author URI: http://magicfields.org
  • magic-fields-2/trunk/mf_install.php

    r640332 r864350  
    124124  }
    125125
    126   public function folders(){
     126  public static function folders(){
    127127    global $mf_domain;
    128128   
  • magic-fields-2/trunk/readme.txt

    r761845 r864350  
    22Contributors: hunk, Gnuget
    33Tags: cms, post types, fields, taxonomies
    4 Tested up to: Wordpress 3.6
     4Tested up to: Wordpress 3.8.1
    55Requires at least: 3.1
    66Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=edgar%40programador%2ecom&lc=GB&item_name=Donation%20Magic%20Fields&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHostedGuest
    7 Stable tag: 2.2
     7Stable tag: 2.2.1
    88Description:  Magic Fields 2 is a feature rich Wordpress CMS plugin
    99
     
    2626
    2727== Changelog ==
     28
     29= 2.2.1 =
     30* add static to public functions
    2831
    2932= 2.2 =
Note: See TracChangeset for help on using the changeset viewer.