Changeset 864350
- Timestamp:
- 02/24/2014 10:02:00 PM (12 years ago)
- Location:
- magic-fields-2/trunk
- Files:
-
- 9 edited
-
admin/mf_admin.php (modified) (2 diffs)
-
admin/mf_custom_fields.php (modified) (1 diff)
-
admin/mf_custom_group.php (modified) (1 diff)
-
admin/mf_menu.php (modified) (1 diff)
-
admin/mf_posttype.php (modified) (1 diff)
-
admin/mf_settings.php (modified) (4 diffs)
-
main.php (modified) (1 diff)
-
mf_install.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
magic-fields-2/trunk/admin/mf_admin.php
r761841 r864350 81 81 foreach ( $post_types as $key => $type ) { 82 82 if( $output == 'names' ) { 83 if( $type == 'attachment' ) {83 if( $type == 'attachment' || $type == 'revision' || $type == 'nav_menu_item' ) { 84 84 unset($post_types[$key]); 85 85 } 86 86 } else if ($output == 'object' ) { 87 87 unset($post_types['attachment']); 88 unset($post_types['revision']); 89 unset($post_types['nav_menu_item']); 88 90 } 89 91 } … … 735 737 } 736 738 737 function mf_unregister_post_type( $post_type ) {739 public static function mf_unregister_post_type( $post_type ) { 738 740 /* Ideally we should just unset the post type from the array 739 741 but wordpress 3.2.1 this doesn't work */ -
magic-fields-2/trunk/admin/mf_custom_fields.php
r640332 r864350 617 617 } 618 618 619 public function check_group($name,$post_type,$id = NULL){619 static public function check_group($name,$post_type,$id = NULL){ 620 620 global $wpdb; 621 621 -
magic-fields-2/trunk/admin/mf_custom_group.php
r640332 r864350 205 205 } 206 206 207 public function check_group($name,$post_type,$id = NULL){207 static public function check_group($name,$post_type,$id = NULL){ 208 208 global $wpdb; 209 209 -
magic-fields-2/trunk/admin/mf_menu.php
r640332 r864350 2 2 class mf_menu 3 3 { 4 public function unique_post_type(){4 public static function unique_post_type(){ 5 5 global $submenu,$menu,$mf_pt_unique,$wpdb; 6 6 -
magic-fields-2/trunk/admin/mf_posttype.php
r761841 r864350 752 752 } 753 753 754 public function check_post_type($post_type,$id = NULL){754 static public function check_post_type($post_type,$id = NULL){ 755 755 global $wpdb; 756 756 -
magic-fields-2/trunk/admin/mf_settings.php
r640332 r864350 6 6 class mf_settings extends mf_admin { 7 7 8 function main() {8 public static function main() { 9 9 10 10 if($_POST){ … … 42 42 } 43 43 44 public function form_options($options){44 public static function form_options($options){ 45 45 global $mf_domain; 46 46 ?> … … 79 79 } 80 80 81 public function fields_form() {81 public static function fields_form() { 82 82 global $mf_domain; 83 83 … … 153 153 } 154 154 155 function get($key = null) {155 public static function get($key = null) { 156 156 if (get_option(MF_SETTINGS_KEY) == "") return ""; 157 157 if (is_array(get_option(MF_SETTINGS_KEY))) -
magic-fields-2/trunk/main.php
r761841 r864350 4 4 Plugin URI: http://magicfields.org 5 5 Description: Create custom fields for your post types 6 Version: 2.2 6 Version: 2.2.1 7 7 Author: Hunk and Gnuget 8 8 Author URI: http://magicfields.org -
magic-fields-2/trunk/mf_install.php
r640332 r864350 124 124 } 125 125 126 public function folders(){126 public static function folders(){ 127 127 global $mf_domain; 128 128 -
magic-fields-2/trunk/readme.txt
r761845 r864350 2 2 Contributors: hunk, Gnuget 3 3 Tags: cms, post types, fields, taxonomies 4 Tested up to: Wordpress 3. 64 Tested up to: Wordpress 3.8.1 5 5 Requires at least: 3.1 6 6 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=edgar%40programador%2ecom&lc=GB&item_name=Donation%20Magic%20Fields¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHostedGuest 7 Stable tag: 2.2 7 Stable tag: 2.2.1 8 8 Description: Magic Fields 2 is a feature rich Wordpress CMS plugin 9 9 … … 26 26 27 27 == Changelog == 28 29 = 2.2.1 = 30 * add static to public functions 28 31 29 32 = 2.2 =
Note: See TracChangeset
for help on using the changeset viewer.