Plugin Directory

Changeset 603524


Ignore:
Timestamp:
09/25/2012 09:38:40 AM (13 years ago)
Author:
GlennM
Message:

Version 1.0.1

Location:
google-content-experiments/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • google-content-experiments/trunk/admin/class-wpe-GCEAdmin.php

    r575650 r603524  
    1010        add_action ( 'add_meta_boxes', array( $this, 'gwe_meta_box' ) );
    1111        add_action( 'save_post', array( $this, 'gwe_save_meta' ) );
    12         add_action('admin_enqueue_scripts', array( $this, 'gwe_admin_scripts') );
     12        add_action( 'admin_enqueue_scripts', array( $this, 'gwe_admin_scripts' ) );
    1313    }
    1414   
     
    9595        foreach( $this->data as $meta_key => $meta_value )
    9696        {
    97           update_post_meta($post_id, $meta_key, $meta_value);
     97          update_post_meta( $post_id, $meta_key, $meta_value );
    9898        }
    9999    }
  • google-content-experiments/trunk/class-wpe-GCE.php

    r575650 r603524  
    1313     */
    1414    public function setup() {
    15         // Don't output Content Experiment code on the homepage when showing posts
    16         if ( is_home() )
     15        // Don't output Content Experiment code when showing multiple posts
     16        if ( !is_singular() )
    1717            return;
    1818       
    1919        // Else, continue
    2020        global $post;
    21         $wpe_gce_active = get_post_meta($post->ID, '_wpe_gce_active', TRUE);
     21        $wpe_gce_active = get_post_meta( $post->ID, '_wpe_gce_active', TRUE );
    2222       
    2323        // Add code if Content Experiment is enabled for this post/page
    24         if( isset($wpe_gce_active) && $wpe_gce_active == '1' ) {
     24        if( isset( $wpe_gce_active ) && $wpe_gce_active == '1' ) {
    2525            add_action( 'wp', array( $this, 'prepare_output' ), 0 );
    2626        }
     
    3535       
    3636        // Check if active theme is in the list
    37         switch ($this->check_theme()) {
     37        switch ( $this->check_theme() ) {
    3838            case 'genesis':
    3939                remove_action( 'genesis_doctype', 'genesis_do_doctype' );
     
    5959    public function output_code() {
    6060        global $post;
    61         $wpe_gce_code = get_post_meta($post->ID, '_wpe_gce_code', TRUE);
    62         echo $wpe_gce_code.PHP_EOL;;
     61        $wpe_gce_code = get_post_meta( $post->ID, '_wpe_gce_code', TRUE );
     62        echo $wpe_gce_code . PHP_EOL;;
    6363    }
    6464   
  • google-content-experiments/trunk/google-content-experiments.php

    r575650 r603524  
    1616
    1717if ( is_admin() && ( !defined('DOING_AJAX') || !DOING_AJAX ) && !class_exists( 'GCEAdmin' ) ) {
    18     include_once( WPE_GCE_PATH . "admin/class-wpe-GCEAdmin.php");
     18    include_once( WPE_GCE_PATH . 'admin/class-wpe-GCEAdmin.php' );
    1919   
    2020    // Load GCE Admin class on the post/page edit screen
     
    2828
    2929if ( !class_exists( 'GCE' ) ) {
    30     include_once( WPE_GCE_PATH . "class-wpe-GCE.php");
     30    include_once( WPE_GCE_PATH . 'class-wpe-GCE.php' );
    3131    if( !is_admin() )
    3232        $gce = new GCE();
  • google-content-experiments/trunk/languages/gce-nl_NL.po

    r575650 r603524  
    44"Report-Msgid-Bugs-To: \n"
    55"POT-Creation-Date: 2012-07-20 17:38+0100\n"
    6 "PO-Revision-Date: 2012-07-20 17:42+0100\n"
     6"PO-Revision-Date: 2012-09-25 11:34+0100\n"
    77"Last-Translator: Glenn Mulleners <info@wp-expert.nl>\n"
    88"Language-Team: WP-Expert\n"
     
    1212"X-Poedit-KeywordsList: __;_e\n"
    1313"X-Poedit-Basepath: .\n"
    14 "X-Poedit-Language: Dutch\n"
    15 "X-Poedit-Country: NETHERLANDS\n"
     14"Language: nl_NL\n"
     15"X-Generator: Poedit 1.5.3\n"
    1616"X-Poedit-SearchPath-0: ..\n"
    1717
     
    2222#: ../admin/class-wpe-GCEAdmin.php:51
    2323msgid "Activate Content Experiment on this page"
    24 msgstr "Activeer Inhoud Experiment voor deze pagina"
     24msgstr "Inhoud Experiment voor deze pagina activeren"
    2525
    2626#: ../admin/class-wpe-GCEAdmin.php:59
    2727msgid "Your Content Experiment Code:"
    28 msgstr "Jouw Inhoud Experiment Code:"
    29 
     28msgstr "Je Inhoud Experiment Code:"
  • google-content-experiments/trunk/readme.txt

    r598920 r603524  
    44Requires at least: 3.4.0
    55Tested up to: 3.4.2
    6 Stable tag: 1.0.0
     6Stable tag: 1.0.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7474== Changelog ==
    7575
     76= 1.0.1 =
     77
     78* Fixed bug that inserted experiment code when displaying multiple posts (e.g. on category pages)
     79* Updated Dutch translation
     80
    7681= 1.0 =
    7782
Note: See TracChangeset for help on using the changeset viewer.