Showing 5,566 of 7,504 total issues
Function _scaleImage
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_scaleImage : function( image, options ) {
image = image || this._controls.getActive();
// janpub (JH) fix:
Function getItemData
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getItemData : function( itemType, id ) {
itemType = itemType || 'menu-item';
var itemData = {}, i,
fields = [
Function keyboardAccessible
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
keyboardAccessible: function( event ) {
var isEnter = ( event.which === 13 ),
isEsc = ( event.which === 27 ),
isDown = ( event.which === 40 ),
isUp = ( event.which === 38 ),
Function widgetCoords
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
fb.widgetCoords = function (event) {
var x, y;
var el = event.target || event.srcElement;
var reference = fb.wheel;
Function edit
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
edit: function( content ) {
var shortcode = wp.shortcode.next( this.tag, content ),
defaultPostId = this.defaults.id,
attachments, selection, state;
Function attachment
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
attachment: function( props, attachment ) {
var caption = attachment.caption,
options, html;
// If captions are disabled, clear the caption.
Function _handleMoreBreak
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_handleMoreBreak : function(ed, url) {
var moreHTML, nextpageHTML;
moreHTML = '<img src="' + url + '/img/trans.gif" alt="$1" class="mceWPmore mceItemNoResize" title="'+ed.getLang('wordpress.wp_more_alt')+'" />';
nextpageHTML = '<img src="' + url + '/img/trans.gif" class="mceWPnextpage mceItemNoResize" title="'+ed.getLang('wordpress.wp_page_alt')+'" />';
Function _createButtons
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_createButtons : function() {
var t = this, ed = tinyMCE.activeEditor, DOM = tinymce.DOM, editButton, dellButton;
DOM.remove('wp_editbtns');
Function toggleFullscreen
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function toggleFullscreen() {
var body = document.body, documentElement = document.documentElement, editorContainerStyle;
var editorContainer, iframe, iframeStyle;
function resize() {
Function animateTo
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function animateTo(a)/*{{{*/
{
var x1 = a[0] / xscale,
y1 = a[1] / yscale,
x2 = a[2] / xscale,
Function interval
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function interval( speed, ticks ) {
var newInterval,
oldInterval = settings.tempInterval ? settings.tempInterval : settings.mainInterval;
if ( speed ) {
Function toggleSelection
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
toggleSelection: function( options ) {
var collection = this.collection,
selection = this.options.selection,
model = this.model,
method = options && options.method,
Function _scaleImage
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_scaleImage : function( image, options ) {
image = image || this._controls.getActive();
// janpub (JH) fix:
Function activate
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Tab.prototype.activate = function (element, container, callback) {
var $active = container.find('> .active')
var transition = callback
&& $.support.transition
&& ($active.length && $active.hasClass('fade') || !!container.find('> .fade').length)
Method upgrade_100
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function upgrade_100() {
global $wpdb;
// Get the title and ID of every post, post_name to check if it already has a value
$posts = $wpdb->get_results("SELECT ID, post_title, post_name FROM $wpdb->posts WHERE post_name = ''");
Method the_attachment_links
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function the_attachment_links( $id = false ) {
$id = (int) $id;
$post = & get_post( $id );
if ( $post->post_type != 'attachment' )
Method get_views
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_views() {
global $locked_post_status, $avail_post_stati;
$post_type = $this->screen->post_type;
Method wp_ajax_wp_compression_test
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_ajax_wp_compression_test() {
if ( !current_user_can( 'manage_options' ) )
wp_die( -1 );
if ( ini_get('zlib.output_compression') || 'ob_gzhandler' == ini_get('output_handler') ) {
Method core_upgrade_preamble
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function core_upgrade_preamble() {
global $upgrade_error;
$updates = get_core_updates();
?>
Method js_2
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function js_2() { ?>
<script type="text/javascript">
function onEndCrop( coords ) {
jQuery( '#x1' ).val(coords.x);
jQuery( '#y1' ).val(coords.y);