/* Plugin Name: Contact Form 7 Plugin URI: https://contactform7.com/ Description: Just another contact form plugin. Simple but flexible. Author: Takayuki Miyoshi Author URI: http://ideasilo.wordpress.com/ Text Domain: contact-form-7 Domain Path: /languages/ Version: 4.7 */ define( 'WPCF7_VERSION', '4.7' ); define( 'WPCF7_REQUIRED_WP_VERSION', '4.6' ); define( 'WPCF7_PLUGIN', __FILE__ ); define( 'WPCF7_PLUGIN_BASENAME', plugin_basename( WPCF7_PLUGIN ) ); define( 'WPCF7_PLUGIN_NAME', trim( dirname( WPCF7_PLUGIN_BASENAME ), '/' ) ); define( 'WPCF7_PLUGIN_DIR', untrailingslashit( dirname( WPCF7_PLUGIN ) ) ); define( 'WPCF7_PLUGIN_MODULES_DIR', WPCF7_PLUGIN_DIR . '/modules' ); if ( ! defined( 'WPCF7_LOAD_JS' ) ) { define( 'WPCF7_LOAD_JS', true ); } if ( ! defined( 'WPCF7_LOAD_CSS' ) ) { define( 'WPCF7_LOAD_CSS', true ); } if ( ! defined( 'WPCF7_AUTOP' ) ) { define( 'WPCF7_AUTOP', true ); } if ( ! defined( 'WPCF7_USE_PIPE' ) ) { define( 'WPCF7_USE_PIPE', true ); } if ( ! defined( 'WPCF7_ADMIN_READ_CAPABILITY' ) ) { define( 'WPCF7_ADMIN_READ_CAPABILITY', 'edit_posts' ); } if ( ! defined( 'WPCF7_ADMIN_READ_WRITE_CAPABILITY' ) ) { define( 'WPCF7_ADMIN_READ_WRITE_CAPABILITY', 'publish_pages' ); } if ( ! defined( 'WPCF7_VERIFY_NONCE' ) ) { define( 'WPCF7_VERIFY_NONCE', true ); } if ( ! defined( 'WPCF7_USE_REALLY_SIMPLE_CAPTCHA' ) ) { define( 'WPCF7_USE_REALLY_SIMPLE_CAPTCHA', false ); } if ( ! defined( 'WPCF7_VALIDATE_CONFIGURATION' ) ) { define( 'WPCF7_VALIDATE_CONFIGURATION', true ); } // Deprecated, not used in the plugin core. Use wpcf7_plugin_url() instead. define( 'WPCF7_PLUGIN_URL', untrailingslashit( plugins_url( '', WPCF7_PLUGIN ) ) ); require_once WPCF7_PLUGIN_DIR . '/settings.php'; /** * RestaurantPress Terms * * Functions for handling terms/term meta. * * @author ThemeGrill * @category Core * @package RestaurantPress/Functions * @version 1.0.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } /** * RestaurantPress Term Meta API - set table name. */ function rp_taxonomy_metadata_wpdbfix() { global $wpdb; $termmeta_name = 'restaurantpress_termmeta'; $wpdb->restaurantpress_termmeta = $wpdb->prefix . $termmeta_name; $wpdb->tables[] = 'restaurantpress_termmeta'; } add_action( 'init', 'rp_taxonomy_metadata_wpdbfix', 0 ); add_action( 'switch_blog', 'rp_taxonomy_metadata_wpdbfix', 0 ); /** * When a term is split, ensure meta data maintained. * @param int $old_term_id * @param int $new_term_id * @param string $term_taxonomy_id * @param string $taxonomy */ function rp_taxonomy_metadata_update_content_for_split_terms( $old_term_id, $new_term_id, $term_taxonomy_id, $taxonomy ) { global $wpdb; if ( 'food_menu_cat' === $taxonomy && get_option( 'db_version' ) < 34370 ) { $old_meta_data = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM {$wpdb->prefix}restaurantpress_termmeta WHERE restaurantpress_term_id = %d;", $old_term_id ) ); // Copy across to split term if ( $old_meta_data ) { foreach ( $old_meta_data as $meta_data ) { $wpdb->insert( "{$wpdb->prefix}restaurantpress_termmeta", array( 'restaurantpress_term_id' => $new_term_id, 'meta_key' => $meta_data->meta_key, 'meta_value' => $meta_data->meta_value ) ); } } } } add_action( 'split_shared_term', 'rp_taxonomy_metadata_update_content_for_split_terms', 10, 4 ); /** * Migrate data from RP term meta to WP term meta * * When the database is updated to support term meta, migrate RP term meta data across. * We do this when the new version is >= 34370, and the old version is < 34370 (34370 is when term meta table was added). * * @param string $wp_db_version The new $wp_db_version. * @param string $wp_current_db_version The old (current) $wp_db_version. */ function rp_taxonomy_metadata_migrate_data( $wp_db_version, $wp_current_db_version ) { if ( $wp_db_version >= 34370 && $wp_current_db_version < 34370 ) { global $wpdb; if ( $wpdb->query( "INSERT INTO {$wpdb->termmeta} ( term_id, meta_key, meta_value ) SELECT restaurantpress_term_id, meta_key, meta_value FROM {$wpdb->prefix}restaurantpress_termmeta;" ) ) { $wpdb->query( "DROP TABLE IF EXISTS {$wpdb->prefix}restaurantpress_termmeta" ); } } } add_action( 'wp_upgrade', 'rp_taxonomy_metadata_migrate_data', 10, 2 ); /** * RestaurantPress Term Meta API * * RP tables for storing term meta are @deprecated from WordPress 4.4 since 4.4 has its own table. * This function serves as a wrapper, using the new table if present, or falling back to the RP table. * * @todo These functions should be deprecated with notices in a future RP version, allowing users a chance to upgrade WordPress. * * @param mixed $term_id * @param string $meta_key * @param mixed $meta_value * @param string $prev_value (default: '') * @return bool */ function update_restaurantpress_term_meta( $term_id, $meta_key, $meta_value, $prev_value = '' ) { return function_exists( 'update_term_meta' ) ? update_term_meta( $term_id, $meta_key, $meta_value, $prev_value ) : update_metadata( 'restaurantpress_term', $term_id, $meta_key, $meta_value, $prev_value ); } /** * RestaurantPress Term Meta API * * RP tables for storing term meta are @deprecated from WordPress 4.4 since 4.4 has its own table. * This function serves as a wrapper, using the new table if present, or falling back to the RP table. * * @todo These functions should be deprecated with notices in a future RP version, allowing users a chance to upgrade WordPress. * * @param mixed $term_id * @param mixed $meta_key * @param mixed $meta_value * @param bool $unique (default: false) * @return bool */ function add_restaurantpress_term_meta( $term_id, $meta_key, $meta_value, $unique = false ) { return function_exists( 'add_term_meta' ) ? add_term_meta( $term_id, $meta_key, $meta_value, $unique ) : add_metadata( 'restaurantpress_term', $term_id, $meta_key, $meta_value, $unique ); } /** * RestaurantPress Term Meta API * * RP tables for storing term meta are @deprecated from WordPress 4.4 since 4.4 has its own table. * This function serves as a wrapper, using the new table if present, or falling back to the RP table. * * @todo These functions should be deprecated with notices in a future RP version, allowing users a chance to upgrade WordPress. * * @param mixed $term_id * @param mixed $meta_key * @param string $meta_value (default: '') * @param bool $deprecated (default: false) * @return bool */ function delete_restaurantpress_term_meta( $term_id, $meta_key, $meta_value = '', $deprecated = false ) { return function_exists( 'delete_term_meta' ) ? delete_term_meta( $term_id, $meta_key, $meta_value ) : delete_metadata( 'restaurantpress_term', $term_id, $meta_key, $meta_value ); } /** * RestaurantPress Term Meta API * * RP tables for storing term meta are @deprecated from WordPress 4.4 since 4.4 has its own table. * This function serves as a wrapper, using the new table if present, or falling back to the RP table. * * @todo These functions should be deprecated with notices in a future RP version, allowing users a chance to upgrade WordPress. * * @param mixed $term_id * @param string $key * @param bool $single (default: true) * @return mixed */ function get_restaurantpress_term_meta( $term_id, $key, $single = true ) { return function_exists( 'get_term_meta' ) ? get_term_meta( $term_id, $key, $single ) : get_metadata( 'restaurantpress_term', $term_id, $key, $single ); } /** * RestaurantPress Autoloader. * * @class RP_Autoloader * @version 1.0.0 * @package RestaurantPress/Classes * @category Class * @author ThemeGrill */ if ( ! defined( 'ABSPATH' ) ) { exit; } /** * RP_Autoloader Class */ class RP_Autoloader { /** * Path to the includes directory. * @var string */ private $include_path = ''; /** * Class Constructor Method. */ public function __construct() { if ( function_exists( "__autoload" ) ) { spl_autoload_register( "__autoload" ); } spl_autoload_register( array( $this, 'autoload' ) ); $this->include_path = untrailingslashit( plugin_dir_path( RP_PLUGIN_FILE ) ) . '/includes/'; } /** * Take a class name and turn it into a file name. * @param string $class * @return string */ private function get_file_name_from_class( $class ) { return 'class-' . str_replace( '_', '-', $class ) . '.php'; } /** * Include a class file. * @param string $path * @return bool successful or not */ private function load_file( $path ) { if ( $path && is_readable( $path ) ) { include_once( $path ); return true; } return false; } /** * Auto-load RP classes on demand to reduce memory consumption. * @param string $class */ public function autoload( $class ) { $class = strtolower( $class ); $file = $this->get_file_name_from_class( $class ); $path = ''; if ( strpos( $class, 'rp_meta_box' ) === 0 ) { $path = $this->include_path . 'admin/meta-boxes/'; } elseif ( strpos( $class, 'rp_admin' ) === 0 ) { $path = $this->include_path . 'admin/'; } if ( empty( $path ) || ( ! $this->load_file( $path . $file ) && strpos( $class, 'rp_' ) === 0 ) ) { $this->load_file( $this->include_path . $file ); } } } new RP_Autoloader();
Warning: Cannot modify header information - headers already sent by (output started at /home/jumpingw/public_html/parrilleroatucasa.cl/wp-content/plugins/restaurantpress/includes/functions-rp-term.php:150) in /home/jumpingw/public_html/parrilleroatucasa.cl/wp-includes/pluggable.php on line 1251

Warning: Cannot modify header information - headers already sent by (output started at /home/jumpingw/public_html/parrilleroatucasa.cl/wp-content/plugins/restaurantpress/includes/functions-rp-term.php:150) in /home/jumpingw/public_html/parrilleroatucasa.cl/wp-includes/pluggable.php on line 1254