Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 309: Theme Header and Background changes are not being logged #319

Merged
merged 53 commits into from
Mar 11, 2014

Conversation

powelski
Copy link

@powelski powelski commented Mar 9, 2014

Fix #309

theme mods context

@frankiejarrett
Copy link
Contributor

@powelski This is looking quite nice so far! Thank you.

However, I have noticed that when changes are made to images, two records are always created:

"Background Image Data" setting was updated
"Background Image" setting was updated
"Header Image Data" setting was updated
"Header Image" setting was updated

I think the additional "Data" record might be redundant here. What do you think?

'permalink' => __( 'Permalinks', 'stream' ),
'wp_stream' => __( 'Stream', 'stream' ),
'custom-background' => __( 'Custom Background', 'stream' ),
'custom-header' => __( 'Custom Header', 'stream' ),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@powelski These slugs should probably being using underscores instead of dashes, e.g. custom_header

@powelski
Copy link
Author

@fjarrett I added method to provide ignored option keys and I put image data there, both for header and background. They are no longer logged:

no image data

@frankiejarrett
Copy link
Contributor

@powelski Can we also ensure that an action link is provided for these new fields?

screen_shot_2014-03-10_at_10_15_45_am

frankiejarrett added a commit that referenced this pull request Mar 11, 2014
Issue 309: Theme Header and Background changes are not being logged
@frankiejarrett frankiejarrett merged commit 58fb855 into develop Mar 11, 2014
@frankiejarrett frankiejarrett deleted the issue-309 branch March 11, 2014 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Theme Header and Background changes are not being logged
4 participants