[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fyjRURECbwO-GMclz85ESEtUioGRTAcGzSM-BOgAG2fw":3},{"slug":4,"name":5,"version":6,"author":7,"author_profile":8,"description":9,"short_description":10,"active_installs":11,"downloaded":12,"rating":11,"num_ratings":11,"last_updated":13,"tested_up_to":14,"requires_at_least":15,"requires_php":16,"tags":17,"homepage":19,"download_link":20,"security_score":21,"vuln_count":11,"unpatched_count":11,"last_vuln_date":22,"fetched_at":23,"vulnerabilities":24,"developer":25,"crawl_stats":22,"alternatives":32,"analysis":33,"fingerprints":81},"enhanced-body-class","Enhanced Body Class","1.0.8","Noah J. Stewart","https:\u002F\u002Fprofiles.wordpress.org\u002Frevnoah\u002F","\u003Cp>WordPress plugin to add user-related classes to the body tag. This can be enabled on the frontend and backend of the site.\u003Cbr \u002F>\nThe css classes allow you to easily customize styling by role or a specific user.\u003C\u002Fp>\n\u003Ch3>Features\u003C\u002Fh3>\n\u003Cul>\n\u003Cli>Toggle display on frontend and admin pages\u003C\u002Fli>\n\u003Cli>Toggle classes for role, user name and user id\u003C\u002Fli>\n\u003Cli>Template hinting to load custom theme css files for frontend and admin\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch3>Stylesheets\u003C\u002Fh3>\n\u003Cul>\n\u003Cli>Add to theme folder (optional): enhanced-body-class-frontend.css \u003C\u002Fli>\n\u003Cli>Add to theme folder (optional): enhanced-body-class-admin.css\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch3>Scripts\u003C\u002Fh3>\n\u003Cul>\n\u003Cli>Add to theme folder (optional): enhanced-body-class-frontend.js \u003C\u002Fli>\n\u003Cli>Add to theme folder (optional): enhanced-body-class-admin.js\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch3>Styles\u003C\u002Fh3>\n\u003Cul>\n\u003Cli>.user-role-{rolename} ex: .user-role-author\u003C\u002Fli>\n\u003Cli>.user-name-{username} ex: .user-name-bobdobbs\u003C\u002Fli>\n\u003Cli>.user-id-{ID} ex: .user-id-1\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch3>Usage\u003C\u002Fh3>\n\u003Cp>After activating the class on the body tag, it will be up to you to use css or javascript to customize the display.\u003C\u002Fp>\n\u003Col>\n\u003Cli>Activate ‘User Role’ on ‘Admin Pages’ in plugin settings\u003C\u002Fli>\n\u003Cli>Observe classes on BODY tag by viewing the webpage source. You may need to refresh the page to see the updated class.\u003C\u002Fli>\n\u003Cli>Navigate to current theme and create file \u003Ccode>enhanced-body-class-admin.css\u003C\u002Fcode>\u003C\u002Fli>\n\u003Cli>\n\u003Cp>Edit \u003Ccode>enhanced-body-class-admin.css\u003C\u002Fcode> and add the following:\u003C\u002Fp>\n\u003Cp>body.user-role-administrator { background-color: cyan; }\u003C\u002Fp>\n\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Cp>Refresh the page. You should now see a cyan background. You can now update the css to change the display of specific\u003Cbr \u002F>\npage elements.\u003C\u002Fp>\n\u003Ch3>Real Usage\u003C\u002Fh3>\n\u003Cp>This plugin was developed to hide certain elements in a popular photo gallery from users with a specific role.\u003C\u002Fp>\n\u003Cp>Create the theme file \u003Ccode>enhanced-body-class-admin.css\u003C\u002Fcode>\u003C\u002Fp>\n\u003Cpre>\u003Ccode>`\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>body.user-role-contributor #updategallery #gallerydiv { display: none; }\u003Cbr \u002F>\n    `\u003C\u002Fp>\n\u003Cp>Create the theme file \u003Ccode>enhanced-body-class-admin.js\u003C\u002Fcode>\u003C\u002Fp>\n\u003Cpre>\u003Ccode>`\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>jQuery(document).ready(function($) {\u003Cbr \u002F>\n    $(‘body.user-role-contributor select#bulkaction option[value=”copy_to”]’).attr(‘disabled’, ‘disabled’);\u003Cbr \u002F>\n});\u003Cbr \u002F>\n    `\u003C\u002Fp>\n\u003Ch3>About This Plugin\u003C\u002Fh3>\n\u003Cp>This plugin was created by Noah J. Stewart in response to a specific problem. In January 2019,\u003Cbr \u002F>\nNoah Stewart was contacted by his father Jim Stewart regarding a WordPress photo gallery plugin\u003Cbr \u002F>\nthat his astronomy club was using. They were having trouble customizing a few of the role-based\u003Cbr \u002F>\noptions in a popular gallery plugin. Like any good graphic artist, Jim was trying to improve\u003Cbr \u002F>\nthe interface for the site users. The simplest approach to the problem was to use css to\u003Cbr \u002F>\nselectively hide certain elements, ie. invisible content users with the \u003Cstrong>author\u003C\u002Fstrong> role that\u003Cbr \u002F>\nshould be visible to users with the \u003Cstrong>administrator\u003C\u002Fstrong> role.\u003C\u002Fp>\n","WordPress plugin to add user-related classes to body tag, allowing you to easily customize styling by role or specific user.",0,1442,"","6.8.5","4.6","5.6.40",[18],"body-class-style","https:\u002F\u002Fgithub.com\u002Frevnoah\u002Fwordpress-enhanced-body-class#readme","https:\u002F\u002Fdownloads.wordpress.org\u002Fplugin\u002Fenhanced-body-class.1.0.8.zip",100,null,"2026-03-15T10:48:56.248Z",[],{"slug":26,"display_name":7,"profile_url":8,"plugin_count":27,"total_installs":28,"avg_security_score":21,"avg_patch_time_days":29,"trust_score":30,"computed_at":31},"revnoah",4,70,30,94,"2026-04-04T22:30:52.707Z",[],{"attackSurface":34,"codeSignals":60,"taintFlows":73,"riskAssessment":74,"analyzedAt":80},{"hooks":35,"ajaxHandlers":56,"restRoutes":57,"shortcodes":58,"cronEvents":59,"entryPointCount":11,"unprotectedCount":11},[36,42,46,52],{"type":37,"name":38,"callback":39,"file":40,"line":41},"filter","admin_body_class","enhanced_body_class_admin_body_class","enhanced-body-class.php",37,{"type":37,"name":43,"callback":44,"file":40,"line":45},"body_class","enhanced_body_class_frontend_body_class",38,{"type":47,"name":48,"callback":49,"file":50,"line":51},"action","admin_menu","enhanced_body_class_create_menu","includes\\admin.inc.php",59,{"type":47,"name":53,"callback":54,"file":50,"line":55},"admin_init","enhanced_body_class_settings",80,[],[],[],[],{"dangerousFunctions":61,"sqlUsage":62,"outputEscaping":64,"fileOperations":11,"externalRequests":11,"nonceChecks":11,"capabilityChecks":11,"bundledLibraries":72},[],{"prepared":11,"raw":11,"locations":63},[],{"escaped":11,"rawEcho":65,"locations":66},2,[67,70],{"file":50,"line":68,"context":69},106,"raw output",{"file":50,"line":71,"context":69},116,[],[],{"summary":75,"deductions":76},"The \"enhanced-body-class\" plugin v1.0.8 exhibits a strong security posture based on the provided static analysis.  The plugin has zero identified entry points that are unprotected, no dangerous functions, and all SQL queries utilize prepared statements. Furthermore, the absence of any file operations, external HTTP requests, or known vulnerabilities in its history suggests a well-developed and maintained plugin.  The taint analysis also yielded no critical or high severity findings.\n\nHowever, a significant concern arises from the output escaping. With two total outputs and 0% properly escaped, this indicates a potential for cross-site scripting (XSS) vulnerabilities. Any dynamic data outputted by the plugin, if not handled carefully by the theme or other plugins, could be exploited.  While the plugin itself doesn't appear to have a large attack surface or introduce complex risks, this lack of output sanitization is a notable weakness that could be exploited in conjunction with other factors.\n\nIn conclusion, the plugin demonstrates excellent security practices in terms of attack surface management, data handling (SQL), and historical vulnerability management. The primary area of concern is the complete lack of output escaping, which represents a tangible risk that requires attention. While there are no known vulnerabilities, this oversight could lead to new security issues if not addressed.",[77],{"reason":78,"points":79},"Output not properly escaped",8,"2026-03-17T05:50:39.129Z",{"wat":82,"direct":90},{"assetPaths":83,"generatorPatterns":87,"scriptPaths":88,"versionParams":89},[84,85,86],"\u002Fwp-content\u002Fplugins\u002Fenhanced-body-class\u002Fincludes\u002Fform.inc.php","\u002Fwp-content\u002Fplugins\u002Fenhanced-body-class\u002Fincludes\u002Fadmin.inc.php","\u002Fwp-content\u002Fplugins\u002Fenhanced-body-class\u002Fincludes\u002Fhelpers.inc.php",[],[],[],{"cssClasses":91,"htmlComments":97,"htmlAttributes":98,"restEndpoints":99,"jsGlobals":100,"shortcodeOutput":101},[92,93,94,95,96],"user-role-administrator","user-role-editor","user-role-author","user-role-contributor","user-role-subscriber",[],[],[],[],[]]