Your installation might be … less than optimal.
Using my Mini Theme, no plugins and the following code on the front page right after the opening body
tag …
print count( $GLOBALS ) . ' $GLOBALS<br>';
print @count( get_defined_vars(), 1 ) . ' variables<br>';
print count( get_defined_constants( TRUE )['user'] ) . ' constants';
… I get:
158 $GLOBALS
9759 variables
85 constants
Still too much for my taste. Keep in mind many plugin and theme developers forget to keep the global namespace clean. Depending on the quality of the addons you have installed your results might be much higher.
And yes, you need those rewrite rules. Some slugs are translated, and translation can change on each request. So they have to be always available.
Related Posts:
- Error: “Cannot modify the return value” c#
- Python conditional assignment operator
- C++ identifier is undefined
- What is the PHP syntax to check “is not null” or an empty string?
- ISO C90 forbids mixed declarations and code in C
- Which variable size to use (db, dw, dd) with x86 assembly?
- Why SQL Server throws Arithmetic overflow error converting int to data type numeric?
- Character constant too long for its type
- What is the meaning of @_ in Perl?
- What is the meaning of @_ in Perl?
- Passing a variable to get_template_part
- What are all the Properties of the WordPress Post Object?
- Passing variables from header.php to template and vice verca
- When to use global $post and other global variables?
- How to create custom variables in the wp-config
- Set cookie using GET variable
- {{ Double Curly Brace }} data.____ Variable Source in WP_Playlist Template
- What is the best way to store custom variables
- Setting Cookie Using a Variable from the URL
- WordPress filtering utm_ GET variables from url unless logged in as admin, not sure why?
- Using variable in two functions
- What is the $current_screen global variable?
- Print string to footer using wp_footer option
- How to pass data around?
- How do I pass variables into short-code enabled Post Snippets in WordPress 3.0?
- Replacing string with a variable in php
- Why does a variable work on the front page but return NULL on all other pages?
- Variable scope producing undefined variable notices in included files
- Use to track referrals
- Can you keep session data for visitors?
- Changing static text in a theme into variable content that also respects language. Easiest way
- Result of API Request to global variable?
- Best way to pass variables around a WordPress site?
- How do I share variables between two functions?
- What is the use of $content_width?
- Passing a variable from a FOREACH loop in a link
- What does the Global Variable $s represent?
- Get current page id, title, url, etc
- keep a variable for all pages in memory from the url
- Retrieve custom variable
- Pushing Category and Publish Date to Google Analytics
- Trying to create an edit page link?
- Cron Job variable not accessible
- No access to global variables?
- How to access a variable on all page?
- Not passing correct value to get_post_ancestors?
- Help me edit a variable with php
- SFTP define in wp-config.php
- Preventing Duplicating Posts from Widgets
- saving variables after redirect
- WP CLI – Pass Query / URL Variable to Cron?
- Use a select box to change a php variable
- Can’t access a variable defined in another template despite using GLOBAL
- How to pass a variable for key/value pairs in an argument?
- Where and how to define variables for URLs etc
- How to get variable from function.php to loop file
- Pass variable to next page
- passing javascript variable into php wordpress
- Remove # from a Variable [closed]
- How to pass post title (which could include &) to Gravity Form
- Variables posting twice
- Passing variables trough 2 pages
- update_option using variable name
- assign the returned value of wordpress function to a variable?
- Pass var into wp function instead of direct string text
- How do I echo saved data outside the function?
- Having problems accessing $_GET values
- How to pass variable to functions.php?
- Creating a Variable Product
- Converting bytes to megabytes
- Java: “error: cannot find symbol”
- How to use Global Variables in C#?
- How do I profile memory usage in Python?
- In Java, how to assign the variable number=Integer.parseInt(args[0]) a value if no argument is passed?
- JavaScript check if variable exists (is defined/initialized)
- How can I test that a variable is more than eight characters in PowerShell?
- What’s the difference between a word and byte?
- Custom page with variables in url. Nice url with add_rewrite_rule
- Variables declared in header not available in other includes
- Moving variables from one page to another
- How to declare a JS variable in an AJAX call
- Downsize CPU & DB usage in wordpress
- Make WP_Query more efficient?
- Show only one variaton in catalog on meta key
- Custom post type archive page for multiple post types
- How to append a query string to pagination?
- Can’t Access Sessions or Variables through pages
- Getting values from options page to css
- where is real values of variables?
- Insert page content into another page with a changed variable
- Send value of PHP variable in template via hidden field in a form
- WordPress Alphabetical Sort Loop Issue
- Why won’t the action hook wp_head accept parameters?
- How to use variables from widgets in other pages?
- Form Post / Session Variables not Working in Query with Pagination
- How do I fix Undefined variable using $_POST in function?
- Add array of category IDs to global variable?
- WordPress keeps crashing my server
- Adding define(‘WP_MEMORY_LIMIT’, ’64M’); by default?
- Out of Memory – Line 791 of WP-DB.php (mysql_real_escape_string)