AI Verified
Display snippet line numbers
Based on work by platypus424 and germankiwi, this snippet will allow you to see code on a particular line number from all of your snippets, allowing you to track down exactly where an error might be occuring.
PHP
Voted: 0 by 0 user(s)
Activate the snippet on your site and then visit the Snippets > Display Line Numbers menu.
Scroll down to see more snippets from this codevault.
The author has indicated that this snippet is compatable up to wordpress version: 6.1
Our AI bot has checked this snippet is compatable up to wordpress version: 6.1
Free & Pro
Download this snippet by clicking the download button, then head over to the Code Snippet Plugin settings in your wordpress admin dashboard, select the import menu then upload this file to import into your wordpress site.
Pro Only (Coming Soon)
You will be able to click a button and sync this snippet to your wordpress site automatically and from your dashboard manage all code snippets across all your wordpress sites that have the Code Snippets Pro plugin installed.
Last modified:
07/04/2023
This snippet has the following status:
AI Verified
This snippet has been tested by our AI bot, see any comments below.
AI Bot Comments:
Potential vulnerability found : Cross Site Scripting
Found on line : 22
Code : echo(esc_attr( $line_number ? $line_number : $default_line_number )
Vulnerable line : 5
Code : $line_number = isset( $_REQUEST['line_number'] ) ? intval( $_REQUEST['line_number'] ) : 0);
Potential vulnerability found : Cross Site Scripting
Found on line : 22
Code : echo(esc_attr( $line_number ? $line_number : $default_line_number )
Vulnerable line : 5
Code : $line_number = isset( $_REQUEST['line_number'] ) ? intval( $_REQUEST['line_number'] ) : 0);
Potential vulnerability found : Cross Site Scripting
Found on line : 48
Code : echo('<pre><code>', esc_html( trim( $lines[ $line_number - 1 ] )
Vulnerable line : 36
Code : $lines = explode( PHP_EOL, $snippet->code ));
Potential vulnerability found : Cross Site Scripting
Found on line : 48
Code : echo('<pre><code>', esc_html( trim( $lines[ $line_number - 1 ] )
Vulnerable line : 5
Code : $line_number = isset( $_REQUEST['line_number'] ) ? intval( $_REQUEST['line_number'] ) : 0);
Found 4 vulnerabilities
0
Please see some snippets below related to this snippet..
WordPress Admin
Unverified
Added: 7 months ago
Last Updated: 7 months ago
Fluid Typography Code Snippet - Add the Tool to your Dashboard or Page
WordPress Admin
AI Verified
WordPress Admin
AI Verified
Added: 8 months ago
Last Updated: 7 months ago
This snippets removes the "Events" link from the WordPress admin bar. The link comes from The Events Calendar plugin.
These are some popular snippets from this users codevault..
WordPress Admin
AI Verified
Added: 1 year ago
Last Updated: 2 weeks ago
Customises the footer text in the WordPress dashboard.
General
AI Verified
Added: 1 year ago
Last Updated: 3 days ago
Ensures that the filenames of all uploaded files are converted to lowercase, for consistency.
WordPress Admin
AI Verified
Added: 8 months ago
Last Updated: 7 months ago
By default, Code Snippets will scroll the page up so that new notices are visible when editing or adding snippets. This snippet disables that functionality for those who prefer a more consistent editi...
Category
Snippet Status