Triggered Fatal Error on Activation
-
Received this error when trying to activate the plugin in WP 3.8:
Disable auto-formatting for this ‘ . get_post_type(); echo $output; } function save( $post_id ) { if ( defined(‘DOING_AUTOSAVE’) && DOING_AUTOSAVE ) return $post_id; update_post_meta( $post_id, ‘_dont_muck’, isset( $_POST[‘dont_muck’] ) ? true : ” ); } function insertCSS() { // Only load this stylesheet if they’re on post.php inside the dashboard wp_enqueue_style( ‘admin.css’, plugins_url( ‘css/admin.css’, self::$plugin_url ) ); } static function checked() { // We’re not “caching” this in a static property because this method will be called potentially multiple times throughout the loop $checked = get_post_meta( get_the_ID(), ‘_dont_muck’, true); if ( empty( $checked ) ) return false; else return true; } }
Please HELP! This is an important part of a production release.
Thanks
- The topic ‘Triggered Fatal Error on Activation’ is closed to new replies.