This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Produces a dump on the state of WordPress when a not found error occurs */ | |
| /* useful when debugging permalink issues, rewrite rule trouble, place inside functions.php */ | |
| ini_set( 'error_reporting', -1 ); | |
| ini_set( 'display_errors', 'On' ); | |
| echo '<pre>'; | |
| add_action( 'parse_request', 'debug_404_rewrite_dump' ); | |
| function debug_404_rewrite_dump( &$wp ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .cursor { | |
| cursor: url("cursor.png") 0 0, pointer; /* Legacy */ | |
| cursor: url("cursor.svg") 0 0, pointer; /* FF */ | |
| cursor: -webkit-image-set(url("cursor.png") 1x, url("cursor@2x.png") 2x) 0 0, pointer; /* Webkit */ | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!--[if mso]> | |
| <center> | |
| <table><tr><td width="580"> | |
| <![endif]--> | |
| <div style="max-width:580px; margin:0 auto;"> | |
| <p>This text will be centered and constrained to 580 pixels even on Outlook which does not support max-width CSS</p> | |
| </div> | |
| <!--[if mso]> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Get a users first name from the full name | |
| * or return the full name if first name cannot be found | |
| * e.g. | |
| * James Smith -> James | |
| * James C. Smith -> James | |
| * Mr James Smith -> James | |
| * Mr Smith -> Mr Smith |