Showing 5,566 of 7,504 total issues
Function makeFlashInput
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var makeFlashInput = function(evt) {
if (elem.attr('disabled')) {
elem.__ngf_elem__.removeClass('js-fileapi-wrapper');
} else {
var fileElem = elem.__ngf_elem__;
Function mouseover
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
mouseover: function (evt){
if (!flash.disableMouseover) {
var target = api.event.fix(evt).target;
if( /input/i.test(target.nodeName) && target.type == 'file' && !target.disabled ){
Function makeFlashInput
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var makeFlashInput = function(evt) {
if (elem.attr('disabled')) {
elem.__ngf_elem__.removeClass('js-fileapi-wrapper');
} else {
var fileElem = elem.__ngf_elem__;
Function _serializeStringMap
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Serializer._serializeStringMap = function (map, expectedType, name) {
var output = undefined;
if (map) {
output = {};
for (var field in map) {
Function Exception
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Exception = (function (_super) {
__extends(Exception, _super);
function Exception(exception, handledAt, properties, measurements) {
_super.call(this);
this.aiDataContract = {
Function shortcode
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
shortcode: function( attachments ) {
var props = attachments.props.toJSON(),
attrs = _.pick( props, 'orderby', 'order' ),
shortcode, clone, self = this;
Function init
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init : function() {
var t = this, ajaxtag = $('div.ajaxtag');
$('.tagsdiv').each( function() {
tagBox.quickClicks(this);
Function save
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
save : function(widget, del, animate, order) {
var sb = widget.closest('div.widgets-sortables').attr('id'), data = widget.find('form').serialize(), a;
widget = $(widget);
$('.ajax-feedback', widget).css('visibility', 'visible');
Function uploadError
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function uploadError(fileObj, errorCode, message, uploader) {
var hundredmb = 100 * 1024 * 1024, max;
switch (errorCode) {
case plupload.FAILED:
Function save
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
save: function() {
var self = this,
query = $.extend( this.query(), {
action: 'customize_save',
nonce: this.nonce.save
Function createPasteBin
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createPasteBin() {
var dom = editor.dom, body = editor.getBody();
var viewport = editor.dom.getViewPort(editor.getWin()), scrollTop = viewport.y, top = 20;
var scrollContainer;
Function parseShortcode
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseShortcode( content ) {
return content.replace( /(?:<p>)?\[(?:wp_)?caption([^\]]+)\]([\s\S]+?)\[\/(?:wp_)?caption\](?:<\/p>)?/g, function( a, b, c ) {
var id, cls, w, cap, img, width,
trim = tinymce.trim;
Method PclZipUtilCopyBlock
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function PclZipUtilCopyBlock($p_src, $p_dest, $p_size, $p_mode=0)
{
$v_result = 1;
if ($p_mode==0)
Method make_site_theme_from_oldschool
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function make_site_theme_from_oldschool($theme_name, $template) {
$home_path = get_home_path();
$site_dir = WP_CONTENT_DIR . "/themes/$template";
if (! file_exists("$home_path/index.php"))
Method dirlist
has 42 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 insert_with_markers
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function insert_with_markers( $filename, $marker, $insertion ) {
if (!file_exists( $filename ) || is_writeable( $filename ) ) {
if (!file_exists( $filename ) ) {
$markerdata = '';
} else {
Method dirlist
has 42 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 categories_form
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function categories_form() { ?>
<script type="text/javascript">
/* <![CDATA[ */
var checkflag = "false";
Method _wp_ajax_delete_comment_response
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _wp_ajax_delete_comment_response( $comment_id ) {
$total = (int) @$_POST['_total'];
$per_page = (int) @$_POST['_per_page'];
$page = (int) @$_POST['_page'];
$url = esc_url_raw( @$_POST['_url'] );
Method comment_row_action
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function comment_row_action( $a, $comment ) {
// failsafe for old WP versions
if ( !function_exists('add_comment_meta') )
return $a;