Showing 5,566 of 7,504 total issues
Function parseAjaxResponse
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
parseAjaxResponse: function( x, r, e ) { // 1 = good, 0 = strange (bad data?), -1 = you lack permission
var parsed = {}, re = jQuery('#' + r).html(''), err = '';
if ( x && typeof x == 'object' && x.getElementsByTagName('wp_ajax') ) {
parsed.responses = [];
Function get
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
get: (function(){
/**
* @static
* @type Array
*/
Function bindSelectorChanged
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function bindSelectorChanged() {
var selection = editor.selection;
if (itemName == "bullist") {
selection.selectorChanged('ul > li', function(state, args) {
Function renderReplaceImageToolbar
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderReplaceImageToolbar: function() {
var frame = this,
lastState = frame.lastState(),
previous = lastState && lastState.id;
Function rescale
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
rescale : function( width, height, complete ) {
var self = this;
// allow rescale(fn)
Method privList
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function privList(&$p_list)
{
$v_result=1;
// ----- Magic quotes trick
Method _get_row_actions
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _get_row_actions( $post, $att_title ) {
$actions = array();
if ( $this->detached ) {
if ( current_user_can( 'edit_post', $post->ID ) )
Method wp_edit_posts_query
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_edit_posts_query( $q = false ) {
if ( false === $q )
$q = $_GET;
$q['m'] = isset($q['m']) ? (int) $q['m'] : 0;
$q['cat'] = isset($q['cat']) ? (int) $q['cat'] : 0;
Method get_views
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_views() {
global $totals, $status;
$status_links = array();
foreach ( $totals as $type => $count ) {
Method wp_dashboard_recent_comments
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_dashboard_recent_comments() {
global $wpdb;
if ( current_user_can('edit_posts') )
$allowed_states = array('0', '1');
Method media_handle_upload
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function media_handle_upload($file_id, $post_id, $post_data = array()) {
$overrides = array('test_form'=>false);
$time = current_time('mysql');
if ( $post = get_post($post_id) ) {
Method wp_insert_category
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_insert_category($catarr, $wp_error = false) {
$cat_defaults = array('cat_ID' => 0, 'cat_name' => '', 'category_description' => '', 'category_nicename' => '', 'category_parent' => '');
$catarr = wp_parse_args($catarr, $cat_defaults);
extract($catarr, EXTR_SKIP);
Method put
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function put($localfile, $remotefile=NULL, $rest=0) {
if(is_null($remotefile)) $remotefile=$localfile;
if (!file_exists($localfile)) {
$this->PushError("put","can't open local file", "No such file or directory \"".$localfile."\"");
return FALSE;
Method dirlist
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function dirlist($path = '.', $include_hidden = true, $recursive = false) {
if ( $this->is_file($path) ) {
$limit_file = basename($path);
$path = dirname($path) . '/';
} else {
Method wp_ajax_inline_save_tax
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_ajax_inline_save_tax() {
global $wp_list_table;
check_ajax_referer( 'taxinlineeditnonce', '_inline_edit' );
Method populate_roles_210
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function populate_roles_210() {
$roles = array('administrator', 'editor');
foreach ($roles as $role) {
$role =& get_role($role);
if ( empty($role) )
Method download_comment_meta
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function download_comment_meta() {
$cookie = $this->get_session();
if ( is_wp_error( $cookie ) )
return $cookie;
Method download_post_bodies
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function download_post_bodies() {
$imported_count = (int) get_option( 'ljapi_imported_count' );
$sync_item_times = get_option( 'ljapi_sync_item_times' );
$lastsync = get_option( 'ljapi_lastsync_posts' );
if ( !$lastsync )
Method mt_getRecentPostTitles
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mt_getRecentPostTitles($args) {
$this->escape($args);
$blog_ID = (int) $args[0];
Method put_file
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function put_file($postID) {
// first check if user can upload
if(!current_user_can('upload_files'))
$this->auth_required(__('You do not have permission to upload files.'));