summaryrefslogtreecommitdiffstats
path: root/wp-inst/wp-content/smarty-plugins/function.custom_fields.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-08-29 12:10:12 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-08-29 12:10:12 +0000
commit96d2531821c13a5962b09a5b130d93c8d8b8a987 (patch)
treee257a4b90d1aadbfaec3763eefa1bf58dcab2af6 /wp-inst/wp-content/smarty-plugins/function.custom_fields.php
parent04d51d5f3493a358f75449ac08425310978e5b24 (diff)
downloadwordpress-mu-96d2531821c13a5962b09a5b130d93c8d8b8a987.tar.gz
wordpress-mu-96d2531821c13a5962b09a5b130d93c8d8b8a987.tar.xz
wordpress-mu-96d2531821c13a5962b09a5b130d93c8d8b8a987.zip
Removed Smarty stuff
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@249 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-content/smarty-plugins/function.custom_fields.php')
-rw-r--r--wp-inst/wp-content/smarty-plugins/function.custom_fields.php31
1 files changed, 0 insertions, 31 deletions
diff --git a/wp-inst/wp-content/smarty-plugins/function.custom_fields.php b/wp-inst/wp-content/smarty-plugins/function.custom_fields.php
deleted file mode 100644
index 8c684b7..0000000
--- a/wp-inst/wp-content/smarty-plugins/function.custom_fields.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-/*
- * Smarty plugin
- * -------------------------------------------------------------
- * File: function.custom_fields.php
- * Type: function
- * Name: custom_fields
- * Purpose: Passes the custom field value to the named function
- * -------------------------------------------------------------
- */
-function smarty_function_custom_fields($params, &$smarty)
-{
- global $wpblog, $siteurl;
-
- extract( $params );
- $fields = get_post_custom();
- if( is_array( $fields ) )
- {
- while( list( $func, $custom_params ) = each( $fields ) )
- {
- $func = str_replace('../', '', $func);
- $file = $smarty->plugins_dir . "/custom_fields." . $func . ".php";
- if( is_file( $file ) )
- {
- include_once( $file );
- $func( $smarty, $params, $custom_params );
- }
- }
- }
-}
-?>