Plugin Directory

Changeset 632209


Ignore:
Timestamp:
11/30/2012 02:27:05 PM (13 years ago)
Author:
OptimalDevs
Message:

Version 1.1.

  • Added uninstall.php file.
  • the_content display filter priority has upload to 100.
Location:
creative-commons-generator
Files:
12 added
4 edited

Legend:

Unmodified
Added
Removed
  • creative-commons-generator/trunk/ccg-admin.php

    r631821 r632209  
    1414
    1515function ccg_set_default() {
    16     if ( !get_option('ccg_options') ) {
     16    if ( !get_option( 'ccg_options' ) ) {
    1717        $ccg_options = array();
    1818        $ccg_options['active'] = TRUE;
  • creative-commons-generator/trunk/ccg-frontend.php

    r631821 r632209  
    11<?php
    22function ccg_display($content) {
    3     if(is_single()) {
     3    if( is_single() ) {
    44        global $post;
    5         if ( get_post_meta( $post->ID, '_ccg_options' ) )   $content = $content . ccg_get_banner( get_post_meta( $post->ID, '_ccg_options', true ), "meta_exist" );
    6         else    $content = $content . ccg_get_banner( get_option( 'ccg_options' ), "no_meta" );
     5        if ( get_post_meta( $post->ID, '_ccg_options' ) )   $content .= ccg_get_banner( get_post_meta( $post->ID, '_ccg_options', true ), 'meta_exist' );
     6        else    $content .= ccg_get_banner( get_option( 'ccg_options' ), 'no_meta' );
    77    }
    88    return $content;
    99}
    10 add_filter( 'the_content', 'ccg_display' );
     10add_filter( 'the_content', 'ccg_display', 100 );
    1111?>
  • creative-commons-generator/trunk/ccg-post-options.php

    r631821 r632209  
    11<?php
    22add_action( 'admin_init', 'ccg_add_meta_box', 1 );
    3 add_action('save_post', 'ccg_save_post_data');
     3add_action( 'save_post', 'ccg_save_post_data' );
    44
    55function ccg_add_meta_box() {
     
    3838        echo ccg_get_banner( $ccg_old_options, "publish" );
    3939    }
    40    
    41     // Preview
    42    
    4340   
    4441?>
  • creative-commons-generator/trunk/readme.txt

    r631953 r632209  
    55Requires at least: 2.8
    66Tested up to: 3.4.5
    7 Stable tag: 1.0
     7Stable tag: 1.1
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    4747== Changelog ==
    4848
     49= 1.1 =
     50* Added uninstall.php file.
     51* the_content display filter priority has upload to 100.
     52
    4953= 1.0 =
    5054* Initial release
Note: See TracChangeset for help on using the changeset viewer.