recentpopularlog in

kme : wordpress   165

« earlier  
More Than 162,000 WordPress Sites Used for Distributed Denial of Service Attack | Sucuri Blog
See also: https://www.trustwave.com/Resources/SpiderLabs-Blog/WordPress-XML-RPC-PingBack-Vulnerability-Analysis/

Except those assholes don't give you copy-pasteable code. It's an image. These assholes let their CMS put smartquotes in the code, but at least it's a start.
add_filter( 'xmlrpc_methods', function( $methods ) {
unset( $methods['pingback.ping'] );
return $methods;
} );


Here's a POST that will check to see if the "patch" worked:
<?xml version="1.0"
encoding="iso-8859-1"?><methodCall><methodName>pingback.ping</methodName><params ><param><value><string>http://127.0.0.1</string></value></param><param><value><string></string></value></param></params></methodCall>
wordpress  security  webmaster  ddos  xmlrpc  pingback 
march 2015 by kme
How to remove the smiley face from a WordPress blog | Richard Shepherd [http://richardshepherd.com/]
/* Let's remove that WordPress Stats Smiley Face ! */
img#wpstats {
     display: none;
}
wordpress  webmaster  webdevel  solution 
october 2014 by kme
WordPress › Support » Problems installing plugins on local WordPress installation
I have figured out so far that this is a permission issue, however I have tried everything I came across on the forums without success, i.e.:

sudo chown -R www-data wp-content
sudo chmod -R 755 wp-content

I have also added the following line to wp-config.php:

define('FS_METHOD', 'direct');


In my case, I had to recursively add the user 'www-data' to the ACL, then set inheritance to match (since the upgrade process tries to create new directories).
wordpress  webmaster  webdevel  sysadmin  errormessage  upgrade  solution 
october 2014 by kme
30+ Best vCard WordPress Themes 2014 - aThemes
Several of these have "thermometers" depicting relative strengths of core skills.
wordpress  resume  cv  theme  list  personalsite  alternativeto  aboutdotme 
february 2014 by kme
Displaying WordPress 3.x Custom Post Types on a Page Other than Home | Victor's Blog
/** following code block added by vmf on 11/12/2010
* registers custom post type 'leadlikejesus'
* caution: if template gets updated by developer
* this file may get overwritten and you will have to restore
* this functionality. Make sure you save it someplace safe.
*/

// execute the create_post_type() function
add_action( 'init', 'create_post_type' );

function create_post_type() {

// create an array for all of the display prompts
$labels = array(
'name' => __( 'Devotionals' ),
'singular_name' => __( 'Devotional' ),
'add_new' => __( 'Add New' ),
'add_new_item' => __( 'Add New Devotional' ),
'edit' => __( 'Edit' ),
'edit_item' => __( 'Edit Devotional' ),
'new_item' => __( 'New Devotional' ),
'view' => __( 'View Devotional' ),
'view_item' => __( 'View Devotional' ),
'search_items' => __( 'Search Devotionals' ),
'not_found' => __( 'No devotionals found' ),
'not_found_in_trash' => __( 'No devotionals found in Trash' ),
'parent_item_colon' => ''
);

// create an array for the arguments to pass to register_post_type()
$args = array(
'labels' => $labels,
'public' => true,
'publicly_queryable' => true,
'show_ui' => true,
'_builtin' => false, // It's a custom post type, not built in!
'rewrite' => array('slug' => 'devotionals'),
'capability_type' => 'post',
'hierarchical' => false,
'supports' => array( 'title', 'author', 'editor', 'comments', 'trackbacks', 'sticky', 'excerpt', 'custom-fields', 'thumbnail', 'page-attributes' )
);

// register the new custom post type
register_post_type( 'leadlikejesus', $args);

// flush the rewrite rules to prevent 404 error
flush_rewrite_rules();
}

// end custom post type 'leadlikejesus'
wordpress  customposttype  php  webdevel  solution 
december 2013 by kme
How to Show Posts of Custom Post Types on WordPress Home Page
// Show posts of 'post', 'book' ,'movie' ,'page' 'joke', 'event' post types on home page
add_action( 'pre_get_posts', 'add_custom_post_types_to_home_page' );

function add_custom_post_types_to_home_page( $query ) {
if ( is_home() &amp;&amp; $query-&gt;is_main_query() )
$query-&gt;set( 'post_type', array( 'post', 'book', 'movie', 'page' , 'joke' , 'event' ) );
return $query;
}
wordpress  webdevel  customposttypes  solution 
december 2013 by kme
« earlier      
per page:    204080120160

Copy this bookmark:





to read