Skip to content

admin scripts boilerplate simplification #1

@jrevillini

Description

@jrevillini

My feeling is that most extensions will not need an extensive setup routine, and even when they do, it'll usually be done at page load. So my suggestion is that the admin boilerplate JS be simplified to just

(function () {
  "use strict";
  jQuery( function ($) {
    if ($('body.post-type-popup form#post').size() === 0) return;
    // do whatever
  });
}());

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions