It is extremely unlikely that code file of identical content would behave differently.
From your description of situation I see two possibilities:
- File does get changed for some reason, you should not only upload clean copy, but actually compare what you have on server at that point against what you have locally
- You are mis-identifying upload as the key fix, it might be just related to upload or even completely coincidental
In your situation I would add some debug code (discreetly for admins) that would dump the current state of $_wp_theme_features
global to see if it actually changes from expected, possibly during different stages of admin load.
Related Posts:
- The the_post_thumbnail without srcset?
- Cannot get full thumbnail size using the_post_thumbnail
- Set a featured image as a replacement to the header image
- Show post thumbnail only if it exists using timthumb
- Sizing screenshot.png without losing aspect ratio
- How to insert a logo in the header?
- Should `get_template_directory_uri()` be escaped?
- How To Add New Option Types To Option Tree?
- Why doesn’t default WordPress page view use force_balance_tags?
- Page template in two level deep folder
- Automatic Updates For Private And Commercial Themes?
- Child Theme not loading parent CSS
- Where do I find the functions triggered within a hook?
- add_image_size is scaling, even though crop is set to true
- Use of undefined constant FS_CHMOD_DIR – assumed ‘FS_CHMOD_DIR’
- Registering Sidebars and Sidebar Widgets. Sidebar Widgets Not Displaying
- How do I get a parent theme modification from a child theme?
- Removing the default sidebar from admin panel
- how to pull wordpress post comments to a external page
- index.php is not loaded for single posts
- Why use while over if in single wordpress posts?
- WordPress website loads but is not displayed until page scrolled
- How to set page template on front using starter content?
- Different Admin Theme – Based on Role?
- Theme Customizer not loading
- Is it a good idea to make whole theme widgetized?
- Finding Page Template and Displaying Content
- Single Theme folder for Multiple WordPress
- Override Constants in Child theme
- How i can get widgets areas working in customizer?
- Cutomize Colors utility: How to add more configurable colors to a theme
- Where is definied the theme location for the main menu in a WordPress template?
- How to disable automatic colors in the Twenty Twenty theme?
- Removing feeds from header using a function?
- Gutenberg – editor-font-sizes in functions not working
- Cannot figure out how to overwrite files in child theme
- How to add theme support?
- WordPress post arrangement using post_class
- Customize the previous_post_link output
- How to use get_template_part instead of include_once?
- How to remove comment link title attribute?
- Translation Issue with WordPress Theme Check in comment_form function
- wp-cli: For development, how can I activate a theme that is on the local disk but not zipped?
- My Admin bar covers my sticky navbar [closed]
- Featured Images are not able to be set
- Single Page Design, Storing in Theme Options
- How to edit theme functions file to modify pagination?
- Edit footer via customizer
- loading blank white screen of slide
- Child Theme’s style.css not loading in mobile browser
- Migrated WordPress site renders Chinese
- Reactor Theme: Prevent Post Thumb on Post
- How to Find the Page the Front Page is Using?
- How do I get the trackback count of a post in wordpress without writing an SQL query?
- 3 Level Deep Navigation Menu Not Showing All Levels
- How to Have a Pure HTML Sub Directory In WP Site
- How to correctly enqueue the parent and child theme stylesheets in the creation of a child theme? [duplicate]
- Theming Using Bootstrap Glyphicons and WordPress Dashicons
- How To Pick Custom Size Of Uploaded Image In Theme Via the_post_thumbnail();?
- featured content: which area does this cover [closed]
- WordPress page/blog incorporated into static website
- Random white space before doctype
- How to add menù section to my WordPress template?
- What are the critical theme files when building a custom theme?
- Having issue with WordPress wp_enqueue_style
- Starting point for custom Themes [closed]
- Theme Development -> Specific Homepage
- Which cache is kicking
- searchform.php doesn’t work properly
- Adding Bootstrap to WordPress TwentySixteen Theme
- Full width featured thumbnail
- Is there a way to switch to another theme?
- How add built-in textarea in theme development?
- Filter didn’t work on content class (hybrid_post_attributes)
- When trying to set title, not sure how to edit it for different pages
- static front page ONLY for certain themes?
- How to add cropped custom header image?
- Any way to change/add to the theme name dynamically?
- Trying to link to a php template file but its blank
- Theme author.php transfer
- Custom Enfold theme tab layout not compatible with WPML
- Created blank theme for REST API, featured image not appearing on admin side
- Different WP Rest API custom endpoints across different themes
- How to test another theme in a live WordPress website instead of live preview?
- WordPress uploads do not show up and I see the white screen of death in some cases
- Can’t upload images on new theme
- Any way to permanently translate themes?
- Import from HubSpot COS into WordPress 4?
- Theme customizer live preview JS- Trying to bind to an html image url without luck
- Any disadvandages if I style the wordpress align classes without img and .wp-caption prefix
- Theme automatically inserting “more” tag on every post
- How get the 10 most viewed pages (not post)
- adding navigation to genesis themes
- Using wp_enqueue_script with social media buttons?
- Purchased Theme to Custom Made Theme? [closed]
- How to make website with many template that active [closed]
- Image Size wrong during upload
- How to create full header but keep content narrow
- Correct way to make a custom block theme responsive
- What is the point of using the front-page.php template? [closed]