WordPress.org

Plugin Directory

Changeset 135845


Ignore:
Timestamp:
07/16/09 20:29:42 (9 years ago)
Author:
rjeevan
Message:

All Errors are Fixed Now!

Location:
wp-reportpost
Files:
24 added
4 edited

Legend:

Unmodified
Added
Removed
  • wp-reportpost/trunk/Readme.txt

    r135552 r135845  
    55Requires at least: 2.8 
    66Tested up to: 2.8 
    7 Stable tag: 1.2.1 
     7Stable tag: 1.2.2 
    88 
    99Simple and powerful plugin to make your life easier, Report post plugin to automate links / contents error reporting in your website. 
     
    1515You have the full control on what to be reported and the areas to be reported. Once installed and activated, you will have the full control over where to display and what to display. 
    1616 
    17 > ** : See Feature list for more details ** 
     17> Why So many Updates? Well, when tested, me and friends helped me testing used freshly installed wordpress! When we made release people started complaining files missing and errors! I;m working to Fix these issues and It seems to be coming to and End. This would be the Last Bug Release update. 
     18 
     19> ** : See Other Notes for more details ** 
     20 
    1821> If you find this Plugin conflicting with any other, please do let me know. I will try and fix it asap. 
    1922 
     
    3841== Changelog == 
    3942 
    40 There have been many updates in the Past, IÕm only going to specify the main changes made to archive this new version 1.2. 
     43There have been many updates in the Past, I'm only going to specify the main changes made to archive this new version 1.2. 
     44= 1.2.2 = 
     45* Fixed: Category listing seems to be Missing in some Wodpress? I have No idea why but created backup functions to Tackle this Issue. 
     46* Fixed: Missing CSS & JS files (Entire Assets folder in SVN!) 
     47* Fixed: Plugin made Wordpress ignore `<br /> and <p>` tags! 
    4148= 1.2.1 = 
    4249* Fixed : Ajax Error when Selected Manual [Theme] Attachment Option. 
     
    73803. Use `Report` Menu link to Access `Settings` and Reports 
    7481 
    75 * PHP 5 is REQUIRED to run this plugin; Core of this plugin is developed and tested in PHP 5 environment, therefore I recommend using PHP version Higher than 5 
     82* PHP 5 is REQUIRED to run this plugin; Core of this plugin is developed and tested in PHP 5 environment, therefore I recommend using PHP version Higher than 5. I would work with PHP4 but I didn't Test! 
    7683 
    77 * This Plugin will create 3 Tables on your WordPress database when Activating First time (DonÕt worry, itÕs unique names and will not affect anything else). If WordPress can be installed on your MySql Version, this plugin will without any issues. 
     84* This Plugin will create 3 Tables on your WordPress database when Activating First time (Don't worry, it's unique names and will not affect anything else). If WordPress can be installed on your MySql Version, this plugin will without any issues. 
    7885 
    7986** : See Frequently Asked Questions For Manually Calling Report Form into your Theme ** 
  • wp-reportpost/trunk/main.php

    r135837 r135845  
    44Plugin URI: http://www.rjeevan.com/en/projects/wordpress/plugins/wp-reportpost 
    55Description: This plugin attach form (jQuery / Ajax) to your contents that can be Invoked by any end-user to make a report on posts / pages. This plugin gives you much flexibility as what to report and archive old reports... No coding skills needed, simply install and activate. 
    6 Version: 1.2.1 
     6Version: 1.2.2 
    77Author: Rajeevan 
    88Author URI: http://rjeevan.com 
  • wp-reportpost/trunk/settings.php

    r135223 r135845  
    274274     
    275275</div> 
     276<?php 
     277/* HACK to wp_category_checklist*/ 
     278if(!function_exists("wp_category_checklist")) 
     279{ 
     280function wp_category_checklist( $post_id = 0, $descendants_and_self = 0, $selected_cats = false, $popular_cats = false, $walker = null ) { 
     281    if ( empty($walker) || !is_a($walker, 'Walker') ) 
     282        $walker = new Walker_Category_Checklist; 
     283 
     284    $descendants_and_self = (int) $descendants_and_self; 
     285 
     286    $args = array(); 
     287 
     288    if ( is_array( $selected_cats ) ) 
     289        $args['selected_cats'] = $selected_cats; 
     290    elseif ( $post_id ) 
     291        $args['selected_cats'] = wp_get_post_categories($post_id); 
     292    else 
     293        $args['selected_cats'] = array(); 
     294 
     295    if ( is_array( $popular_cats ) ) 
     296        $args['popular_cats'] = $popular_cats; 
     297    else 
     298        $args['popular_cats'] = get_terms( 'category', array( 'fields' => 'ids', 'orderby' => 'count', 'order' => 'DESC', 'number' => 10, 'hierarchical' => false ) ); 
     299 
     300    if ( $descendants_and_self ) { 
     301        $categories = get_categories( "child_of=$descendants_and_self&hierarchical=0&hide_empty=0" ); 
     302        $self = get_category( $descendants_and_self ); 
     303        array_unshift( $categories, $self ); 
     304    } else { 
     305        $categories = get_categories('get=all'); 
     306    } 
     307 
     308    // Post process $categories rather than adding an exclude to the get_terms() query to keep the query the same across all posts (for any query cache) 
     309    $checked_categories = array(); 
     310    $keys = array_keys( $categories ); 
     311 
     312    foreach( $keys as $k ) { 
     313        if ( in_array( $categories[$k]->term_id, $args['selected_cats'] ) ) { 
     314            $checked_categories[] = $categories[$k]; 
     315            unset( $categories[$k] ); 
     316        } 
     317    } 
     318 
     319    // Put checked cats on top 
     320    echo call_user_func_array(array(&$walker, 'walk'), array($checked_categories, 0, $args)); 
     321    // Then the rest of them 
     322    echo call_user_func_array(array(&$walker, 'walk'), array($categories, 0, $args)); 
     323} 
     324} 
     325?> 
Note: See TracChangeset for help on using the changeset viewer.