Beispiel #1
0
 public static function wp_head()
 {
     global $user_ID, $post;
     if (is_int($post)) {
         $post = get_post($post);
     }
     if ($post !== null) {
         if (is_singular()) {
             self::$count_post_ID = $post->ID;
         }
         if (defined('WP_CACHE') && WP_CACHE) {
             wp_enqueue_script('jquery');
             add_action('wp_footer', array('WP_PVP', 'wp_footer'));
         } else {
             self::add_views($post->ID);
         }
     }
 }